# Connexions

You are here: Home » Content » Collaborative Statistics » Examples

### Recently Viewed

This feature requires Javascript to be enabled.

### Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Inside Collection (Textbook):

Textbook by: Barbara Illowsky, Ph.D., Susan Dean. E-mail the authors

# Examples

Summary: This module provides examples of Hypothesis Testing of a Single Mean and a Single Proportion as a part of the Collaborative Statistics collection (col10522) by Barbara Illowsky and Susan Dean.

## Example 1

### Problem 1

Jeffrey, as an eight-year old, established a mean time of 16.43 seconds for swimming the 25-yard freestyle, with a standard deviation of 0.8 seconds. His dad, Frank, thought that Jeffrey could swim the 25-yard freestyle faster by using goggles. Frank bought Jeffrey a new pair of expensive goggles and timed Jeffrey for 15 25-yard freestyle swims. For the 15 swims, Jeffrey's mean time was 16 seconds. Frank thought that the goggles helped Jeffrey to swim faster than the 16.43 seconds. Conduct a hypothesis test using a preset α=0.05α=0.05. Assume that the swim times for the 25-yard freestyle are normal.

#### Solution

Set up the Hypothesis Test:

Since the problem is about a mean, this is a test of a single population mean.

HoHo: μ=16.43μ=16.43 HaHa: μμ < 16.43 <16.43

For Jeffrey to swim faster, his time will be less than 16.43 seconds. The "<" tells you this is left-tailed.

Determine the distribution needed:

Random variable: X¯X = the mean time to swim the 25-yard freestyle.

Distribution for the test: X¯X is normal (population standard deviation is known: σσ =0.8=0.8)

X¯ X ~ N ( μ , σ X n ) N(μ, σ X n ) Therefore, X¯ X ~ N N ( 16.43 , 0.8 15 ) (16.43, 0.8 15 )

μ = 16.43 μ=16.43 comes from H 0 H 0 and not the data. σ = 0.8 σ=0.8, and n = 15 n=15.

Calculate the p-value using the normal distribution for a mean:

p-value=P(x -<16)= 0.0187p-value=P(x -<16)=0.0187 where the sample mean in the problem is given as 16.

p-value=0.0187p-value=0.0187 (This is called the actual level of significance.) The p-value is the area to the left of the sample mean is given as 16.

Graph:

μ=16.43μ=16.43 comes from HoHo. Our assumption is μ=16.43μ=16.43.

Interpretation of the p-value: If HoHo is true, there is a 0.0187 probability (1.87%) that Jeffrey's mean time to swim the 25-yard freestyle is 16 seconds or less. Because a 1.87% chance is small, the mean time of 16 seconds or less is unlikely to have happened randomly. It is a rare event.

Compare αα and the p-value:

α = 0.05 p-value = 0.0187 α > p-value α=0.05p-value=0.0187α>p-value

Make a decision: Since α>p-valueα>p-value, reject HoHo.

This means that you reject μ=16.43μ=16.43. In other words, you do not think Jeffrey swims the 25-yard freestyle in 16.43 seconds but faster with the new goggles.

Conclusion: At the 5% significance level, we conclude that Jeffrey swims faster using the new goggles. The sample data show there is sufficient evidence that Jeffrey's mean time to swim the 25-yard freestyle is less than 16.43 seconds.

The p-value can easily be calculated using the TI-83+ and the TI-84 calculators:

Press STAT and arrow over to TESTS. Press 1:Z-Test. Arrow over to Stats and press ENTER. Arrow down and enter 16.43 for μ0μ0 (null hypothesis), .8 for σσ, 16 for the sample mean, and 15 for nn. Arrow down to μμ: (alternate hypothesis) and arrow over to <μ0μ0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value (p=0.0187p=0.0187) but it also calculates the test statistic (z-score) for the sample mean. μ<16.43μ16.43 is the alternate hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with z=-2.08z=-2.08 (test statistic) and p=0.0187p=0.0187 (p-value). Make sure when you use Draw that no other equations are highlighted in Y=Y= and the plots are turned off.

When the calculator does a Z-Test, the Z-Test function finds the p-value by doing a normal probability calculation using the Central Limit Theorem:

P ( x¯ P( x < 1616 ) = = 2nd DISTR normcdf ( -10 ^ 99 , 16 , 16.43 , 0.8 / 15 ) (-10^99,16,16.43,0.8/ 15 ).

The Type I and Type II errors for this problem are as follows:

The Type I error is to conclude that Jeffrey swims the 25-yard freestyle, on average, in less than 16.43 seconds when, in fact, he actually swims the 25-yard freestyle, on average, in 16.43 seconds. (Reject the null hypothesis when the null hypothesis is true.)

The Type II error is that there is not evidence to conclude that Jeffrey swims the 25-yard free-style, on average, in less than 16.43 seconds when, in fact, he actually does swim the 25-yard free-style, on average, in less than 16.43 seconds. (Do not reject the null hypothesis when the null hypothesis is false.)

Historical Note: The traditional way to compare the two probabilities, αα and the p-value, is to compare the critical value (z-score from αα) to the test statistic (z-score from data). The calculated test statistic for the p-value is -2.08-2.08. (From the Central Limit Theorem, the test statistic formula is z = x¯ - μ X ( σ X n ) z= x - μ X ( σ X n ) . For this problem, x¯=16 x =16, μ X =16.43 μ X =16.43 from the null hypothesis, σ X =0.8 σ X =0.8, and n =15n=15.) You can find the critical value for α=0.05α=0.05 in the normal table (see 15.Tables in the Table of Contents). The z-score for an area to the left equal to 0.05 is midway between -1.65 and -1.64 (0.05 is midway between 0.0505 and 0.0495). The z-score is -1.645. Since -1.645>-2.08-1.645>-2.08 (which demonstrates that α>p-valueα>p-value), reject HoHo. Traditionally, the decision to reject or not reject was done in this way. Today, comparing the two probabilities αα and the p-value is very common. For this problem, the p-value, 0.01870.0187 is considerably smaller than αα, 0.05. You can be confident about your decision to reject. The graph shows αα, the p-value, and the test statistics and the critical value.

## Example 2

### Problem 1

A college football coach thought that his players could bench press a mean weight of 275 pounds. It is known that the standard deviation is 55 pounds. Three of his players thought that the mean weight was more than that amount. They asked 30 of their teammates for their estimated maximum lift on the bench press exercise. The data ranged from 205 pounds to 385 pounds. The actual different weights were (frequencies are in parentheses) 205(3); 215(3); 225(1); 241(2); 252(2); 265(2); 275(2); 313(2); 316(5); 338(2); 341(1); 345(2); 368(2); 385(1). (Source: data from Reuben Davis, Kraig Evans, and Scott Gunderson.)

Conduct a hypothesis test using a 2.5% level of significance to determine if the bench press mean is more than 275 pounds.

#### Solution

Set up the Hypothesis Test:

Since the problem is about a mean weight, this is a test of a single population mean.

H o H o : μ μ = 275 =275 H a H a : μ μ > 275 >275 This is a right-tailed test.

Calculating the distribution needed:

Random variable: X¯X = the mean weight, in pounds, lifted by the football players.

Distribution for the test: It is normal because σσ is known.

X¯ X ~ N N ( 275 , 55 30 ) (275, 55 30 )

x¯ x = 286.2 =286.2 pounds (from the data).

σ=55σ=55 pounds (Always use σ σ if you know it.) We assume μ=275μ=275 pounds unless our data shows us otherwise.

Calculate the p-value using the normal distribution for a mean and using the sample mean as input (see the calculator instructions below for using the data as input):

p-value=P(p-value=P( x¯x >286.2>286.2) =0.1323=0.1323.

Interpretation of the p-value: If HoHo is true, then there is a 0.1331 probability (13.23%) that the football players can lift a mean weight of 286.2 pounds or more. Because a 13.23% chance is large enough, a mean weight lift of 286.2 pounds or more is not a rare event.

Compare αα and the p-value:

α = 0.025 p-value = 0.1323 α=0.025p-value=0.1323

Make a decision: Since αα<p-valuep-value, do not reject HoHo.

Conclusion: At the 2.5% level of significance, from the sample data, there is not sufficient evidence to conclude that the true mean weight lifted is more than 275 pounds.

The p-value can easily be calculated using the TI-83+ and the TI-84 calculators:

Put the data and frequencies into lists. Press STAT and arrow over to TESTS. Press 1:Z-Test. Arrow over to Data and press ENTER. Arrow down and enter 275 for μ0μ0, 55 for σσ, the name of the list where you put the data, and the name of the list where you put the frequencies. Arrow down to μ:μ: and arrow over to >μ0>μ0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value (p=0.1331p=0.1331, a little different from the above calculation - in it we used the sample mean rounded to one decimal place instead of the data) but it also calculates the test statistic (z-score) for the sample mean, the sample mean, and the sample standard deviation. μ>275μ>275 is the alternate hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with z=1.112z=1.112 (test statistic) and p=0.1331p=0.1331 (p-value). Make sure when you use Draw that no other equations are highlighted in Y=Y= and the plots are turned off.

## Example 3

### Problem 1

Statistics students believe that the mean score on the first statistics test is 65. A statistics instructor thinks the mean score is higher than 65. He samples ten statistics students and obtains the scores 65; 65; 70; 67; 66; 63; 63; 68; 72; 71. He performs a hypothesis test using a 5% level of significance. The data are from a normal distribution.

#### Solution

Set up the Hypothesis Test:

A 5% level of significance means that α=0.05α=0.05. This is a test of a single population mean.

H o H o : μ μ = 65 =65 H a H a : μ μ > 65 >65

Since the instructor thinks the average score is higher, use a ">>". The ">>" means the test is right-tailed.

Determine the distribution needed:

Random variable: X¯X = average score on the first statistics test.

Distribution for the test: If you read the problem carefully, you will notice that there is no population standard deviation given. You are only given n=10n=10 sample data values. Notice also that the data come from a normal distribution. This means that the distribution for the test is a student's-t.

Use tdftdf. Therefore, the distribution for the test is t9t9 where n=10n=10 and df=10-1=9df=10-1=9.

Calculate the p-value using the Student's-t distribution:

p-value=P(p-value=P( x¯ x >67>67 )=0.0396=0.0396 where the sample mean and sample standard deviation are calculated as 67 and 3.1972 from the data.

Interpretation of the p-value: If the null hypothesis is true, then there is a 0.0396 probability (3.96%) that the sample mean is 67 or more.

Compare αα and the p-value:

Since α = .05 α=.05 and p-value = 0.0396 p-value=0.0396. Therefore, α > p-value α>p-value.

Make a decision: Since α>p-valueα>p-value, reject HoHo.

This means you reject μ=65μ=65. In other words, you believe the average test score is more than 65.

Conclusion: At a 5% level of significance, the sample data show sufficient evidence that the mean (average) test score is more than 65, just as the math instructor thinks.

The p-value can easily be calculated using the TI-83+ and the TI-84 calculators:

Put the data into a list. Press STAT and arrow over to TESTS. Press 2:T-Test. Arrow over to Data and press ENTER. Arrow down and enter 65 for μ0μ0, the name of the list where you put the data, and 1 for Freq:. Arrow down to μ:μ: and arrow over to >μ0>μ0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value (p=0.0396p=0.0396) but it also calculates the test statistic (t-score) for the sample mean, the sample mean, and the sample standard deviation. μ>65μ>65 is the alternate hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with t=1.9781t=1.9781 (test statistic) and p=0.0396p=0.0396 (p-value). Make sure when you use Draw that no other equations are highlighted in Y=Y= and the plots are turned off.

## Example 4

### Problem 1

Joon believes that 50% of first-time brides in the United States are younger than their grooms. She performs a hypothesis test to determine if the percentage is the same or different from 50%. Joon samples 100 first-time brides and 53 reply that they are younger than their grooms. For the hypothesis test, she uses a 1% level of significance.

#### Solution

Set up the Hypothesis Test:

The 1% level of significance means that α=0.01α=0.01. This is a test of a single population proportion.

H o H o : p p = 0.50 =0.50 H a H a : p p 0.50 0.50

The words "is the same or different from" tell you this is a two-tailed test.

Calculate the distribution needed:

Random variable: P'P' = the percent of of first-time brides who are younger than their grooms.

Distribution for the test: The problem contains no mention of a mean. The information is given in terms of percentages. Use the distribution for P'P', the estimated proportion.

P 'P' ~ N N ( p , p q n ) (p, p q n ) Therefore, P 'P' ~ N N ( 0.5 , 0.5 0.5 100 ) (0.5, 0.5 0.5 100 ) where p=0.50p=0.50, q=1-p=0.50q=1-p=0.50, and n=100n=100.

Calculate the p-value using the normal distribution for proportions:

p-value = P ( p' p-value=P(p'< 0.47 0.47 or p' > 0.53p'>0.53 ) = 0.5485 =0.5485

where x=53x=53, p'=xnp'=xn = 53 100 = 0.53 = 53 100 =0.53.

Interpretation of the p-value: If the null hypothesis is true, there is 0.5485 probability (54.85%) that the sample (estimated) proportion p'p' is 0.53 or more OR 0.47 or less (see the graph below).

μ=p=0.50μ=p=0.50 comes from HoHo, the null hypothesis.

p'p'=0.53=0.53. Since the curve is symmetrical and the test is two-tailed, the p'p' for the left tail is equal to 0.50-0.03=0.470.50-0.03=0.47 where μ=p=0.50μ=p=0.50. (0.03 is the difference between 0.53 and 0.50.)

Compare αα and the p-value:

Since α = 0.01 α=0.01 and p-value = 0.5485 p-value=0.5485. Therefore, α α < p-value p-value.

Make a decision: Since αα<p-valuep-value, you cannot reject HoHo.

Conclusion: At the 1% level of significance, the sample data do not show sufficient evidence that the percentage of first-time brides that are younger than their grooms is different from 50%.

The p-value can easily be calculated using the TI-83+ and the TI-84 calculators:

Press STAT and arrow over to TESTS. Press 5:1-PropZTest. Enter .5 for p0p0, 53 for xx and 100 for nn. Arrow down to Prop and arrow to not equals p0p0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator calculates the p-value (p=0.5485p=0.5485) and the test statistic (z-score). Prop not equals .5 is the alternate hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with z=0.6z=0.6 (test statistic) and p=0.5485p=0.5485 (p-value). Make sure when you use Draw that no other equations are highlighted in Y=Y= and the plots are turned off.

The Type I and Type II errors are as follows:

The Type I error is to conclude that the proportion of first-time brides that are younger than their grooms is different from 50% when, in fact, the proportion is actually 50%. (Reject the null hypothesis when the null hypothesis is true).

The Type II error is there is not enough evidence to conclude that the proportion of first time brides that are younger than their grooms differs from 50% when, in fact, the proportion does differ from 50%. (Do not reject the null hypothesis when the null hypothesis is false.)

## Example 5

### Problem 1

Suppose a consumer group suspects that the proportion of households that have three cell phones is 30%. A cell phone company has reason to believe that the proportion is 30%. Before they start a big advertising campaign, they conduct a hypothesis test. Their marketing people survey 150 households with the result that 43 of the households have three cell phones.

#### Solution

Set up the Hypothesis Test:

H o H o : p p = 0.30 =0.30 H a H a : p p 0.30 0.30

Determine the distribution needed:

The random variable is P'P' = proportion of households that have three cell phones.

The distribution for the hypothesis test is P' P' ~ N N ( 0.30 , (0.30) (0.70) 150 ) (0.30, (0.30) (0.70) 150 )

##### Problem 2

The value that helps determine the p-value is p'p'. Calculate p'p'.

###### Solution

p'=xnp'=xn where xx is the number of successes and nn is the total number in the sample.

x=43x=43, n= 150n= 150

p' = 4315043150

##### Problem 3

What is a success for this problem?

###### Solution

A success is having three cell phones in a household.

##### Problem 4

What is the level of significance?

###### Solution

The level of significance is the preset αα. Since αα is not given, assume that α=0.05α=0.05.

Draw the graph for this problem. Draw the horizontal axis. Label and shade appropriately.

##### Problem 5

Calculate the p-value.

p-value = 0.7216

##### Problem 6

Make a decision. _____________(Reject/Do not reject) H0H0 because____________.

###### Solution

Assuming that αα = 0.05, α < p-valueα < p-value. The Decision is do not reject H0H0 because there is not sufficient evidence to conclude that the proportion of households that have three cell phones is not 30%.

The next example is a poem written by a statistics student named Nicole Hart. The solution to the problem follows the poem. Notice that the hypothesis test is for a single population proportion. This means that the null and alternate hypotheses use the parameter pp. The distribution for the test is normal. The estimated proportion p'p' is the proportion of fleas killed to the total fleas found on Fido. This is sample information. The problem gives a preconceived α=0.01α=0.01, for comparison, and a 95% confidence interval computation. The poem is clever and humorous, so please enjoy it!

## Note:

Hypothesis testing problems consist of multiple steps. To help you do the problems, solution sheets are provided for your use. Look in the Table of Contents Appendix for the topic "Solution Sheets." If you like, use copies of the appropriate solution sheet for homework problems.

## Example 6

### Problem 1

My dog has so many fleas,
They do not come off with ease.
As for shampoo, I have tried many types
Even one called Bubble Hype,
Which only killed 25% of the fleas,

I've used all kinds of soap,
Until I had give up hope
Until one day I saw
An ad that put me in awe.

A shampoo used for dogs
Called GOOD ENOUGH to Clean a Hog
Guaranteed to kill more fleas.

I gave Fido a bath
And after doing the math
His number of fleas
Started dropping by 3's!

Before his shampoo
I counted 42.
At the end of his bath,
I redid the math
And the new shampoo had killed 17 fleas.

Now it is time for you to have some fun
With the level of significance being .01,
You must help me figure out
Use the new shampoo or go without?

#### Solution

Set up the Hypothesis Test:

HoHo: p=0.25p=0.25 HaHa: p>0.25p>0.25

Determine the distribution needed:

In words, CLEARLY state what your random variable X¯X or P'P' represents.

P'P' = The proportion of fleas that are killed by the new shampoo

State the distribution to use for the test.

Normal: N ( 0.25 , ( 0.25 ) ( 1 - 0.25 ) 42 ) N(0.25, ( 0.25 ) ( 1 - 0.25 ) 42 )

Test Statistic: z=2.3163z=2.3163

Calculate the p-value using the normal distribution for proportions:

p-value=p-value=0.01030.0103

In 1 – 2 complete sentences, explain what the p-value means for this problem.

If the null hypothesis is true (the proportion is 0.25), then there is a 0.0103 probability that the sample (estimated) proportion is 0.4048 (1742)(1742) or more.

Use the previous information to sketch a picture of this situation. CLEARLY, label and scale the horizontal axis and shade the region(s) corresponding to the p-value.

Compare αα and the p-value:

Indicate the correct decision (“reject” or “do not reject” the null hypothesis), the reason for it, and write an appropriate conclusion, using COMPLETE SENTENCES.

Table 1
alpha decision reason for decision
0.01 Do not reject HoHo αα<p-valuep-value

Conclusion: At the 1% level of significance, the sample data do not show sufficient evidence that the percentage of fleas that are killed by the new shampoo is more than 25%.

Construct a 95% Confidence Interval for the true mean or proportion. Include a sketch of the graph of the situation. Label the point estimate and the lower and upper bounds of the Confidence Interval.

Confidence Interval: (0.26,0.55)(0.26,0.55) We are 95% confident that the true population proportion pp of fleas that are killed by the new shampoo is between 26% and 55%.

##### Note:
This test result is not very definitive since the p-value is very close to alpha. In reality, one would probably do more tests by giving the dog another bath after the fleas have had a chance to return.

## Glossary

Central Limit Theorem:
Given a random variable (RV) with known mean μμ and known standard deviation σσ. We are sampling with size n and we are interested in two new RVs - the sample mean, X¯X¯, and the sample sum, ΣXΣX. If the size nn of the sample is sufficiently large, then X¯X¯ size 12{ { bar {X}}} {} N μ σ n N μ σ n and ΣXΣX size 12{X} {}N ( , n σ )N(,nσ). If the size n of the sample is sufficiently large, then the distribution of the sample means and the distribution of the sample sums will approximate a normal distribution regardless of the shape of the population. The mean of the sample means will equal the population mean and the mean of the sample sums will equal n times the population mean. The standard deviation of the distribution of the sample means, σ n σ n , is called the standard error of the mean.
Standard Deviation:
A number that is equal to the square root of the variance and measures how far data values are from their mean. Notation: s for sample standard deviation and σσ for population standard deviation.

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

#### Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

#### Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks