808 CHAPTER 39. STATISTICAL TESTS

This involves the T distribution. We will assume Xk,k ≤ r+ 1 is an independent samplefrom a normal distribution having mean µ and variance σ2.

Lemma 39.2.1 Let Xk be r + 1 independent random variables normally distributed withmean µ and variance σ2. Then

1√r+1

r+1

∑k=1

Xk−µ

σ

is normally distributed with mean 0 and variance 1.

Proof:

E

(exp

(t

1√r+1

r+1

∑k=1

Xk−µ

σ

))= E

(r+1

∏k=1

t√r+1

(Xk−µ

σ

))

Now recall that Xk−µ

σis normally distributed with mean 0 and variance 1. Therefore, by

independence, this equals

r+1

∏k=1

exp(−1

2t2

r+1

)= exp

(−1

2t2)

which is the moment generating function for a normally distributed random variable withmean 0 and variance 1. ■

Recall that (r+1)S2/σ2 is X 2 (r) . By the above discussion of the T distribution,

1√r+1 ∑

r+1k=1

Xk−µ

σ√∑

r+1k=1(Xk−X̄)2

rσ2

is a T random variable with r degrees of freedom discussed above. However, this expres-sion simplifies quite a bit. It becomes

√r√

r+1 ∑r+1k=1 (Xk−µ)√

∑r+1k=1 (Xk− X̄)

2=

√r√

r+1(r+1)(X̄−µ)√

∑r+1k=1 (Xk− X̄)

2=

√r√

r+1(X̄−µ)√∑

r+1k=1 (Xk− X̄)

2

Notice how the σ disappeared leaving only µ .

Example 39.2.2 Here are 11 numbers from an independent random sample of a normaldistribution having variance σ2 and mean µ . Find a .95 confidence interval for the meanµ . The numbers are

3,4,5,6,2,3.5,5,4,6,2,4.2

After some computations, we find X̄ = 4.0636 and 11S2 = 19.245. Then the statisticabove is of the form √

10√

11(4.0636−µ)√19.245

Using the data cursor in the graph of the function F (x) = P(X ≤ x) for X a T randomvariable with r = 10, we can find an interval corresponding to probability at least .95. A

808 CHAPTER 39. STATISTICAL TESTSThis involves the T distribution. We will assume X;,4 < r+ 1 is an independent samplefrom a normal distribution having mean pl and variance 07.Lemma 39.2.1 Let X; be r+ 1 independent random variables normally distributed withmean | and variance 07. Then1 et AX, — ULaap oOis normally distributed with mean 0 and variance 1.1 r+l X,— Z r+l t X,—£(oo(: aid > ))-9(i ( > ))XpoOProof:is normally distributed with mean 0 and variance 1. Therefore, byindependence, this equalsr+l t2 1I exp =exp(—=r3; r+1 2which is the moment generating function for a normally distributed random variable withmean 0 and variance 1. MfRecall that (r+ 1) S/o? is 2°? (r). By the above discussion of the T distribution,an 1 eeTeaDh (X-X)P?rois a T random variable with r degrees of freedom discussed above. However, this expres-sion simplifies quite a bit. It becomesfe? = ee Vivr+l (X— :rt ( (X, —X vrei (X, —X) ret ( (X, —XNotice how the o disappeared leaving only .Example 39.2.2 Here are 11 numbers from an independent random sample of a normaldistribution having variance o* and mean L. Find a .95 confidence interval for the meanLL. The numbers are3,4,5,6,2,3.5,5,4,6,2,4.2After some computations, we find X = 4.0636 and 11S* = 19.245. Then the statisticabove is of the formV10V 11 (4.0636 — y)V 19.245Using the data cursor in the graph of the function F (x) = P(X <x) for X a T randomvariable with r = 10, we can find an interval corresponding to probability at least .95. A