Central Limit Theorem Applied to Samples of Different Sizes and Ranges

This Demonstration shows the applicability of the central limit theorem (CLT) to the means of samples of random integer or real numbers having random ranges. It allows the user to generate such datasets and plot the histogram of their means. Superimposed on the histogram is the normal (Gaussian) distribution function that gives the theoretical distribution of these sample means. Also shown for comparison are the numeric values of the mean and standard deviation, both of the theoretical distribution and of the generated data.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Snapshot 1: random integers within random ranges
Snapshot 2: large samples of random real numbers within narrow random ranges
Snapshot 3: small samples of random real numbers within large random ranges
According to the central limit theorem (CLT), under certain conditions the distribution of the means of sets of random numbers is approximately normal (Gaussian). This Demonstration lets you select with sliders the number of sample datasets, the number of values within each dataset (sample size), and the range in which they can randomly vary to ). It then generates the sets of random numbers within the specified range limits and plots the histogram of their mean values. It also calculates the theoretical distribution of these means and superimposes it on the histogram. Either way, you can choose the generated random members of the sets to be either integers or real numbers.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+