Alphabeta Math
Pipeline-generated
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.

K-means, Gaussian mixtures, and soft assignments

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

K-means objective

Definition

Let n,p be positive integers, let 1≤K≤n, let x1,…,xn∈Rp be observed vectors, and let μ1,…,μK∈Rp be centers. A labeling is a vector z=(z1,…,zn)∈{1,…,K}n, and its kth cluster is Ck(z):={i:zi=k}. For v=(v1,…,vp)∈Rp, set ∥v∥22:=∑j=1pvj2. The K-means objective is

J(z,μ1,…,μK):=∑i=1n∥xi−μzi∥22=∑k=1K∑i∈Ck(z)∥xi−μk∥22.

An empty cluster contributes zero to the sum.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Finite Gaussian mixture with positive-definite component covariances

Definition

Assume AC. Let p≥1, μ∈Rp, and let Σ∈Rp×p be symmetric positive definite, meaning vTΣv>0 for every nonzero v∈Rp. Define the component function

ϕp(x;μ,Σ):=(2π)−p/2(det⁡Σ)−1/2exp⁡ ⁣(−12(x−μ)TΣ−1(x−μ)),x∈Rp.

The component law is Np(μ,Σ), the p-dimensional normal law with mean μ and covariance matrix Σ. The separate local normalization result proves that ϕp is its Lebesgue density.

A finite K-component Gaussian mixture has an integer K≥1, weights π1,…,πK>0 with ∑k=1Kπk=1, means μk∈Rp, and symmetric positive-definite covariance matrices Σk∈Rp×p. Its density is

fθ(x):=∑k=1Kπkϕp(x;μk,Σk),

where θ=((πk,μk,Σk))k=1K. For a positive integer n and an ordered sample x1,…,xn modeled as conditionally independent observations from this mixture, define the likelihood L(θ;x1:n):=∏i=1nfθ(xi) and log likelihood ℓ(θ;x1:n):=∑i=1nlog⁡fθ(xi). The responsibility weight of component k for observation xi is

γik(θ):=πkϕp(xi;μk,Σk)∑j=1Kπjϕp(xi;μj,Σj).

Definition references

Multivariate normal law, including singular covariance — Np(μ,Σ) is the probability law whose scalar projections along u∈Rp are normal with mean uTμ and variance uTΣu; AC supplies its stated construction.

Moments, variance, and covariance on a probability space — covariance is the expectation of the product of centered coordinates.

For n≥1, the determinant over a commutative ring by the Leibniz formula, and ∣det⁡A∣ for a real matrix — det⁡Σ is the determinant of the square matrix Σ.

Invertible matrices and the general linear group GL⁡n(F) — Σ−1 denotes the two-sided inverse, which exists for positive-definite Σ.

Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis — real symmetric matrices admit orthonormal eigenbases; positive definiteness makes all eigenvalues positive.

Positive-definite multivariate Gaussian density is normalized ↗ — the displayed component function is normalized and is the Lebesgue density of Np(μ,Σ).

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Strict concavity of log determinant on positive-definite matrices

Statement

Let p≥1 and let A0,A1∈Rp×p be symmetric positive-definite matrices. For 0<t<1 and A0≠A1,

log⁡det⁡((1−t)A0+tA1)>(1−t)log⁡det⁡A0+tlog⁡det⁡A1.

If A0=A1, equality holds. Thus A↦log⁡det⁡A is strictly concave on the positive-definite cone.

Facts & Assumptions

Given: Symmetric positive-definite matrices A0,A1∈Rp×p with p≥1.

[F2]
[F5]

On the invertible locus, Dinv⁡(A)[H]=−A−1HA−1: on the invertible locus, Dinv⁡(A)[H]=−A−1HA−1.

[F6]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): derivatives of differentiable compositions are the compositions of the derivatives.

[F7]

The trace tr⁡(A) as the sum of the diagonal entries: tr⁡(M) is the finite sum of diagonal entries of M.

[F8]

The mean value theorem, as the case g(x)=x of Cauchy's: for f continuous on [a,b] with a<b and differentiable on (a,b) there is c∈(a,b) with f(b)−f(a)=f′(c)(b−a): if a real function is continuous on a closed interval and differentiable on its interior, its secant slope equals its derivative at some interior point.

Proof

1.1givenF1F2F4F9algebra

Put H:=A1−A0 and As:=A0+sH for 0≤s≤1. For every nonzero v, vTAsv=(1−s)vTA0v+svTA1v>0, so each As is symmetric positive definite. By [F1], choose an orthogonal eigenbasis As=Udiag⁡(λ1,…,λp)UT with every λj>0. The determinant laws [F9], including the triangular formula for the diagonal matrix, give det⁡As=(det⁡U)2∏jλj and (det⁡U)2=det⁡(UTU)=det⁡I=1, so det⁡As=∏jλj>0. Since the determinant is a polynomial by [F2] and log⁡ is differentiable, hence continuous, on (0,∞) by [F4], g(s):=log⁡det⁡As is real and continuous on [0,1].

2.1F3F4F6step 1.1algebra

On 0<s<1, Jacobi's formula [F3], the scalar derivative [F4], and the chain rule [F6] give g′(s)=tr⁡(As−1H).

3.1F5F6F7step 2.1algebra

Differentiate the expression in step 2.1 along the same affine path. The inverse derivative [F5] and linearity of the finite trace [F7] give g′′(s)=−tr⁡(As−1HAs−1H).

4.1F1F7F8step 3.1algebra

By [F1], form the symmetric positive-definite inverse square root As−1/2, and set B:=As−1/2HAs−1/2. Since H is symmetric, B is symmetric; if A0≠A1, then H≠0 and invertibility of As−1/2 gives B≠0. Expanding the finite trace sum and interchanging its indices gives tr⁡(XY)=tr⁡(YX); applying this identity yields tr⁡(As−1HAs−1H)=tr⁡(B2)=∑i,jBij2>0. Thus g′′(s)<0 for every 0<s<1. For any 0<a<b<1, g′ is continuous on [a,b] and differentiable on (a,b) because g is twice differentiable on (0,1). By [F8] applied to g′, there is c∈(a,b) with g′(b)−g′(a)=g′′(c)(b−a)<0. Hence g′ is strictly decreasing on (0,1).

5.1givenF8step 1.1step 4.1algebra∎

For 0<t<1, step 1.1 shows that g is continuous on [0,1] and differentiable on (0,1), so [F8] applies on both [0,t] and [t,1]. Their secant slopes are g′(a) and g′(b) for some a∈(0,t) and b∈(t,1). Step 4.1 makes g′ strictly decreasing, so the first slope is strictly larger than the second; rearranging yields g(t)>(1−t)g(0)+tg(1). If A0=A1, the path is constant and equality holds.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Equal-spherical mixture assignments and objective converge to k-means

Statement

Let n,p,K be positive integers, let x1,…,xn,μ1,…,μK∈Rp, and fix positive weights π1,…,πK with ∑k=1Kπk=1. Put dik:=∥xi−μk∥22, di∗:=min⁡1≤k≤Kdik, and Mi:={k:dik=di∗}. For every σ>0, define the normalized soft-assignment weights

ρik(σ):=πkexp⁡(−dik/(2σ2))∑j=1Kπjexp⁡(−dij/(2σ2))

and the finite-data objective

Ψσ:=−2σ2∑i=1nlog⁡(∑k=1Kπkexp⁡(−dik/(2σ2))).

As σ↓0, for each i and k,

ρik(σ)⟶{πk∑j∈Miπj,k∈Mi,0,k∉Mi,

and

Ψσ⟶∑i=1ndi∗=min⁡z∈{1,…,K}n∑i=1ndi,zi.

Thus a unique nearest center receives limiting weight one, while tied nearest centers divide limiting weight in proportion to their fixed mixture weights. This is a fixed-parameter finite-data limit and asserts no convergence of EM iterates.

Facts & Assumptions

Given: Finite positive integers n,p,K, fixed vectors xi,μk∈Rp, and fixed positive weights πk summing to one.

[A1]

All indices range over finite sets and all data, centers, and weights are fixed; no probability-space assumption or choice axiom is used.

[F1]

The exponential tends to +∞ at +∞ and to 0 at −∞: exp⁡(u)→0 as u→−∞.

Proof

1.1givenA1F1algebra

Fix i and write Ri(σ):=∑k∈Miπk+∑k∉Miπkexp⁡(−(dik−di∗)/(2σ2)). Every difference in the second sum is strictly positive, so each exponential there tends to zero by [F1], since its exponent tends to −∞ as σ↓0; the sum is finite. Hence Ri(σ)→∑k∈Miπk>0.

2.1givenA1step 1.1algebra

Factoring exp⁡(−di∗/(2σ2)) from the denominator of ρik(σ) gives ρik(σ)=πkexp⁡(−(dik−di∗)/(2σ2))/Ri(σ). If k∈Mi, its exponential is one and the limit is πk/∑j∈Miπj; if k∉Mi, its positive distance gap makes the numerator tend to zero while the denominator tends to a positive number. This proves the stated responsibility limits.

2.2givenA1step 1.1algebra

The same factorization gives −2σ2log⁡∑kπke−dik/(2σ2)=di∗−2σ2log⁡Ri(σ). The nearest terms give Ri(σ)≥∑k∈Miπk>0, while dik−di∗≥0 and ∑kπk=1 give Ri(σ)≤1. Thus log⁡Ri(σ) stays between two finite constants, so the second term tends to zero. Summing over the finite set of observations gives Ψσ→∑idi∗.

3.1givenA1step 2.2constructalgebra∎

For each labeling z∈{1,…,K}n, di,zi≥di∗ for every i, so ∑idi,zi≥∑idi∗. Define zi:=min⁡Mi, which exists because Mi is a nonempty finite subset of {1,…,K}. This labeling attains equality, proving the displayed minimum without any choice principle.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Lloyd's k-means algorithm with explicit tie handling

Definition

Input. Let n,p be positive integers, let 1≤K≤n, let x1,…,xn∈Rp, and supply initial centers μ1(0),…,μK(0)∈Rp.

Initialization. Assign each xi to a nearest initial center, choosing the smallest center index in a tie. Denote these labels by zi(0).

Iteration. For t=0,1,2,…:

  1. With the current centers fixed, assign each xi to a nearest center. If its current label zi(t) is among the nearest-center indices, retain zi(t); otherwise choose the smallest nearest-center index. Call the resulting labels zi(t+1).
  2. For each nonempty cluster Ck(t+1):={i:zi(t+1)=k}, set μk(t+1):=1∣Ck(t+1)∣∑i∈Ck(t+1)xi. If Ck(t+1) is empty, set μk(t+1):=μk(t).
  3. If both z(t+1)=z(t) and μ(t+1)=μ(t), return these labels and centers. Otherwise continue with the updated labels and centers.

The procedure makes no global-minimization claim. Its termination under these tie rules is proved separately.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Positive-definite multivariate Gaussian density is normalized

Statement

Assume AC. Let p≥1, let μ∈Rp, and let Σ∈Rp×p be symmetric positive definite. Let Z1,…,Zp be independent standard normal random variables, let Z=(Z1,…,Zp)T, and set X=μ+Σ1/2Z, where Σ1/2 is the symmetric positive-definite square root. Then the law of X has Lebesgue density

ϕp(x;μ,Σ)=(2π)−p/2(det⁡Σ)−1/2exp⁡ ⁣(−12(x−μ)TΣ−1(x−μ)),x∈Rp.

In particular, ϕp is nonnegative and ∫Rpϕp(x;μ,Σ) dx=1.

Facts & Assumptions

Given: Assume AC, p≥1, a mean μ∈Rp, and a real symmetric positive-definite covariance matrix Σ∈Rp×p.

[A1]

The Axiom of Choice: every family of nonempty sets has a choice function. Here AC supplies the independent normal coordinates in the multivariate-normal construction and countable choice for the two cited Lebesgue change-of-variables results.

[F1]

Finite Gaussian mixture with positive-definite component covariances: for SPD Σ, ϕp(x;μ,Σ) is the displayed nonnegative formula using det⁡Σ and Σ−1.

[F2]

Standard normal and normal laws: N(0,1) has Lebesgue density ϕ1(t)=(2π)−1/2e−t2/2 with total mass one.

[F3]

Multivariate normal law, including singular covariance: under AC, Np(μ,Σ) can be realized as μ+Σ1/2Z with independent standard-normal coordinates.

[F4]

Independent random elements have product joint law: a finite family of independent random elements has joint law equal to the product of its marginal laws.

[F5]

Tonelli's theorem for nonnegative measurable functions on a sigma-finite product: nonnegative measurable functions on sigma-finite product spaces have measurable sections and equal iterated and product integrals.

[F6]

On Borel subsets of R^{m+n}, the product lambda_m times lambda_n agrees with lambda_{m+n}: under countable choice, product Lebesgue measure on finite-dimensional Euclidean factors agrees with Euclidean Lebesgue measure on Borel sets.

[F7]

Measures agreeing on a generating pi-system are equal under an increasing finite-measure exhaustion from that pi-system: two measures agreeing on a generating pi-system and on an increasing finite-measure exhaustion from that system agree on the generated sigma-algebra.

[F8]

Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis: a real symmetric endomorphism of a finite-dimensional real inner-product space has an orthonormal eigenbasis.

[F9]

A C^1 diffeomorphism satisfies the change-of-variables formula for nonnegative Lebesgue measurable functions: assuming countable choice, a C1 diffeomorphism T:U→V between open subsets of Rp satisfies ∫Vf(y) dy=∫Uf(T(x))∣det⁡DT(x)∣ dx for every nonnegative Lebesgue-measurable f.

[F12]

AC supplies countable selections and prescribed serial paths: AC implies countable choice, so the countable-choice hypotheses of [F6], [F9], and [F10] hold.

Proof

1.1givenF3F8F11algebra

Set A:=Σ1/2, the symmetric positive-definite square root in the Statement, so A2=Σ. By [F8], write A=Udiag⁡(a1,…,ap)UT with UTU=I and aj>0. The determinant laws [F11], including the triangular formula for the diagonal matrix, give (det⁡U)2=det⁡(UTU)=det⁡I=1 and det⁡A=(det⁡U)2∏jaj=∏jaj>0. Also det⁡Σ=det⁡(A2)=(det⁡A)2, so det⁡A=det⁡Σ. In the same basis, Σ−1=A−2=Udiag⁡(a1−2,…,ap−2)UT and ATΣ−1A=I.

1.2A1F2F4F5F6F7F12algebra

By [F2] and [F4], the joint law of Z is the product of its standard-normal marginals. Define g(y):=∏j=1pϕ1(yj)=(2π)−p/2e−∥y∥22/2. Tonelli [F5] and the product-measure identity [F6] give ∫Rpg dλp=∏j=1p∫Rϕ1 dλ1=1 and, for every Borel rectangle R=∏j=1pBj, ∫Rg dλp=∏j=1p∫Bjϕ1 dλ1. Thus g dλp and the product law of Z are probability measures agreeing on rectangles. The rational half-open rectangles form a generating pi-system; (−N,N]p is an increasing exhaustion from it, and the common rectangle values make their measures equal and finite on every such box. Hence [F7] identifies the measures. AC supplies countable choice for the product-Lebesgue identity [F6].

2.1A1F1F9F10F12step 1.1step 1.2algebra

Let T(y)=μ+Ay. By step 1.1, A is invertible, so T is a C1 diffeomorphism of Rp with ∣det⁡DT∣=det⁡A. The linear measure-scaling result [F10] confirms this is the Lebesgue volume factor. The displayed function ϕp is continuous and positive, so f(x)=1E(x)ϕp(x;μ,Σ) is nonnegative Borel for every Borel E⊆Rp. AC supplies the countable-choice assumption of [F9] by [F12]. Apply [F9] to f and the change of variables by T to obtain ∫Eϕp(x;μ,Σ) dx=∫T−1(E)ϕp(T(y);μ,Σ)det⁡A dy. For x=T(y), x−μ=Ay and ATΣ−1A=AA−2A=I. Thus the exponent in [F1] becomes −∥y∥22/2, while (det⁡Σ)−1/2det⁡A=1 by step 1.1. Hence ϕp(T(y);μ,Σ)det⁡A=g(y). The last integral equals ∫T−1(E)g(y) dy=P(X∈E) by step 1.2 and the definition of X. Thus ϕp is the Lebesgue density of X.

3.1F1F3step 1.1step 2.1algebra∎

By [F3], X has law Np(μ,Σ). Step 2.1 identifies that law on every Borel set with integration against ϕp; taking E=Rp gives ∫Rpϕp(x;μ,Σ) dx=P(X∈Rp)=1. Nonnegativity follows directly from [F1] and det⁡Σ>0 in step 1.1.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

Lloyd iteration is objective-decreasing and terminates

Statement

Let n,p be positive integers, let 1≤K≤n, let x1,…,xn∈Rp, and supply any initial centers in (Rp)K. The tie-sensitive Lloyd algorithm defined on this page terminates after finitely many iterations. At each fixed-center assignment, the K-means objective does not increase, and it strictly decreases if any label changes. At each center update, the objective does not increase, and it strictly decreases if a nonempty-cluster center changes. At termination each label is a nearest-center label under the stated retention rule, and every nonempty-cluster center is its sample mean; no global-minimum conclusion is made.

Facts & Assumptions

Given: The finite data and initial centers in the Statement, the K-means objective J, and the specified Lloyd iteration.

[F1]

K-means objective: J(z,μ1,…,μK)=∑i=1n∥xi−μzi∥22; an empty cluster contributes zero.

[F2]

Lloyd's k-means algorithm with explicit tie handling: an assignment retains its current label when that label is among the nearest centers, otherwise it chooses the smallest nearest-center index; every nonempty cluster center is replaced by its sample mean and an empty-cluster center is unchanged.

[F3]

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: for a linear map T between finite-dimensional inner-product spaces, x minimizes ∥Tx−b∥ exactly when T∗(Tx−b)=0; minimizers exist and form one minimizer plus ker⁡T.

Proof

1.1givenF1F2algebra

Fix the current centers. For each observation, the old label is one of the available centers, so choosing a nearest center cannot increase its squared distance. If the label changes, its new distance is strictly smaller: an equal-distance tie would retain the old label by [F2]. Summing the pointwise inequalities gives nonincrease of J, strict when any label changes.

1.2givenF1F3constructalgebra

Fix a nonempty cluster C and set T(u)=(u)i∈C from Rp to (Rp)C, with product inner product, and b=(xi)i∈C. For u,v∈Rp, ⟨Tu,Tv⟩=∣C∣⟨u,v⟩, so T∗T=∣C∣I; also ⟨Tu,b⟩=⟨u,∑i∈Cxi⟩, so T∗b=∑i∈Cxi. Minimizing ∥Tu−b∥ is equivalent to minimizing its square, since squaring is increasing on nonnegative reals. Thus [F3] gives the unique minimizer xˉC=∣C∣−1∑i∈Cxi; uniqueness follows because T is injective for nonempty C. Replacing a center by this mean cannot increase the cluster contribution and strictly decreases it if the old center differed. Empty clusters contribute zero and retain their centers.

2.1givenF1F2step 1.1step 1.2algebra

A nonterminal iteration changes either the labels or at least one nonempty center. By steps 1.1 and 1.2, its full assignment-and-center update therefore strictly decreases J. For every t≥1, the state (z(t),μ(t)) follows a center update: its nonempty centers are the means for z(t), so its objective value is determined by that labeling alone; empty centers do not affect it. Consequently, among these post-update states, a labeling cannot recur across nonterminal iterations, since its objective value would repeat despite strict decrease. There are only Kn labelings, so after the first update there are at most Kn−1 further nonterminal iterations before a terminal iteration occurs. This proves finite termination without requiring the arbitrary initial centers to be cluster means or excluding z(1)=z(0).

3.1F2step 2.1∎

At termination the labels and centers are unchanged by the next iteration. The assignment rule therefore certifies that each label is nearest under the retention convention, while the center update certifies that every nonempty-cluster center is its sample mean. This is the stated coordinatewise fixed point.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Exact EM updates for a finite Gaussian mixture

Definition

Inputs. Assume AC. Supply positive integers n,p,K, observations x1,…,xn∈Rp whose affine span is Rp (equivalently, no nonzero v∈Rp has vTxi constant over all i), an initial finite Gaussian mixture parameter θ0=((πk(0),μk(0),Σk(0)))k=1K in the domain of the finite-mixture definition, and a positive integer T.

Procedure. For t=0,1,…,T−1, compute the responsibilities

γik(t):=πk(t)ϕp(xi;μk(t),Σk(t))∑j=1Kπj(t)ϕp(xi;μj(t),Σj(t)),Nk(t):=∑i=1nγik(t).

Then make the exact updates

πk(t+1):=Nk(t)n,μk(t+1):=1Nk(t)∑i=1nγik(t)xi,

Σk(t+1):=1Nk(t)∑i=1nγik(t)(xi−μk(t+1))(xi−μk(t+1))T.

Output. Return the finite parameter sequence (θ0,θ1,…,θT). Every E-step uses the current parameter and every M-step uses that E-step's responsibilities. The affine-span hypothesis is imposed for the unrestricted positive-definite covariance update; constrained covariance domains require their own M-step. This definition makes no claim about convergence of parameters or a global maximum.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

The full-affine-span Gaussian-mixture M-step maximizes Q

Statement

Assume AC. Let n,p,K be positive integers, let x1,…,xn∈Rp have affine span Rp (equivalently, no nonzero v∈Rp makes vTxi constant over all i), and let θ=((πk,μk,Σk))k=1K be a finite Gaussian-mixture parameter with every πk>0 and every Σk symmetric positive definite. Define

γik=πkϕp(xi;μk,Σk)∑j=1Kπjϕp(xi;μj,Σj),Nk=∑i=1nγik,xˉk=1Nk∑i=1nγikxi,

and

Sk=1Nk∑i=1nγik(xi−xˉk)(xi−xˉk)T.

For a candidate parameter ϑ=((ρk,mk,Vk))k=1K in the same domain, let

Q(ϑ∣θ)=∑i=1n∑k=1Kγiklog⁡ ⁣(ρkϕp(xi;mk,Vk)).

Then every Nk is positive, ∑kNk=n, every Sk is positive definite, and the unique global maximizer of Q(ϑ∣θ) over all positive mixture weights summing to one, means in Rp, and symmetric positive-definite covariances is

ρk∗=Nk/n,mk∗=xˉk,Vk∗=Sk.

In particular, the displayed E-step responsibilities and M-step update formulas are well-defined and attain this maximum.

Facts & Assumptions

Given: Assume AC, positive integers n,p,K, observations whose affine span is Rp, and a current finite Gaussian-mixture parameter with positive weights and symmetric positive-definite covariances.

[A1]

The Axiom of Choice: AC is assumed by the KL definition and its nonnegativity theorem; this is the only choice use in the proof.

[F1]

Finite Gaussian mixture with positive-definite component covariances: mixture weights are strictly positive and sum to one, covariances are symmetric positive definite, and the component formula ϕp(x;μ,Σ) is used for finite observations.

[F2]

Positive-definite multivariate Gaussian density is normalized: for these parameters, each Gaussian component formula is finite, strictly positive, and normalized; its logarithm is finite at every finite observation.

[F3]

Probability measures and probability spaces: a probability measure has total mass one.

[F4]

Kullback–Leibler divergence: for probability measures P≪R, the directional divergence is D(P∥R)=∫log⁡(dP/dR) dP; on a finite set with positive atom masses ak,rk, this is ∑kaklog⁡(ak/rk).

[F5]

Kullback–Leibler divergence is nonnegative: under AC, D(P∥R)≥0, with equality exactly when P=R, for probability measures with the first absolutely continuous with respect to the second.

[F6]

Strict concavity of log determinant on positive-definite matrices: A↦log⁡det⁡A is strictly concave on the symmetric positive-definite cone.

[F9]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): the derivative of a differentiable composition is given by the chain rule.

[F10]

The trace tr⁡(A) as the sum of the diagonal entries: tr⁡(M) is the sum of the diagonal entries; finite coordinate expansion gives tr⁡(AB)=tr⁡(BA) whenever the products are defined.

[F12]

Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis: a real symmetric matrix has an orthonormal eigenbasis; in particular its eigenvalues are positive when it is positive definite, and its inverse is positive definite.

[F13]

The natural logarithm as the inverse of the exponential function and Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: log⁡ is inverse to exp⁡, and for positive u,v, log⁡(uv)=log⁡u+log⁡v and log⁡(1/u)=−log⁡u; hence for a>0, log⁡(a−1/2)=−12log⁡a.

Proof

1.1F1F2algebra

By [F1] and [F2], every numerator and denominator in γik is finite and strictly positive. Hence γik>0. Summing the responsibility formula over k gives ∑kγik=1, so Nk>0 and ∑kNk=n. Thus all displayed weighted means and scatters are defined.

2.1givenstep 1.1algebra

For each nonzero v∈Rp, vTSkv=Nk−1∑iγik(vT(xi−xˉk))2. If it were zero, positivity of each γik would force vTxi=vTxˉk for every i. That would put all observations in the proper affine hyperplane {x:vTx=vTxˉk}, contradicting their full affine span. Since Sk is visibly symmetric, it is positive definite.

2.2F1F2F13step 1.1algebra

Expanding the component density in [F1,F2] in the definition of Q gives Q(ϑ∣θ)=∑kNklog⁡ρk−np2log⁡(2π)−12∑k(Nklog⁡det⁡Vk+∑iγik(xi−mk)TVk−1(xi−mk)). Here [F13] supplies log⁡(exp⁡u)=u and the product and reciprocal laws. For each positive a, log⁡(a−1/2)=−12log⁡a follows by applying those laws to (a−1/2)2=1/a; applying the product law p times gives log⁡((2π)−p/2)=−p2log⁡(2π). All logarithms are finite: weights are positive, and [F2] gives finite positive component densities for each positive-definite covariance, so their determinants are positive.

3.1A1F3F4F5step 1.1step 2.2algebra

Define αk=Nk/n, and for each subset B⊆{1,…,K} set P(B):=∑k∈Bαk and R(B):=∑k∈Bρk. Finite sums make these set functions additive on disjoint subsets; a disjoint sequence has at most K nonempty members, so they are countably additive. Step 1.1 and the candidate weight constraint give total mass one, hence [F3] makes P,R probability measures. Each ρk>0, so P≪R. For every subset B, ∑k∈B(αk/ρk)ρk=P(B), hence dP/dR(k)=αk/ρk. The KL definition [F4] therefore gives D(P∥R)=∑kαklog⁡(αk/ρk)≥0 by [A1,F5]. The weight-dependent part of Q at α minus that at ρ is ∑kNklog⁡(αk/ρk)=nD(P∥R)≥0, with equality only when P=R, hence ρk=αk for every k by [F5].

3.2F1F12step 1.1step 2.2algebra

For fixed candidate covariance Vk, write di=xi−xˉk and e=xˉk−mk. Since ∑iγikdi=0, expanding the quadratic form gives ∑iγik(xi−mk)TVk−1(xi−mk)=∑iγikdiTVk−1di+NkeTVk−1e. The last term is nonnegative and is zero exactly when mk=xˉk, because Vk−1 is positive definite by [F12]. It occurs with a negative coefficient in Q by step 2.2, so the unique maximizing mean is xˉk.

3.3F10F11F12F13step 2.1step 2.2algebra

At this mean, coordinate expansion of the finite trace gives ∑iγikdiTVk−1di=Nktr⁡(Vk−1Sk). Therefore the covariance-dependent part of Q is −Nk2(log⁡det⁡Vk+tr⁡(Vk−1Sk)) by step 2.2. Set A=Vk−1; determinant identity [F11], the logarithm reciprocal law [F13], and the finite trace identity [F10] rewrite this as Nk2(log⁡det⁡A−tr⁡(ASk)). The candidate A∗=Sk−1 is symmetric positive definite by step 2.1 and [F12]. Conversely, every symmetric positive-definite A has positive-definite inverse, so this reparameterization ranges over the full covariance domain.

3.4F6F7F8F9F10step 2.1algebra

Fix any other positive-definite A and put H=A−A∗, At=A∗+tH, and h(t)=log⁡det⁡At−tr⁡(AtSk). Each At is positive definite by convexity of the cone. By [F6], h is strictly concave when H≠0. Jacobi's formula [F7], the scalar logarithm derivative [F8], and the chain rule [F9] give h′(0)=tr⁡(A∗−1H)−tr⁡(HSk)=0, since A∗−1=Sk and [F10] permits cyclic rearrangement of the finite trace. If h(1)≥h(0), strict concavity gives h(s)>h(0) for each 0<s<1. For 0<u<s, concavity gives (h(u)−h(0))/u≥(h(s)−h(0))/s>0. Letting u↓0 contradicts h′(0)=0. Hence h(1)<h(0) for every A≠A∗, so Vk=Sk is the unique maximizing covariance.

4.1F1step 2.1step 3.1step 3.2step 3.4algebra∎

The expression for Q is a sum over components of a weight term, a mean-dependent quadratic term, and a covariance-dependent term, with no cross-component parameter terms. Steps 3.1, 3.2, and 3.4 show each is uniquely maximized by the displayed parameters; step 2.1 ensures each maximizing covariance remains in the permitted positive-definite domain. The product choice is therefore an admissible attained global maximizer, and equality forces every component parameter to equal the displayed update formulas. Thus the displayed E-step responsibilities and M-step formulas are well-defined and attain the claimed maximum, without using a procedure-level property.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Exact Gaussian-mixture EM does not decrease observed log likelihood

Statement

Assume AC. Let n,p,K be positive integers, let x1,…,xn∈Rp have affine span Rp (equivalently, no nonzero v∈Rp makes vTxi constant over all i), and start from a finite Gaussian-mixture parameter θ0=((πk(0),μk(0),Σk(0)))k=1K with positive weights summing to one and symmetric positive-definite covariances. For t=0,…,T−1, where T≥1, set

γik(t):=πk(t)ϕp(xi;μk(t),Σk(t))∑j=1Kπj(t)ϕp(xi;μj(t),Σj(t)),Nk(t):=∑iγik(t),

and update

πk(t+1):=Nk(t)/n,μk(t+1):=∑iγik(t)xiNk(t),Σk(t+1):=∑iγik(t)(xi−μk(t+1))(xi−μk(t+1))TNk(t).

For each t, define

ℓ(θt;x1:n):=∑i=1nlog⁡ ⁣(∑k=1Kπk(t)ϕp(xi;μk(t),Σk(t))).

Every update is well-defined, every θt remains in the stated mixture domain, and

ℓ(θt+1;x1:n)≥ℓ(θt;x1:n)(0≤t<T).

No strict increase, parameter convergence, or global maximum conclusion is asserted.

Facts & Assumptions

Given: Assume AC; take positive integers n,p,K, a full-affine-span sample x1:n, an initial finite Gaussian-mixture parameter, and a finite number T of exact EM updates.

[A1]

The Axiom of Choice: AC is assumed by the finite-Gaussian density construction and by the published KL/EM interface. The density construction also uses countable choice, which AC supplies through [F10]. No stronger choice principle is used.

[F1]

Finite Gaussian mixture with positive-definite component covariances: a finite mixture has positive weights summing to one, SPD component covariances, component density ϕp, observation density fθ(y)=∑kπkϕp(y;μk,Σk), and iid-sample log likelihood ∑ilog⁡fθ(xi).

[F2]

Positive-definite multivariate Gaussian density is normalized: for every positive-definite component covariance, ϕp is finite, strictly positive at each finite observation, and integrates to one with respect to p-dimensional Lebesgue measure.

[F3]

Latent-variable joint and observed-data factorization: a latent-variable model supplies one jointly measurable nonnegative density on parameter, observation, and latent spaces, normalized on every parameter fibre; the observed marginal is its latent integral and the posterior is defined on positive finite marginal fibres.

[F4]

The observed density is the latent marginal under Tonelli: under [F3], the observed marginal is a density, and the normalized latent fibre is a probability density wherever its marginal is positive and finite.

[F5]

Expectation-maximization: exact mode selects an attained maximizer of the expected complete-data log density over an admissible candidate set containing the current parameter; admissible candidates satisfy positive finite observed marginal, directional support, finite KL, and absolute log integrability.

[F6]

EM does not decrease the observed log likelihood: for a normalized jointly measurable complete-data density and current/candidate parameters satisfying those conditions, the observed log-likelihood difference equals the Q difference plus the directional KL divergence; an admissible Q-ascent update therefore cannot decrease observed log likelihood.

[F7]

The full-affine-span Gaussian-mixture M-step maximizes Q: under the stated full-affine-span hypothesis, the finite Gaussian responsibilities have positive effective counts, their weighted covariance matrices are SPD, and the displayed updates are an attained global maximizer of the finite expected complete-data log density over the full mixture domain.

[F8]

Kullback–Leibler divergence: for P≪R, D(P∥R) is the integral of the log Radon–Nikodym derivative with respect to P; on a finite space with positive masses it is a finite sum.

[F9]

Finite, sigma-finite, and semifinite measures and For sigma-finite factors, the product measure exists, has the rectangle formula, is sigma-finite, and is unique: finite-dimensional Lebesgue measure and counting measure on the finite label set are sigma-finite, and their product reference measure exists with the rectangle formula.

[F10]

AC supplies countable selections and prescribed serial paths: AC implies countable choice, as required for the product-Lebesgue identity and the local component-density normalization proof.

[F11]

On Borel subsets of R^{m+n}, the product lambda_m times lambda_n agrees with lambda_{m+n}: under countable choice, finite products of Euclidean Lebesgue measures agree with Lebesgue measure on the corresponding Euclidean product space.

[F12]

Tonelli's theorem for nonnegative measurable functions on a sigma-finite product: a nonnegative product-measurable function on sigma-finite factors has measurable section integrals, and its product integral equals either iterated integral.

[F13]

The product sigma-algebra and its finite iterates: finite product sigma-algebras are generated by measurable rectangles.

[F14]

Continuous functions on Euclidean spaces are Borel measurable: a continuous function on a finite-dimensional Euclidean space is Borel measurable; the relative version on a Borel parameter domain follows by taking relative Borel preimages.

[F16]

The Borel product of R^m and R^n is the Borel sigma-algebra of R^{m+n}: for finite-dimensional Euclidean factors, the product Borel sigma-algebra is the Euclidean Borel sigma-algebra.

[F17]

The measure with density f relative to μ and Probability measures and probability spaces: a nonnegative density q relative to counting measure defines the measure q #, and when its finite sum is one this is a probability measure.

[F18]

Additivity of the nonnegative Lebesgue integral: the nonnegative integral is additive for finite sums of nonnegative measurable functions.

[F19]

The Cauchy-Schwarz inequality for finite sums: for finite real lists (ar) and (br), ∣∑rarbr∣≤(∑rar2)1/2(∑rbr2)1/2.

Proof

1.1A1F1F10F13F14F15F16F19algebra

Let ΘK be the set of mixture parameters in [F1], let Y=(Rp)n with product Lebesgue measure ν=λp⊗n, and let Z={1,…,K}n with counting measure #(B):=∣B∣ for B⊆Z. The parameter domain is Borel: the positive-weight simplex is relatively open in its affine hyperplane, and the SPD cone is open as follows. For a symmetric positive-definite matrix A, the spectral theorem [F15] gives an orthonormal eigenbasis. Every eigenvalue λ has a unit eigenvector u with λ=uTAu>0, so the least eigenvalue λmin⁡(A) is positive. For a symmetric perturbation E, define ∥E∥F:=(∑i,jeij2)1/2. Applying [F19] to the finite lists (eij) and (vivj) gives ∣vTEv∣≤∥E∥F(∑i,jvi2vj2)1/2=∥E∥F∥v∥22. Therefore, whenever ∥E∥F<λmin⁡(A), vT(A+E)v≥(λmin⁡(A)−∥E∥F)∥v∥22>0 for every nonzero v, so A+E is positive definite. This supplies a relative open neighborhood of each A in the symmetric-matrix subspace. For each fixed z∈Z, the formula below is continuous in (η,y)∈ΘK×Y: determinants and inverses are continuous on the SPD cone by [F15], and the remaining operations are sums, products, and exponentials. A continuous map on this Borel subspace has Borel preimages relative to it; those relative Borel sets are ambient Borel. The product-Borel identification for Euclidean factors [F16] and finite discreteness of Z then make the function jointly measurable for the required product sigma-algebra.

2.1A1F1F2F3F9F10F11F12F18step 1.1algebra

Define the complete-data density, relative to ν times counting measure on Z, by p(η,y,z):=∏i=1nπziϕp(yi;μzi,Σzi). Repeated use of [F9] constructs the finite product measures, including ν⊗#, and preserves sigma-finiteness. AC supplies the countable-choice premise of [F11] by [F10]; repeated use of [F11] then identifies ν=λp⊗n with Euclidean Lebesgue measure on Rpn. For each component, [F1,F2] and finite-sum additivity [F18] give ∫fη(yi) λp(dyi)=∑kπk=1. Distributing the finite sum over labels gives ∑z∈Zp(η,y,z)=∏ifη(yi). Repeated Tonelli integration [F12] therefore gives ∑z∈Z∫Yp(η,y,z) ν(dy)=∫Y∏ifη(yi) ν(dy)=∏i∫Rpfη(yi) λp(dyi)=1. Thus p is normalized on each parameter fibre as required by [F3].

3.1F1F2F3F4step 2.1algebra

For a fixed observed sample x1:n, summing the complete density over the finite label set yields mη(x1:n)=∑z∈Zp(η,x1:n,z)=∏i∑kπkϕp(xi;μk,Σk)=∏ifη(xi). Every factor is finite and strictly positive by [F1,F2], so this marginal is positive and finite. Its logarithm is exactly the likelihood ℓ(η;x1:n) in the statement. By [F4], every normalized posterior qηx1:n(z)=p(η,x1:n,z)/mη(x1:n) is a probability mass function. More explicitly it is qηx1:n(z)=∏iγi,zi(η), and every one of its finitely many masses is positive.

4.1F5F6F8F17step 3.1algebra

At any current parameter θ and its exact update θ′, both posterior measures obtained from the probability masses in step 3.1 by [F17] are strictly positive on the same finite label set. Hence qθx1:n≪qθ′x1:n, and the directional KL divergence is a sum of finitely many finite terms by [F8], so it is finite. For each z, p(θ,x1:n,z) and p(θ′,x1:n,z) are strictly positive and finite; their logarithms are finite. The posterior expectations of the absolute log densities are finite sums and therefore finite. Thus every admissibility condition in [F5,F6] holds for this current/candidate pair.

4.2F1F7step 3.1algebra

The posterior in step 3.1 factors over observations. Taking the finite expectation of the complete log density gives ∑z∈Zqθx1:n(z)log⁡p(ϑ,x1:n,z)=∑i=1n∑k=1Kγik(θ)log⁡ ⁣(ρkϕp(xi;mk,Vk))=Q(ϑ∣θ), where Q is the function in [F7]. Indeed, expand log⁡p as the sum over i, sum first over zi=k, and use ∑zj=1Kγj,zj(θ)=1 for every j≠i. This is a finite-sum identity, and all terms are finite by step 3.1.

5.1F5F6F7step 4.1step 4.2algebra

The local exact M-step result [F7] says θ′ globally maximizes this same Q over the full mixture domain. Step 4.1 verifies that both θ and θ′ are admissible, so the two-point candidate set {θ,θ′} is admissible and contains the current parameter; the global maximizer θ′ is therefore an attained maximizer over this set as required by the exact mode of [F5]. Consequently Q(θ′∣θ)≥Q(θ∣θ). Applying the identity and nonnegativity conclusion of [F6], with the verified conditions from step 4.1, yields ℓ(θ′;x1:n)−ℓ(θ;x1:n)=Q(θ′∣θ)−Q(θ∣θ)+D(qθx1:n∥qθ′x1:n)≥0. Thus one exact update does not decrease observed log likelihood.

6.1givenF1F7step 3.1step 5.1induction∎

Initially θ0 is in the mixture domain by hypothesis. If θt is in that domain, step 3.1 supplies positive finite marginals and positive responsibilities, and [F7] supplies the next positive weights and SPD covariances; hence θt+1 is again in the domain. Induction gives valid parameters through T, and step 5.1 applies at each t<T, proving every displayed likelihood inequality. This proves the claim without asserting strict increase or convergence.

4 · Examples, counterexamples and false statements

None yet.

Sources