Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck passjudge pass (gpt-6-luna)
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.

Least-squares fitted vectors and residuals are unique

Statement

Let n,p≥1, X∈Rn×p, y∈Rn, and C=col⁡(X)⊆Rn. For the least-squares solution set BLS(y) of Least-squares solution set, the following hold:

  1. BLS(y) is nonempty, and b is in it exactly when XT(Xb−y)=0.
  2. If b0∈BLS(y), then BLS(y)=b0+ker⁡X.
  3. Every least-squares solution has the same fitted vector PCy and residual y−PCy.
  4. The direction space ker⁡X of the affine solution set has dimension p−rank⁡(X).

The theorem makes no statistical moment or distributional assumption.

Facts & Assumptions

Given: Integers n,p≥1, a real matrix X∈Rn×p, and y∈Rn. Put TX:Rp→Rn, TXb:=Xb, and C=col⁡(X)=im⁡TX.

[F1]

The least-squares solution set is BLS(y)=arg min⁡b∈Rp∥y−Xb∥22; it is set-valued until uniqueness is proved. Least-squares solution set.

[F2]

For a finite-dimensional linear map T and target y, minimizers of ∥Tb−y∥ exist, are characterized by T∗(Tb−y)=0, and form b0+ker⁡T. For a linear map T:V→W between finite-dimensional inner-product spaces, x minimises ∥Tx−b∥ if and only if T∗(Tx−b)=0, equivalently T∗Tx=T∗b; minimisers exist and any two differ by an element of ker⁡T.

[F3]

The Euclidean inner product on Rm is the dot product ⟨x,y⟩=∑k<mxkyk. The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn.

[F4]

In standard real coordinate bases, the adjoint matrix of a linear map is its transpose. In orthonormal bases, the matrix of the adjoint is the conjugate transpose of the matrix.

[F5]

The orthogonal projection PCy is the C-component of y and y−PCy∈C⊥. The orthogonal projection PWv is the W-component in V=W⊕W⊥.

[F6]

PCy is the unique point of C nearest to y. The orthogonal projection is the unique nearest point in the subspace.

[F7]

For a linear map with finite-dimensional domain, dim⁡V=dim⁡ker⁡T+dim⁡im⁡T. Rank-nullity: dim⁡FV=nullity⁡T+rank⁡T.

[F8]

Squaring is strictly increasing on nonnegative reals: s<t if and only if s2<t2 for s,t≥0. Squaring is monotone on the nonnegatives.

[F10]

The matrix rank of X equals the rank of TX, which is dim⁡im⁡TX. The rank of a matrix equals the rank of the linear map x↦Ax.

Proof

technique · direct
1.1F1F2F3F4F8algebra

Regard X as the linear map TX:Rp→Rn, TXb=Xb, with the Euclidean inner products of [F3]. Every residual norm is nonnegative, and [F8] says squaring is strictly increasing on the nonnegative reals. Therefore the minimizers of ∥y−Xb∥22 are exactly the minimizers of ∥Xb−y∥2. Applying [F2] and identifying TX∗=XT by [F4] gives a minimizer, the normal equation XT(Xb−y)=0, and the full solution set b0+ker⁡X.

1.2F2F5F6choose

The image of TX is C. Every minimizer maps to a point of C nearest to y, and every point of C has a preimage under TX. By [F5] and [F6] that nearest point is exactly PCy and is unique. Thus every minimizing b has fitted vector Xb=PCy, and its residual is the unique vector y−PCy.

2.1F7F9F10step 1.1algebra∎

By step 1.1 the solution set is the translate b0+ker⁡X, whose direction space is ker⁡X. By rank-nullity [F7] and dim⁡Rp=p from [F9], dim⁡ker⁡X=p−dim⁡im⁡TX. Fact [F10] identifies dim⁡im⁡TX=rank⁡(X), giving the claimed direction-space dimension.

Depends on

Used by

Cited to discharge well-definedness by Least-squares solution set.

Dependency tree · two levels

59 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