| Projektion auf eine Gerade |
\operatorname{proj}_{\mathbf{w}}\mathbf{v} = \frac{\mathbf{v}\cdot\mathbf{w}}{\mathbf{w}\cdot\mathbf{w}}\mathbf{w} |
Residuum \mathbf{r} = \mathbf{v} - \operatorname{proj}_{\mathbf{w}}\mathbf{v} \perp \mathbf{w}, Satz von Pythagoras \|\mathbf{v}\|^2 = \|\operatorname{proj}\|^2 + \|\mathbf{r}\|^2 |
| Cauchy-Schwarz-Ungleichung und Winkel |
|\mathbf{v}\cdot\mathbf{w}| \le \|\mathbf{v}\|\|\mathbf{w}\|, \cos\theta = \frac{\mathbf{v}\cdot\mathbf{w}}{\|\mathbf{v}\|\|\mathbf{w}\|} |
Kosinus liegt in jeder Dimension in [-1, 1]. In der Gleitkommaarithmetik auf [-1, 1] begrenzen. |
| Projektor auf einen Unterraum |
\mathbf{P} = \mathbf{Q}\mathbf{Q}^\top (\mathbf{Q}^\top\mathbf{Q} = \mathbf{I}_k) |
Eindeutiger nächstgelegener Punkt in S. Idempotent (\mathbf{P}^2 = \mathbf{P}) und symmetrisch (\mathbf{P}^\top = \mathbf{P}). |
| Kleinste Quadrate und QR-Zerlegung |
\mathbf{A}^\top\mathbf{A}\hat{\mathbf{x}} = \mathbf{A}^\top\mathbf{y}, \mathbf{A} = \mathbf{Q}\mathbf{R} |
Die QR-Zerlegung nach Gram-Schmidt oder Householder vermeidet das Quadrieren von \kappa(\mathbf{A}) in den Normalgleichungen. |
| Kosinuswerte zufälliger Richtungen in \mathbb{R}^d |
\mathbb{E}[\cos\theta] = 0, \operatorname{Var}(\cos\theta) = 1/d |
Typische Abweichung des Kosinus von null bei zufälligen Richtungen: \pm 1/\sqrt{d}. Attention skaliert mit 1/\sqrt{d}. |
| Hyperebene und nächster Klassenmittelwert |
\text{dist}(\mathbf{x}) = \frac{\mathbf{w}\cdot\mathbf{x} + b}{\|\mathbf{w}\|}, \mathbf{w} = \bar{\mathbf{x}}_1 - \bar{\mathbf{x}}_0 |
Die Grenze durch den Mittelpunkt erreicht 92\% Genauigkeit bei T-Shirts und Hosen. Lineare Schichten kombinieren m Hyperebenen. |