Section SJ · SignSGD: drift and volatility
Proved in Lean
Lemma SJ.1 (Arcsine law)
Let \((g_1,g_2)\) be a centered jointly Gaussian pair with variances \(v_1,v_2>0\) and correlation \(\rho=\EE[g_1g_2]/\sqrt{v_1v_2}\in[-1,1]\). Then
\begin{equation}\tag{SJ.5}
\EE\big[\sign(g_1)\sign(g_2)\big]=\frac2\pi\arcsin\rho .
\end{equation}
If \(v_1=0\) or \(v_2=0\), the left side is \(0\).
Proof.
Sheppard’s formula [95], in the form of [97, Theorem 40], states that for \(\rho\)-correlated standard Gaussians \(g,h\) one has
\[
\PP\big(\sign(g)\ne\sign(h)\big)=\frac{\arccos\rho}\pi .
\]
Its hypothesis holds for \(g=g_1/\sqrt{v_1}\) and \(h=g_2/\sqrt{v_2}\), and dividing by the positive standard deviations does not change the signs. Each \(g_i\) has a density, so the signs are \(\pm1\) almost surely and
\[
\EE\big[\sign(g_1)\sign(g_2)\big]=1-2\,\PP\big(\sign(g_1)\ne\sign(g_2)\big)=1-\frac2\pi\arccos\rho=\frac2\pi\arcsin\rho .
\]
A centered Gaussian of variance zero vanishes almost surely, and its sign is then \(0\).
Used by
- Proposition SJ.5 One sample
Lean
Proved in Lean
Muon.SignSGD.lem_app_sgd_arcsine_i source
theorem lem_app_sgd_arcsine_i {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (g₁ g₂ : Ω → ℝ)
(hlaw : HasGaussianLaw (fun ω => (g₁ ω, g₂ ω)) P)
(hmean₁ : ∫ ω, g₁ ω ∂P = 0) (hmean₂ : ∫ ω, g₂ ω ∂P = 0)
(hv₁ : 0 < variance g₁ P) (hv₂ : 0 < variance g₂ P) :
-1 ≤ gaussCorr P g₁ g₂ ∧ gaussCorr P g₁ g₂ ≤ 1 ∧
∫ ω, Real.sign (g₁ ω) * Real.sign (g₂ ω) ∂P
= 2 / Real.pi * Real.arcsin (gaussCorr P g₁ g₂) := byMuon.SignSGD.lem_app_sgd_arcsine_ii source
theorem lem_app_sgd_arcsine_ii {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (g₁ g₂ : Ω → ℝ)
(hlaw : HasGaussianLaw (fun ω => (g₁ ω, g₂ ω)) P)
(hmean₁ : ∫ ω, g₁ ω ∂P = 0) (hmean₂ : ∫ ω, g₂ ω ∂P = 0)
(hdeg : variance g₁ P = 0 ∨ variance g₂ P = 0) :
∫ ω, Real.sign (g₁ ω) * Real.sign (g₂ ω) ∂P = 0 := by