Skip to main content
Ch. 8 - Hypothesis Testing with Two Samples
Larson - Elementary Statistics: Picturing the World 8th Edition
Larson8th EditionElementary Statistics: Picturing the WorldISBN: 9780137493470Not the one you use?Change textbook
Chapter 8, Problem 8.1.28

Testing a Difference Other Than Zero Sometimes a researcher is interested in testing a difference in means other than zero. In Exercises 27 and 28, you will test the difference between two means using a null hypothesis of Ho: μ1-μ2=k, Ho: μ1-μ2>=k or Ho: μ1-μ2<=k . The standardized test statistic is still
Map images showing entry-level architect salaries: Denver, CO \$58,300 (n=32) and Lincoln, NE \$54,240 (n=30).
Architect Salaries Is the difference between the mean annual salaries of entry level architects in Denver, Colorado, and Lincoln, Nebraska, equal to \$9000? To decide, you select a random sample of entry level architects from each city. The results of each survey are shown in the figure. Assume the population standard deviations are σ1=\$6560 and σ2=\$6100 . At α=0.01 what should you conclude? (Adapted from Salary.com)
Mathematical formula showing confidence interval bounds for difference between two means using sample data and population variances.

Verified step by step guidance
1
Step 1: Identify the null hypothesis (H0) and alternative hypothesis (Ha). Here, the null hypothesis is that the difference in mean salaries between Denver and Lincoln is \$9000, so H0: \( \mu_1 - \mu_2 = 9000 \). The alternative hypothesis depends on the research question, but typically it could be \( \mu_1 - \mu_2 \neq 9000 \) for a two-tailed test.
Step 2: Gather the sample statistics and population standard deviations. From the problem, we have \( \bar{x}_1 = 58300 \), \( n_1 = 32 \), \( \sigma_1 = 6560 \) for Denver, and \( \bar{x}_2 = 54240 \), \( n_2 = 30 \), \( \sigma_2 = 6100 \) for Lincoln.
Step 3: Calculate the test statistic using the formula for the difference between two means with known population standard deviations: \(\n\[\n\)\( Z = \frac{(\bar{x}_1 - \bar{x}_2) - k}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} \)\(\n\]\nwhere\) \( k = 9000 \) is the hypothesized difference.
Step 4: Determine the critical value \( z_c \) for the significance level \( \alpha = 0.01 \). Since this is likely a two-tailed test, find the z-value that corresponds to \( \alpha/2 = 0.005 \) in each tail of the standard normal distribution.
Step 5: Use the confidence interval formula provided to check if the hypothesized difference \( k = 9000 \) lies within the confidence interval bounds: \(\n\[\n\)\( \left( (\bar{x}_1 - \bar{x}_2) - z_c \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}} , (\bar{x}_1 - \bar{x}_2) + z_c \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}} \right) \)\(\n\]\nIf\) 9000 is outside this interval, reject the null hypothesis; otherwise, do not reject it.

Verified video answer for a similar problem:

This video solution was recommended by our tutors as helpful for the problem above.
Video duration:
5m
Was this helpful?

Key Concepts

Here are the essential concepts you must grasp in order to answer the question correctly.

Hypothesis Testing for Difference in Means

This involves testing whether the difference between two population means equals a specific value (not necessarily zero). The null hypothesis can be stated as H0: μ1 - μ2 = k, where k is the hypothesized difference. The alternative hypothesis tests if the difference is greater than, less than, or not equal to k.
Recommended video:
Guided course
08:24
Difference in Means: Hypothesis Tests

Standardized Test Statistic for Two Means

The test statistic for comparing two means with known population standard deviations is calculated by subtracting the hypothesized difference from the sample mean difference, then dividing by the standard error of the difference. This statistic follows a normal distribution under the null hypothesis.
Recommended video:
Guided course
08:24
Difference in Means: Hypothesis Tests

Significance Level and Decision Rule

The significance level (α) defines the threshold for rejecting the null hypothesis. For α=0.01, the critical value corresponds to the 99% confidence level. If the test statistic falls in the rejection region beyond this critical value, the null hypothesis is rejected, indicating a statistically significant difference.
Recommended video:
03:53
Conditional Probability Rule
Related Practice
Textbook Question

Constructing Confidence Intervals for μ1-μ2. You can construct a confidence interval for the difference between two population means μ1-μ2 , as shown below, when both population standard deviations are known, and either both populations are normally distributed or both n1>= 30 and n2>=30 . Also, the samples must be randomly selected and independent.

In Exercises 29 and 30, construct the indicated confidence interval for μ1-μ2 .


Architect Salaries Construct a 99% confidence interval for the difference between the mean annual salaries of entry level architects in Denver, Colorado, and Lincoln, Nebraska, using the data from Exercise 28.

58
views
Textbook Question

Test the claim about the difference between two population means and at the level of significance α. Assume the samples are random and independent, and the populations are normally distributed.

Claim: μ1≤μ2, α=0.05, Assume (σ1)^2≠(σ2)^2

Sample statistics:

x̅1=2410, s1=175, n1=13 and x̅2=2305, s2=52, n2=10

112
views
Textbook Question

Testing the Difference Between Two Means, (a) identify the claim and state H0 and Ha , (b) find the critical value(s) and identify the rejection region(s), (c) find the standardized test statistic t, (d) decide whether to reject or fail to reject the null hypothesis, and (e) interpret the decision in the context of the original claim. Assume the samples are random and independent, and the populations are normally distributed.

Pet Food

A pet association claims that the mean annual costs of food for dogs and cats are the same. The results for samples of the two types of pets are shown at the left. At , α=0.10 can you reject the pet association’s claim? Assume the population variances are equal. (Adapted from American Pet Products Association)

70
views
Textbook Question

In Exercises 3–6, determine whether a normal sampling distribution can be used. If it can be used, test the claim about the difference between two population proportions and at the level of significance . Assume the samples are random and independent.


Claim: p1≠p2, α=0.01


Sample statistics: x1=35, n1=70, and x2=36, n2=60

88
views
Textbook Question

Independent and Dependent Samples In Exercises 5–8, classify the two samples as independent or dependent and justify your answer.

Sample 1: The maximum bench press weights for 53 football players

Sample 2: The maximum bench press weights for the same 53 football players after completing a weight lifting program

75
views
Textbook Question

Parks and Mental Health In Exercises 13–18, use the figure, which shows the percentages from a survey of two hundred 18- to 24-year-olds in the United States who say that various park and recreation activities have a positive impact on their mental health. (Adapted from National Recreation and Park Association)



Exercising and Taking Classes At α=0.01, can you reject the claim that the proportion of 18- to 24-year-olds who benefit mentally from exercising in parks is greater than or equal to the proportion who benefit mentally from taking classes in parks?

69
views