npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
statUncertainties.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_STATUNCERTAINTIES_HH_
2 #define NPSTAT_STATUNCERTAINTIES_HH_
3 
4 /*!
5 // \file statUncertainties.hh
6 //
7 // \brief Uncertainties of various sample statistics
8 //
9 // Author: I. Volobouev
10 //
11 // July 2016
12 */
13 
15 
16 namespace npstat {
17  //
18  // The formulae below normally assume that all distribution moments
19  // are estimated from the sample itself
20  //
21 
22  /** Uncertainty of the mean estimate */
23  double meanUncertainty(double sigmaEstimate, unsigned long n);
24 
25  /**
26  // Uncertainty of the variance (not standard deviation!) estimate.
27  // Parameters "sigma" and "kurtosis" are population sigma and
28  // kurtosis, not sample estimates.
29  */
30  double varianceUncertainty(double sigma, double kurtosis, unsigned long n);
31 
32  /** Uncertainty of a cdf value (binomial) */
33  double cdfUncertainty(double cdf, unsigned long n);
34 
35  /** Uncertainty of a quantile value (asymptotic) */
36  double quantileUncertainty(const AbsDistribution1D& distro,
37  double cdf, unsigned long n);
38 
39  /** Uncertainty of a difference between two quantile values (asymptotic) */
41  double cdf1, double cdf2, unsigned long n);
42 
43  /** Uncertainty of the median estimate for the Gaussian distribution */
44  double gaussianMedianUncertainty(double sigmaEstimate, unsigned long n);
45 
46  /**
47  // Uncertainty of the variance (not standard deviation!)
48  // estimate for the Gaussian distribution
49  */
50  double gaussianVarianceUncertainty(double sigmaEstimate, unsigned long n);
51 
52  /**
53  // Uncertainty of the standard deviation estimate
54  // for the Gaussian distribution
55  */
56  double gaussianStdevUncertainty(double sigmaEstimate, unsigned long n);
57 
58  /** Skewness uncertainty for the Gaussian distribution */
59  double gaussianSkewnessUncertainty(unsigned long n);
60 
61  /** Kurtosis uncertainty for the Gaussian distribution */
62  double gaussianKurtosisUncertainty(unsigned long n);
63 }
64 
65 #endif // NPSTAT_STATUNCERTAINTIES_HH_
Interface definition for 1-d continuous statistical distributions.
Definition: AbsArrayProjector.hh:14
double quantileUncertainty(const AbsDistribution1D &distro, double cdf, unsigned long n)
double cdfUncertainty(double cdf, unsigned long n)
double gaussianMedianUncertainty(double sigmaEstimate, unsigned long n)
double gaussianStdevUncertainty(double sigmaEstimate, unsigned long n)
double gaussianSkewnessUncertainty(unsigned long n)
double gaussianKurtosisUncertainty(unsigned long n)
double quantileDeltaUncertainty(const AbsDistribution1D &distro, double cdf1, double cdf2, unsigned long n)
double gaussianVarianceUncertainty(double sigmaEstimate, unsigned long n)
double meanUncertainty(double sigmaEstimate, unsigned long n)
double varianceUncertainty(double sigma, double kurtosis, unsigned long n)
Definition: AbsDistribution1D.hh:31