|
|
(ไม่แสดง 15 รุ่นระหว่างกลางโดยผู้ใช้คนเดียวกัน) |
แถว 10: |
แถว 10: |
| | | |
| <center> | | <center> |
− | <math>\sigma^2=Var(X)=E[(X-\mu)^2]=E[X^2] = E[X]^2.</math>. | + | <math>\sigma^2=Var(X)=E[(X-\mu)^2]=E[X^2] - E[X]^2.</math> |
| </center> | | </center> |
| | | |
แถว 35: |
แถว 35: |
| </center> | | </center> |
| | | |
− | and | + | and since <math>X_1,X_2,\ldots,X_n</math> are independent, we have that |
| | | |
| <center> | | <center> |
− | <math>Var(\bar{X}) = \frac{\sigma^2}{n}.</math> | + | <math>Var(\bar{X}) = Var\left(\frac{X_1+X_2+\cdots+X_n}{n}\right) = \frac{1}{n^2}Var(X_1+X_2+\cdots+X_n) = \frac{1}{n^2}\cdot n\cdot Var(X) = \frac{\sigma^2}{n}.</math> |
| </center> | | </center> |
| | | |
แถว 122: |
แถว 122: |
| </center> | | </center> |
| | | |
− | === Summary: properties of sample means and sample variances === | + | === Summary === |
| + | |
| + | Sample means: |
| + | |
| + | <center> |
| + | <math>\bar{X} = \frac{X_1+X_2+\cdots+X_n}{n} = \frac{1}{n}\sum_{i=1}^n X_i</math> |
| + | </center> |
| + | |
| + | Sample variance: |
| + | |
| + | <center> |
| + | <math>S^2 = \frac{\sum_{i=1}^n (X_i - \bar{X})^2}{n-1}</math> |
| + | </center> |
| + | |
| + | ==== Properties of sample means and sample variances ==== |
| | | |
| {{กล่องเทา| | | {{กล่องเทา| |
แถว 144: |
แถว 158: |
| | | |
| {{กล่องเทา| | | {{กล่องเทา| |
| + | '''Distribution of sample means of normal populations.''' |
| + | |
| If the population is normally distributed with mean <math>\mu</math> and variance <math>\sigma^2</math>, the distribution of <math>\bar{X}</math> is normal with mean <math>\mu</math> and variance <math>\sigma^2/n</math>. | | If the population is normally distributed with mean <math>\mu</math> and variance <math>\sigma^2</math>, the distribution of <math>\bar{X}</math> is normal with mean <math>\mu</math> and variance <math>\sigma^2/n</math>. |
| }} | | }} |
| + | |
| + | === Examples === |
| + | '''Ex1.''' Suppose that the population has mean <math>\mu = 15</math> and variance <math>\sigma^2 = 15</math>. If you select a sample of size 20, what is the probability that the sample mean <math>\bar{X}</math> is greater than 17? |
| + | |
| + | '''Solution:''' |
| + | |
| + | The sample mean <math>\bar{X}</math> is normal with mean <math>\mu=15</math> and variance <math>\sigma^2/n = 15/20 = 0.75</math>. Therefore, |
| + | |
| + | <center> |
| + | <math>\frac{\bar{X} - 15}{\sqrt{0.75}}</math> |
| + | </center> |
| + | |
| + | is unit normal. |
| + | |
| + | Note that |
| + | |
| + | <center> |
| + | <math> |
| + | P\{\bar{X} > 17\} = P\{\frac{\bar{X} - 15}{\sqrt{0.75}} > \frac{17 - 15}{\sqrt{0.75}}\} \approx P\{\frac{\bar{X} - 15}{\sqrt{0.75}} > 2.309 \} |
| + | </math> |
| + | </center> |
| + | |
| + | We can look at the standard normal table and find out that <math>P\{ 0 \leq Z \leq 2.31\} = 0.48956</math>, for a unit normal random variable ''Z''. Thus, the probability |
| + | |
| + | <center> |
| + | <math> |
| + | P\{\bar{X} > 17\} \approx 0.5 - 0.48956 = 0.0104, |
| + | </math> |
| + | </center> |
| + | |
| + | which is roughly 1%. |
| + | |
| + | '''Ex2.''' |
| + | |
| + | : ''To be added...'' |
| | | |
| == Why do we use normal distributions? == | | == Why do we use normal distributions? == |
| + | Normal random variables appear very often in our treatment of statistics. This is not just a coincidence. See [[probstat/notes/limit theorems|limit theorems]]. |
- This is part of probstat
Consider a certain distribution. The mean of the distribution is the expected value of a random variable sample from the distribution. I.e.,
.
Also recall that the variance of the distribution is
And finally, the standard deviation is .
Sample Statistics
Suppose that you take samples independently from this distribution. (Note that are random variables.)
Sample means
The statistic
is called a sample mean. Since are random variables, the mean is also a random variable.
We hope that approximates well. We can compute:
and since are independent, we have that
Sample variances and sample standard deviations
We can also use the sample to estimate .
The statistic
is called a sample variance. The sample standard deviation is .
Note that the denominator is instead of .
We can show that .
We note that since and are independent, we have that
.
Let's deal with the middle term here.
Let's work on the third term which ends up being the same as the middle term.
Let's put everything together:
Summary
Sample means:
Sample variance:
Properties of sample means and sample variances
Distribution of sample means
While we know basic properties of sample means , if we want to perform other statistical calculation (i.e., computing confidence intervals or testing hypotheses), it is very useful to know the exact distribution of .
For a general population, it will be hard to deal the the distribution of exactly. However, if the population is normal, we are in a very good shape.
Recall the definition of :
Therefore, is a sum of independent normally distributed random variables. A nice property of normal random variables is that the sum of normally distributed random variables remains a normal random variable. Since a normal random variable is uniquely determined by its mean and variance, we have the following observation.
Examples
Ex1. Suppose that the population has mean and variance . If you select a sample of size 20, what is the probability that the sample mean is greater than 17?
Solution:
The sample mean is normal with mean and variance . Therefore,
is unit normal.
Note that
We can look at the standard normal table and find out that , for a unit normal random variable Z. Thus, the probability
which is roughly 1%.
Ex2.
- To be added...
Why do we use normal distributions?
Normal random variables appear very often in our treatment of statistics. This is not just a coincidence. See limit theorems.