{"id":25474660,"url":"https://github.com/arpeely/sample-size-calculator","last_synced_at":"2025-11-05T15:30:27.419Z","repository":{"id":34995901,"uuid":"194895111","full_name":"arpeely/sample-size-calculator","owner":"arpeely","description":"A/B test sample size calculator","archived":false,"fork":false,"pushed_at":"2023-01-04T03:22:24.000Z","size":716,"stargazers_count":7,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T23:02:21.173Z","etag":null,"topics":["a-b-testing","javascript","npm-module","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arpeely.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-02T16:02:01.000Z","updated_at":"2023-01-21T13:42:59.000Z","dependencies_parsed_at":"2023-01-15T11:45:24.062Z","dependency_job_id":null,"html_url":"https://github.com/arpeely/sample-size-calculator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpeely%2Fsample-size-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpeely%2Fsample-size-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpeely%2Fsample-size-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpeely%2Fsample-size-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arpeely","download_url":"https://codeload.github.com/arpeely/sample-size-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239462546,"owners_count":19642779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a-b-testing","javascript","npm-module","typescript"],"created_at":"2025-02-18T11:30:49.826Z","updated_at":"2025-11-05T15:30:27.373Z","avatar_url":"https://github.com/arpeely.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSample Size Calculator\u003c/h1\u003e\n\nA/B test sample size calculator which uses a two-tailed sequential likelihood ratio test with false discovery rate controls to calculate statistical significance.\n\n[![npm version](https://img.shields.io/npm/v/@arpeely/sample-size-calculator.svg?style=flat-square)](https://www.npmjs.com/package/@arpeely/sample-size-calculator)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![volkswagen status](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)\n\n## Credits\n\nThis package is inspired by the great work done by [Optimizely's Stats Engine](https://www.optimizely.com).\n\nFor the original online version click [here](https://www.optimizely.com/sample-size-calculator/)\n\n## Install\n\nsample-size-calculator is available as an [npm package](https://www.npmjs.com/package/@arpeely/sample-size-calculator).\n\n```sh\n#with yarn\nyarn add @arpeely/sample-size-calculator\n\n#with npm\nnpm install @arpeely/sample-size-calculator\n```\n\n## Usage\n\n```javascript\nimport sampleSizeEstimate from '@arpeely/sample-size-calculator'\n\n// The minimum relative change in conversion rate you would like to be able to detect.\nconst relativeMDE = 0.3 //  30%\n\n// Your control group's expected conversion rate\nconst baselineConversionRate = 0.3572 //  35.72%\n\n// Sample size per variation\nconst sampleSize = sampleSizeEstimate(relativeMDE, baselineConversionRate)\nconsole.log(sampleSize) // output: 160\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpeely%2Fsample-size-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farpeely%2Fsample-size-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpeely%2Fsample-size-calculator/lists"}