The word "projection" does not mean ordinary perpendicular projection in the plotted Euclidean space. For the same reference and mean constraint, minimizing the squared Euclidean distance in the three probability coordinates instead gives
Thus the Euclidean minimizer is , whereas the information projection has . The squared Euclidean objective at its own minimum is ; its relative entropy is approximately nats, larger than the optimum nats. Both distributions satisfy the same constraint.
Figure 1.
Relative entropy and least squares select different laws under the same mean constraint
. Both plots use the feasible laws and the same uniform reference. The left plot minimizes relative entropy; the right plot minimizes squared Euclidean distance in the three probability coordinates. Their different marked minima explain why the choice of objective matters. Details.
The reference and objective encode what "least change" means. Relative entropy is asymmetric and is not a metric; its minimization answers a different question from linear least squares. The useful geometric analogy comes from a Pythagorean inequality for information projection, rather than from an assertion that the colored contours are circles.
Linear least squares 2026-10-13
Linear least squares minimizes over a vector . Its normal equations for linear least squares are ; geometrically is the orthogonal projection of onto the range of .
Linear least-squares projection Created 2026-09-24 Updated 2026-10-14
This is an orthogonal projection interpretation of linear least squares. The best affine predictor has slope covariance divided by predictor variance and intercept chosen to match means.
Log-linear exponential-decay fit Created 2026-10-18 Updated 2026-10-25
An exponential decay rate becomes a straight line in and , where is a fixed reference rate. Constant small fractional rate errors become approximately constant vertical errors by propagation of uncertainty. With independent Gaussian log-rate errors, linear least squares gives and .
The covariance matrix is obtained by applying the variance rules to these linear estimators:
Transforming back gives , , and . If a candidate lifetime fixes the slope , the intercept must be refitted as . The profiled objective obeys
This follows by separating the centred slope residual from the unrestricted regression residual, whose inner product with the design columns is zero by the normal equations for linear least squares. Known supplied measurement errors are not rescaled by the observed reduced chi-squared. This log-error model is an approximation for proportional errors, not an exact replacement for every raw-count likelihood.
Orthogonal projection onto a finite-dimensional subspace Created 2026-09-24 Updated 2026-10-14
A finite-dimensional linear subspace of an inner product space has a unique closest vector to any given vector . This is its orthogonal projection . If is an orthogonal basis of , compute it one direction at a time:
The inner product convention here is linear in its first argument, including over the complex numbers. For an orthonormal basis, each denominator is one. When consists only of the zero vector, the empty sum gives . The finite-dimensional formula is described in Francis Narcowich, Inner Products and Norms: minimization problems.
Take and , using the dot product. With ,
The orthogonal projection residual has . To verify the best approximation directly, every candidate in the line is , and
The smallest squared Euclidean norm error is therefore , attained only at . The diagram connects the perpendicular residual to this one-variable quadratic polynomial.
Figure 1.
The perpendicular residual identifies the closest point on a line and the unique minimum of the squared error
. Details.
The general mechanism is the Pythagorean theorem in an inner-product space. For any , the vectors and are orthogonal, so
Moving away from inside adds a nonnegative squared norm, which is zero only when . This proves both optimality and uniqueness.
The useful feature is separation of preparation from evaluation. Construct an orthonormal basis once with the Gram-Schmidt process, then obtain each new best approximation using inner products instead of a fresh optimization problem. When is the column space of a matrix, this gives linear least squares; when is spanned by orthogonal polynomials, it gives a least-squares polynomial in an orthogonal-polynomial basis. The ambient inner product space need not be a Hilbert space for this finite-dimensional construction. In an infinite-dimensional target linear subspace, existence requires additional hypotheses, supplied by orthogonal decomposition by a closed subspace.
Orthogonal projection residual Created 2026-10-14 Updated 2026-10-31
An orthogonal projection residual is the difference between a vector and its orthogonal projection onto a linear subspace . It is orthogonal to every vector in , so for all . The Gram-Schmidt process uses such residuals to remove directions already represented by earlier basis vectors.
This is an optimality condition as well as a geometric description. No permitted change within can remove a further orthogonal component of . In the preceding dot product example, is perpendicular to the line spanned by .
The selected inner product matters. Keep and the same line, but use the weighted Euclidean inner product with . The projection coefficient and residual become
Now , although . The orthogonality is with respect to , so it need not look perpendicular in the ordinary drawing. The squared weighted error is
The weighted optimum reduces the first-coordinate error from to , at the cost of increasing the magnitude of the second-coordinate error from to . The weights express which errors are more costly.
Figure 1.
Changing the inner product changes the closest point: a circle and a weighted error ellipse touch the same permitted line at different points
. Details.
In linear least squares, residual orthogonality to the column space is expressed by the normal equations for linear least squares. With a weighted Euclidean inner product, the corresponding real-matrix equation is . This makes the choice of error measurement part of the mathematical model, rather than merely a plotting convention.
Choose the diagonal matrix . Multiplying a vector by scales its th component by . Therefore
The Euclidean norm objective for ordinary linear least squares on is exactly the weighted least squares objective, so the sets of minimizing vectors coincide. Zero weights simply discard the corresponding residuals.
The centered regressors make the first normal equation read . Define
The remaining equations are and . Provided , matrix inversion gives
By the Cauchy-Schwarz inequality, . If , the two regressor columns are linearly dependent, and their separate slopes are not uniquely identifiable. One still has well-defined linear least squares fitted values, but cannot use the displayed divisions by .
Minimize the residual sum of squares
Setting its three partial derivatives to zero gives the normal equations
These equations characterize the linear least squares minimizers, since is a convex quadratic. A unique coefficient vector additionally requires full column rank of the design matrix.
Approximate the reaction enthalpy and entropy as constant over the measured interval, so . A linear least squares fit of all three free energies against temperature gives
and hence
The negative entropy change is reasonable because oxygen gas is incorporated into solids. The fit residuals are , so the data support this approximate straight-line description. Extrapolating its intercept to zero temperature is a way of estimating a constant local enthalpy, not evidence that the heat capacities vanish or that the same phases persist to zero temperature. More temperatures and repeated heating/cooling measurements would test curvature and equilibration.
By parity preservation by polynomial least-squares projection, : the constant and quadratic coefficients vanish. The remaining normal equation is
Therefore
The residual is automatically orthogonal to and by parity and to by construction, so it is orthogonal to every element of . This checks the full linear least squares condition, rather than only a necessary coefficient equation.
The Euclidean norm is invariant under an orthogonal matrix, so the full singular value decomposition gives
The second term is independent of ; the first attains its unique minimum zero because is an invertible matrix. The linear least squares solution is therefore
Here is the Moore-Penrose inverse, and the fitted vector is the orthogonal projection onto the image of a linear map defined by .
With the singular value decomposition supplied, forming costs arithmetic operations, diagonal scaling costs , and multiplication by costs . Since ,
One need not form , or to calculate . Computing the needed thin singular value decomposition first has standard dense cost ; explicitly forming an entire orthogonal completion can require additional work when is much larger than .
Polynomial interpolation Created 2026-09-24 Updated 2026-10-14
Polynomial interpolation constructs a polynomial that passes exactly through prescribed data. Given distinct interpolation nodes and values , there is exactly one interpolation polynomial of polynomial degree at most with for every . The values may be samples of a function, but no knowledge of that function between the interpolation nodes is needed to construct . The Lagrange polynomial and Newton polynomial are two representations of this same answer.[ref]
For example, the three data points give the quadratic polynomial
Thus polynomial interpolation supplies as an intermediate value. Whether this approximates an unknown underlying function well is a separate question about polynomial interpolation error.
Both hypotheses in the uniqueness statement matter. The Lagrange cardinal polynomials prove existence constructively. If two polynomials of polynomial degree at most fit the data, their difference has distinct roots of a polynomial, so it must be zero. Repeated interpolation nodes with conflicting values have no solution, and repeated equal values provide no additional independent condition; prescribed derivatives instead lead to Hermite interpolation. Without the polynomial degree restriction there are infinitely many solutions:
where is any polynomial. By the factor theorem, this describes every polynomial fitting the same data. In the example, fits for every , but at its value is ; exact agreement at the three interpolation nodes alone says nothing about that intermediate value.
The usefulness of polynomial interpolation is that data become an explicit function whose values, derivatives, and integrals can be calculated. Differentiating or integrating the Lagrange cardinal polynomials produces differentiation weights from nodal evaluations or a quadrature rule. Exact passage through observations is the defining constraint. In polynomial regression, linear least squares instead chooses a polynomial degree and minimizes a sum of squared residuals, generally without passing through every observation. Interpolating noisy values reproduces their errors at the interpolation nodes and can amplify them between interpolation nodes; polynomial interpolation does not itself smooth measurement noise. A linear least squares problem with distinct interpolation nodes and polynomial degree at most does happen to attain zero residual at the same interpolation polynomial.
A spatial image after a chosen dark interval is a different readout from continuously recording arrivals at a fixed probe. Here is an original idealised fluorescence imaging model: release a dilute cloud, let it move freely, then apply a short uniform probe pulse. Neglect collisions, residual forces, attenuation and motion during the pulse. Use each image's cloud centre to remove mean drift. Uniform gravity shifts that centre without changing the centred variance.
For each atom let along a horizontal imaging axis. Expanding the square about the expected values gives exactly
No Gaussian distribution is needed for this variance identity. A jointly Gaussian distribution of initial positions and velocities does make the later density Gaussian. For a separable three-dimensional cloud viewed along , integration along the viewing direction gives the column density
Here is atom number. Integrating this image along leaves a one-dimensional Gaussian distribution with standard deviation . This is a projected density measurement, not a three-dimensional radius or a direct velocity histogram. Under the uniform, optically thin probe assumptions, expected fluorescence is proportional to this column density. A known, independent point spread function with finite variance adds its own variance to the measured width; probe duration and intensity gradients need separate treatment.
For a Maxwell-Boltzmann distribution, , where is atomic mass and the Boltzmann constant. For a nonthermal distribution this defines a directional second-moment temperature, which need not describe every feature of the distribution. A covariance between position and velocity can initially narrow the cloud even though is positive. The physical covariance matrix requires .
Choose , and , giving correlation coefficient . With in milliseconds, the numerical variance in square millimetres is . Its minimum occurs at , with standard deviation . These chosen values satisfy the covariance matrix constraint; early contraction is compatible with free motion.
Generate thirteen synthetic variance observations at equally spaced times from to , adding independent Gaussian noise of standard deviation . Linear least squares fits all three coefficients in . The example yields , and . With the chosen approximate sodium mass , the true is and the fitted value is . This is a fit to generated width data, not historical observations.
Figure 1.
Cloud expansion with an initial position–velocity covariance
. Original synthetic variance observations and ideal column-density marginals. All parameters and noise are chosen here. The three-dimensional Gaussian is integrated along the viewing axis and then along the image's other axis. The profiles omit imaging blur. Details.
If the same data are fitted to , forcing , the inferred falls to . The omitted term is partly absorbed into both fitted coefficients. In noiseless linear least squares with a free intercept, its precise effect on the quadratic coefficient is
where the subscript denotes equal-weight moments over the chosen observation times, using one consistent unit system. Since the ratio is positive for distinct nonnegative times, negative biases this estimate downwards. An incorrect release-time origin can also generate a linear term, so fitting it does not by itself identify a physical initial covariance. Timing calibration, spatial resolution, residual magnetic fields and probe-induced recoil energy remain separate controls. Neither a cold-looking image nor a single long expansion time identifies all three coefficients.