Inference for the Difference of two means
To save and make a local (editable) copy, do: File, Make a copy. �
Advanced High School Statistics
Slides developed by Mine Çetinkaya-Rundel of OpenIntro, modified by Leah Dorazio for use with AHSS.
The slides may be copied, edited, and/or shared via the CC BY-SA license
Some images may be included under fair use guidelines (educational purposes)
Diamonds
Data
These data are a random sample from the diamonds data set in ggplot2 R package.
Parameter and point estimate
Parameter of interest�Average difference between the point prices of all 0.99 carat and 1 carat diamonds.
µpt99 - µpt100
Point estimate�Average difference between the point prices of sampled 0.99 carat and 1 carat diamonds.
x̄pt99 - x̄pt100
Hypotheses
Which of the following is the correct set of hypotheses for testing if the average point price of 1 carat diamonds (pt100) is higher than the average point price of 0.99 carat diamonds (pt99)?
Hypotheses
Which of the following is the correct set of hypotheses for testing if the average point price of 1 carat diamonds (pt100) is higher than the average point price of 0.99 carat diamonds (pt99)?
Conditions
Which of the following does not need to be satisfied in order to conduct this hypothesis test using theoretical methods?
Conditions
Which of the following does not need to be satisfied in order to conduct this hypothesis test using theoretical methods?
Test statistic
The df formula is actually quite complicated. In general, we use a calculator or other technology to find a more precise value for the degrees of freedom. (If this is not available, we can use the conservative estimate of the smaller of n1-1 or n2-1).
Test statistic for inference on the difference of two small sample means
The test statistic for inference on the difference of two small sample means (n1 < 30 and/or n2 < 30) mean is the T statistic.
where
Test statistic (cont.)
in context...
p-value
Which of the following is the correct p-value�for this hypothesis test?
T = -2.508 df = 22
Synthesis
What is the conclusion of the hypothesis test? How (if at all) would this conclusion change your behavior if you went diamond shopping?
Equivalent confidence level
What is the equivalent confidence level for a one-sided hypothesis test at α = 0.05?
Equivalent confidence level
What is the equivalent confidence level for a one-sided hypothesis test at α = 0.05?
Critical value
What is the appropriate t* for a confidence interval for the average difference between the point prices of 0.99 and 1 carat diamonds?
Critical value
What is the appropriate t* for a confidence interval for the average difference between the point prices of 0.99 and 1 carat diamonds?
Confidence interval
Calculate the interval, and interpret it in context.
point estimate ± ME
We are 90% confident that the average point price of a 0.99 carat diamond is $15.05 to $2.81 lower than the average point price of a 1 carat diamond.
Recap: Inference using difference of two sample means
If n1 < 30 and/or n2 < 30, difference between the sample means follow a t distribution with
Conditions
Hypothesis testing
Confidence interval
point estimate ± t*df x SE
where df can be found on calculator
, where df can be found on calculator
Explore more free resources at openintro.org/ahss, including:
Teachers only content is also available for Verified Teachers, including
Questions? Contact us.