Phases of Muoncompanion
Section SD · Volatility: same-time and temporal
Proved in Lean
Definition SD.1 (Tested lag covariances)
For symmetric deterministic \(F\in\R^{\Nout\times\Nout}\) and \(G\in\R^{\Nin\times\Nin}\), ridges \(\ridge,\ridge'>0\) and a lag \(\ell\ge0\), the tested lag covariance is
\begin{equation}\tag{SD.16} C_\ell[F,G](\ridge,\ridge')\defeq\frac1B\,\EE\Tr\big[F\,{\mathsf S}^{\mathrm c}_t(\ridge)\,G\,{\mathsf S}^{\mathrm c}_{t+\ell}(\ridge')^\T\big], \end{equation}
and, when the series converges absolutely, the integrated covariance is
\begin{equation}\tag{SD.17} \Gamma[F,G](\ridge,\ridge')\defeq C_0[F,G](\ridge,\ridge') +\sum_{\ell\ge1}\Big(C_\ell[F,G](\ridge,\ridge')+C_\ell[F,G](\ridge',\ridge)\Big). \end{equation}
The covariance-weighted case is written \(C_\ell\defeq C_\ell[\Sigmaout,\Sigmain]\) and \(\Gamma\defeq\Gamma[\Sigmaout,\Sigmain]\), so that \(C_\ell(\ridge,\ridge')=B^{-1}\EE\langle {\mathsf S}^{\mathrm c}_t(\ridge),{\mathsf S}^{\mathrm c}_{t+\ell}(\ridge')\rangle_\Sigma\). When \(\Sigmain=\Id\), the row covariances are
\begin{equation}\tag{SD.18} C_{i,\ell}(\ridge,\ridge')\defeq B\,C_\ell[u_i\tensor u_i,\Id](\ridge,\ridge') =\EE\big\langle {\mathsf S}^{\mathrm c}_t(\ridge)^\T u_i,\;{\mathsf S}^{\mathrm c}_{t+\ell}(\ridge')^\T u_i\big\rangle , \end{equation}
and \(\Gamma_i\) is their integrated sum, defined as in (SD.17).

Used by

Lean

Proved in Lean
Muon.Volatility.def_app_vol_lag source
def def_app_vol_lag (F : FrozenParams m n B) (S : FrozenSamples P m n B) (ℓ : ℕ) (t : ℤ)
    (Fo : Mat m m) (Gi : Mat n n) (ϱ ϱ' : ℝ) : ℝ :=
Muon.Volatility.centredUpd source
def centredUpd (F : FrozenParams m n B) (S : FrozenSamples P m n B) (ϱ : ℝ) (t : ℤ) :
    Ω → Mat m n :=
Muon.Volatility.integratedLag source
def integratedLag (F : FrozenParams m n B) (S : FrozenSamples P m n B) (t : ℤ)
    (Fo : Mat m m) (Gi : Mat n n) (ϱ ϱ' : ℝ) : ℝ :=
Muon.Volatility.weightedLag source
def weightedLag (F : FrozenParams m n B) (S : FrozenSamples P m n B) (ℓ : ℕ) (t : ℤ)
    (ϱ ϱ' : ℝ) : ℝ :=
Muon.Volatility.weightedGamma source
def weightedGamma (F : FrozenParams m n B) (S : FrozenSamples P m n B) (t : ℤ) (ϱ ϱ' : ℝ) : ℝ :=
Muon.Volatility.rowLag source
def rowLag (F : FrozenParams m n B) (S : FrozenSamples P m n B) (Sp : SpectralData F.C)
    (i : Fin m) (ℓ : ℕ) (t : ℤ) (ϱ ϱ' : ℝ) : ℝ :=
Muon.Volatility.rowGamma source
def rowGamma (F : FrozenParams m n B) (S : FrozenSamples P m n B) (Sp : SpectralData F.C)
    (i : Fin m) (t : ℤ) (ϱ ϱ' : ℝ) : ℝ :=
Muon.Volatility.sameTimeZ source
def sameTimeZ (F : FrozenParams m n B) (S : FrozenSamples P m n B) (ϱ : ℝ) (t : ℤ) (ω : Ω) :
    ℝ :=
Muon.Volatility.sameTimeZc source
def sameTimeZc (F : FrozenParams m n B) (S : FrozenSamples P m n B) (ϱ : ℝ) (t : ℤ) (ω : Ω) :
    ℝ :=