







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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^