math 137 hypothesis testing: the t test fresno state dr. burger

25
Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Upload: nicholas-morris

Post on 03-Jan-2016

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Math 137

Hypothesis Testing:The t Test

Fresno StateDr. Burger

Page 2: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

• In all of the previous examples, we assumed that we knew the population standard deviation

• In practice, this is an extremely rare situation!

• Instead, the sample standard deviation S is used in lieu of

• This approximation is called the bootstrap estimate.

Page 3: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Example. The manufacturer of a new fiberglass tire claims that its average life will be at least 40,000 miles. To verify this claim, a sample of 12 tires is tested, and the lifetimes were found to be

36,100 40,200 33,800 38,50042,000 35,800 37,000 41,00036,800 37,200 33,000 36,000

Test the manufacture’s claim using = 0.05.

Page 4: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

36100 Mean 37283.3340200 SD 2731.9133800385004200035800370004100036800372003300036000

Solution.

H0: The average life is at least 40,000 miles.

Ha: The average life is less than 40,000 miles.

We choose = 0.05.

Notice that we have to compute the sample SD this time; it’s not given.

Page 5: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

36100 Mean 37283.3340200 SD 2731.9133800385004200035800370004100036800372003300036000

We now can compute the test statistic

But there’s a catch: since we used S instead of , the test statistic t does NOT follow the normal curve.

.4448.3

12/91.2731

4000033.37283

/

nS

Xt

Page 6: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Since we used S instead of , the test statistic t does NOT follow the normal curve.

For the current problem, instead of using the normal curve to compute the observed significance level, we will use the Student t distribution with 11 degrees of freedom.

Page 7: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

For the sake of completeness, here’s the pdf of the Student’s t-distribution with r degrees of freedom:

If you find this intimidating, don’t worry: we will never use it.

2

12

1

2

21

)(

r

r

t

rr

r

tf

Page 8: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 1 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 9: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 2 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 10: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 3 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 11: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 4 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 12: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 5 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 13: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 10 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 14: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 20 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 15: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 30 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 16: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 40 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 17: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 50 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 18: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-4 -2 2 4

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Student T Distribution with 100 degrees of freedom

Red: t distribution Blue: standard normal curve

Page 19: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

For the t distribution with 11 df, we can compute the critical value for = 0.05 using Table 4 (p. 510).

In Excel, be careful: the command is TINV(0.1,11).(The default is for two tails, not one tail.)

-3.4448 -1.79588

0.1

0.2

0.3

-3.4448 -1.79588

0.1

0.2

0.35%

Page 20: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

-3.4448 -1.79588

0.1

0.2

0.3

-3.4448 -1.79588

0.1

0.2

0.3

In Excel, the command is TDIST(3.448,11,1).(The third entry specifies the number of tails.)

0.002724

Observed Significance Level

Page 21: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Conclusion: We reject the null hypothesis. There is good reason to believe that the average lifespan of thetires is less than 40,000 miles.

Note: It is possible to compute power with theStudent’s t-distribution, but the computations aremuch, much more complicated than the normal case(Larsen & Marx, 3rd ed., p. 447). Many statistical software packages are able to compute power for the t-test automatically.

Page 22: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Remember: If the sample is small (n < 30) and thepopulation variance is unknown, then we use thet-test and not the z-test.

On the other hand, if either is known or the sampleis sufficiently large (n > 30), then we may safely usethe z-test instead.

Also, we must be careful about stating the null and alternative hypotheses so that we correctly choose whether to use a left-tail, a right-tail, or both tails.

Page 23: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Example. Before a substance can be deemed safe for landfilling, its chemical properties must be assessed.In a sample of six replicates of sludge from a NewHampshire wastewater treatment plant, the mean pHwas 6.68 with a standard deviation of 0.20. Can weconclude than the mean pH is less than 7.0?

J. Benoit, T. Eighmy and B. Crannell, Journal of Geotechnical andGeoenvironmental Engineering 1999, pp. 877--888.

Page 24: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

Example. Certain rectangles appear more pleasing to the eye than others. The ancient Greeks called a rectangle with

the golden rectangle, and this ratio was called the golden ratio. The golden ratio has been claimed to be a deliberate design of various artand architecture.

)(2

15lengthwidth

Page 25: Math 137 Hypothesis Testing: The t Test Fresno State Dr. Burger

The data below shows the width-to-length ratios of beaded rectangles used by the Shoshone Native Americans to decorate their leather goods. Does it appear that the golden rectangle is also an aesthetic standard for the Shoshones?

0.693 0.662 0.690 0.606 0.5700.749 0.672 0.628 0.609 0.8440.654 0.615 0.668 0.601 0.5760.670 0.606 0.611 0.553 0.933

C. Dubois, ed., Lowie’s Selected Papers in Anthropology(UC Press, Berkeley, 1960), pp. 137--142