pygal.stats module

pygal.stats.confidence_interval_continuous(point_estimate, stddev, sample_size, confidence=0.95, **kwargs)[source]

Continuous confidence interval from sample size and standard error

pygal.stats.confidence_interval_dichotomous(point_estimate, sample_size, confidence=0.95, bias=False, percentage=True, **kwargs)[source]

Dichotomous confidence interval from sample size and maybe a bias

pygal.stats.confidence_interval_manual(point_estimate, low, high)[source]
pygal.stats.erfinv(x, a=0.147)[source]

Approximation of the inverse error function https://en.wikipedia.org/wiki/Error_function #Approximation_with_elementary_functions

pygal.stats.norm_ppf(x)[source]
pygal.stats.ppf(x, n)[source]