| Proyección sobre una recta |
\operatorname{proj}_{\mathbf{w}}\mathbf{v} = \frac{\mathbf{v}\cdot\mathbf{w}}{\mathbf{w}\cdot\mathbf{w}}\mathbf{w} |
Residuo \mathbf{r} = \mathbf{v} - \operatorname{proj}_{\mathbf{w}}\mathbf{v} \perp \mathbf{w}; Pitágoras \|\mathbf{v}\|^2 = \|\operatorname{proj}\|^2 + \|\mathbf{r}\|^2 |
| Cauchy-Schwarz y ángulo |
|\mathbf{v}\cdot\mathbf{w}| \le \|\mathbf{v}\|\|\mathbf{w}\|, \cos\theta = \frac{\mathbf{v}\cdot\mathbf{w}}{\|\mathbf{v}\|\|\mathbf{w}\|} |
Mantiene el coseno en [-1, 1] en cualquier dimensión; recortar a [-1, 1] en aritmética de punto flotante |
| Proyector sobre un subespacio |
\mathbf{P} = \mathbf{Q}\mathbf{Q}^\top (\mathbf{Q}^\top\mathbf{Q} = \mathbf{I}_k) |
Punto más cercano único en S; idempotente (\mathbf{P}^2 = \mathbf{P}) y simétrico (\mathbf{P}^\top = \mathbf{P}) |
| Mínimos cuadrados y QR |
\mathbf{A}^\top\mathbf{A}\hat{\mathbf{x}} = \mathbf{A}^\top\mathbf{y}, \mathbf{A} = \mathbf{Q}\mathbf{R} |
Gram-Schmidt / QR de Householder evita elevar al cuadrado \kappa(\mathbf{A}) en las ecuaciones normales |
| Cosenos aleatorios en \mathbb{R}^d |
\mathbb{E}[\cos\theta] = 0, \operatorname{Var}(\cos\theta) = 1/d |
Las direcciones aleatorias están a \pm 1/\sqrt{d} de la ortogonalidad; la atención escala por 1/\sqrt{d} |
| Hiperplano y media más cercana |
\text{dist}(\mathbf{x}) = \frac{\mathbf{w}\cdot\mathbf{x} + b}{\|\mathbf{w}\|}, \mathbf{w} = \bar{\mathbf{x}}_1 - \bar{\mathbf{x}}_0 |
El bisector del punto medio alcanza 92\% en camisetas frente a pantalones; las capas lineales apilan m hiperplanos |