Weighted least squares

| Main Article
| Discussion
| Related Articles  [?]
| Bibliography  [?]
| External Links  [?]
| Citable Version  [?]

|
|
|
|
|
|
|
|

This editable Main Article is under development and subject to a disclaimer.

[edit intro]

Weighted least squares is a method of linear regression similar to the ordinary least squares method, except that points are weighted, which causes that some points have greater effect on the approximation than the others. The weighted least squares method is particularly important in function approximation and in estimation of model parameters from measured data.

## Problem statement[edit]

Consider the problem of adjusting a model function to best fit a given data set. The chosen model function has a set of adjustable parameters a. The data set consist of n points

(yi,𝐱i),i=1,2,…,n.

The modelfunction has the form

y=f(𝐱;𝐚),

where y is the dependent variable, x are the independent variables, and a are the adjustable parameters of the model. We wish to find the values of these parameters such that the model best fits the data according to a defined error criterion. The least squares method minimizes the weighted sum of squares of errors,

S(𝐚)=∑i=1nwi(yi−f(𝐱i;𝐚))2,

with respect to the adjustable parameters of the model a.

When yi are some quantities measured in some real physical system, and f is a model of this system, then we often set the weights wi as inverse of the variances of the corresponding measurements (yi),

wi=1/σi2.

In this way, measurements with lower statistical variance are given greater statistical weight.

## See also[edit]

* Least squares
* Moving least squares
* Regression analysis
* Function approximation
* Optimization (mathematics)