Skip to content

Notation Glossary — LaTeX ↔ Code

This page maps the mathematical symbols used in the IEEE CMCSI 2023 paper and in the LaTeX companion report (docs/PMCParametersAnalysis/) to the corresponding identifiers in the Python codebase.

Reading order: equations are written in LaTeX, the paper section number is given as §paper, the LaTeX-companion section as §report, and the code reference as module:line.


1. Model parameters

The PMM is fully specified by the five-tuple (a, b, c, d, e) with each coordinate in (-1, 1). The HMM is the constrained subset c = a · b², d = e = a · b.

Symbol Code Definition
a, b, c, d, e ParamPMM.get_a() … get_e() The five free covariances; param_pmm.py:118-122
Γ_PMM ParamPMM.get_gamma() → 4×4 Cov[(X₁, Y₁, X₂, Y₂)ᵀ] ; param_pmm.py:206-214
Q₁ ParamPMM.get_q1() → 2×2 Top-left block of Γ ; param_pmm.py:220
Q₂ ParamPMM.get_q2() → 2×2 Bottom-left block of Γ ; param_pmm.py:221
A = Q₂ Q₁⁻¹ ParamPMM.get_a_matrix() → 2×2 Transition matrix ; param_pmm.py:241
BBᵀ = Q₁ − A Q₂ᵀ ParamPMM.get_bbt() → 2×2 Innovation covariance (Schur complement) ; param_pmm.py:255
B ParamPMM.get_b_matrix() → 2×2 Square root with B Bᵀ = BBᵀ ; param_pmm.py:268

Equation references: eq:Gamma_PMM (Intro), eq:A/eq:B (Intro), eq:APMM/eq:BBt_PMM (§report 1), eq:AHMM/eq:BBtHMM (§report 1).

2. Decomposed coefficients

The 2×2 matrices A and BBᵀ are decomposed into scalars throughout the paper:

Symbol Code Position
α₁ get_alpha_1() A[0, 0] = (a − b·e) / (1 − b²)
α₂ get_alpha_2() A[0, 1] = (e − b·a) / (1 − b²)
α₃ get_alpha_3() A[1, 0] = (d − b·c) / (1 − b²)
α₄ get_alpha_4() A[1, 1] = (c − b·d) / (1 − b²)
β₁ get_beta_1() BBᵀ[0, 0]
β₂ get_beta_2() BBᵀ[0, 1] = BBᵀ[1, 0]
β₃ get_beta_3() BBᵀ[1, 1]
α_{i,k} power_a_generator(k) Entries of Aᵏ ; param_pmm.py:196-202

Convenience tuples: get_alpha_1234() and get_beta_123() return the four α-scalars and three β-scalars in one call.

3. State and observation processes

Symbol Code Meaning
Xₙ first component of simulate_generator() yields Hidden state at time n
Yₙ second component Observation at time n
Zₙ = (Xₙ, Yₙ)ᵀ full 2-vector yielded Joint state-observation pair
Uₙ, Vₙ Wₙ in eq:modelecouple i.i.d. standard Gaussian innovations
y₁ⁿ y_array argument Observed trajectory up to time n

Initial law (X₁, Y₁) ~ N(0, Q₁) is implemented in PMMSimulator1D.simulate_generator() via get_mu_0() and get_gamma_0() (pmm_simulator.py:91-96).

4. Filter quantities

The filter computes the conditional law p(Xₙ | y₁ⁿ) — assumed Gaussian because the model is jointly Gaussian.

LaTeX Code Meaning
μₙ = E[Xₙ | y₁ⁿ] e_filter (scalar yielded by filter_generator) Conditional mean ; pmm_filter.py:154
Σₙ = Var[Xₙ | y₁ⁿ] var_filter (scalar yielded) Conditional variance ; pmm_filter.py:124
Sₙ = Var[(Xₙ, Yₙ) | y₁ⁿ⁻¹] s_n (2×2 array yielded) Joint one-step covariance ; pmm_filter.py:114
Sₙˣˣ, Sₙˣʸ, Sₙʸʸ s_n[0, 0], s_n[0, 1], s_n[1, 1] Block scalars of Sₙ
mₙˣ, mₙʸ m[0], m[1] One-step mean of (Xₙ, Yₙ)

Recursion (eq:Snpun of §report Annexe 1):

Σₙ₊₁ = Sₙ₊₁ˣˣ − (Sₙ₊₁ˣʸ)² / Sₙ₊₁ʸʸ
Sₙ₊₁ = Σₙ · [[α₁², α₁α₃], [α₁α₃, α₃²]] + BBᵀ

5. Predictor quantities

After filtering up to start_predict_index, the predictor forecasts ahead by k steps. Equations eq:EspPred, eq:VarPred of §report 1.

LaTeX Code Meaning
E[Xₙ₊ₖ | y₁ⁿ] e_predict in predict_generator k-step forecast of X ; pmm_predictor.py:119
E[Yₙ₊ₖ | y₁ⁿ] y_predict in predict_generator k-step forecast of Y (7th yielded column) ; pmm_predictor.py:120
Var[(Xₙ₊ₖ, Yₙ₊ₖ) | y₁ⁿ] s_n yielded by var_predict_generator Forecast covariance ; pmm_predictor.py:78-90
Aᵏ yielded by power_a_generator(k) k-th matrix power, used for the closed-form forecast mean

Recursion: Sₙ₊ₖ₊₁ = A Sₙ₊ₖ Aᵀ + BBᵀ → pmm_predictor.py:83.

6. Theoretical MSE coefficients

The closed-form MSE difference between PMM and HMM hypotheses is built from the gamma table γ_{i,n} representing how each past observation Yᵢ contributes to E[Xₙ | y₁ⁿ].

LaTeX Code Equation
γ₁,₁ = b tab_gamma[0, 0] = self._b eq:gamma11, pmm_theoretical.py:112
γₙ,ₙ compute_gamma_n_n eq:gammann (paper Eq. 19), pmm_theoretical.py:73-81
γₙ₋₁,ₙ compute_gamma_n_nm1 eq:gammanm1n (paper Eq. 20), pmm_theoretical.py:83-88
γᵢ,ₙ (i ≤ n−2) compute_gamma_i_n eq:gammain (paper Eq. 21), pmm_theoretical.py:90-92
γₙ,ₙ₊ₖ compute_gamma_n_npk eq:gammannpk (paper Eq. 23), pmm_theoretical.py:94-96
γᵢ,ₙ₊ₖ (i ≤ n−1) compute_gamma_i_npk eq:gammainpk (paper Eq. 24), pmm_theoretical.py:98-100

The instantaneous MSE difference (paper Eq. 21+25) is computed by compute_instant_mse_diff (pmm_theoretical.py:143-177) using the covariance E[Yᵢ Yⱼ] = b · α₃,|i−j| + α₄,|i−j| (i ≠ j) or 1 (i = j).

7. Asymptotic limits

7.1 Filter MSE asymptote (§report 4 / paper §5.1)

The limit U = lim Σₙ satisfies the quadratic

O · U² + P · U + Q = 0

with

Coefficient Code LaTeX
O = α₃² FilterLimitQuadratic.o eq:limitefiltrage
P = β₃(1 − α₁²) − β₁α₃² + 2β₂α₁α₃ FilterLimitQuadratic.p idem
Q = β₂² − β₁β₃ = − det(BBᵀ) FilterLimitQuadratic.q idem
Δ = P² − 4OQ FilterLimitQuadratic.delta discriminant
ℓ₁, ℓ₂ FilterLimitQuadratic.l1, .l2 real roots, NaN otherwise

Computed by _compute_filter_quadratic (pmm_theoretical.py:255-285).

7.2 Prediction MSE asymptote (§report 5 / paper §6)

The limit Σ_∞ = lim Var[(Xₙ₊ₖ, Yₙ₊ₖ) | y₁ⁿ] satisfies the linear system Λ ψ = β with ψ = (S, T, V)ᵀ and

        ┌  1 − α₁²        −2α₁α₂              −α₂²       ┐
Λ  =    │ −α₁α₃           1 − α₁α₄ − α₂α₃     −α₂α₄      │
        └ −α₃²            −2α₃α₄              1 − α₄²    ┘
Symbol Code Position
Λ lambda_pmm 3×3 matrix in _compute_smoothing_lambda, pmm_theoretical.py:303
det Λ det_lambda_pmm scalar, same function :304
β = (β₁, β₂, β₃)ᵀ beta_vec RHS in :305
(S, T, V) smoothing (3-tuple) Solution; (1, b, 1) for non-singular Λ

When det Λ ≠ 0 the closed-form solution simplifies to (S, T, V) = (1, b, 1) (verified symbolically in tutorial 06).

8. Diagnostic flags

Code key Meaning File
det_bbt_pmm det(BBᵀ); zero ⇔ noise on a 1D subspace _basic_param_summary
det_gamma_pmm det(Γ); equals (1−b²)·det(BBᵀ) (LaTeX Annexe 2) idem
det_a_pmm det(A); zero ⇔ HMM (rank-1 A) idem
sigma_12345_equal True iff Σ₁ = … = Σ₅ — model with constant filter MSE _sigma_equality_flags
peak_pmm, peak_hmm True iff filter-MSE-last > predict-MSE-first (the "peak") _peak_detection

9. Cross-reference cheat sheet

Topic Paper § LaTeX § Code module
Model definition §1, §2 Intro pmmforecast.models.param_pmm
Filter recursion §3 Annexe 1 pmmforecast.inference.pmm_filter
Predictor recursion §4 §1 pmmforecast.inference.pmm_predictor
Theoretical MSE (γ table) §5 §2 pmmforecast.analysis.pmm_theoretical.TheoreticalMSE
Filter asymptote §5.1 §4 _compute_filter_quadratic
Prediction asymptote §6 §5 _compute_smoothing_lambda
Algebraic boundaries (det BBᵀ = 0, det Λ = 0) – Annexe 2, §5.2 tutorial_06_algebraic_boundaries.ipynb

10. Useful identities

Implemented or verified somewhere in the package:

  • det Γ = (1 − b²) · det BBᵀ — LaTeX Annexe 2, eq. unnumbered before the conclusion.
  • HMM ⇒ rank(A) = 1 — is_hmm() returns True iff c = ab², d = e = ab, in which case A's second column is zero (eq:AHMM).
  • Q = β₂² − β₁β₃ = −det(BBᵀ) — Q-coefficient of the filter quadratic equals the negative determinant of the innovation covariance.
  • (S, T, V) = (1, b, 1) is always the prediction-asymptote solution when Λ is non-singular — verified symbolically.

Last updated for v0.11.0 — see CHANGELOG.md.