Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-04
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Normal equations for best affine L2 prediction

Statement

Let X,Y1,,Yn be square-integrable real random variables on one probability space, and write W:=span([1],[Y1],,[Yn])L2(P), where [] denotes the almost-everywhere class from The space Lp(μ) as the quotient by null functions.

Then there is a unique class [Z]W minimizing [X][Z]2 over [Z]W. This minimizing class has an affine representative Z=a0+j=1najYj, and its coefficients satisfy a0=E[X]j=1najE[Yj], j=1nCov(Yi,Yj)aj=Cov(X,Yi)(1in).

The class [Z] is unique. If the covariance matrix Γ=(Cov(Yi,Yj))i,j is singular, the coefficient vector need not be uniquely determined by the normal equations, but any two solutions yield the same predictor almost surely.

Facts & Assumptions

Given: Square-integrable real random variables X,Y1,,Yn.

[L1]

Variance and covariance are given by centered expectations, satisfy the identities Var(U)=E[U2]E[U]2,Cov(U,V)=E[UV]E[U]E[V], and are bilinear on finite linear combinations (Moments, variance, and covariance on a probability space, Variance and covariance identities for random variables).

[L2]

Cauchy-Schwarz gives integrability of products of square-integrable random variables (Cauchy-Schwarz for random variables).

[L4]

In a finite-dimensional inner product space, the orthogonal projection onto any subspace is the unique nearest point in that subspace (The orthogonal projection is the unique nearest point in the subspace).

[L5]

A nonnegative measurable function has integral 0 exactly when it vanishes almost everywhere (A nonnegative measurable function has integral 0 exactly when it vanishes almost everywhere).

Proof

technique · direct
1.1

Let V:=span([X],[1],[Y1],,[Yn])L2(P). This space is finite-dimensional because it is spanned by n+2 vectors, and W is a subspace of V. Equip V with the usual L2 inner product. Applying [L4] to the vector [X]V and the subspace WV gives a unique class [Z]W minimizing [X][Z]2 over [Z]W.

L3L4
2.1

By [L3], every class in W has an affine representative of the form Z=a0+j=1najYj. Put X~:=XE[X] and Y~j:=YjE[Yj]. Then XZ=X~j=1najY~j+(E[X]a0j=1najE[Yj]). Expanding the square and using [L1] shows that the mixed term with the final constant vanishes, so E[(XZ)2]=E[(X~j=1najY~j)2]+(E[X]a0j=1najE[Yj])2. Hence every affine representative of the minimizing class must satisfy a0=E[X]j=1najE[Yj].

L1L3step 1.1algebra
3.1

After imposing the intercept from step 2.1, define Q(a1,,an):=E[(X~j=1najY~j)2]. Using [L1] and [L2], Q(a)=Var(X)2j=1najCov(X,Yj)+i=1nj=1naiajCov(Yi,Yj).

L1L2step 2.1algebra
4.1

Let h=(h1,,hn)Rn. Substituting a+h into step 3.1 and subtracting gives Q(a+h)Q(a)=E[(j=1nhjY~j)2]+2i=1nhi(j=1nCov(Yi,Yj)ajCov(X,Yi)). Therefore, if a satisfies the normal equations, then Q(a+h)Q(a)0 for every h, so a minimizes Q.

step 3.1L1algebra
5.1

Conversely, suppose a minimizes Q. Fix i and take h=tei, where ei is the ith standard basis vector. Then step 4.1 gives Q(a+tei)Q(a)=t2Var(Yi)+2t(j=1nCov(Yi,Yj)ajCov(X,Yi))0 for every real t. The coefficient of t must therefore be 0, since the same inequality holds for both signs of t. This is exactly the ith normal equation, and i was arbitrary.

step 4.1givenalgebra
6.1

Let a and b be two coefficient vectors satisfying the normal equations, and let D:=j=1n(ajbj)Y~j. Subtracting the two linear systems gives jCov(Yi,Yj)(ajbj)=0 for every i. Multiplying the ith equation by aibi and summing over i, then using bilinearity from [L1], yields E[D2]=i=1nj=1n(aibi)(ajbj)Cov(Yi,Yj)=0. Because D20, [L5] gives D=0 almost surely. Thus the corresponding predictors agree almost surely, so the minimizing class in L2(P) is unique even when the coefficient vector is not.

L1L5step 5.1algebra
7.1

Step 1.1 gives existence and uniqueness of the minimizing class, step 2.1 identifies the optimal intercept, steps 4.1 and 5.1 characterize the optimal centered coefficients by the covariance normal equations, and step 6.1 proves that all coefficient solutions yield the same predictor almost surely. This is exactly the best affine L2 prediction statement.

step 1.1step 2.1step 4.1step 5.1step 6.1

Depends on

Used by

Dependency tree · two levels

35 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources