Skip to main content Accessibility help
×
Hostname: page-component-586b7cd67f-2brh9 Total loading time: 0 Render date: 2024-11-24T00:00:37.645Z Has data issue: false hasContentIssue false

7 - Fitting functions to data

Published online by Cambridge University Press:  05 June 2012

Herman J. C. Berendsen
Affiliation:
Rijksuniversiteit Groningen, The Netherlands
Get access

Summary

If you want to fit parameters in a functional relation to experimental data, the best method is a least-squares analysis: Find the parameters that minimize the sum of squared deviations of the measured values from the values predicted by your function. In this chapter both linear and nonlinear least-squares fits are considered. It is explained how you can test the validity or effectiveness of the fit and how you can determine the expected inaccuracies in the optimal values of the parameters.

Introduction

Consider the following task: you wish to devise a function y = f(x) such that this function fits as accurately as possible to a number of data points (xi, yi), i = 1, …, n. Usually you have – based on theoretical considerations – a set of functions to choose from, and those functions may still contain one or more yet undetermined parameters. In order to select the “best” function and parameters you must use some kind of measure for the deviation of the data points from the function. If this deviation measure is a single value, you can then select the function that minimizes this deviation.

This task is not at all straightforward and you may be lured into pitfalls during the process. For example, your choice of functions and parameters may be so large and your set of data may be so small that you can choose a function that exactly fits your data.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2011

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Fitting functions to data
  • Herman J. C. Berendsen, Rijksuniversiteit Groningen, The Netherlands
  • Book: A Student's Guide to Data and Error Analysis
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511921247.008
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Fitting functions to data
  • Herman J. C. Berendsen, Rijksuniversiteit Groningen, The Netherlands
  • Book: A Student's Guide to Data and Error Analysis
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511921247.008
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Fitting functions to data
  • Herman J. C. Berendsen, Rijksuniversiteit Groningen, The Netherlands
  • Book: A Student's Guide to Data and Error Analysis
  • Online publication: 05 June 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511921247.008
Available formats
×