Stat.Bootstrap.AsymptoticLinear
The general bootstrap validity theorem.
Basic 11 core · 5 supporting This module defines the centered estimator bootstrap statistic, its lower conditional quantile, the percentile and basic confidence intervals, and the bundled sampling/bootstrap linearization hypothesis used by the valid ★ bootstrapQuantile_eq_affine★ measurable_bootstrapQuantile
Bootstrap distributions and intervals for asymptotically linear estimators
This module defines the centered estimator bootstrap statistic, its lower conditional quantile,
the percentile and basic confidence intervals, and the bundled sampling/bootstrap linearization
hypothesis used by the validity theorem. It also records the measurability interface and the bridge
from the bundled sampling linearization to IsAsymLinear.
The centered bootstrap statistic for an estimator at a sample size compares the estimate on a same-size resample with the estimate on the observed data, scaled by the square root of the sample size.
The bootstrap quantile for an estimator at a sample size and quantile level, based on the observed data, is the lower quantile of the Efron law of the centered estimator statistic.
Definition (Lean source)
The percentile bootstrap confidence interval for an estimator at a sample size and nominal error level, based on the observed data, adds the two equal-tail centered-bootstrap quantiles, scaled by root sample size, to the estimate.
Definition (Lean source)
The basic bootstrap confidence interval for an estimator at a sample size and nominal error level, based on the observed data, reflects the two equal-tail centered-bootstrap quantiles around the estimate.
Definition (Lean source)
For an estimator that is measurable at each sample size, a positive sample size, an interior quantile level and observed data, the centered bootstrap quantile is the affine transform of the bootstrap quantile of the uncentered estimator: root sample size times its deviation from the observed estimate.
Formal statement
Proof (Lean source)
For an estimator defined on samples of every size that is measurable at each sample size, a sample size, and an interior quantile level, the centered bootstrap quantile is a measurable function of the observed data.
Formal statement
Proof (Lean source)
The sampling law of the centered, root-sample-size-scaled estimator for an iid sample, an estimator, a target value, and a sample size is its pushforward law under the original sampling measure when the estimator is measurable at every sample size.
Definition (Lean source)
The conditional bootstrap law of an estimator at the specified sample size and observed data uses the Efron law of its centered statistic when the estimator is measurable at every sample size; at size zero it is a point mass at zero.
Definition (Lean source)
An iid sample, estimator, target value, and influence function are bootstrap asymptotically linear when the estimator and influence function are measurable, the influence function is centered, its second moment is positive and finite, the sampling remainder vanishes in probability, and the conditional bootstrap remainder vanishes in outer sampling probability.
Definition (Lean source)
The asymptotic variance associated with a bootstrap-asymptotically-linear estimator is the second moment of its influence function.
Definition (Lean source)
The limiting Gaussian law attached to a bootstrap-asymptotically-linear estimator is centered and has variance equal to the influence-function second moment.
Definition (Lean source)
5 supporting declarations (lemmas, instances)
-
measurable_centeredEstimatorBootstrapStatistictheorem — An estimator that is measurable at every sample size induces a measurable centered bootstrap statistic as a function of the resample at the chosen sample size, with the observed data held fixed.hypothesesX :sharedType u_2est :(n : ℕ) -> (Fin n -> X) -> ℝhest :forall n, Measurable (est n)n :ℕx :Fin n -> XconclusionProof (Lean source)
theorem measurable_centeredEstimatorBootstrapStatistic (est : (n : ℕ) -> (Fin n -> X) -> ℝ) (hest : forall n, Measurable (est n)) (n : ℕ) (x : Fin n -> X) : Measurable (centeredEstimatorBootstrapStatistic est n x) := by -- Unfold the statistic; measurability is closed under subtraction and multiplication by the -- constant `sqrt n`. exact measurable_const.mul ((hest n).sub measurable_const) -
bootstrapQuantile_eq_quantile_bootstrapEstimatorLawtheorem — The bootstrap quantile equals the lower quantile of the bundled conditional estimator-bootstrap law for a measurable estimator, a positive sample size, a quantile level, and observed data.hypothesesX :sharedType u_2est :(n : ℕ) -> (Fin n -> X) -> ℝhest :forall n, Measurable (est n)n :ℕhn :n != 0beta :ℝx :Fin n -> XconclusionbootstrapQuantile est n beta xProof (Lean source)
theorem bootstrapQuantile_eq_quantile_bootstrapEstimatorLaw (est : (n : ℕ) -> (Fin n -> X) -> ℝ) (hest : forall n, Measurable (est n)) {n : ℕ} (hn : n != 0) (beta : ℝ) (x : Fin n -> X) : bootstrapQuantile est n beta x = quantile (bootstrapEstimatorLaw est hest n x : Measure ℝ) beta := by -- In the nonzero branch the bundled law is the literal `bootstrapLaw`; unfold -- `bootstrapLowerQuantile`, `bootstrapCDF`, and `quantile`, then use `cdf_eq_real`. have hn0 : n ≠ 0 := bne_iff_ne.mp hn let _ : IsProbabilityMeasure (bootstrapLaw (centeredEstimatorBootstrapStatistic est n x) x) := bootstrapLaw_isProbabilityMeasure _ _ hn0 (measurable_centeredEstimatorBootstrapStatistic est hest n x) have hlaw : (bootstrapEstimatorLaw est hest n x : Measure ℝ) = bootstrapLaw (centeredEstimatorBootstrapStatistic est n x) x := by simp [bootstrapEstimatorLaw, hn0] rw [hlaw] unfold bootstrapQuantile bootstrapLowerQuantile bootstrapCDF quantile quantileSet congr 1 ext t simp only [Set.mem_ofPred_eq] rw [ProbabilityTheory.cdf_eq_real, Measure.real_def] -
isAsymLineartheorem — Bootstrap asymptotic linearity implies ordinary full-sample asymptotic linearity for the estimator evaluated on the iid sample vector.hypothesesOmega :sharedType u_1X :sharedType u_2theta0 :sharedℝpsi :sharedX → ℝh :BootstrapAsymLinear S est theta0 psiconclusionIsAsymLinear (fun n omega => est n (S.sampleVector n omega)) theta0 psi S (fun m => range m)Proof (Lean source)
theorem isAsymLinear (h : BootstrapAsymLinear S est theta0 psi) : IsAsymLinear (fun n omega => est n (S.sampleVector n omega)) theta0 psi S (fun m => range m) := by -- Reuse `mean_zero` and square integrability. Convert `h.linear` to `IsLittleOp _ 1` with -- `Modes.TendstoInProbability.isLittleOp_one`, then simplify the range cardinality and the two existing -- normalized-sum/rescaled-estimator definitions. refine ⟨h.mean_zero, h.var_pos_finite.2, ?_⟩ simpa [IsAsymLinear.normalizedSum, Finset.card_range] using Modes.TendstoInProbability.isLittleOp_one h.linear -
measurableSet_percentileCI_coveragetheorem — The percentile interval's coverage event is measurable under the sampling sigma-algebra for a bootstrap-asymptotically-linear estimator at a sample size when the nominal error level is interior.hypothesesOmega :sharedType u_1X :sharedType u_2theta0 :sharedℝpsi :sharedX → ℝh :BootstrapAsymLinear S est theta0 psialpha :ℝhalpha0 :0 < alphahalpha1 :alpha < 1n :ℕconclusionMeasurableSet {omega | theta0 ∈ percentileCI est n alpha (S.sampleVector n omega)}Proof (Lean source)
theorem measurableSet_percentileCI_coverage (h : BootstrapAsymLinear S est theta0 psi) {alpha : ℝ} (halpha0 : 0 < alpha) (halpha1 : alpha < 1) (n : ℕ) : MeasurableSet {omega | theta0 ∈ percentileCI est n alpha (S.sampleVector n omega)} := by -- Prove measurability of `sampleVector` coordinatewise from `S.meas`; compose the two -- `measurable_bootstrapQuantile` results and unfold membership in `Icc`. have hx : Measurable (fun omega => S.sampleVector n omega) := by apply measurable_pi_iff.mpr intro i exact S.meas i have ha2_pos : 0 < alpha / 2 := div_pos halpha0 (by norm_num) have ha2_lt_one : alpha / 2 < 1 := by linarith have h1a2_pos : 0 < 1 - alpha / 2 := by linarith have h1a2_lt_one : 1 - alpha / 2 < 1 := by linarith have hest_meas : Measurable (fun omega => est n (S.sampleVector n omega)) := (h.meas.1 n).comp hx have hlo : Measurable (fun omega => est n (S.sampleVector n omega) + bootstrapQuantile est n (alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ)) := hest_meas.add ((measurable_bootstrapQuantile est h.meas.1 n ha2_pos ha2_lt_one).comp hx |>.div_const _) have hhi : Measurable (fun omega => est n (S.sampleVector n omega) + bootstrapQuantile est n (1 - alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ)) := hest_meas.add ((measurable_bootstrapQuantile est h.meas.1 n h1a2_pos h1a2_lt_one).comp hx |>.div_const _) change MeasurableSet ({omega | est n (S.sampleVector n omega) + bootstrapQuantile est n (alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ) ≤ theta0} ∩ {omega | theta0 ≤ est n (S.sampleVector n omega) + bootstrapQuantile est n (1 - alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ)}) exact (measurableSet_le hlo measurable_const).inter (measurableSet_le measurable_const hhi) -
measurableSet_basicCI_coveragetheorem — The basic bootstrap interval's coverage event is measurable under the sampling sigma-algebra for a bootstrap-asymptotically-linear estimator at a sample size when the nominal error level is interior.hypothesesOmega :sharedType u_1X :sharedType u_2theta0 :sharedℝpsi :sharedX → ℝh :BootstrapAsymLinear S est theta0 psialpha :ℝhalpha0 :0 < alphahalpha1 :alpha < 1n :ℕconclusionMeasurableSet {omega | theta0 ∈ basicCI est n alpha (S.sampleVector n omega)}Proof (Lean source)
theorem measurableSet_basicCI_coverage (h : BootstrapAsymLinear S est theta0 psi) {alpha : ℝ} (halpha0 : 0 < alpha) (halpha1 : alpha < 1) (n : ℕ) : MeasurableSet {omega | theta0 ∈ basicCI est n alpha (S.sampleVector n omega)} := by -- As for the percentile event, compose measurable estimator/quantile endpoints with the -- measurable sample vector and use `measurableSet_le` for both inequalities. have hx : Measurable (fun omega => S.sampleVector n omega) := by apply measurable_pi_iff.mpr intro i exact S.meas i have ha2_pos : 0 < alpha / 2 := div_pos halpha0 (by norm_num) have ha2_lt_one : alpha / 2 < 1 := by linarith have h1a2_pos : 0 < 1 - alpha / 2 := by linarith have h1a2_lt_one : 1 - alpha / 2 < 1 := by linarith have hest_meas : Measurable (fun omega => est n (S.sampleVector n omega)) := (h.meas.1 n).comp hx have hlo : Measurable (fun omega => est n (S.sampleVector n omega) - bootstrapQuantile est n (1 - alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ)) := hest_meas.sub ((measurable_bootstrapQuantile est h.meas.1 n h1a2_pos h1a2_lt_one).comp hx |>.div_const _) have hhi : Measurable (fun omega => est n (S.sampleVector n omega) - bootstrapQuantile est n (alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ)) := hest_meas.sub ((measurable_bootstrapQuantile est h.meas.1 n ha2_pos ha2_lt_one).comp hx |>.div_const _) change MeasurableSet ({omega | est n (S.sampleVector n omega) - bootstrapQuantile est n (1 - alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ) ≤ theta0} ∩ {omega | theta0 ≤ est n (S.sampleVector n omega) - bootstrapQuantile est n (alpha / 2) (S.sampleVector n omega) / sqrt (n : ℝ)}) exact (measurableSet_le hlo measurable_const).inter (measurableSet_le measurable_const hhi)
Coverage 2 core · 0 supporting This module proves that, for a bootstrap-asymptotically-linear estimator, the percentile and the basic bootstrap confidence intervals both cover the target with probability tending to the nominal level. ★ percentileCI_coverage★ basicCI_coverage
Asymptotic coverage of the percentile and basic bootstrap intervals
This module proves that, for a bootstrap-asymptotically-linear estimator, the percentile and the basic bootstrap confidence intervals both cover the target with probability tending to the nominal level. Both proofs combine the random-endpoint coverage lemma with conditional quantile convergence.
For a bootstrap-asymptotically-linear estimator and an interior nominal error level, the percentile bootstrap confidence interval covers the target with probability tending to one minus that level.
Formal statement
Proof (Lean source)
For a bootstrap-asymptotically-linear estimator and an interior nominal error level, the basic bootstrap confidence interval covers the target with probability tending to one minus that level.
Formal statement
Proof (Lean source)
LimitLemmas 3 core · 3 supporting This module isolates the generic probability arguments needed by the estimator-level bootstrap theorems: triangle control for Kolmogorov distance, conditional Slutsky under a coupled remainder, quantile convergence from ★ conditionalSlutsky_cdfKolmogorov_inProb★ quantile_tendsto_inProb_of_cdfKolmogorov★ tendsto_dist_random_Icc_coverage
Limit lemmas for bootstrap validity and random confidence bounds
This module isolates the generic probability arguments needed by the estimator-level bootstrap theorems: triangle control for Kolmogorov distance, conditional Slutsky under a coupled remainder, quantile convergence from random uniform CDF convergence, and coverage with random endpoints. It also records the exact centered-Gaussian equal-tail probabilities used by percentile and basic intervals.
For a sequence of data-dependent conditional laws and a linear term together with a remainder that are measurable for every sample size and outcome, and a limiting law whose distribution function is continuous: if the conditional law of the linear term approaches the limit in Kolmogorov distance, in sampling probability and the conditional remainder is small in conditional probability, with sampling probability tending to one, then the conditional law of their sum approaches the same limit in Kolmogorov distance, in sampling probability.
Formal statement
Proof (Lean source)
For a sequence of data-dependent probability laws on the real line, a limiting law and an interior quantile level, suppose the limiting law's distribution function is continuous at its lower quantile and has a smaller value at every lower point and a larger value at every higher point than at that quantile, and the Kolmogorov distance between the data-dependent laws and the limit tends to zero in sampling probability. Then the random lower quantiles converge in sampling probability to the limiting quantile.
Formal statement
Proof (Lean source)
Suppose a statistic is almost-everywhere measurable at every sample size and converges in distribution to a limiting law, two random interval endpoints are measurable and converge in sampling probability to fixed endpoints — the lower one and the upper one — with the fixed endpoints ordered and the limiting law putting no mass on the interval's boundary. Then the probability that the statistic falls in the random interval converges to the limiting law's mass on the fixed interval.
Formal statement
Proof (Lean source)
3 supporting declarations (lemmas, instances)
-
cdfKolmogorov_triangletheorem — Kolmogorov CDF distance obeys the triangle inequality, with one real probability law as the intermediate point between the first law and the final law.hypothesesmu nu xi :conclusionProof (Lean source)
theorem cdfKolmogorov_triangle (mu nu xi : ProbabilityMeasure ℝ) : cdfKolmogorov mu xi <= cdfKolmogorov mu nu + cdfKolmogorov nu xi := by unfold cdfKolmogorov have hb (rho sigma : ProbabilityMeasure ℝ) : BddAbove (range fun t : ℝ ↦ |cdf (rho : Measure ℝ) t - cdf (sigma : Measure ℝ) t|) := by refine ⟨1, ?_⟩ rintro _ ⟨t, rfl⟩ rw [abs_le] constructor <;> linarith [cdf_nonneg (rho : Measure ℝ) t, cdf_le_one (rho : Measure ℝ) t, cdf_nonneg (sigma : Measure ℝ) t, cdf_le_one (sigma : Measure ℝ) t] refine ciSup_le fun t ↦ ?_ calc |cdf (mu : Measure ℝ) t - cdf (xi : Measure ℝ) t| ≤ |cdf (mu : Measure ℝ) t - cdf (nu : Measure ℝ) t| + |cdf (nu : Measure ℝ) t - cdf (xi : Measure ℝ) t| := by simpa [Real.dist_eq] using (dist_triangle (cdf (mu : Measure ℝ) t) (cdf (nu : Measure ℝ) t) (cdf (xi : Measure ℝ) t)) _ ≤ (⨆ t, |cdf (mu : Measure ℝ) t - cdf (nu : Measure ℝ) t|) + ⨆ t, |cdf (nu : Measure ℝ) t - cdf (xi : Measure ℝ) t| := add_le_add (le_ciSup (hb mu nu) t) (le_ciSup (hb nu xi) t) -
gaussianReal_quantile_Icc_toRealtheorem — A centered Gaussian with positive variance assigns probability one minus the nominal error level to the interval between its two equal-tail quantiles when the error level lies strictly between zero and one.hypothesesProof (Lean source)
theorem gaussianReal_quantile_Icc_toReal {v : NNReal} (hv : 0 < v) {alpha : ℝ} (halpha0 : 0 < alpha) (halpha1 : alpha < 1) : (gaussianReal 0 v).real (Icc (sqrt (v : ℝ) * probit (alpha / 2)) (sqrt (v : ℝ) * probit (1 - alpha / 2))) = 1 - alpha := by haveI : NullSingletonClass (gaussianReal 0 v) := nullSingletonClass_gaussianReal hv.ne' have hs : 0 < sqrt (v : ℝ) := by apply Real.sqrt_pos.2 exact_mod_cast hv have hp0 : 0 < alpha / 2 := by linarith have hp1 : alpha / 2 < 1 := by linarith have hq0 : 0 < 1 - alpha / 2 := by linarith have hq1 : 1 - alpha / 2 < 1 := by linarith let a := sqrt (v : ℝ) * probit (alpha / 2) let b := sqrt (v : ℝ) * probit (1 - alpha / 2) have ha : cdf (gaussianReal 0 v) a = alpha / 2 := by rw [cdf_gaussianReal_zero hv] simp only [a, mul_div_cancel_left₀ _ hs.ne'] exact Causalean.Mathlib.stdNormalCDF_probit hp0 hp1 have hb : cdf (gaussianReal 0 v) b = 1 - alpha / 2 := by rw [cdf_gaussianReal_zero hv] simp only [b, mul_div_cancel_left₀ _ hs.ne'] exact Causalean.Mathlib.stdNormalCDF_probit hq0 hq1 have hmeasure : (gaussianReal 0 v) (Ioc a b) = ofReal (cdf (gaussianReal 0 v) b - cdf (gaussianReal 0 v) a) := by calc (gaussianReal 0 v) (Ioc a b) = (cdf (gaussianReal 0 v)).measure (Ioc a b) := by rw [ProbabilityTheory.measure_cdf] _ = ofReal (cdf (gaussianReal 0 v) b - cdf (gaussianReal 0 v) a) := by rw [StieltjesFunction.measure_Ioc] calc (gaussianReal 0 v).real (Icc a b) = (gaussianReal 0 v).real (Ioc a b) := (measureReal_congr (Ioc_ae_eq_Icc (μ := gaussianReal 0 v))).symm _ = (ofReal (cdf (gaussianReal 0 v) b - cdf (gaussianReal 0 v) a)).toReal := by rw [measureReal_def, hmeasure] _ = (ofReal (1 - alpha)).toReal := by rw [ha, hb]; congr 2 <;> ring _ = 1 - alpha := ENNReal.toReal_ofReal (by linarith) -
gaussianReal_reflectedQuantile_Icc_toRealtheorem — By symmetry, a centered Gaussian with positive variance assigns probability one minus the nominal error level to the interval obtained by negating and reversing its equal-tail quantiles when the error level lies strictly between zero and one.hypothesesProof (Lean source)
theorem gaussianReal_reflectedQuantile_Icc_toReal {v : NNReal} (hv : 0 < v) {alpha : ℝ} (halpha0 : 0 < alpha) (halpha1 : alpha < 1) : (gaussianReal 0 v).real (Icc (-(sqrt (v : ℝ) * probit (1 - alpha / 2))) (-(sqrt (v : ℝ) * probit (alpha / 2)))) = 1 - alpha := by have hp0 : 0 < alpha / 2 := by linarith have hp1 : alpha / 2 < 1 := by linarith have hq0 : 0 < 1 - alpha / 2 := by linarith have hq1 : 1 - alpha / 2 < 1 := by linarith have hsym : -probit (1 - alpha / 2) = probit (alpha / 2) := by apply Causalean.Mathlib.stdNormalCDF_strictMono.injective rw [stdNormalCDF_neg, stdNormalCDF_probit hq0 hq1, stdNormalCDF_probit hp0 hp1] ring have hsym' : -probit (alpha / 2) = probit (1 - alpha / 2) := by linarith have hlower : -(sqrt (v : ℝ) * probit (1 - alpha / 2)) = sqrt (v : ℝ) * probit (alpha / 2) := by calc -(sqrt (v : ℝ) * probit (1 - alpha / 2)) = sqrt (v : ℝ) * (-probit (1 - alpha / 2)) := by ring _ = sqrt (v : ℝ) * probit (alpha / 2) := by rw [hsym] have hupper : -(sqrt (v : ℝ) * probit (alpha / 2)) = sqrt (v : ℝ) * probit (1 - alpha / 2) := by calc -(sqrt (v : ℝ) * probit (alpha / 2)) = sqrt (v : ℝ) * (-probit (alpha / 2)) := by ring _ = sqrt (v : ℝ) * probit (1 - alpha / 2) := by rw [hsym'] rw [hlower, hupper] exact gaussianReal_quantile_Icc_toReal hv halpha0 halpha1
Main 3 core · 1 supporting This module proves the distributional consequences of bootstrap asymptotic linearity. ★ bootstrap_tendsto_gaussian★ consistent★ quantile_tendsto
Distributional validity from bootstrap asymptotic linearity
This module proves the distributional consequences of bootstrap asymptotic linearity. The
sampling and conditional bootstrap laws approach the same centered Gaussian law, hence approach
one another in Kolmogorov distance, and conditional quantiles converge in sampling probability.
The downstream Coverage module turns these results into coverage theorems for percentile and
basic intervals.
For a bootstrap-asymptotically-linear estimator, the conditional bootstrap distribution of the centred estimator statistic approaches the centred Gaussian influence-function law in Kolmogorov distance, in sampling probability.
Formal statement
Proof (Lean source)
Bootstrap consistency. For a bootstrap-asymptotically-linear estimator, the conditional law of the centred bootstrap statistic and the finite-sample law of the centred sampling statistic approach one another in Kolmogorov distance, in sampling probability.
Formal statement
Proof (Lean source)
For a bootstrap-asymptotically-linear estimator and an interior probability level, the lower conditional bootstrap quantile converges in sampling probability to the corresponding centered-Gaussian quantile, the influence standard deviation times the standard-normal probit.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
sampling_tendsto_gaussiantheorem — For a bootstrap-asymptotically-linear estimator, the sampling distribution of the root-sample-size-scaled estimator converges weakly to the centred Gaussian law whose variance is the influence function's second moment.hypothesesOmega :sharedType u_1X :sharedType u_2theta0 :sharedℝpsi :sharedX → ℝh :BootstrapAsymLinear S est theta0 psiconclusionProof (Lean source)
theorem sampling_tendsto_gaussian (h : BootstrapAsymLinear S est theta0 psi) : Tendsto (samplingEstimatorLaw S est theta0 h.meas.1) atTop (nhds h.asymptoticGaussian) := by letI : IsProbabilityMeasure mu := S.indep.isProbabilityMeasure have hx (n : ℕ) : Measurable (fun omega => S.sampleVector n omega) := by apply measurable_pi_iff.mpr intro i exact S.meas i have hscaled (n : ℕ) : AEMeasurable (IsAsymLinear.rescaledEstimator (fun n omega => est n (S.sampleVector n omega)) theta0 (fun m => range m) n) mu := by unfold IsAsymLinear.rescaledEstimator exact (measurable_const.mul (((h.meas.1 n).comp (hx n)).sub measurable_const)).aemeasurable have hnormal := h.isAsymLinear.tendsto_normal h.meas.2 hscaled have hnormal' := (Tendsto_dist_iff _ _ _ hscaled).1 hnormal have hlaw : samplingEstimatorLaw S est theta0 h.meas.1 = fun n => ⟨mu.map (IsAsymLinear.rescaledEstimator (fun n omega => est n (S.sampleVector n omega)) theta0 (fun m => range m) n), Measure.isProbabilityMeasure_map (hscaled n)⟩ := by funext n apply ProbabilityMeasure.toMeasure_injective unfold samplingEstimatorLaw IsAsymLinear.rescaledEstimator simp only [Finset.card_range] rw [hlaw] simpa [asymptoticGaussian, asymptoticVariance] using hnormal'
SampleMean 2 core · 0 supporting This module supplies the canonical constructor for the real sample mean. ★ sampleMean
Sample-mean bootstrap validity
This module supplies the canonical constructor for the real sample mean. A square-integrable, nondegenerate real observation has influence function equal to the centered observation, and both the sampling and Efron-bootstrap linearizations are exact finite-sample identities.
The sample-mean statistic at a sample size sends a finite real data vector to its arithmetic mean.
For an independent, identically distributed real sample whose observation has an integrable square and strictly positive variance, the sample mean is bootstrap asymptotically linear at the population mean, with the centered observation as influence function; both linearization remainders vanish exactly.