GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - godaddy/sample-size: This python project is a helper package that uses power analysis to calculate required sample size for any experiment

BranchesTags
Open more actions menu

Latest commit

 

History

95 Commits
95 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs/source/_static
docs/source/_static
 
 
notebooks
notebooks
 
 
sample_size
sample_size
 
 
tests
tests
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE.md
RELEASE.md
 
 
SECURITY.md
SECURITY.md
 
 
poetry.lock
poetry.lock
 
 
poetry_scripts.py
poetry_scripts.py
 
 
pyproject.toml
pyproject.toml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

sample-size

This python project is a helper package that uses power analysis to calculate required sample size for any experiment.

Script Usage Guide

Sample size script lets you get the sample size estimation easily by providing metric inputs.

Requirements

Please make sure you have Python 3 installed before using the script.

Verify Python was installed

python -V # python version should >=3.10, <3.13

Verify pip was installed

pip -V 

Install the package

pip install sample-size
pip show sample-size # verify package was installed

Start using the script

run-sample-size will prompt required questions for you to enter the input it needs

run-sample-size
graph TD
    A(Alpha) --> B(Variants)
    B --> C(Metric Type)
    C --> D(Metadata)
    D --> E(MDE)
    E --> G(Alternative)
    G --> F{{Register another metric?}}
    F --> C & H(Sample Size)
Loading

Script Constraints

  • This package supports

    • Single and multiple metrics per calculation
    • Multiple cohorts, i.e. more than one treatment variant, per calculation
    • Metric types: Boolean, Numeric, and Ratio
  • Default statistical power (80%) is used in run-sample-size all the time

  • Input constraints

    • alpha: (0, 0.4]
    • probability (Boolean Metric): (0, 1)
    • variance (Numeric and Ratio Metrics): [0, )
    • registered metrics: [1, ]
    • variants: [2, ]

    Please be aware that we are running simulations many times when calculating sample size for multiple metrics or variants. Therefore, too many cohorts or metrics will have extremely long runtime.

Contributing

All contributors and contributions are welcome! Please see the contributing docs for more information.

About

This python project is a helper package that uses power analysis to calculate required sample size for any experiment

Topics

experimentationpower-analysissample-sizesample-size-calculationsample-size-determinationsample-size-estimation

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

16 stars

Watchers

8 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.