Fitting a model: ordinary least square (OLS)

of a linear model can be estimated using:

We call the ordinarly least square

Estimating the variance of the error

The variance of the error compontent can be estimated using:

The MSE is an unbiased and consistent estimator for the variance of error in linear regression. This means that:

  • Unbiased: The mathematical expectation of MSE is the actual variance of the error
  • Consistent: As the sample size goes larger, the MSE approaces the true value of the variance of the error

Note

The part of the formula represents the number of coefficients () in the model.

Interpretation

useful interpretation of the estimated standard deviation is that the interval will provide a rough approximation to the accuracy with which the model will predict future values of for given values of