Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Stacked visibilities, circular complex Gaussian noise and white-noise likelihood for SAGE calibration

Definition
Arxiv0810_5751_Basic

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

complex-gaussianem-algorithmmaximum-likelihoodradio-interferometrysage-algorithm

Objects of Sections II-IV of Yatawatta, Zaroubi, de Bruyn, Koopmans and Noordam (2008).

  1. Stacked data (Section II). An array has NNN dual-polarised stations. A baseline is a pair (p,q)(p,q)(p,q) with p<qp<qp<q; autocorrelations p=qp=qp=q are ignored. For a set BBB of baselines, the data vector y\mathbf yy stacks the four entries of vec(Vpq)\mathrm{vec}(\mathbf V_{pq})vec(Vpq​) of each 2×22\times22×2 visibility matrix Vpq\mathbf V_{pq}Vpq​, (p,q)∈B(p,q)\in B(p,q)∈B; its length MMM is 4∣B∣4|B|4∣B∣, the size of the index set B×{1,2}2B\times\{1,2\}^2B×{1,2}2.
  2. Circular complex Gaussian law. A random vector z∈Cι\mathbf z\in\mathbb C^\iotaz∈Cι is zero-mean circular complex Gaussian with covariance C=E{zzH}\mathbf C=E\{\mathbf z\mathbf z^H\}C=E{zzH} if Eexp⁡(i Re(wHz))=exp⁡(−wHCw/4)E\exp\big(i\,\mathrm{Re}(\mathbf w^H\mathbf z)\big)=\exp(-\mathbf w^H\mathbf C\mathbf w/4)Eexp(iRe(wHz))=exp(−wHCw/4) for every w∈Cι\mathbf w\in\mathbb C^\iotaw∈Cι. For positive definite C\mathbf CC this is the law with density (πM∣C∣)−1exp⁡(−zHC−1z)(\pi^M|\mathbf C|)^{-1}\exp(-\mathbf z^H\mathbf C^{-1}\mathbf z)(πM∣C∣)−1exp(−zHC−1z) used in eq. (15).
  3. EM noise split (eq. (8)). For weights β1,…,βK\beta_1,\dots,\beta_Kβ1​,…,βK​ and an M×MM\times MM×M covariance Π\mathbf\PiΠ, the stacked noise components (n~1,…,n~K)(\tilde{\mathbf n}_1,\dots,\tilde{\mathbf n}_K)(n~1​,…,n~K​) have covariance E{n~in~jH}=βiδijΠE\{\tilde{\mathbf n}_i\tilde{\mathbf n}_j^H\}=\beta_i\delta_{ij}\mathbf\PiE{n~i​n~jH​}=βi​δij​Π.
  4. Residual. For source contributions si:CP→CM\mathbf s_i:\mathbb C^P\to\mathbb C^Msi​:CP→CM, i=1,…,Ki=1,\dots,Ki=1,…,K, and θ∈CP\boldsymbol\theta\in\mathbb C^Pθ∈CP, the residual is r(θ)=y−∑i=1Ksi(θ)\mathbf r(\boldsymbol\theta)=\mathbf y-\sum_{i=1}^K\mathbf s_i(\boldsymbol\theta)r(θ)=y−∑i=1K​si​(θ) and ∥r(θ)∥2=rHr\|\mathbf r(\boldsymbol\theta)\|^2=\mathbf r^H\mathbf r∥r(θ)∥2=rHr.
  5. Likelihood (eqs. (15)-(16)). f(y∣θ)=(πM∣Π∣)−1exp⁡(−rHΠ−1r)f(\mathbf y\mid\boldsymbol\theta)=(\pi^M|\mathbf\Pi|)^{-1}\exp(-\mathbf r^H\mathbf\Pi^{-1}\mathbf r)f(y∣θ)=(πM∣Π∣)−1exp(−rHΠ−1r), and for white noise Π=σ2I\mathbf\Pi=\sigma^2\mathbf IΠ=σ2I the log-likelihood is L(θ,σ2)=log⁡f(y∣θ)L(\boldsymbol\theta,\sigma^2)=\log f(\mathbf y\mid\boldsymbol\theta)L(θ,σ2)=logf(y∣θ).
  6. Section IV estimates. σ2^=1Mr(θ^)Hr(θ^)\widehat{\sigma^2}=\frac1M\mathbf r(\hat{\boldsymbol\theta})^H\mathbf r(\hat{\boldsymbol\theta})σ2=M1​r(θ^)Hr(θ^) (eq. (17)); L(θ^)=−Mlog⁡π−M−Mlog⁡(1Mr(θ^)Hr(θ^))L(\hat{\boldsymbol\theta})=-M\log\pi-M-M\log\big(\frac1M\mathbf r(\hat{\boldsymbol\theta})^H\mathbf r(\hat{\boldsymbol\theta})\big)L(θ^)=−Mlogπ−M−Mlog(M1​r(θ^)Hr(θ^)) (eq. (18)); AIC(K)=−2L(θ^)+2(2P)\mathrm{AIC}(K)=-2L(\hat{\boldsymbol\theta})+2(2P)AIC(K)=−2L(θ^)+2(2P) (eq. (19)).

Formalization Note The paper writes n∼N(0,Π)\mathbf n\sim\mathcal N(\mathbf 0,\mathbf\Pi)n∼N(0,Π) and uses the circular density (15); the definition makes circularity explicit through the characteristic function. The determinant and the quadratic form in (15) are taken as real parts, which they are for Hermitian Π\mathbf\PiΠ. The covariance is written Pcov in Lean.

Definition code
import Mathlib

/-!
Yatawatta, Zaroubi, de Bruyn, Koopmans and Noordam, *Radio interferometric calibration using the
SAGE algorithm*, arXiv:0810.5751v1 (2008), 13th IEEE DSP Workshop (2009): the stacked
cross-correlation data of Section II (eqs. (2)-(4)), the circular complex Gaussian noise model of
Sections II-III (eqs. (4), (8), (15)), and the white-noise likelihood, maximum-likelihood noise
variance, concentrated log-likelihood and Akaike criterion of Section IV (eqs. (5), (15)-(19)).
-/

open MeasureTheory Matrix

noncomputable section

namespace Arxiv0810_5751

/-- Section II, text before eq. (4): the cross-correlation baselines `(p, q)` with `p < q` of an
array of `N` stations (autocorrelations `p = q` are ignored). -/
def crossBaselines (N : ℕ) : Finset (Fin N × Fin N) :=
  Finset.univ.filter fun b => b.1 < b.2

/-- Section II, eq. (4): the index set of the stacked data vector `y` built from the baselines in
`B`: each baseline `(p, q)` contributes the four entries of `vec(V_pq)`, `V_pq` a `2 × 2` matrix.
The length `M` of `y` is the cardinality of this type. -/
abbrev VisIndex {N : ℕ} (B : Finset (Fin N × Fin N)) : Type :=
  B × (Fin 2 × Fin 2)

/-- Section II, eqs. (2)-(4): the stacked vector `y = [v_12ᵀ v_13ᵀ … v_(N-1)Nᵀ]ᵀ` of the
vectorised visibilities `v_pq = vec(V_pq)` over the baselines in `B`. -/
def stackedVis {N : ℕ} (V : Fin N → Fin N → Matrix (Fin 2) (Fin 2) ℂ)
    (B : Finset (Fin N × Fin N)) : VisIndex B → ℂ :=
  fun x => V x.1.1.1 x.1.1.2 x.2.1 x.2.2

/-- Section II (`n ∼ N(0, Π)`) and eq. (15): `ν` is the law of a zero-mean circular complex
Gaussian vector with covariance `C = E{z zᴴ}`, characterised by its characteristic function
`E exp(i Re(wᴴ z)) = exp(-wᴴ C w / 4)` for all `w`. For positive definite `C` this is the law with
density `(π^M |C|)⁻¹ exp(-zᴴ C⁻¹ z)` of eq. (15). -/
def IsCircGaussian {ι : Type*} [Fintype ι] (ν : Measure (ι → ℂ)) (C : Matrix ι ι ℂ) : Prop :=
  ∀ w : ι → ℂ, ∫ z, Complex.exp (Complex.I * ((star w ⬝ᵥ z).re : ℂ)) ∂ν =
    Complex.exp (-(1 / 4 : ℂ) * (star w ⬝ᵥ C *ᵥ w))

