







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to the least squares method for linear regression, a common technique used in science to fit data to parametric models. The concept of model fitting, the difference between fitting and interpolation, and the process of finding the best parameters for a linear model. It also discusses the relationships between variables and the use of the simple least-squares regression method.
Typology: Study notes
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Fitting data to a model • Practical science involves lots of fitting of data to models• Difference between fitting and interpolation? – Interpolation, the fit function passes through the point– Fitting, the fit function satisfies some error criterion • Tasks arise commonly in science – Fit straight lines and curves to data– More generally fit data to a parametric model • Parametric: Model contains parameters – Job of fitting is to estimate the parameters that “best” make themodel fit the data– “best” define best • Simplest example of model fitting problem – Linear regression
Relationships among Variables • In much science we seek relations between variables One variable is used to “explain” another variable X VariableIndependent VariableExplaining VariableExogenous VariablePredictor Variable
Y^ VariableDependent VariableResponse VariableEndogenous VariableCriterion Variable
Estimated Regression Line Y ˆ yye^ −=^ iii^ y i ˆ y i x^ i
:LineRegressiontheofEquationˆ bXaY +=
errors/residuals
Least Squares for more complex models • Number of equations and unknowns may not match• Look for solution by minimizing some cost function• Simplest and most intuitive cost function: ||
-^ Define for each data point
-^ Minimize^ ∑ rr with respect to i^ i^ i^
-^ ∑ rr =∑ (Ax-b).^ ∑ ii^ i^ ijji k^ j^