Detection. Between two centred Gaussian regimes with variance ratio r = σ²_high/σ²_low, the per-observation discrimination information is the Kullback–Leibler divergence D = ½(r − 1 − ln r) (kl_gaussianReal_var_ratio), stated as the integral of the log-likelihood ratio MeasureTheory.llr against the high-variance law. The proof writes both laws in withDensity form (gaussianReal_of_var_ne_zero) and identifies the Radon–Nikodym derivative with the pdf ratio (MeasureTheory.Measure.rnDeriv_withDensity_right). D is the denominator of Wald's sequential-test delay ≈ ln(1/α)/D; near r = 1 it is (r − 1)²/4 up to a cubic remainder (abs_klVarRatio_sub_sq_le).
Realised volatility. Observing n increments of second moment σ²Δt through mean-zero noise of variance η² (each increment independent of its two noise draws, and adjacent noise draws independent of each other) makes the expected realised variance σ²T + 2nη²: a bias linear in the sampling frequency (integral_sum_sq_noisy_increments; Zhang, Mykland and Aït-Sahalia). The square-root estimator of a nondegenerate variance target is biased low, E[σ̂] < σ (sqrtBias_oneSided, with the one-sample Gaussian instance sqrtBias_absGaussianSample). For one Gaussian sample the bias is exact: E|Z| = √(2v/π) for Z ∼ N(0, v) (integral_abs_gaussianReal), read off the truncated first moment of the standard normal in Probability/Gaussian/GaussianPartialMoments.lean. The endpoint drift estimator (X_T − X_0)/T of X_t = μt + σB_t has law N(μ, σ²/T), so its standard error σ/√T does not depend on the sampling frequency (drift_se_endpoint_hasLaw, drift_se_endpoint_var).
Scope
Not proved here: the sequential-test delay ln(1/α)/D itself (only D is formalised); the identification of the stated ∫ llr with Mathlib's InformationTheory.klDiv (it needs absolute continuity and integrability of llr, InformationTheory.toReal_klDiv); the exact constant √(2/n)·Γ((n+1)/2)/Γ(n/2) of the square-root bias for n ≥ 2 (the n = 1 value is integral_abs_gaussianReal); and noise-robust estimators such as two-scale realised variance. The drift statements here take a single B_T ∼ N(0, T) and the endpoint estimator (μT + σB_T)/T as given, so n does not appear in them; that the n-sample estimator of a pre-Brownian motion with drift, on an equally spaced grid, reduces to this endpoint form is hasLaw_fracDiff_one_driftEstimator in Choice/Performance/FracDiffWeights.lean.
Main results
kl_gaussianReal_var_ratio: the integral of the log-likelihood ratio llr of N(0, r·v) against N(0, v), taken under N(0, r·v), is (r − 1 − ln r) / 2, for v ≠ 0 and r ≠ 0.abs_klVarRatio_sub_sq_le: for |r − 1| ≤ 1/2, (r − 1 − ln r)/2 differs from (r − 1)²/4 by at most |r − 1|³.integral_sum_sq_noisy_increments: with increments of second moment σ²·Δt observed through mean-zero noise of second moment η² (independence hypotheses as stated), the noisy realised sum of squares has expectation σ²T + 2nη², where T = n·Δt.sqrtBias_oneSided: for a nonnegative, integrable, nondegenerate Y with E[Y] = σ² and σ > 0, E[√Y] < σ.sqrtBias_absGaussianSample, integral_abs_gaussianReal: for Z ∼ N(0, v) with v ≠ 0, E|Z| < √v; and E|Z| = √(2v/π).drift_se_endpoint_hasLaw, drift_se_endpoint_var: for X_t = μt + σB_t with B_T ∼ N(0, T), the endpoint estimator (X_T − X_0)/T has law N(μ, σ²/T) and variance σ²/T.
References
Tags
Kullback–Leibler divergence, realised volatility, microstructure noise, variance ratio, estimator bias, MSC 62F10, MSC 62P05, JEL C58
Import neighbourhood
Above: what it imports. Below: what imports it.
Corpus entries
mf-gaussian-mean-abs-deviation · portfolio_and_performance.json · full statement
Mean Absolute Value of a Centred Gaussian: E|Z| = √(2v/π)
For Z ∼ N(0, v), E|Z| = √(2v/π). So the one-sample volatility estimator |Z| underestimates σ = √v by the exact factor √(2/π) ≈ 0.798. The n-sample constant √(2/n)·Γ((n+1)/2)/Γ(n/2) for n ≥ 2 is not covered.