https://github.com/steviecurran/one-sample
Confidence interval for a one sample test.
https://github.com/steviecurran/one-sample
ab-testing confidence-intervals normal-distribution samples significance statistics students-t t-score z-score
Last synced: 11 days ago
JSON representation
Confidence interval for a one sample test.
- Host: GitHub
- URL: https://github.com/steviecurran/one-sample
- Owner: steviecurran
- Created: 2024-06-05T04:20:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-03T00:22:09.000Z (about 1 year ago)
- Last Synced: 2025-05-03T01:37:18.836Z (about 1 year ago)
- Topics: ab-testing, confidence-intervals, normal-distribution, samples, significance, statistics, students-t, t-score, z-score
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# One Sample Test
Python code to give the confidence interval for a one sample test.
Uses z and t-distributions, without the need of look-up tables
Data can be extracted any column in an ascii for csv files.
Can be run directly [here](https://www.kaggle.com/code/steviemooncat/one-sample-test)
E.g.
30 data points ranging from 80740 to 117313.0, mean = 100200.37, SD = 11285.48 (pop) 11478.41 (samp)
Plot histogram [y/n]? n
Level of confidence [e.g. 95, 99, 99.9% - 3 sigma is 99.75]? 99
Sample size >= 30 so using z-value
For 99.00% confidence, z = 2.570, giving mean diff of 100200.37 +/- 5384.80 (94815.57 to 105585.17)

-----------------------------------------------------------------------------------------------------
For two sample version see https://github.com/steviecurran/two-sample