Difference between revisions of "SOCR EduMaterials Activities CentralLimitTheorem"
(→This is an activity to explore the distribution of the sample mean and the Central Limit Theorem (CLT).) |
(→This is an activity to explore the distribution of the sample mean and the Central Limit Theorem (CLT).) |
||
Line 5: | Line 5: | ||
− | The central limit theorem (clt) states that if a random sample of size <math> n</math> ( | + | The central limit theorem (clt) states that if a random sample of size <math> n</math> (<math>X_1, X_2, \cdots, X_n</math>) is selected from ANY distribution (this distribution has mean <math>\mu</math> and standard deviation <math>\sigma</math>), then the sample mean <math>\bar X</math> approximately follows the normal distribution with mean <math>\mu</math> and standard deviation <math>\frac{\sigma}{\sqrt{n}}</math>. Requirements: Large <math>n</math>, usually <math>n \ge 30</math>, and independent observations. Note: If the sample is selected from a population that it is already normal then $n$ can be of any size (as small as $n=2$). We can illustrate the clt using some experiments in SOCR. You can find the Sample Mean Experiment under Experiments in SOCR. \\ |
Answer the following questions: | Answer the following questions: | ||
*'''Exercise 1:''' | *'''Exercise 1:''' | ||
− | **'''a.''' Select as population the normal distribution with | + | **'''a.''' Select as population the normal distribution with <math>\mu=5, \sigma=2</math>. You will randomly select many samples of size <math>N=16</math> each. The two distributions in blue are the theoretical distributions of <math>X</math> (on the left), and <math>\bar X</math> on the right labeled with <math>M</math>. Explain what the numbers below <math>X</math>, and below <math>\bar X</math> are and what the column next to each one represents. |
− | **'''b.''' One of the numbers under the column of | + | **'''b.''' One of the numbers under the column of <math>X</math> is 3.16. How many standard deviations this number is from the mean of <math>X</math> (<math>\mu=5</math>), and what is <math>P(3.16 < X < 5)</math>? Use the <math>z</math> score and your <math>z</math> table or SOCR (you will need to click on distributions and select the normal distribution with <math>\mu=5, \sigma=2</math>). |
− | **'''c.''' One of the numbers under the column of | + | **'''c.''' One of the numbers under the column of <math>\bar X</math> is 3.14. How many standard deviations this number is from the mean of <math>\bar X</math> (<math>\mu=5</math>), and what is <math>P(3.14 < \bar X < 5)</math>? Use the <math>z</math> score and your <math>z</math> table or SOCR (you will need to click on distributions and select the normal distribution with <math>\mu=5, \sigma=\frac{2}{\sqrt{16}}</math>). |
− | **'''d.''' Explain the difference between parts (b) and (c). Draw by hand the two distributions ( | + | **'''d.''' Explain the difference between parts (b) and (c). Draw by hand the two distributions (<math>X</math>, and <math>\bar X</math>) and show the probabilities of parts (b) and (c) on the graphs (draw first the distribution of <math>X</math> and below it the distribution of <math>\bar X</math>). |
− | **'''e.''' Perform the experiment 1000 times ( | + | **'''e.''' Perform the experiment 1000 times (<math>\mu=5, \sigma=2, N=16</math>). Take a snapshot of the output. What do you observe? What is the mean of these 1000 sample means? What is the standard deviation of these 1000 sample means? How well do they compare to the theoretical mean and standard deviation of <math>\bar X</math>? |
− | **'''f.''' In theory the sample size | + | **'''f.''' In theory the sample size <math>N</math> has to be large (at least 30) to get normal distribution of the sample mean. In part (e) we have only selected samples of size <math>N=16</math>. Is there a problem here? |
*'''Exercise 2:''' | *'''Exercise 2:''' | ||
− | **'''a.''' Select as population the gamma distribution with | + | **'''a.''' Select as population the gamma distribution with <math>k=1, b=1</math> (this is a skewed to the right distribution with mean <math>\mu=1</math> and standard deviation <math>\sigma=1</math>). You will select samples of size <math>N=16</math>. The two distributions in blue are the theoretical distributions of <math>X</math> and <math>\bar X</math>. What is the shape of the distribution of <math>\bar X</math>? |
**'''b.''' Perform the experiment 1000 times. Take a snapshot of the output and comment? | **'''b.''' Perform the experiment 1000 times. Take a snapshot of the output and comment? | ||
− | **'''c.''' Decrease the sample size to | + | **'''c.''' Decrease the sample size to <math>N=1</math>. What do you observe? Explain. What do you think needs to be done so that the sample mean is approximately normal. |
− | **'''d.''' Increase the sample to | + | **'''d.''' Increase the sample to <math>N=36</math>. Describe the distribution of the sample mean? Run the experiment 1000 times. What is the mean of these 1000 sample means? What is the standard deviation of these 1000 sample means? How well do they compare to the theoretical mean and standard deviation <math>\bar X</math>? |
*'''Exercise 3:''' | *'''Exercise 3:''' |
Revision as of 12:34, 25 November 2006
This is an activity to explore the distribution of the sample mean and the Central Limit Theorem (CLT).
- Description: You can access the applet for the Sample Mean Experiment at SOCR Experiments.
The central limit theorem (clt) states that if a random sample of size \( n\) (\(X_1, X_2, \cdots, X_n\)) is selected from ANY distribution (this distribution has mean \(\mu\) and standard deviation \(\sigma\)), then the sample mean \(\bar X\) approximately follows the normal distribution with mean \(\mu\) and standard deviation \(\frac{\sigma}{\sqrt{n}}\). Requirements: Large \(n\), usually \(n \ge 30\), and independent observations. Note: If the sample is selected from a population that it is already normal then $n$ can be of any size (as small as $n=2$). We can illustrate the clt using some experiments in SOCR. You can find the Sample Mean Experiment under Experiments in SOCR. \\ Answer the following questions:
- Exercise 1:
- a. Select as population the normal distribution with \(\mu=5, \sigma=2\). You will randomly select many samples of size \(N=16\) each. The two distributions in blue are the theoretical distributions of \(X\) (on the left), and \(\bar X\) on the right labeled with \(M\). Explain what the numbers below \(X\), and below \(\bar X\) are and what the column next to each one represents.
- b. One of the numbers under the column of \(X\) is 3.16. How many standard deviations this number is from the mean of \(X\) (\(\mu=5\)), and what is \(P(3.16 < X < 5)\)? Use the \(z\) score and your \(z\) table or SOCR (you will need to click on distributions and select the normal distribution with \(\mu=5, \sigma=2\)).
- c. One of the numbers under the column of \(\bar X\) is 3.14. How many standard deviations this number is from the mean of \(\bar X\) (\(\mu=5\)), and what is \(P(3.14 < \bar X < 5)\)? Use the \(z\) score and your \(z\) table or SOCR (you will need to click on distributions and select the normal distribution with \(\mu=5, \sigma=\frac{2}{\sqrt{16}}\)).
- d. Explain the difference between parts (b) and (c). Draw by hand the two distributions (\(X\), and \(\bar X\)) and show the probabilities of parts (b) and (c) on the graphs (draw first the distribution of \(X\) and below it the distribution of \(\bar X\)).
- e. Perform the experiment 1000 times (\(\mu=5, \sigma=2, N=16\)). Take a snapshot of the output. What do you observe? What is the mean of these 1000 sample means? What is the standard deviation of these 1000 sample means? How well do they compare to the theoretical mean and standard deviation of \(\bar X\)?
- f. In theory the sample size \(N\) has to be large (at least 30) to get normal distribution of the sample mean. In part (e) we have only selected samples of size \(N=16\). Is there a problem here?
- Exercise 2:
- a. Select as population the gamma distribution with \(k=1, b=1\) (this is a skewed to the right distribution with mean \(\mu=1\) and standard deviation \(\sigma=1\)). You will select samples of size \(N=16\). The two distributions in blue are the theoretical distributions of \(X\) and \(\bar X\). What is the shape of the distribution of \(\bar X\)?
- b. Perform the experiment 1000 times. Take a snapshot of the output and comment?
- c. Decrease the sample size to \(N=1\). What do you observe? Explain. What do you think needs to be done so that the sample mean is approximately normal.
- d. Increase the sample to \(N=36\). Describe the distribution of the sample mean? Run the experiment 1000 times. What is the mean of these 1000 sample means? What is the standard deviation of these 1000 sample means? How well do they compare to the theoretical mean and standard deviation \(\bar X\)?
- Exercise 3:
- a. Choose as population the binomial distribution with number of trials $n=4$ and probability of success $p=0.9$. Select samples of size $N=2$. Describe the distribution of the sample mean $\bar X$. What is the shape of $X$? What is the shape of $\bar X$?
- b. Increase the sample size to $N=31$. Describe the distribution of $\bar X$. What is the shape of the distribution of $\bar X$?
- c. Run the experiment 1000 times ($n=4, p=0.90, N=31$). What is the mean of these 1000 sample means? What is the standard deviation of these 1000 sample means? How well do they compare to the theoretical mean and standard deviation $\bar X$?
Below you can see a snapshot of the theoretical distribution of \( X \sim gamma(1,1) \) and \( \bar X \), together with the simulation results of 1000 samples from the gamma distribution when the sample size is 40.
- SOCR Home page: http://www.socr.ucla.edu
Translate this page: