Projection orthogonale et moindres carrés

le meilleur Xb est l'ombre de y sur le plan : le résidu tombe à angle droit

1 · CRITÈRE

$$\hat\beta=\arg\min_{b\in\mathbb{R}^p}\ \|y-Xb\|^2 \iff X^\top\big(y-X\hat\beta\big)=0 \iff \hat y=X\hat\beta=\underbrace{X(X^\top X)^{-1}X^\top}_{H}\,y$$

2 · À TOI : DÉPLACE Xb DANS LE PLAN

\(\mathbb{R}^3\) et le plan \(\mathrm{Im}\,X=\mathrm{vect}(x_1,x_2)\) : glisse le point bleu \(Xb\), glisse ailleurs pour tourner la vue
critère \(\|y-Xb\|^2\) dans le plan des coefficients \((b_1,b_2)\) : glisse aussi ici

\(n=3\) observations, \(X=(x_1\ x_2)\) avec \(x_1=\mathbf{1}=(1,1,1)^\top\) (constante) et \(x_2=t=(\bar t-1,\ \bar t,\ \bar t+1)^\top\) : la régression \(y_i\approx b_1+b_2t_i\). Quadrillage du plan : droites \(b_1=\text{cte}\) et \(b_2=\text{cte}\). Flèches ← → ↑ ↓ pour bouger \(b\) (Maj : plus vite).

3 · RAPPELS