Skip to content

Compares several ways for calculating confidence interval (CI) of the relative difference of two sample means

License

Notifications You must be signed in to change notification settings

e10v/relative-confidence-interval

Repository files navigation

Compares several ways of calculating confidence interval (CI) of the relative difference of two sample means:

  • naive (and also wrong) -- absolute CI divided by control mean.
  • delta -- relative CI with delta method.
  • logdelta -- also delta method, only applied to log-transformed ratio.
  • fieller -- Fieller's confidence interval.

The script does the following:

  • Simulates many experiments to generate pairs of samples (AA or AB).
  • Calculates proportions of samples where CI does not include zero (type I error or statistical power).
  • Calculates true confidence level and it's quantiles (since we know the true parameter value).

Usage:

python relative_confidence_interval.py > results.txt

Links:

About

Compares several ways for calculating confidence interval (CI) of the relative difference of two sample means

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages