Weighted least squares regression is a generalization of OLS regression used when different data points have different importance, or "weights". See also [weighted-data].

Weighted least squares regression is a generalization of ordinary least squares regression. It can be used when it is believed that the data are not all equally informative about the parameters, e.g., when there is heteroscedasticity.