Johnson–Lindenstrauss lemma Created 2026-09-28 Updated 2026-10-14
For and any points in a Hilbert space, there is a linear map into Euclidean dimension that multiplies every pairwise distance by a factor between and .
The striking feature is that the target dimension depends on the number of points and the allowed error, independently of the ambient dimension. Fix a finite set , with , and . An equivalent sufficient statement uses squared Euclidean distances: a linear map exists, with , such thatThe finite-set theorem cited here supplies an explicit sufficient target dimension for this squared-distance formulation. [ref]
An elementary proof of a theorem of Johnson and Lindenstrauss by Sanjoy Dasgupta and Anupam Gupta. An elementary proof of a theorem of Johnson and Lindenstrauss, Theorem 2.1, p. 61: bounds for squared distances
Taking square roots gives distance factors and , which lie inside . Conversely, bounds on distances only give squared-distance bounds ; the same numerical tolerance should not be silently used for both. Under the squared-distance bounds, the bi-Lipschitz distortion is at most .
The Johnson–Lindenstrauss lemma preserves this fixed finite set, rather than every vector in the ambient Euclidean space. A linear map with has a nonzero kernel by the rank-nullity theorem, so some nonzero vectors collapse completely. For finitely many points in a real Hilbert space, apply the finite-dimensional argument on their linear span and extend by orthogonal projection onto that linear span. If the sufficient target dimension exceeds the ambient dimension, the identity map already preserves every Euclidean distance exactly, with zero padding if a larger target is requested.
Kac collision operator 2026-10-06
For , uses the genuine two-coordinate rotation . Average it uniformly over angles and pairs to obtain . Rotation invariance of Lebesgue measure makes a bounded self-adjoint operator of norm one on . Each pair average is an orthogonal projection, but their full average is not in general a projection.
Law of total variance Created 2026-09-24 Updated 2026-10-14
The law of total variance separates the spread of a population into spread inside groups and spread between their means. For a real square-integrable random variable , so that , and another random variable on the same probability space,The first term averages the conditional variance over the possible information ; the second measures how much the conditional mean changes with that information. There is no independence assumption, and need not be numerical or have finite variance. Conditioning is useful precisely when knowing tells us something about . See MIT tutorial on using conditional expectation and variance.
More generally, the available information can be a sub-sigma-algebra of the ambient probability space. With , the existing conditional expectation definition givesTaking recovers the displayed formula. The conditional mean and conditional variance are themselves random variables: before learning the group, we do not yet know which group average or group spread will apply. Their outer expectation and variance turn these varying quantities into numbers.
For a fully explicit mixture distribution, choose a group or with equal probabilities. In group , choose or with equal conditional probabilities; in group , choose or with equal conditional probabilities. Thus the complete joint probability distribution consists of , each with probability , and no other outcomes. The conditional means are and . Squaring the deviations and gives conditional variances and , respectively. The law of total expectation gives the overall mean .
The within-group contribution to variance isFor the between-group contribution, the conditional mean takes values and , each three units from the overall mean. Consequently,We can check this without any conditioning: the discrete random variable takes values with equal probabilities, soEquivalently, its second moment is , and subtracting the squared mean gives . These are population variances, with the stated probabilities as weights, rather than estimates using the corrected denominator of a sample variance.
The figure makes the two sources of spread visible. The outcomes in group cluster tightly around , while those in group sit farther apart around . Replacing every outcome by its conditional mean removes the internal spread but leaves the separation between groups. Conversely, subtracting each group's conditional mean aligns the two groups around zero. Averaging only the conditional variances would miss nine units of variance; retaining only the conditional means would miss five. Neither summary alone describes the whole population.
Two modifications clarify what each contribution measures. Shift group to outcomes and group to outcomes , keeping all four probabilities equal. Both conditional means are now , while the conditional variances remain . The between-group contribution vanishes, and total variance is just . Group membership still tells us how uncertain an outcome is, even though the best point prediction stays the same. Alternatively, let every outcome in group equal and every outcome in group equal . Now both conditional variances vanish, and all nine units of total variance come from group separation. Knowing the group predicts the outcome perfectly. These limiting cases distinguish differences in average outcome from differences in internal spread; the original mixture distribution contains both.
The same calculation answers a prediction question. If the group is hidden, the best constant prediction is the overall mean , with mean squared error , by variance as the minimum mean squared error of a constant. If the group is revealed, predict for and for . The errors become , and their mean squared error is . Knowing the group therefore improves the best achievable mean squared error by , exactly the between-group contribution. This is an interpretation relative to the information available: the remaining uncertainty could shrink further if additional information were revealed.
For any square-integrable measurable function used as a predictor, write . The prediction identity isThus predicting with the regression function gives the conditional expectation and minimizes mean squared error over every permitted predictor, including nonlinear ones. This minimizes average squared error, not the error for each individual outcome. See Berkeley Statistics 201A notes, sections 36–37.
Why do the two pieces add cleanly? Put . Its conditional expectation given is zero, so and for every square-integrable measurable function . In particular, and are uncorrelated random variables. Splitting and squaring therefore leaves no cross term after taking expectation. Geometrically, the conditional expectation is an orthogonal projection in the L2 space, and the law of total variance is its Pythagorean theorem for centered random variables.
In our example, the four products are , which average to zero. Yet and are not independent: observing identifies group , while observing identifies group . This is a concrete instance of heteroscedasticity, with different conditional variances despite zero conditional means of the errors. A group can predict uncertainty even when it cannot predict the error's sign.
The law of total variance is useful whenever aggregated data conceal distinct groups. Changing mixture weights changes both contributions, so the weighting must match the population being described. For example, giving group weight changes the overall mean to , the within-group variance contribution to , and the between-group contribution to , making the total . Group differences account for spread and prediction gains; assigning them a causal explanation requires a separate causal inference argument.
Least-squares existence criterion 2026-10-06
For a bounded linear operator between Hilbert spaces, a least-squares solution for exists exactly when , equivalently . Indeed the orthogonal projection onto the closure uniquely minimizes distance to that closed space, and it can be realized by exactly under this condition. Thus all data admit least-squares solutions exactly when the range is closed.
Linear regression Created 2026-09-24 Updated 2026-10-14
Linear regression models a response's conditional expectation as a linear combination of specified predictors. In matrix form,where the design matrix describes the observations, contains the regression coefficients, and contains the errors. The fitted values estimate the response means. The model is linear in its regression coefficients; its columns may include powers, interactions, or other transformed predictors, so polynomial regression can fit curved relationships using the same machinery.
For a concrete example, take five constructed observationsAn ordinary least squares fit with an intercept gives the line . Its regression residuals are and its residual sum of squares is . A one-unit increase in the predictor corresponds to a one-unit increase in the fitted response. This is a description of this fitted association; interpreting a change as a causal effect requires the assumptions of a causal inference problem.
A five-point least-squares fit separates the fitted trend from residual deviations
. Details. The geometric reason for the fit is simple. The possible mean vectors form the column space of . Ordinary least squares chooses the orthogonal projection of the data vector onto that vector subspace, so the remaining regression residual is orthogonal to every permitted fitted direction. The least-squares normal equations express this orthogonality as . The data's explained component and unexplained component are therefore separated by the same geometry used in a Hilbert space.
The optimization definition makes sense for any observed data. Quantifying the uncertainty of the regression coefficients needs additional assumptions about the sampling and errors. With fixed of full column rank and mean-zero errors with covariance matrix , ordinary least squares is unbiased and has covariance ; the Gauss-Markov theorem compares it with other linear unbiased estimators. A normal linear model additionally makes Student t-distribution intervals and tests exact in finite samples. Model adequacy and predictive assessment remain relevant even when these calculations are available.
Two historical settings help explain the subject's appeal. Adrien-Marie Legendre's Nouvelles méthodes pour la détermination des orbites des comètes (1805) includes an appendix on the method of least squares: observations give more equations than unknowns, and squared errors provide a criterion for reconciling them. Its astronomical setting shows the motivation for combining imperfect measurements. [ref]
https://www.e-rara.ch/zut/content/titleinfo/10838079. Legendre, Nouvelles méthodes pour la détermination des orbites des comètes, 1805, appendix pp. 72–80
Francis Galton's Regression Towards Mediocrity in Hereditary Stature (1886) examines the association between parental and offspring heights and the tendency of group averages toward the population average. This is a historical use of the regression name; the modern linear model is a general statistical formulation. [ref]https://zenodo.org/records/1449548. Galton, Regression Towards Mediocrity in Hereditary Stature, 1886, original article
To evaluate a layered product on , scan the bond orthogonal projections from right to left. A projection disjoint from the current support commutes through the accumulated operator and disappears against the common ground state. Retained projections expand the support by at most one site per layer. Their product gives a local operator with both and .
Malus's law 2026-10-13
For incident light with linear polarization, an ideal linear polarizer transmitswhere is light intensity and is the angle between the incident electric field's line of oscillation and the polarizer's pass axis. The input and output are compared in the same medium. The classical explanation is an orthogonal projection: for a unit vector along the pass axis,The dot product reduces the transmitted wave amplitude by . For a plane electromagnetic wave in the same medium, light intensity is proportional to squared electric field wave amplitude, giving Malus's law. For example, transmits one quarter of the incident light intensity, although the transmitted wave amplitude is one half. [ref].
Start with light already in linear polarization along the horizontal axis and let its light intensity be . Two ideal absorbing linear polarizers with pass axes and give . Insert a polarizer between them: the first leaves unchanged, the middle transmits with linear polarization along , and the last transmits with linear polarization along . Each angle in Malus's law is relative to the preceding output, so the final step uses :
Two crossed polarizers transmit zero; inserting a middle polarizer transmits for initially horizontal linear polarization
. Pass axes are measured from horizontal. Each blue segment represents transmitted light intensity, and each inset shows the pass axis in the transverse plane. The two successive changes each halve light intensity by Malus's law. Details.For these ideal absorbing polarizers, the rejected electric field component transfers energy to the filter. In the three-filter arrangement the middle absorbs the fraction , and the last absorbs , leaving transmitted. Conservation of energy holds at each step. Inserting the middle polarizer changes the linear polarization arriving at the last one; it does not create light. The effect illustrates why successive orthogonal projections cannot generally be replaced by a single comparison of the first and last axes.
The initially horizontal assumption matters. For unpolarized light of light intensity , the first ideal linear polarizer transmits : averaging over uniformly distributed incident orientations gives . The same sequence then transmits . This extra first-stage factor does not apply to the already horizontally polarized input in the figure.
Mixed state Created 2026-09-29 Updated 2026-10-14
A mixed state is a density operator that is not a rank-one orthogonal projection. In finite dimension it is characterized by , so its purity of a density operator distinguishes it from a pure state.
Compare a pure state quantum superposition with an equal classical choice between two computational-basis states of a qubit:A projective measurement in the computational basis gives for both density operators. An projective measurement in the Hadamard basis distinguishes them: the Born rule gives for and for . These comparisons use separate copies of each preparation; measuring first changes the state tested by a subsequent measurement.
The off-diagonal entries of encode quantum coherence in the computational basis. Such quantum coherence depends on the basis: is diagonal in the Hadamard basis but remains a pure state. Mixedness is independent of the basis, because a unitary change of basis preserves the eigenvalues and the purity of a density operator.
Even the quantum state ensemble is not unique:The off-diagonal entries of the two Hadamard basis projectors cancel. Thus the density operator retains precisely what measurements on the system can reveal, while an accessible preparation label carries additional information. A mixed state can also be the reduced density matrix of an entangled state, even when the whole system is in a pure state; classical ignorance about a selected component is not its only physical origin. [ref]
Modified Gram-Schmidt 2026-10-14
Modified Gram-Schmidt starts with and, for each retained orthonormal vector in order, replaces by . Each orthogonal projection coefficient uses the current remainder. In exact arithmetic, subtracting earlier orthogonal directions does not change the inner product with , so the final equals the Classical Gram-Schmidt remainder ; then divide by if it is nonzero.
MRA projection Fourier identity 2026-10-05
Use and let be the orthogonal projection onto the closed span of the orthonormal translates and dilates of a scaling function. If is supported in and , thenIndeed, the Plancherel theorem writes the coefficient against as . With , these are times the Fourier series coefficients of on . The Parseval identity proves the formula. It shows that continuity and unit modulus at zero imply density of the refinement spaces, and conversely that density forces this unit modulus when the Fourier transform is continuous at zero.
Nearest least-squares solution Created 2026-10-05 Updated 2026-10-06
The orthogonal projection of a prescribed point onto the affine subspace of least-squares solutions is unique. It retains 's null space component and chooses the determined component from the Moore–Penrose inverse of an operator.
Normal and tangential components Created 2026-09-29 Updated 2026-10-14
At a point on a plane curve, or on a hypersurface with unit normal , a vector splits into a normal component and a tangential component:The terms are orthogonal projections, and . Changing to reverses the scalar coefficient , but leaves the normal component vector unchanged.
For a plane curve, a unit tangent vector and a unit normal form an orthonormal basis, givingAt on the parabola , choose and . For ,Their sum is and their inner product is zero. A negative normal coefficient means that the normal component points opposite the chosen , rather than giving it a negative Euclidean norm.
These are local directions: being tangent at a point does not mean that a straight displacement stays on the curve. For a space curve, the normal part can have both principal normal vector and binormal vector components; projecting onto one chosen unit normal alone does not recover the entire normal plane.
Normal component Created 2026-09-29 Updated 2026-10-14
The normal component is the orthogonal projection of a vector onto the local normal space. For a hypersurface with unit normal , the vector component is ; the signed scalar component is . These two meanings must be distinguished. With the principal normal vector chosen toward the turning side of a curve, the normal scalar coefficient of acceleration is .
Normal equations for linear least squares 2026-10-14
Minimizing gives the displayed equations by differentiation. Equivalently, the regression residual satisfies : it is orthogonal to every column of the design matrix. If has full column rank, the minimizer is unique and the fitted values are the orthogonal projection of onto its column space. A rank-deficient design matrix can give multiple coefficient vectors, while the projected fitted vector is still unique.
For an intercept and one predictor, put and . The equations give and , provided . In the five-point example in linear regression, , , and , giving and .
The normal equations describe the mathematical optimum, but explicitly forming and inverting can amplify numerical problems. A QR decomposition computes the same least-squares solution through orthogonal coordinates; a singular value decomposition also exposes nearly dependent columns. This connects statistical fitting to numerical linear algebra and the choice of a stable algorithm. [ref]
https://ocw.mit.edu/courses/18-06sc-linear-algebra-fall-2011/. MIT 18.06SC, Projections onto Subspaces and Least Squares
Normalized velocity-reset projection 2026-10-06
For a nonnegative normalized velocity density , is a positive norm-one projection on phase-space . Normalization gives . Its range consists of fields . This Banach-space projection need not be an orthogonal projection in unweighted ; no such assertion is needed for the collision estimates.
Oblique projection Created 2026-10-07 Updated 2026-10-14
If two closed subspaces of a Hilbert space give , the projection onto along fixes and vanishes on . It need not be an orthogonal projection. The bounded inverse theorem applied to the addition map on the complete component spaces proves boundedness of the component maps. With both complementary subspaces nonzero, its operator norm and that of equal , with the directed subspace angle convention. Indeed, for fixed , the smallest possible norm of over is , which proves the formula for . Equality with follows from the block representation on : both squared operator norms are . If a summand is zero, is zero or the identity operator, and one complementary operator norm is zero; those cases must be treated directly.
Orthogonal basis 2026-10-07
An orthogonal basis of an inner-product vector space consists of nonzero mutually orthogonal vectors that span the space. The orthogonal projection of onto a finite-dimensional span is . Dividing each vector by its norm produces an orthonormal basis. For centered random variables, the inner product is covariance; an orthogonal basis therefore consists of uncorrelated variables, without requiring unit variance.
Orthogonal direct sum Created 2026-10-07 Updated 2026-10-14
An orthogonal direct sum is a direct sum whose distinct summands are mutually orthogonal. For and , the Pythagorean identity gives . In a Hilbert space, a closed subspace of a Hilbert space and its orthogonal complement give an orthogonal direct sum of the entire space. The component maps are orthogonal projections and have operator norm one when their ranges are nonzero.
Orthogonal projection matrix Created 2026-09-24 Updated 2026-10-14
A matrix represents a linear projection when applying it twice has the same effect as applying it once. For an orthogonal projection with the standard Hermitian inner product on , the additional condition is that the conjugate transpose equals the original matrix:Thus is both idempotent and a Hermitian matrix. Over the real numbers this says . Its image of a linear map is the retained linear subspace, while its kernel of a linear map is the orthogonal complement: vectors in the image are unchanged, and vectors in the kernel become zero.
For a matrix with full column rank, projecting onto its column space givesThe invertibility of follows from linear independence of the columns. If those columns are an orthonormal set, and . These formulas and the conditions in the real case are developed in MIT 18.06SC, Projections onto Subspaces, pp. 1–3.
For the line spanned by ,In particular, and . The eigenvalues are on the retained direction and on the removed direction. This exposes the meaning of an orthogonal projection as retaining selected components, rather than stretching them.
Symmetry refers to the specified inner product. In the real weighted setting, the formula becomes and satisfies and . For the preceding weighted line example,It is not symmetric under the ordinary transpose, but it is an orthogonal projection for the weighted Euclidean inner product. The matrix criterion should therefore be used with the standard Hermitian inner product, not silently transferred to a different geometry.





