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.27

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
Software Engineer Salaries Is the difference between the mean annual salaries of entry level software engineers in Santa Clara, California, and Greenwich, Connecticut, more than \$4000? To decide, you select a random sample of entry level software engineers from each city. The results of each survey are shown in the figure at the left. Assume the population standard deviations are σ1=\$14,060 and σ2=\$13,050 . At α=0.05, what should you conclude? (Adapted from Salary.com)
Entry level software engineer salaries in Santa Clara, CA, \$88,900, and Greenwich, CT, \$81,600, with sample sizes noted.

Verified step by step guidance
1
Step 1: Define the null hypothesis (H₀) and the alternative hypothesis (Hₐ). In this case, H₀: μ₁ - μ₂ ≤ 4000 (the difference in mean salaries is less than or equal to \$4000), and Hₐ: μ₁ - μ₂ > 4000 (the difference in mean salaries is greater than \$4000).
Step 2: Identify the given data from the problem. For Santa Clara, CA: sample mean (x̄₁) = \$88,900, sample size (n₁) = 42, population standard deviation (σ₁) = \$14,060. For Greenwich, CT: sample mean (x̄₂) = \$81,600, sample size (n₂) = 38, population standard deviation (σ₂) = \$13,050.
Step 3: Calculate the standard error (SE) of the difference in means using the formula: SE = √((σ₁² / n₁) + (σ₂² / n₂)). Substitute the values for σ₁, σ₂, n₁, and n₂ into the formula.
Step 4: Compute the test statistic (z) using the formula: z = ((x̄₁ - x̄₂) - k) / SE, where k = 4000 (the hypothesized difference). Substitute the values for x̄₁, x̄₂, k, and SE into the formula.
Step 5: Compare the calculated z-value to the critical z-value for α = 0.05 in a one-tailed test. If the calculated z-value is greater than the critical z-value, reject the null hypothesis (H₀). Otherwise, fail to reject H₀.

Verified video answer for a similar problem:

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

Key Concepts

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

Hypothesis Testing

Hypothesis testing is a statistical method used to make decisions about population parameters based on sample data. It involves formulating a null hypothesis (H0) and an alternative hypothesis (H1), then using sample statistics to determine whether to reject H0. In this case, the null hypothesis tests if the difference in means between two groups is equal to a specified value (k), which is crucial for assessing salary differences.
Recommended video:
Guided course
06:21
Step 1: Write Hypotheses

Standardized Test Statistic

A standardized test statistic is a numerical value that measures how far a sample statistic is from the null hypothesis, expressed in terms of standard deviations. It allows for comparison across different datasets and is essential for determining the significance of the results. In this scenario, the test statistic will help evaluate whether the observed difference in salaries exceeds the hypothesized difference of $4,000.
Recommended video:
Guided course
06:34
Step 2: Calculate Test Statistic

Significance Level (α)

The significance level (α) is the threshold for determining whether to reject the null hypothesis, commonly set at 0.05. It represents the probability of making a Type I error, which occurs when the null hypothesis is incorrectly rejected. In this analysis, using α=0.05 means that if the p-value of the test statistic is less than 0.05, the difference in salaries will be considered statistically significant.
Recommended video:
03:33
Finding Binomial Probabilities Using TI-84 Example 1
Related Practice
Textbook Question

Test the claim about the mean of the differences for a population of paired data at the level of significance α. Assume the samples are random and dependent, and the populations are normally distributed.

Claim: μd<0 , α=0.05 , Sample statistics: d̄ =1.5 , sd=3.2 , n=14

84
views
Textbook Question

In Exercises 11–14, 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.10

Population statistics:σ1=40 and σ2=15

Sample Statistics: x̅1=500, n1=100, x̅2=495, n2=75

55
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.01, Assume (σ1)^2≠(σ2)^2 

Sample statistics:

x̅1=52, s1=4.8, n1=32 and x̅2=50, s2=1.2, n2=40

68
views
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