Salta al contenuto
Note per Studenti Mean Square Error, Bias and Unbiased Minimum Variance Estimators Report

Mean Square Error, Bias and Unbiased Minimum Variance Estimators

In questa pagina 3

Mean square error

Start from the data {(xi,yi)}i=1n\{(x_i,y_i)\}_{i=1}^n with yi=g(xi)+ey_i=g(x_i)+e. If yy follows a probability distribution, then θ^(y)\hat\theta(y) is a random variable.

The true θ\theta exists but is unknown: how good is an estimate θ^(y)\hat\theta(y), i.e. how close is θ^(y)≈θ\hat\theta(y)\approx\theta?

Definition (mean square error). MSE⁡θ^(θ)=E[∥θ^(y)−θ∥2].\operatorname{MSE}_{\hat\theta}(\theta)=\mathbb E\Big[\big\lVert\hat\theta(y)-\theta\big\rVert^2\Big]. (Recall E[X]=∫Xx p(x) dx\mathbb E[X]=\int_Xx\,p(x)\,dx.) It splits into a variance term and a bias term: MSE⁡θ^(θ)=tr⁡(Var⁡(θ^))⏟VARIANCE+∥E[θ^(y)]−θ∥2⏟BIAS,\operatorname{MSE}_{\hat\theta}(\theta)=\underbrace{\operatorname{tr}\big(\operatorname{Var}(\hat\theta)\big)}_{\text{VARIANCE}}+\underbrace{\big\lVert\mathbb E\big[\hat\theta(y)\big]-\theta\big\rVert^2}_{\text{BIAS}}, where Var⁡(X)=E[(X−E[X])(X−E[X])T],tr⁡(A)=∑i=1n[A]ii, A∈Rn×n.\operatorname{Var}(X)=\mathbb E\Big[\big(X-\mathbb E[X]\big)\big(X-\mathbb E[X]\big)^T\Big],\qquad\operatorname{tr}(A)=\sum_{i=1}^n[A]_{ii},\ A\in\mathbb R^{n\times n}.

Example. y=θ+ey=\theta+e and the constant estimator θ^=μ\hat\theta=\mu.

Admissible estimators and why minimising the MSE is ill posed

Definition (admissible). θ^\hat\theta is admissible if there does not exist an estimator θ^1\hat\theta_1 and a set A⊆ΘA\subseteq\Theta such that MSE⁡θ^1(θ)≤MSE⁡θ^(θ)  ∀θ∈Θ,MSE⁡θ^1(θ)<MSE⁡θ^(θ)  ∀θ∈A.\operatorname{MSE}_{\hat\theta_1}(\theta)\le\operatorname{MSE}_{\hat\theta}(\theta)\ \ \forall\theta\in\Theta,\qquad\operatorname{MSE}_{\hat\theta_1}(\theta)<\operatorname{MSE}_{\hat\theta}(\theta)\ \ \forall\theta\in A.

The problem arg⁡min⁡θ^∈ΘMSE⁡θ^(θ)\arg\min_{\hat\theta\in\Theta}\operatorname{MSE}_{\hat\theta}(\theta) is in general ill posed, because there exist infinitely many solutions and some may even be degenerate.

Fix: unbiased estimators

Restrict θ^\hat\theta (that is, g^\hat g) to be an unbiased estimator: Bias⁡(θ^)=∥E[θ^−θ]∥2=0  ⟺  E[θ^]=θ.\operatorname{Bias}(\hat\theta)=\big\lVert\mathbb E[\hat\theta-\theta]\big\rVert^2=0\iff\mathbb E[\hat\theta]=\theta. Intuitively: the estimator outputs the correct (true) parameter θ\theta, on average.

Definition (UMVE). θ^\hat\theta is an unbiased minimum variance estimator (UMVE) if

  1. θ^\hat\theta is unbiased;
  2. θ^∈arg⁡min⁡θ~tr⁡(Var⁡(θ~))\hat\theta\in\arg\min_{\tilde\theta}\operatorname{tr}\big(\operatorname{Var}(\tilde\theta)\big) (the minimum is taken over the unbiased estimators θ~\tilde\theta).

Example. The constant estimator θ^=μ\hat\theta=\mu, for some μ\mu, is in general NOT unbiased. With y=θ+ey=\theta+e, the estimator θ^=μ\hat\theta=\mu is unbiased if and only if θ=μ\theta=\mu (!!!).

Warning. If θ^\hat\theta is unbiased, then MSE⁡θ^(θ)=tr⁡(Var⁡(θ^))\operatorname{MSE}_{\hat\theta}(\theta)=\operatorname{tr}\big(\operatorname{Var}(\hat\theta)\big) (the bias term vanishes).

Which estimator reaches this minimum for linear models: Performance of the Linear Least Squares EstimatorWith zero-mean noise of covariance P, the weighted least squares estimator with weight P inverse is unbiased and has the smallest variance among all unbiased estimators that are linear in the data; the proof compares it with an arbitrary linear unbiased estimator.Performance of the Linear Least Squares Estimator →. The estimators themselves are introduced in System Identification - Estimation Problem and Parametric Model ClassesEstimation means reconstructing an unknown function from noisy samples; the problem is ill posed, so one fixes a parametric model class, and the basic objects (statistic, estimator, estimate) are defined, with the gray-box and black-box versions for dynamical systems.System Identification - Estimation Problem and Parametric Model Classes →.

Versione ripasso

  • θ^(y)\hat\theta(y) is a random variable. MSE⁡θ^(θ)=E[∥θ^(y)−θ∥2]=tr⁡(Var⁡(θ^))+∥E[θ^]−θ∥2\operatorname{MSE}_{\hat\theta}(\theta)=\mathbb E\big[\lVert\hat\theta(y)-\theta\rVert^2\big]=\operatorname{tr}(\operatorname{Var}(\hat\theta))+\lVert\mathbb E[\hat\theta]-\theta\rVert^2 (variance plus bias). Var⁡(X)=E[(X−EX)(X−EX)T]\operatorname{Var}(X)=\mathbb E[(X-\mathbb E X)(X-\mathbb E X)^T], tr⁡(A)=∑i[A]ii\operatorname{tr}(A)=\sum_i[A]_{ii}.
  • Admissible: no θ^1\hat\theta_1 with MSE⁡θ^1≤MSE⁡θ^\operatorname{MSE}_{\hat\theta_1}\le\operatorname{MSE}_{\hat\theta} for all θ\theta and strict inequality on some set AA.
  • Minimising the MSE over all estimators is ill posed (infinitely many, possibly degenerate solutions). Fix: require unbiased, E[θ^]=θ\mathbb E[\hat\theta]=\theta (correct on average).
  • UMVE: unbiased and minimising tr⁡Var⁡(θ~)\operatorname{tr}\operatorname{Var}(\tilde\theta). For an unbiased estimator MSE⁡=tr⁡Var⁡(θ^)\operatorname{MSE}=\operatorname{tr}\operatorname{Var}(\hat\theta).
  • A constant estimator θ^=μ\hat\theta=\mu is unbiased only when θ=μ\theta=\mu.

Teoria collegata