Study Vault Search notes, aliases and full text
Graph
ConceptMSIAI-written · not yet proofread

Least Squares Estimator

Also LS Estimator · Linear Least Squares Estimator · LLS · Least Squares · Method of Least Squares · R_LS

The least squares estimator θ̂_LS minimizes the sum of squared prediction errors Σ (y_k − φ_kᵀθ)² of a model that is linear in the parameters; in the resistance example it is R̂_LS = Σ u_k i_k / Σ i_k².

Formula#

If Φ\Phi has full column rank (Φ⊤Φ≻0\Phi^\top\Phi \succ 0, see Rank and Invertibility):

θ^LS=(Φ⊤Φ)−1Φ⊤y.\hat\theta_\text{LS} = (\Phi^\top\Phi)^{-1}\Phi^\top y.

Resistance example (yk=uky_k = u_k, ϕk=ik\phi_k = i_k, θ=R\theta = R, d=1d = 1):

R^LS[N]=arg⁡min⁡R∈R∑k=1N(R ik−uk)2=1N∑k=1Nuk ik1N∑k=1Nik2\hat R_\text{LS}^{[N]} = \arg\min_{R \in \mathbb{R}} \sum_{k=1}^N (R\,i_k - u_k)^2 = \frac{\frac1N\sum_{k=1}^N u_k\,i_k}{\frac1N\sum_{k=1}^N i_k^2}

(derivation in MSI_VL01 > 1.2.3 Least Squares (LS)).

Properties#

  • Noise only on the measured outputs: with i.i.d. noise ϵk\epsilon_k of variance σϵ2\sigma_\epsilon^2 and exactly known ϕk\phi_k, θ^LS\hat\theta_\text{LS} is unbiased with covariance σϵ2(Φ⊤Φ)−1\sigma_\epsilon^2(\Phi^\top\Phi)^{-1}, and for large NN approximately θ^LS∼N(θtrue,σϵ2(Φ⊤Φ)−1)\hat\theta_\text{LS} \sim \mathcal{N}(\theta_\text{true}, \sigma_\epsilon^2(\Phi^\top\Phi)^{-1}) (Multivariate Normal Distribution). Details in script chapter 4.
  • Noise on the regressor ⇒ bias: in the resistance example the regressor ik=itrue+ni,ki_k = i_\text{true} + n_{i,k} is itself noisy. Then lim⁡N→∞R^LS[N]=utrue itrueitrue2+σi2=Rtrue1+σi2/itrue2<Rtrue.\lim_{N \to \infty} \hat R_\text{LS}^{[N]} = \frac{u_\text{true}\,i_\text{true}}{i_\text{true}^2 + \sigma_i^2} = \frac{R_\text{true}}{1 + \sigma_i^2/i_\text{true}^2} < R_\text{true}. The numerator converges to utrueitrueu_\text{true} i_\text{true} (the cross terms vanish), but the denominator picks up the variance σi2\sigma_i^2 of the current noise (Law of Large Numbers). The estimator is not asymptotically unbiased and always underestimates RR.
  • The size of this bias depends only on the current noise relative to the true current, σi2/itrue2\sigma_i^2/i_\text{true}^2, not on the voltage noise σu2\sigma_u^2. This is a general property of least squares: noise on the regression variable biases the estimate.

Example#

Sources#

Search

Type In
↑ ↓ move ↵ open ⇥ next section Ctrl↵ results page Prefix # to search text only