ผลต่างระหว่างรุ่นของ "Week11 practice 2"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 18: แถว 18:
  
 
== Confidence intervals, known variance <math>\sigma^2</math> ==
 
== Confidence intervals, known variance <math>\sigma^2</math> ==
 +
For each of the data set, ask your friend for the real <math>\sigma</math>.
 +
 +
Recall that the random variable <math>\bar{X}</math> is a normal random variable with mean <math>\mu</math> and s.d. <math>\sigma/\sqrt{n}</math>  Therefore,
 +
 +
<center>
 +
<math>\sqrt{n}(\bar{X}-\mu)/\sigma</math>
 +
</center>
 +
 +
will be a unit normal random variable.

รุ่นแก้ไขเมื่อ 02:05, 6 พฤศจิกายน 2557

Sampling and statistics

We will work in pairs.

Generators: We shall perform sampling from two random distribution the normal distribution and a uniform distribution over some range .

For a normal distribution, choose the mean and its s.d. . For a uniform distribution, choose a and b. (Don't forget to take note of the actual distribution that you use so that you can tell your statisticians the correct answers.)

Generate 10 sets of data:

  • For normal distributions (with different parameters), generate samples of size . We shall call these sets of data set 1, set 2,..., and set 5.
  • For uniform distributions (with different parameters), generate samples of size . We shall call these sets of data set 6, set 7, ..., and set 10.

For the normal distributions, you already know the variances and the standard deviation. For the uniform distributions, for each set of data, compute the real means, real variances, and real standard deviations.

Statisticians: Take your friend's generated data, and for each set of data compute the sample mean , the sample variance , and the sample standard deviation .

Compare your estimates of means and s.d. with the actual values from your generator.

Confidence intervals, known variance

For each of the data set, ask your friend for the real .

Recall that the random variable is a normal random variable with mean and s.d. Therefore,

will be a unit normal random variable.