/-- Section III-A, eq. (8): the covariance `E{ñ_i ñ_jᴴ} = β_i δ_ij Π` of the stacked noise
components `(ñ_1, …, ñ_K)`, as a matrix indexed by (component, data entry). -/
def emNoiseCov {K M : ℕ} (β : Fin K → ℝ) (Pcov : Matrix (Fin M) (Fin M) ℂ) :
    Matrix (Fin K × Fin M) (Fin K × Fin M) ℂ :=
  fun a b => if a.1 = b.1 then (β a.1 : ℂ) * Pcov a.2 b.2 else 0

/-- Section II, eqs. (4)-(5): the residual `y - ∑_{i=1}^K s_i(θ)` of the data `y ∈ ℂ^M` for the
source contributions `s_i : ℂ^P → ℂ^M` at the parameter `θ ∈ ℂ^P`. -/
def residual {K M P : ℕ} (y : Fin M → ℂ) (s : Fin K → (Fin P → ℂ) → Fin M → ℂ)
    (θ : Fin P → ℂ) : Fin M → ℂ :=
  y - ∑ i, s i θ

/-- Eqs. (5), (16)-(18): the squared residual norm
`‖y - ∑_i s_i(θ)‖² = (y - ∑_i s_i(θ))ᴴ (y - ∑_i s_i(θ))`. -/
def residSq {K M P : ℕ} (y : Fin M → ℂ) (s : Fin K → (Fin P → ℂ) → Fin M → ℂ)
    (θ : Fin P → ℂ) : ℝ :=
  ∑ m, Complex.normSq (residual y s θ m)

/-- Section IV, eq. (15): the likelihood
`f(y | θ) = (π^M |Π|)⁻¹ exp(-(y - ∑_i s_i(θ))ᴴ Π⁻¹ (y - ∑_i s_i(θ)))` of the observation model (4)
with circular complex Gaussian noise of covariance `Π` (`|Π|` the determinant). -/
def likelihood {K M P : ℕ} (Pcov : Matrix (Fin M) (Fin M) ℂ) (y : Fin M → ℂ)
    (s : Fin K → (Fin P → ℂ) → Fin M → ℂ) (θ : Fin P → ℂ) : ℝ :=
  (Real.pi ^ M * (Pcov.det).re)⁻¹ *
    Real.exp (-(star (residual y s θ) ⬝ᵥ Pcov⁻¹ *ᵥ residual y s θ).re)

/-- Section IV, eq. (16): the log-likelihood `L(θ) = log f(y | θ)` for white noise `Π = σ² I`,
as a function of the noise variance `σ2 = σ²` and the parameter `θ`. -/
def whiteLogLik {K M P : ℕ} (σ2 : ℝ) (y : Fin M → ℂ) (s : Fin K → (Fin P → ℂ) → Fin M → ℂ)
    (θ : Fin P → ℂ) : ℝ :=
  Real.log (likelihood ((σ2 : ℂ) • (1 : Matrix (Fin M) (Fin M) ℂ)) y s θ)

/-- Section IV, eq. (17): the noise-variance estimate
`σ̂² = (1/M) (y - ∑_i s_i(θ̂))ᴴ (y - ∑_i s_i(θ̂))`. -/
def mlNoiseVar {K M P : ℕ} (y : Fin M → ℂ) (s : Fin K → (Fin P → ℂ) → Fin M → ℂ)
    (θ : Fin P → ℂ) : ℝ :=
  residSq y s θ / M

/-- Section IV, eq. (18): `L(θ̂) = -M log π - M - M log((1/M)(y - ∑_i s_i(θ̂))ᴴ(y - ∑_i s_i(θ̂)))`. -/
def concLogLik {K M P : ℕ} (y : Fin M → ℂ) (s : Fin K → (Fin P → ℂ) → Fin M → ℂ)
    (θ : Fin P → ℂ) : ℝ :=
  -(M : ℝ) * Real.log Real.pi - M - M * Real.log (residSq y s θ / M)

/-- Section IV, eq. (19): Akaike's criterion `AIC(K) = -2 L(θ̂) + 2(2P)` for the model with `K`
sources and `P` complex parameters (`2P` real parameters), with `L(θ̂)` as in eq. (18). -/
def aic {K M P : ℕ} (y : Fin M → ℂ) (s : Fin K → (Fin P → ℂ) → Fin M → ℂ)
    (θ : Fin P → ℂ) : ℝ :=
  -2 * concLogLik y s θ + 2 * (2 * P)

end Arxiv0810_5751
Source
Yatawatta, Zaroubi, de Bruyn, Koopmans and Noordam, Radio interferometric calibration using the SAGE algorithm, arXiv:0810.5751v1 (2008), Section II (eqs. (2)-(5)), Section III-A (eq. (8)), Section IV (eqs. (15)-(19)), PDF pp. 2-4
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

crossBaselines. For a natural number NNN, this is the finite set of ordered pairs of station indices

BN={(p,q):p,q∈{0,1,…,N−1}, p<q}.\mathcal{B}_N = \{(p,q) : p, q \in \{0,1,\dots,N-1\},\ p < q\}.BN​={(p,q):p,q∈{0,1,…,N−1}, p<q}.

Indices start at 000, so station ppp is one of 0,…,N−10,\dots,N-10,…,N−1. Pairs with p=qp = qp=q and pairs with p>qp > qp>q are excluded. The set has N(N−1)/2N(N-1)/2N(N−1)/2 elements and is empty when N=0N = 0N=0 or N=1N = 1N=1.

VisIndex. Let NNN be a natural number and BBB any finite set of ordered pairs (p,q)(p,q)(p,q) with p,q∈{0,…,N−1}p, q \in \{0,\dots,N-1\}p,q∈{0,…,N−1}. BBB need not be BN\mathcal{B}_NBN​; it may contain pairs with p≥qp \ge qp≥q, and it may be empty. Then VisIndex(B)\mathrm{VisIndex}(B)VisIndex(B) is the finite index set

VisIndex(B)={ (b,(j,k)):b∈B, j,k∈{0,1} }.\mathrm{VisIndex}(B) = \{\,(b,(j,k)) : b \in B,\ j,k \in \{0,1\}\,\}.VisIndex(B)={(b,(j,k)):b∈B, j,k∈{0,1}}.

It has exactly 4∣B∣4|B|4∣B∣ elements and is empty if BBB is empty. No ordering of these indices is specified.

stackedVis. The inputs are:

  • a natural number NNN;
  • an assignment VVV giving a complex 2×22\times 22×2 matrix VpqV_{pq}Vpq​ to every ordered pair (p,q)(p,q)(p,q) with p,q∈{0,…,N−1}p,q \in \{0,\dots,N-1\}p,q∈{0,…,N−1}, including p=qp = qp=q and p>qp > qp>q;
  • a finite set BBB of such pairs.

The stacked data is the complex-valued function yyy on VisIndex(B)\mathrm{VisIndex}(B)VisIndex(B) given by

y((p,q),(j,k))=(Vpq)jk,(p,q)∈B, j,k∈{0,1}.y_{((p,q),(j,k))} = (V_{pq})_{jk}, \qquad (p,q)\in B,\ j,k\in\{0,1\}.y((p,q),(j,k))​=(Vpq​)jk​,(p,q)∈B, j,k∈{0,1}.

Here (Vpq)jk(V_{pq})_{jk}(Vpq​)jk​ is the entry of VpqV_{pq}Vpq​ in row jjj, column kkk, with rows and columns indexed from 000. So yyy just collects the four entries of each VpqV_{pq}Vpq​ with (p,q)∈B(p,q) \in B(p,q)∈B. It is a function on an unordered finite index set, not a column vector with a prescribed stacking order. Values of VVV at pairs outside BBB are not used.

IsCircGaussian. Let ι\iotaι be any finite index set (possibly empty), ν\nuν any measure on Cι\mathbb{C}^\iotaCι, and CCC any complex ι×ι\iota\times\iotaι×ι matrix. No Hermitian, positive-semidefinite or invertibility assumption is made on CCC. The predicate holds exactly when, for every w∈Cιw\in\mathbb{C}^\iotaw∈Cι,

∫exp⁡ ⁣(i Re(wHz)) dν(z)=exp⁡ ⁣(−14 wHC w).\int \exp\!\big(i\,\mathrm{Re}(w^{H} z)\big)\,d\nu(z) = \exp\!\big(-\tfrac14\, w^{H} C\, w\big).∫exp(iRe(wHz))dν(z)=exp(−41​wHCw).

In this formula:

  • wHz=∑mwm‾ zmw^{H} z = \sum_{m} \overline{w_m}\, z_mwHz=∑m​wm​​zm​;
  • wHCw=∑m,nwm‾ Cmn wnw^{H} C w = \sum_{m,n} \overline{w_m}\, C_{mn}\, w_nwHCw=∑m,n​wm​​Cmn​wn​, a complex number that may be non-real if CCC is not Hermitian;
  • the integral is the Lebesgue–Bochner integral of a complex-valued function, which by convention is 000 when the integrand is not integrable.

Taking w=0w = 0w=0 gives ∫1 dν=1\int 1\,d\nu = 1∫1dν=1. Under these integral conventions this forces ν\nuν to be a probability measure, since the integral of 111 over a measure of infinite total mass is taken to be 000. Nothing about densities, means, or CCC being the actual covariance is stated separately; the predicate is exactly this characteristic-function identity.

emNoiseCov. The inputs are natural numbers K,MK, MK,M, a real vector β=(β0,…,βK−1)\beta = (\beta_0,\dots,\beta_{K-1})β=(β0​,…,βK−1​), and a complex M×MM\times MM×M matrix Π\PiΠ. No sign, normalization or other constraint is placed on β\betaβ or Π\PiΠ. The output is the complex matrix indexed by pairs (i,m)(i,m)(i,m) with i∈{0,…,K−1}i\in\{0,\dots,K-1\}i∈{0,…,K−1} and m∈{0,…,M−1}m\in\{0,\dots,M-1\}m∈{0,…,M−1}, with entries

[emNoiseCov(β,Π)](i,m),(j,n)={βi Πmnif i=j,0if i≠j.\big[\mathrm{emNoiseCov}(\beta,\Pi)\big]_{(i,m),(j,n)} = \begin{cases} \beta_i\,\Pi_{mn} & \text{if } i = j,\\ 0 & \text{if } i \ne j.\end{cases}[emNoiseCov(β,Π)](i,m),(j,n)​={βi​Πmn​0​if i=j,if i=j.​

Equivalently, it is the block-diagonal matrix diag⁡(β0Π,…,βK−1Π)\operatorname{diag}(\beta_0\Pi,\dots,\beta_{K-1}\Pi)diag(β0​Π,…,βK−1​Π). It is the empty matrix if K=0K = 0K=0 or M=0M = 0M=0.

residual. The inputs are:

  • natural numbers K,M,PK, M, PK,M,P;
  • a data vector y∈CMy\in\mathbb{C}^My∈CM;
  • arbitrary functions s0,…,sK−1:CP→CMs_0,\dots,s_{K-1} : \mathbb{C}^P\to\mathbb{C}^Ms0​,…,sK−1​:CP→CM, with no continuity or other assumption;
  • a parameter θ∈CP\theta\in\mathbb{C}^Pθ∈CP.

The residual is the vector

r(θ)=y−∑i=0K−1si(θ)∈CM.r(\theta) = y - \sum_{i=0}^{K-1} s_i(\theta) \in \mathbb{C}^M.r(θ)=y−i=0∑K−1​si​(θ)∈CM.

When K=0K = 0K=0 the sum is empty and r(θ)=yr(\theta) = yr(θ)=y.

residSq. With K,M,PK, M, PK,M,P, y∈CMy\in\mathbb{C}^My∈CM, arbitrary si:CP→CMs_i:\mathbb{C}^P\to\mathbb{C}^Msi​:CP→CM and θ∈CP\theta\in\mathbb{C}^Pθ∈CP as above, this is the nonnegative real number

∥r(θ)∥2=∑m=0M−1∣r(θ)m∣2,r(θ)=y−∑i=0K−1si(θ).\|r(\theta)\|^2 = \sum_{m=0}^{M-1} \big|r(\theta)_m\big|^2, \qquad r(\theta) = y - \sum_{i=0}^{K-1} s_i(\theta).∥r(θ)∥2=m=0∑M−1​​r(θ)m​​2,r(θ)=y−i=0∑K−1​si​(θ).

It equals 000 when M=0M = 0M=0.

likelihood. The inputs are an arbitrary complex M×MM\times MM×M matrix Π\PiΠ and K,PK, PK,P, yyy, sis_isi​, θ\thetaθ as above. No Hermitian, positivity or invertibility assumption is made on Π\PiΠ. With r=r(θ)=y−∑isi(θ)r = r(\theta) = y - \sum_i s_i(\theta)r=r(θ)=y−∑i​si​(θ), the real number defined is

f(y∣θ)=(πM Re(det⁡Π))−1 exp⁡ ⁣(−Re(rH Π−1 r)).f(y\mid\theta) = \big(\pi^M \,\mathrm{Re}(\det \Pi)\big)^{-1}\, \exp\!\big(-\mathrm{Re}(r^{H}\,\Pi^{-1}\,r)\big).f(y∣θ)=(πMRe(detΠ))−1exp(−Re(rHΠ−1r)).

Only the real part of det⁡Π\det\PidetΠ and the real part of the quadratic form are used. Three conventions affect the value:

  • Π−1\Pi^{-1}Π−1 is the usual inverse when det⁡Π≠0\det\Pi\neq 0detΠ=0 and the zero matrix when det⁡Π=0\det\Pi = 0detΠ=0.
  • x−1x^{-1}x−1 is taken to be 000 for x=0x = 0x=0, so f(y∣θ)=0f(y\mid\theta) = 0f(y∣θ)=0 whenever Re(det⁡Π)=0\mathrm{Re}(\det\Pi) = 0Re(detΠ)=0.
  • If Re(det⁡Π)<0\mathrm{Re}(\det\Pi) < 0Re(detΠ)<0 the value is negative.

For M=0M = 0M=0, det⁡Π=1\det\Pi = 1detΠ=1 and the value is 111.

whiteLogLik. The inputs are a real number σ2\sigma^2σ2 (an arbitrary real, possibly zero or negative) and K,M,PK, M, PK,M,P, yyy, sis_isi​, θ\thetaθ as above. The value is log⁡\loglog of the likelihood above with Π=σ2IM\Pi = \sigma^2 I_MΠ=σ2IM​. Here log⁡\loglog denotes the real logarithm extended by log⁡x=log⁡∣x∣\log x = \log|x|logx=log∣x∣ for x≠0x \neq 0x=0 and log⁡0=0\log 0 = 0log0=0. Unfolding, there are three cases:

  • If σ2≠0\sigma^2 \ne 0σ2=0:
L(σ2,θ)=−Mlog⁡π−Mlog⁡∣σ2∣−∥r(θ)∥2σ2,∥r(θ)∥2=∑m∣ym−∑isi(θ)m∣2.L(\sigma^2,\theta) = -M\log\pi - M\log|\sigma^2| - \frac{\|r(\theta)\|^2}{\sigma^2}, \qquad \|r(\theta)\|^2 = \sum_{m}\Big|y_m - \sum_{i} s_i(\theta)_m\Big|^2.L(σ2,θ)=−Mlogπ−Mlog∣σ2∣−σ2∥r(θ)∥2​,∥r(θ)∥2=m∑​​ym​−i∑​si​(θ)m​​2.
  • If σ2=0\sigma^2 = 0σ2=0 and M≥1M \ge 1M≥1, the determinant vanishes, the likelihood is 000, and L=0L = 0L=0.
  • If M=0M = 0M=0, then L=0L = 0L=0.

mlNoiseVar. For K,M,PK, M, PK,M,P, yyy, sis_isi​ as above and an arbitrary θ∈CP\theta\in\mathbb{C}^Pθ∈CP, this is the real number

σ^2(θ)=1M∑m=0M−1∣ym−∑i=0K−1si(θ)m∣2.\hat\sigma^2(\theta) = \frac{1}{M}\sum_{m=0}^{M-1}\Big|y_m - \sum_{i=0}^{K-1} s_i(\theta)_m\Big|^2.σ^2(θ)=M1​m=0∑M−1​​ym​−i=0∑K−1​si​(θ)m​​2.

When M=0M = 0M=0 the value is 000, by the convention that division by zero gives 000. θ\thetaθ is any parameter: it is not required to be a maximizer or estimate of anything, and nothing is asserted about this quantity maximizing a likelihood.

concLogLik. For K,M,PK, M, PK,M,P, yyy, sis_isi​ as above and an arbitrary θ∈CP\theta\in\mathbb{C}^Pθ∈CP, this is the real number defined directly by the formula

L(θ)=−Mlog⁡π−M−Mlog⁡ ⁣(∥r(θ)∥2M),∥r(θ)∥2=∑m∣ym−∑isi(θ)m∣2.L(\theta) = -M\log\pi - M - M\log\!\Big(\frac{\|r(\theta)\|^2}{M}\Big), \qquad \|r(\theta)\|^2 = \sum_{m}\Big|y_m - \sum_{i} s_i(\theta)_m\Big|^2.L(θ)=−Mlogπ−M−Mlog(M∥r(θ)∥2​),∥r(θ)∥2=m∑​​ym​−i∑​si​(θ)m​​2.

It is not defined as an evaluation of whiteLogLik, and θ\thetaθ is not required to be a maximizer. Two edge cases follow from the conventions log⁡0=0\log 0 = 0log0=0 and x/0=0x/0 = 0x/0=0:

  • If ∥r(θ)∥2=0\|r(\theta)\|^2 = 0∥r(θ)∥2=0 and M≥1M\ge1M≥1, then L(θ)=−Mlog⁡π−ML(\theta) = -M\log\pi - ML(θ)=−Mlogπ−M.
  • If M=0M = 0M=0, then L(θ)=0L(\theta) = 0L(θ)=0.

aic. For K,M,PK, M, PK,M,P, yyy, sis_isi​ as above and an arbitrary θ∈CP\theta\in\mathbb{C}^Pθ∈CP, this is the real number

AIC(θ)=−2 L(θ)+2⋅(2P)=2Mlog⁡π+2M+2Mlog⁡ ⁣(∥r(θ)∥2M)+4P,\mathrm{AIC}(\theta) = -2\,L(\theta) + 2\cdot(2P) = 2M\log\pi + 2M + 2M\log\!\Big(\frac{\|r(\theta)\|^2}{M}\Big) + 4P,AIC(θ)=−2L(θ)+2⋅(2P)=2Mlogπ+2M+2Mlog(M∥r(θ)∥2​)+4P,

where L(θ)L(\theta)L(θ) is the concLogLik value above, with its conventions for ∥r(θ)∥2=0\|r(\theta)\|^2 = 0∥r(θ)∥2=0 and M=0M = 0M=0. The penalty term 4P4P4P depends only on the length PPP of the parameter vector θ\thetaθ. The number of sources KKK enters only through the sum ∑i<Ksi(θ)\sum_{i<K} s_i(\theta)∑i<K​si​(θ) inside the residual, not through the penalty.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me