Substitute the QR decomposition into the normal equations:
The diagonal of is nonzero, so is invertible. Cancel it algebraically to obtain
Compute the three inner products in , then use back substitution in this upper triangular matrix. There is no need to form an inverse or explicitly construct . The orthogonal projection of onto the column space is ; its orthogonal residual proves that this solution minimizes .
The first column has norm two, giving . Its inner products with the second and third columns are both one. Subtracting from the second column leaves , of norm three, so . The inner product of with the third column is one. Subtracting from that column leaves , of norm two. Thus the Gram-Schmidt process gives
The columns of have unit norm and pairwise zero inner products, so . Direct multiplication verifies .
Use an immutable index and mutable value and links:
class Node(var value: Double, val index: Int,
           var prev: Node = null, var next: Node = null)
For the sparse linked vector representation, a header h has h.index >= 0, records that vector's dimension, and lies on a finite circular linked list. Every ordinary linked list node has an index in [0,h.index), a nonzero finite value, and a unique index; indices increase strictly from h.next to h.prev. For every reachable linked list node, including h, p.next.prev eq p and p.prev.next eq p. The abstraction function fills unspecified coordinates with zero. The header's value has no meaning. Finite real coordinates are assumed throughout; infinities and NaN are not ordinary real number coordinates for a mathematical inner product.
If , the objective is zero at every feasible point, so every point of the ellipsoid is a minimizer. Suppose now . A minimum cannot be interior: a sufficiently small step in direction would remain feasible and decrease the objective. The boundary is active.
For
stationarity gives . A positive-definite symmetric matrix is invertible, and the minimizing sign has . Enforcing the boundary gives
For global optimality, use the inner product . The Cauchy-Schwarz inequality gives
The proposed point attains the negative of this bound. Thus the minimum is , and equality in the Cauchy-Schwarz inequality, together with the sign and boundary conditions, makes this minimizer unique when .
Pauli decomposition of a qubit-environment isometry Created 2026-10-14 Updated 2026-10-25
Every linear map from a qubit into the tensor product of that qubit and an environment can be expanded in the Pauli matrix orthonormal basis of operators. If and , then the four coefficient vectors are
These environment vectors need not be orthogonal, so this is an operator expansion rather than a claim that the quantum channel is a classical Pauli channel. Physical isometries additionally preserve the inner products of the two input basis states.
The Pearson correlation coefficient is the covariance divided by the product of the standard deviations. For real random variables with finite, strictly positive variances,
It is the expected value of the product of the two centered variables after dividing each by its standard deviation. The Cauchy-Schwarz inequality gives . This removes measurement units, while retaining the direction and strength of the linear relationship. Constant random variables have zero standard deviation, so their Pearson correlation coefficient is undefined.
For the covariance model , with independently uniform on , the calculation gives
The positive correlation is less than one because the independent term introduces extra variation. For the correlation is . Both examples appear in the covariance diagram.
For nonzero real , the correlation of and is . Positive rescaling and added offsets therefore leave the correlation unchanged; reversing one scale reverses its sign. Equality means that one random variable is an affine function of the other almost surely, with a nonzero slope of the corresponding sign. This is the equality condition in the Cauchy-Schwarz inequality, and includes perfect positive correlation.
Zero correlation says that the centered variables are orthogonal in their square-integrable inner product. It permits nonlinear statistical dependence, as the example in uncorrelated random variables demonstrates. More generally, a correlation is a statement about a joint probability distribution; identifying effects of interventions is the separate task of causal inference. This distinction keeps an observed association from being mistaken for a demonstrated mechanism.
An early source for standardized association is Francis Galton's 1888 paper “Co-relations and their Measurement, chiefly from Anthropometric Data”. He compared stature and forearm measurements and changed each measurement to units of its own variability so the two regression directions could be compared. His scale used probable error, so it should not be identified word for word with the modern standard deviation formula above. [ref].
If a positive operator-valued measure distinguishes normalized pure states with certainty, the effect for the first answer satisfies and . Positivity of and implies and , because a positive operator with zero expectation annihilates the vector. Consequently . Conversely, orthogonal states can be measured with their rank-one linear projections. A common unitary operator preserves this inner product and cannot remove the obstruction.
In 1998, Jian-Wei Pan, Dik Bouwmeester, Harald Weinfurter and Anton Zeilinger created two photon pairs by two passages of a pulsed pump through a crystal using spontaneous parametric down-conversion. Interfering the inner photons at a nonpolarizing beam splitter implemented a partial Bell-basis measurement. Narrow optical filters and spatial filtering removed distinguishing information; changing the outer polarizer bases checked the conditional correlations. Fourfold detections selected the entanglement swapping events. The reported interference supported conditional quantum entanglement, but the paper reserved a statistically significant Bell inequality violation for improved visibility; it was not a demonstration closing the detection loophole.[ref]
The ideal calculation makes the distinction between conditional and unconditional quantum states explicit. Start with spin singlet states , where and denote orthogonal photon polarizations. Taking the inner product with gives : expanding the four terms leaves precisely the two antisymmetric outer terms. That Bell-basis measurement outcome has probability and leaves the outer pair in a spin singlet state. Ignoring the inner outcome instead leaves the outer density matrix , a maximally mixed state. A conditional preparation flag is useful for later Bell tests only with the timing and setting conditions in setting-independent heralding preserves Bell locality.
Planar rotation Created 2026-10-07 Updated 2026-10-14
A planar rotation about the origin is the linear map represented by the rotation matrix . It preserves inner products, lengths, oriented angles and area, with positive angles measured anticlockwise. Its inverse is and its determinant is one.
Polarization CHSH count model Created 2026-10-18 Updated 2026-10-25
Let be orthogonal linear polarizations, and prepare the Bell state . The analyzer vector is ; its orthogonal companion has outcome . Direct inner products with the Bell state give and . Thus the expectation value of the outcome product is . These are physical polarizer angles; their corresponding Bloch sphere angles are doubled.
For a stipulated isotropic admixture, use the density matrix
The maximally mixed state contributes zero correlation, so for . Each local marginal is , independently of the other setting, illustrating quantum no-signalling. In this model is the interferometric visibility of the coincidence fringe; other noise models need not have one common visibility for every basis.
Choose , , and . The four correlations in the displayed CHSH inequality are . Consequently , exceeding the local bound exactly when . Perfect correlation at a single common setting would not yield this comparison between incompatible quantum measurements.
To connect probabilities with expected counts, stipulate emitted pairs per setting pair and independent detection efficiencies , independent also of settings, outcomes and hidden variables. The expected joint counts are . Their normalized correlation is
For original teaching inputs , , and , the expected counts are and . They total and give , hence . Fractional expected counts are not measured data. Efficiency cancels here because the loss model was specified to be independent; this algebra supplies no justification for discarding failures in an arbitrary Bell test with a detection loophole.
Figure 1.
Ideal CHSH visibility threshold and expected detection counts
. Original model predictions, not experimental data. The first panel shows the visibility needed to exceed the local bound. The second uses 1000 emitted pairs, efficiencies 0.8 and 0.75, and visibility 0.8; each bar is an expected joint count. Details.
Polynomial kernel 2026-10-14
For , a polynomial kernel is the positive-semidefinite kernel , where is a positive integer and . The case uses monomials of total degree ; also includes lower degrees. The feature map weights matter: listing each distinct monomial once with coefficient one generally gives a different inner product.[ref]
For the homogeneous quadratic case in two dimensions, take the scaled quadratic feature map
The inner product identity is explicit:
The factor accounts for the two equal cross terms in the square. Thus an inner product of three derived coordinates can be obtained from an inner product of the two input coordinates followed by squaring. The kernel trick uses this equality inside an algorithm; the feature map explains which nonlinear functions the algorithm can represent.
For a positive-definite weighted inner product on a compact interval, a least-squares polynomial is the orthogonal projection of a function onto the finite-dimensional space of polynomials of degree at most . In a basis , its coefficients solve the normal equations , where and . The Gram matrix is positive definite: for . Thus the coefficients exist and are unique. The residual is orthogonal to every candidate polynomial, giving and proving optimality. An orthogonal basis makes these equations diagonal, as in a least-squares polynomial in an orthogonal-polynomial basis.
Positive-definite bilinear form Created 2026-10-06 Updated 2026-10-14
A real symmetric bilinear form is positive-definite when for every nonzero vector. It defines an inner product and the associated norm . Symmetry is part of this definition: positive diagonal values by themselves do not imply symmetry.[ref]
The identity matrix gives and . For this is , giving norm . A weighted example, , gives norm : the first coordinate costs twice as much in length. Such inner products let geometry assign different weights to different directions.
Every positive-definite bilinear form is nondegenerate: a vector in its radical of a bilinear form has , so positivity forces . The converse fails, as shows. Even positivity of the associated quadratic form does not force a general bilinear form to be symmetric: has but and .
The complex Killing form is not positive-definite on the entire complex Cartan subalgebra; its restriction to the Euclidean subspace of a Cartan subalgebra is a real positive-definite form.
Positive-definite matrix Created 2026-09-24 Updated 2026-10-03
A real symmetric matrix is positive definite when
for every nonzero real vector . It therefore defines the inner product and is invertible.
Positive diagonal symmetrization of a matrix Created 2026-10-05 Updated 2026-10-14
If a real matrix has a positive diagonal matrix such that is a symmetric matrix, then is a symmetric matrix related to by a similarity transformation: gives . Thus is a diagonalizable matrix with real eigenvalues. If for all real vectors , its eigenvalues are nonpositive. This converts symmetry in a weighted inner product into Euclidean symmetry.
A Hermitian form is positive semidefinite when for every vector. It need not define an inner product, because a nonzero vector may have zero squared norm. The Cauchy-Schwarz inequality still holds: applying nonnegativity to and minimizing the quadratic expression in gives when ; when , varying forces . Thus its zero-norm vectors are exactly the radical of a Hermitian form. Quotienting this radical of a Hermitian form gives a positive inner product; taking its Hilbert space completion then gives a Hilbert space. This is the final positivity step in the Gupta-Bleuler null-state quotient.
Suppose is a diagonalizable matrix, , with an eigenbasis and spectral decomposition
Assume the dominant eigenvalue is a simple eigenvalue and
Then the normalized power iteration approaches the one-dimensional eigenspace of . Its asymptotic direction-error bound has factor . This spectral gap is a gap in modulus: if , then . A small relative gap gives slow convergence.[ref]
The short proof is the exact eigenbasis identity
The remaining sum has norm bounded by a constant times . This proves convergence of direction, allowing a changing sign or complex factor. A tiny or a poorly conditioned, nonorthogonal eigenbasis can delay visible convergence: the condition number of affects constants, while controls the eventual rate. The bound need not be an equality; if the initial coefficient of the second-largest eigenvalue vanishes, the active spectrum of the power method gives a faster rate. When , all unwanted components disappear after one multiplication.[ref]
The hypothesis is , not an ordinary nonzero inner product with the right eigenvector. Let be the first row of , a left eigenvector normalized so is for and otherwise; denotes conjugate transpose. Then . For a Hermitian matrix, choose an orthonormal eigenbasis and the criterion becomes : the starting vector must be nonorthogonal to the dominant eigenvector. For a general diagonalizable matrix, the nonorthogonal eigenbasis makes these two tests different, as illustrated under power iteration failure cases.
A tied largest modulus can prevent even direction convergence. With and ,
The two directions form a cycle; neither is an eigenvector. There is no dominant-modulus spectral gap. A tied modulus is not a universal failure: an initial eigenvector remains on its line, and preserves every direction. Subspace iteration addresses a separated cluster by targeting a dominant invariant subspace instead of one eigenvector.
An orthogonal start can fail despite a strict spectral gap. For and , the dominant component is zero, so and every iterate equals . The Rayleigh quotient is exactly and the eigenpair residual is zero, although the dominant eigenvalue is . Exact arithmetic never creates a missing component.[ref]
The third panel contrasts these failures with , , for which
Here the horizontal eigenvector direction converges with a strict spectral gap, while the normalized vectors alternate signs. This is the successful direction convergence described under sign and phase in power iteration.
For a nonorthogonal eigenbasis, even the word “orthogonal” must be used carefully. The diagonalizable matrix has right eigenvectors , , and dominant left eigenvector . For , the dominant coefficient is . The starting vector is nonorthogonal to but stays at the smaller eigenvalue ; is orthogonal to but has and converges to the dominant direction. The left eigenvector test, not the right-eigenvector inner product, controls the outcome.
A random vector drawn from a continuous probability distribution with a probability density function on the full real or complex vector space has with probability one. This avoids the exact missing-component hyperplane, but does not guarantee a large component or fast convergence. Floating-point arithmetic may seed a missing component, yet a structurally preserved zero can remain zero, so accidental perturbations are not a convergence guarantee.
Given a positive-definite matrix , the preconditioned proximal point map is
It is firmly nonexpansive in the weighted inner product whenever is monotone.
Principal component score 2026-10-14
A score is an observation's coordinate along a principal component direction. Center an observation by the fitted sample mean, apply the fitted variable scaling when using principal component analysis on a correlation matrix, then take its inner product with the unit principal component loading vector. New observations must use the training center and scaling. The score variance equals the corresponding eigenvalue when the covariance normalization is consistent.