Skip to content
Part BCSIR NET June 2023weighted-least-squares

Weighted least squares

Consider the simple linear regression model Yi=βxi+εi,i=1,…,nY_{i} = \beta{}x_{i} + \varepsilon_{i}, i = 1, \dots, n, where E(εi)=0,Cov(εi,εk)=0E(\varepsilon_{i}) = 0, Cov(\varepsilon_{i}, \varepsilon_{k}) = 0 for i ≠ k and Var(εi)=xi2σ2Var(\varepsilon_{i}) = x_{i}^{2}\sigma^{2}. The best linear unbiased estimator of β\beta is

  1. A.∑Yixi/∑xi2\sum Y_{i}x_{i} / \sum x_{i}^{2}
  2. B.∑Yi/∑xi\sum Y_{i} / \sum x_{i}
  3. C.(1/n)∑Yi/xi(1/n) \sum Y_{i}/x_{i}✓ Correct
  4. D.(1/n)∑Yixi/xi2(1/n) \sum Y_{i}x_{i} / x_{i}^{2}

The idea, in plain words

The noise here grows with the predictor, so the far-out points are noisier and should count less. Dividing each observation by its predictor equalises the noise, and then the best estimate is simply the plain average of the rescaled values.

Solution

Heteroscedastic errors: divide by xix_{i} to get Yi/xi=β+εi/xiY_{i}/x_{i} = \beta + \varepsilon_{i}/x_{i} with constant variance σ2\sigma^{2}; the BLUE is the plain mean of Yi/xi(Y_{i}/x_{i} (weighted least squares with weights 1/xi2)1/x_{i}^{2}).

Why each option is right or wrong

Checked against 2 symbolic computations
  • False here

    though it is the familiar answer.

    ∑Yixi/∑xi2\sum{}Y_{i}x_{i}/\sum{}x_{i}^{2} is the ordinary least squares estimator

    which is BLUE only when the errors have constant variance.

    Here Var(εi)=xi2σ2Var(\varepsilon_{i}) = x_{i}^{2}\sigma^{2} grows with xix_{i}

    so OLS over-weights the noisiest observations.

    It remains unbiased, just not best.

  • B.Wrong

    False.

    ∑Yi/∑xi\sum{}Y_{i}/\sum{}x_{i} is unbiased — its expectation is β∑xi/∑xi=β\beta\sum{}x_{i}/\sum{}x_{i} = \beta — but it is a different linear estimator with larger variance

    since it weights every observation equally regardless of its noise level.

  • C.Correct

    True.

    Divide the model through by xi:Yi/xi=β+εi/xix_{i}: Y_{i}/x_{i} = \beta + \varepsilon_{i}/x_{i}, and SymPy confirms the transformed error variance is xi2σ2/xi2=σ2x_{i}^{2}\sigma^{2}/x_{i}^{2} = \sigma^{2}, now constant.

    The transformed model is a location problem with homoscedastic errors, whose BLUE is the plain arithmetic mean of the transformed responses — that is (1/n)∑Yi/xi(1/n)\sum{}Y_{i}/x_{i}.

    The trigger: when Var(εi)Var(\varepsilon_{i}) ∝ xi2x_{i}^{2}

    dividing by xix_{i} stabilises the variance and turns weighted least squares into an ordinary average.

  • D.Wrong

    False as intended

    though the printed expression is ambiguous.

    Read term by term, (1/n)∑(Yixi/xi2)(1/n)\sum(Y_{i}x_{i}/x_{i}^{2}) is literally the same as (C) and so would not be a distinct option; the intended reading is the aggregated form (1/n)⋅∑Yixi/∑xi2(1/n)\cdot\sum{}Y_{i}x_{i}/\sum{}x_{i}^{2}

    which is the OLS estimator divided by n.

    SymPy confirms that shrinks the expectation to β/n\beta/n

    so it is biased by a factor of n.

1 of these 3 wrong options correspond to a named reasoning error — the same errors recur across subjects.

The trap it tests

Execution slip

The idea was right. The computation was not.

Drill statements like this

Related counterexample: OLS is the BLUE in every linear model

More on this topic

The chapter behind this: Linear models, Gauss–Markov and ANOVA — free to read

From Linear Models and Multivariate › Gauss–Markov, regression, ANOVA basics

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

ShareWhatsAppTelegram