Stat 7
Stat 7
Stat 7
2019
Tests of Hypothesis II
Independent Sample
Dependent Sample
Dependent Sample
Independent 𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐭
Sample Sample
σ Known
σ Unknown:
1. Equal standard deviation
2. Unequal standard deviation
Two-Sample Test of Hypothesis
Independent 𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐭
Sample Sample
σ Known
Two-Sample Test of Hypothesis:
Independent Sample
We use the following formula to compute z if the following conditions
are met:
▪ The samples are from independent (unrelated) populations
▪ The population standard deviations are known
▪ The two populations follow normal distributions
Two-Sample Test of Hypothesis:
Example of Independent Sample
▪ Customers at the FoodTown Supermarket have a choice when paying for
their groceries:
▪ They may check out and pay using the standard cashier-assisted checkout or
▪ They may use the new Fast Lane procedure (self-checkout).
▪ The store manager would like to know if the mean checkout time using
the standard checkout method is longer than using the Fast Lane.
▪ The time was measured from when the customer enters the line until all
his or her bags are in the cart.
▪ Hence the time includes both waiting in line and checking out. What is
the p-value?
Two-Sample Test of Hypothesis:
Example of Independent Sample
▪ Step 1: State the null and alternate hypothesis
𝐻0 : μ𝑠 ≤ μ𝑓
𝐻1 : μ𝑠 > μ𝑓
▪ Step 2: Select the level of significance, we decide to use
𝛼 =.01
▪ Step 3: Determine the test statistic, we’ll use z
Two-Sample Test of Hypothesis:
Example of Independent Sample
▪ Step 4: Formulate the decision rule, Reject 𝐻0 if 𝑧 > 2.326
Two-Sample Test of Hypothesis:
Example of Independent Sample
▪ Step 5: Make the decision regarding 𝐻0 , FoodTown randomly
selected 50 customers using the standard checkout and
computed a mean time of 5.5 minutes and randomly selected
100 customers using the Fast Lane and computed a mean
time of 5.3 minutes.
Two-Sample Test of Hypothesis:
Example of Independent Sample
▪ Step 5: We will reject the null hypothesis. Formulate the
decision rule, Reject 𝐻0 if 𝑧 > 2.326
Independent 𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐭
Sample Sample
σ Unknown
Compare Two Means Using t
When the standard deviations of the populations is unknown, we
compare population means using t.
Finding the value of t requires two steps:
1. The first step is to pool the standard deviations according to
the following formula
Compare Two Means Using t
When the standard deviations of the populations is unknown, we
compare population means using t.
Finding the value of t requires two steps
2. The value of t is computed from the following formula
The decision is not to reject the null hypothesis because –0.662 falls in the region between -1.833 and 1.833.
Two-Sample Pooled Test Example
▪ Step 6: Interpret the result:
The decision is not to reject the null hypothesis, because -
0.662 falls in the region between -1.833 and 1.833.
We conclude that there is no difference in the mean times to
mount the engine on the frame using the two methods.
Two-Sample Pooled Test Example
▪ Step 6: Interpret the result:
We can also estimate the p-value:
o Locate the row with 9 degrees of freedom, and use the two-tailed test
column.
o Find the t value, without regard to the sign, which is closest to our
computed value of 0.662: It is 1.383, corresponding to a significance
level of .20.
o Thus, even had we used the 20 percent significance level, we would
not have rejected the null hypothesis of equal means.
Unequal Population Standard Deviations
▪ If we cannot assume the population standard deviations are equal, we
adjust the degrees of freedom and the formula for finding t
▪ We determine the degrees of freedom based on the following formula
▪ The value of the test statistic is computed from the following formula
Unequal Population Standard Deviations
Example
▪ Personnel in a consumer testing laboratory are evaluating the
absorbency of paper towels; they wish to compare a set of store brand
towels to a similar group of name brand towels.
▪ For each brand, they dip a ply of the paper into a tub of fluid, allow the
paper to drain back into the vat for 2 minutes, and then evaluate the
amount of liquid the paper has taken up from the vat.
A random sample of 9 store brand towels absorption amounts (in ml.)
8 8 3 1 9 7 5 5 12
Dependent Sample
Independent 𝐃𝐞𝐩𝐞𝐧𝐝𝐞𝐧𝐭
Sample Sample
Dependent Samples
▪ We first compute the mean and the standard deviation of the
sample differences
▪ The value of the test statistic is computed with the following
formula:
Dependent Sample