Salta al contenuto
Note per Studenti Performance of the Linear Least Squares Estimator Report

Performance of the Linear Least Squares Estimator

Assumption. The data follow the linear model y=Φθ+e,y,e∈Rp,E[e]=0,Var⁡(e)=P∈Rp×p.y=\Phi\theta+e,\qquad y,e\in\mathbb R^p,\qquad\mathbb E[e]=0,\qquad\operatorname{Var}(e)=P\in\mathbb R^{p\times p}. Choose the weight matrix W=P−1W=P^{-1} (if yi∈Ry_i\in\mathbb R, PP may be diagonal; compare the rule wi=1/σi2w_i=1/\sigma_i^2 in Least Squares Estimation - Linear and Weighted Least SquaresThe least squares estimator minimises the sum of squared deviations between observed and predicted outputs; for models linear in the parameters it has a closed form given by the normal equation, extended to weighted least squares and illustrated on a straight-line fit and on a DC motor.Least Squares Estimation - Linear and Weighted Least Squares →).

Claim. θ^LS(y)=(ΦTP−1Φ)−1ΦTP−1y\hat\theta^{LS}(y)=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}y is a UMVE (see Mean Square Error, Bias and Unbiased Minimum Variance EstimatorsThe quality of an estimator is measured by its mean square error, which splits into variance plus squared bias; minimising it over all estimators is ill posed, so one restricts to unbiased estimators and looks for the one with minimum variance.Mean Square Error, Bias and Unbiased Minimum Variance Estimators →) among all estimators that are linear with respect to yy. In the final line of the proof, the board states it as UMVE among all unbiased linear estimators.

Proof

(1) θ^LS(y)\hat\theta^{LS}(y) is unbiased. E[θ^LS(y)]=E[(ΦTP−1Φ)−1ΦTP−1y]=(ΦTP−1Φ)−1ΦTP−1 E[y],\mathbb E\big[\hat\theta^{LS}(y)\big]=\mathbb E\big[(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}y\big]=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}\,\mathbb E[y], E[y]=E[Φθ+e]=E[Φθ]+E[e]⏟0=Φθ,\mathbb E[y]=\mathbb E[\Phi\theta+e]=\mathbb E[\Phi\theta]+\underbrace{\mathbb E[e]}_{0}=\Phi\theta, so E[θ^LS(y)]=(ΦTP−1Φ)−1ΦTP−1Φ θ=θ.\mathbb E\big[\hat\theta^{LS}(y)\big]=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}\Phi\,\theta=\theta. Hence θ^LS\hat\theta^{LS} is unbiased.

(2) Minimum variance among linear unbiased estimators. Consider θ^1=Cy\hat\theta_1=Cy with CC any matrix, written as C=(ΦTP−1Φ)−1ΦTP−1+Bfor some B.C=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}+B\qquad\text{for some }B. (The board writes ΦTP\Phi^TP in this line; the context of the surrounding lines requires P−1P^{-1}, which I use.) Require θ^1\hat\theta_1 unbiased: E[θ^1]=E[Cy]=θ\mathbb E[\hat\theta_1]=\mathbb E[Cy]=\theta. E[θ^1]=E[(ΦTP−1Φ)−1ΦTP−1y+By]=E[(ΦTP−1Φ)−1ΦTP−1y]⏟E[θ^LS]=θ+E[By]\mathbb E[\hat\theta_1]=\mathbb E\big[(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}y+By\big]=\underbrace{\mathbb E\big[(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}y\big]}_{\mathbb E[\hat\theta^{LS}]=\theta}+\mathbb E[By] =θ+E[BΦθ+Be]=θ+BΦθ+B E[e]=θ+BΦθ,E[e]=0.=\theta+\mathbb E[B\Phi\theta+Be]=\theta+B\Phi\theta+B\,\mathbb E[e]=\theta+B\Phi\theta,\qquad\mathbb E[e]=0. Setting this equal to θ\theta: θ=θ+BΦθ\theta=\theta+B\Phi\theta, hence BΦ=0.B\Phi=0.

Variance, using Var⁡(Ax)=AVar⁡(x)AT\operatorname{Var}(Ax)=A\operatorname{Var}(x)A^T and Var⁡(y)=P\operatorname{Var}(y)=P: Var⁡(θ^1)=Var⁡(Cy)=((ΦTP−1Φ)−1ΦTP−1+B) P [(ΦTP−1Φ)−1ΦTP−1+B]T.\operatorname{Var}(\hat\theta_1)=\operatorname{Var}(Cy)=\big((\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}+B\big)\,P\,\big[(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}+B\big]^T. Expanding, the cross terms contain BΦ=0B\Phi=0 and vanish, and in the first term P−1P⋅P^{-1}P\cdot gives the identity (crossed out on the board): Var⁡(θ^1)=(ΦTP−1Φ)−1⏟Var⁡(θ^LS)+BPBT.\operatorname{Var}(\hat\theta_1)=\underbrace{(\Phi^TP^{-1}\Phi)^{-1}}_{\operatorname{Var}(\hat\theta^{LS})}+BPB^T. Taking traces: tr⁡(Var⁡(θ^1))=tr⁡((ΦTP−1Φ)−1)⏟tr⁡Var⁡(θ^LS)+tr⁡(BPBT)⏟≥0.\operatorname{tr}\big(\operatorname{Var}(\hat\theta_1)\big)=\underbrace{\operatorname{tr}\big((\Phi^TP^{-1}\Phi)^{-1}\big)}_{\operatorname{tr}\operatorname{Var}(\hat\theta^{LS})}+\underbrace{\operatorname{tr}(BPB^T)}_{\ge0}. Therefore tr⁡Var⁡(θ^LS)≤tr⁡Var⁡(Cy)for any matrix C such that E[Cy]=θ.\operatorname{tr}\operatorname{Var}(\hat\theta^{LS})\le\operatorname{tr}\operatorname{Var}(Cy)\quad\text{for any matrix }C\text{ such that }\mathbb E[Cy]=\theta.

Conclusion. θ^LS\hat\theta^{LS} has the smallest variance among all unbiased estimators which are linear in yy: it is a UMVE among all unbiased linear estimators. The covariance of the estimation error of θ^LS\hat\theta^{LS} is (ΦTP−1Φ)−1(\Phi^TP^{-1}\Phi)^{-1}.

Versione ripasso

Model y=Φθ+ey=\Phi\theta+e, E[e]=0\mathbb E[e]=0, Var⁡(e)=P\operatorname{Var}(e)=P, weight W=P−1W=P^{-1}. Claim: θ^LS=(ΦTP−1Φ)−1ΦTP−1y\hat\theta^{LS}=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}y is the UMVE among unbiased estimators linear in yy.

  • Unbiased: E[θ^LS]=(ΦTP−1Φ)−1ΦTP−1Φθ=θ\mathbb E[\hat\theta^{LS}]=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}\Phi\theta=\theta, since E[y]=Φθ\mathbb E[y]=\Phi\theta.
  • Any linear estimator CyCy, C=(ΦTP−1Φ)−1ΦTP−1+BC=(\Phi^TP^{-1}\Phi)^{-1}\Phi^TP^{-1}+B: unbiased iff BΦ=0B\Phi=0.
  • Then Var⁡(Cy)=C P CT=(ΦTP−1Φ)−1+BPBT\operatorname{Var}(Cy)=C\,P\,C^T=(\Phi^TP^{-1}\Phi)^{-1}+BPB^T (cross terms vanish because BΦ=0B\Phi=0).
  • tr⁡Var⁡(Cy)=tr⁡Var⁡(θ^LS)+tr⁡(BPBT)≥tr⁡Var⁡(θ^LS)\operatorname{tr}\operatorname{Var}(Cy)=\operatorname{tr}\operatorname{Var}(\hat\theta^{LS})+\operatorname{tr}(BPB^T)\ge\operatorname{tr}\operatorname{Var}(\hat\theta^{LS}).

Hence θ^LS\hat\theta^{LS} has minimum variance among unbiased linear estimators. Typical mistake: forgetting that BΦ=0B\Phi=0 is the unbiasedness condition.

Teoria collegata