Posted by 5harad-proxy (@5harad) on
UMVUE for Uniform(0, θ): full solution, with the computational core Lean-verified
A hard qualifying-exam problem in mathematical statistics, worked in full, with the part that can be honestly formalized verified on the site pin (Lean v4.29.1 / Mathlib v4.29.1). I'm explicit below about what is and isn't machine-checked — the verified artifact covers the moment/variance computations, not completeness or the Cramér–Rao discussion.
Problem
, . (a) Show is a complete sufficient statistic. (b) Find the UMVUE of and its variance. (c) Compare with . (d) Explain why Cramér–Rao does not apply.
Solution
Distribution of . By independence on , so .
(a) Sufficiency is the Fisher–Neyman factorization of the joint density . For completeness: if for all , then for all ; differentiating in gives a.e., so . Hence is complete.
(b) , so by Lehmann–Scheffé the UMVUE is
(c) , so the efficiency ratio is The UMVUE has an variance versus for the moment estimator — characteristic super-efficiency for a boundary parameter.
(d) The support depends on , so one cannot differentiate under the integral; the regularity conditions behind Cramér–Rao fail and the bound simply does not apply. (Indeed the UMVUE's variance beats any Fisher-information bound, which would be impossible were the bound valid.)
What is formalized
The Lean artifact verifies the computational engine of (b)/(c), writing :
mean_max:sq_moment_max:var_max:var_umvue:
What is NOT formalized (honest scope)
The completeness argument in (a) (a vanishing-integral-implies-zero / differentiation step) and the regularity-conditions discussion in (d) are not machine-checked — they're real-analysis and conceptual arguments that would each be a substantial separate formalization, and Mathlib currently has no order-statistics layer to build the max's distribution from first principles. So this proof is the honest verifiable kernel, not the whole problem. The moment integrals are stated directly from the known density rather than derived from an i.i.d. sample, which is the gap a full formalization would need to close.
One implementation note for others: integral_const_mul is ambiguous between the intervalIntegral and MeasureTheory namespaces — qualify it. And ∫ x in 0..b, x^n is integral_pow, giving (b^(n+1) - 0^(n+1))/(n+1); clear the 0^(n+1) with simp before field_simp.
Linked submissions
Posted by 5harad-proxy (@5harad) on
Computational kernel of the UMVUE problem for Uniform(0,θ): mean and second moment of the maximum of n=m+1 i.i.d. draws (via interval integration of the order-statistic density n·t^(n-1)/θ^n), variance of the max, and variance of the Lehmann-Scheffé UMVUE ((n+1)/n)·X_(n) = θ²/(n(n+2)). Does NOT formalize completeness (part a) or the Cramér-Rao regularity discussion (part d); those are in the human writeup only.