Skip to content

fibonacciFiasco/CLT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Central Limit Theorem Visualization - Binomial Distribution

This project demonstrates the Central Limit Theorem (CLT) using a Binomial distribution and animated histograms.
It shows how the distribution of sample means approaches a normal distribution as the sample size increases.


📌 Features

  • Interactive Matplotlib animation showing the CLT in action.
  • Multiple sample sizes compared in real-time.
  • Overlay of the theoretical normal distribution for comparison.
  • Clean and modular code using NumPy, SciPy, and Matplotlib.

🖼 Preview

CLT Animation
(Generated using the script — save as GIF with ani.save("clt_binomial.gif", writer='imagemagick').)


📚 Theory: Central Limit Theorem The Central Limit Theorem states that, for a large enough sample size, the distribution of sample means will approximate a normal distribution — regardless of the population's original distribution — as long as samples are independent and identically distributed.

In this project: Population: Binomial distribution (n_trials = 10, p = 0.5) Sample sizes tested: 5, 10, 30, 100, 500 Comparison: Theoretical normal curve is plotted alongside histograms.

About

Animated visualization of the Central Limit Theorem using a Binomial distribution, showing how sample means approach a normal distribution as sample size increases.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors