https://github.com/halcy/centrallimittheorem
Visualization of the Central Limit Theorem
https://github.com/halcy/centrallimittheorem
Last synced: 11 months ago
JSON representation
Visualization of the Central Limit Theorem
- Host: GitHub
- URL: https://github.com/halcy/centrallimittheorem
- Owner: halcy
- Created: 2016-05-13T14:25:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T13:34:59.000Z (over 9 years ago)
- Last Synced: 2025-03-16T04:44:06.842Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CentralLimitTheorem
Visualization of the Central Limit Theorem
The central limit theorem states that, given certain conditions, the arithmetic mean of a sufficiently large number of iterates of independent random variables, each with a well-defined expected value and well-defined variance, will be approximately normally distributed, regardless of the underlying distribution.
The following code takes numVariables samples from either a uniform, exponential or binomial (binary, with P(1) = 0.4) distribution and calculates their mean. It does this numSamples times, collecting samples, and then draws their histogram.