M# 327
Hypothesis Testing Normal Data Part 1
Welcome to Analyze
“X” Sifting
Inferential Statistics
Analyzing Results
Hypothesis Testing ND P2
M# 328
OSSS LSS Black Belt v10.3 - Analyze Phase 2 © Open Source Six Sigma, LLC
Test of Means (t Tests)
Target μsample
*Use the 1-sample Z test when the population Standard Deviation, σ, is known
M# 329
OSSS LSS Black Belt v10.3 - Analyze Phase 4 © Open Source Six Sigma, LLC
1-Sample t Test Sample Size
Target
Population
S
SE Mean
n
M# 329
OSSS LSS Black Belt v10.3 - Analyze Phase 5 © Open Source Six Sigma, LLC
1-Sample t Test Sample Size
M# 330
OSSS LSS Black Belt v10.3 - Analyze Phase 6 © Open Source Six Sigma, LLC
1-Sample t Test Sample Size
Results:
Sample
Size Power Difference
10 0.9 1.15456
15 0.9 0.90087
20 0.9 0.76446
25 0.9 0.67590
30 0.9 0.61245 This shows how your ability to
35 0.9 0.56408 detect small differences
40 0.9 0.52564 increases as your
sample size increases.
M# 330
OSSS LSS Black Belt v10.3 - Analyze Phase 7 © Open Source Six Sigma, LLC
1-Sample t Test Example
1. Practical Problem:
• We are considering changing suppliers for a part that we
currently purchase from a supplier that charges us a premium for
the hardening process.
• The proposed new supplier has provided us with a sample of
their product. They have stated that they can maintain a given
characteristic of 5 on their product.
• We want to test the samples and determine if their claim is
accurate.
2. Statistical Problem:
H0: μN.S. = 5
Ha: μN.S. ≠ 5
3. Set Risk Levels and choose test:
1-Sample t Test (population Standard Deviation unknown,
comparing a sample mean to a target).
α = 0.05 β = 0.10
M# 331
OSSS LSS Black Belt v10.3 - Analyze Phase 8 © Open Source Six Sigma, LLC
1-Sample t Test Example (Cont.)
M# 331
OSSS LSS Black Belt v10.3 - Analyze Phase 9 © Open Source Six Sigma, LLC
1-Sample t Test Example (Cont)
M# 332
OSSS LSS Black Belt v10.3 - Analyze Phase 10 © Open Source Six Sigma, LLC
1-Sample t Test Example (Cont) : Follow the Road Map
60
50
40
30
20
Are the data in the
10
values column
Normal?
4.2 4.4 4.6 4.8 5.0 5.2 5.4
If not, don’t use the
Values 1-Sample t test!
M# 332
OSSS LSS Black Belt v10.3 - Analyze Phase 11 © Open Source Six Sigma, LLC
1-Sample t Test Example (Cont.)
Click “Graphs”
• Select all 3
Stat > Basic Statistics > 1-Sample t…
Click “Options…”
• Confidence Level = 1-α,
for this example that’s 95
• Alternative = “not equal”
M# 333
OSSS LSS Black Belt v10.3 - Analyze Phase 12 © Open Source Six Sigma, LLC
1-Sample t Test Example (Cont)
Histogram of Values
Histogram of Values
(with Ho and 95% t-confidence interval for the mean)
2.0
1.5
Frequency
1.0
0.5
0.0 _
X
Ho
Boxplot of Values
(with Ho and 95% t-confidence interval for the mean)
_
X
Ho
M# 334
OSSS LSS Black Belt v10.3 - Analyze Phase 14 © Open Source Six Sigma, LLC
1-Sample t Test Example, (Cont.)
_
X
Ho
M# 334
OSSS LSS Black Belt v10.3 - Analyze Phase 15 © Open Source Six Sigma, LLC
1-Sample t Test Example, (Cont.)
Test of mu = 5 vs not = 5 S
SE Mean
n
M# 335
OSSS LSS Black Belt v10.3 - Analyze Phase 16 © Open Source Six Sigma, LLC
1-Sample t Test Example, Evaluating the Results
6. Statistical Solution
Since the P-value of 0.034 is less than 0.05, reject the null hypothesis.
Based on the samples given, there is a difference between the 95%
Confidence Interval of the Sample Mean and the desired target.
X H0
7. Practical Solution
The new supplier’s claim that they can meet the target of 5 for the
hardness is not correct.
M# 335
OSSS LSS Black Belt v10.3 - Analyze Phase 17 © Open Source Six Sigma, LLC
Manual Calculation of 1- Sample t
M# 336
OSSS LSS Black Belt v10.3 - Analyze Phase 18 © Open Source Six Sigma, LLC
Manual Calculation of 1-Sample t
degrees of T - Distribution
freedom
.600 .700 .800 .900 .950 .975 .990 .995
1 0.325 0.727 1.376 3.078 6.314 12.706 31.821 63.657
2 0.289 0.617 1.061 1.886 2.920 4.303 6.965 9.925
3 0.277 0.584 0.978 1.638 2.353 3.182 4.541 5.841
4 0.271 0.569 0.941 1.533 2.132 2.776 3.747 4.604
5 0.267 0.559 0.920 1.476 2.015 2.571 3.365 4.032
-2.306 2.306
0
If the calculated t-value lies anywhere Critical Regions
in the critical regions, reject the null hypothesis.
– The data supports the alternative hypothesis that the estimate
for the Mean of the population is not 5.0. M# 336
OSSS LSS Black Belt v10.3 - Analyze Phase 19 © Open Source Six Sigma, LLC
Confidence Intervals for a Two-Sided t Test
s s
X t α/2,n 1 μ X t α/2,n 1
n n
or
X t crit SE mean 4.788 2.306 * .0824
4.5989 to 4.9789
4.5989 X H0
4.9789
4.7889
M# 337
OSSS LSS Black Belt v10.3 - Analyze Phase 20 © Open Source Six Sigma, LLC
1-Sample t Test Exercise
3. Are we on target?
M# 337
OSSS LSS Black Belt v10.3 - Analyze Phase 21 © Open Source Six Sigma, LLC
1-Sample t Exercise
M# 338
OSSS LSS Black Belt v10.3 - Analyze Phase 22 © Open Source Six Sigma, LLC
1-Sample t Test Exercise
Frequency
the null hypothesis
4
relative to the
confidence level of the 2
population Mean. 0 _
X
Ho
Because the null 20 25 30 35 40 45 50
ppm VOC
hypothesis is within the
confidence level, we will
“fail to reject the null hypothesis” that there is no difference in the
sample data mean and the target value of 32.
M# 339
OSSS LSS Black Belt v10.3 - Analyze Phase 24 © Open Source Six Sigma, LLC
1-Sample t Test Exercise: Solution
M# 339
OSSS LSS Black Belt v10.3 - Analyze Phase 25 © Open Source Six Sigma, LLC
Hypothesis Testing Roadmap
Normal Data
Comparing Means
One Factor Two Factors
M# 340
OSSS LSS Black Belt v10.3 - Analyze Phase 26 © Open Source Six Sigma, LLC
2-Sample t Test
m1 m2
M# 341
OSSS LSS Black Belt v10.3 - Analyze Phase 28 © Open Source Six Sigma, LLC
Sample Size
M# 341
OSSS LSS Black Belt v10.3 - Analyze Phase 29 © Open Source Six Sigma, LLC
2-Sample t Test Example
1. Practical Problem:
• We have conducted a study in order to determine the effectiveness
of a new heating system. We have installed two different types of
dampers in home (Damper = 1 and Damper = 2). The data is found
in worksheet “Furnace.MTW”
• We want to compare the “BTU.In” data from the two types of
dampers to determine if there is any difference between the two
products.
2. Statistical Problem:
H0:μ1 = μ2
Ha:μ1 ≠ μ2
3. 2-Sample t test (population Standard Deviations unknown).
α = 0.05 β = 0.10
No, not that kind of damper!
M# 342
OSSS LSS Black Belt v10.3 - Analyze Phase 30 © Open Source Six Sigma, LLC
2-Sample t Test Example
4. Sample Size:
• Open the MINITABTM worksheet: “Furnace.MTW”
• Scroll through the data to see how the data is coded.
• In order to work with the data in the BTU.In column, we will need
to unstack the data by damper type.
M# 342
OSSS LSS Black Belt v10.3 - Analyze Phase 31 © Open Source Six Sigma, LLC
2-Sample t Test Example
M# 343
OSSS LSS Black Belt v10.3 - Analyze Phase 32 © Open Source Six Sigma, LLC
2-Sample t Test Example
M# 343
OSSS LSS Black Belt v10.3 - Analyze Phase 33 © Open Source Six Sigma, LLC
2-Sample t Test Example
M# 344
OSSS LSS Black Belt v10.3 - Analyze Phase 34 © Open Source Six Sigma, LLC
2-Sample t Test Example: Follow the Roadmap…
M# 344
OSSS LSS Black Belt v10.3 - Analyze Phase 35 © Open Source Six Sigma, LLC
Normality Test – Are the Data Normal?
60
50
40
30
20
10
1
5 10 15 20
BTU.In_1
M# 345
OSSS LSS Black Belt v10.3 - Analyze Phase 36 © Open Source Six Sigma, LLC
Normality Test – Is the Data Normal?
60
50
40
30
20
10
1
2 4 6 8 10 12 14 16 18
BTU.In_2
M# 345
OSSS LSS Black Belt v10.3 - Analyze Phase 37 © Open Source Six Sigma, LLC
2-Sample t Test and Equal Variance
M# 346
OSSS LSS Black Belt v10.3 - Analyze Phase 38 © Open Source Six Sigma, LLC
2-Sample t Test and Equal Variance
1
Damper
5 10 15 20
BTU.In
M# 346
OSSS LSS Black Belt v10.3 - Analyze Phase 39 © Open Source Six Sigma, LLC
2-Sample t Test with Equal Variance
M# 347
OSSS LSS Black Belt v10.3 - Analyze Phase 40 © Open Source Six Sigma, LLC
2-Sample t Test Example: Box Plot
M# 347
OSSS LSS Black Belt v10.3 - Analyze Phase 41 © Open Source Six Sigma, LLC
2-Sample t Test Example: Solution
Calculated
Average (X i X) 2
n
s
i 1 n 1
S
SE Mean
n (N1 – 1) + (N2-1)
H0: μ1 = μ2
-1.450 0.980
Ha: μ1≠ or < or > μ2
-0.38
6. Statistical Solution: Fail to reject the null hypothesis.
7. Practical Solution: There is no difference in BTU heating
effectiveness between the Dampers.
M# 348
OSSS LSS Black Belt v10.3 - Analyze Phase 42 © Open Source Six Sigma, LLC
Exercise
M# 349
OSSS LSS Black Belt v10.3 - Analyze Phase 44 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
Clor.Lev_Post_1 = Distributor 1
Clor.Lev_Post_2 = Distributor 2
M# 350
OSSS LSS Black Belt v10.3 - Analyze Phase 46 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
Determine the Power for the given sample sizes in the 2-Sample t test
Stat > Power and Sample Size > 2-Sample t…
M# 350
OSSS LSS Black Belt v10.3 - Analyze Phase 47 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
M# 351
OSSS LSS Black Belt v10.3 - Analyze Phase 48 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
In this case:
0.7339 rounded to 0.734
M# 351
OSSS LSS Black Belt v10.3 - Analyze Phase 49 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
M# 351
OSSS LSS Black Belt v10.3 - Analyze Phase 50 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
M# 352
OSSS LSS Black Belt v10.3 - Analyze Phase 51 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
M# 352
OSSS LSS Black Belt v10.3 - Analyze Phase 52 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
M# 353
OSSS LSS Black Belt v10.3 - Analyze Phase 53 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
M# 353
OSSS LSS Black Belt v10.3 - Analyze Phase 54 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
Since both samples are normally distributed, look at the F-Test P-value
of 0.113. This tells us that there is no statistically significant difference in
the variance in these two data sets.
What does this mean? …. We can now run a 2-Sample t test and
assume equal variances.
M# 354
OSSS LSS Black Belt v10.3 - Analyze Phase 55 © Open Source Six Sigma, LLC
2-Sample t Test Exercise: Solution
Step 5 (continued)
Run the 2-Sample t test:
Stat > Basic Statistics > 2-Sample t …
Hmm, we’re
a lot alike!
M# 355
OSSS LSS Black Belt v10.3 - Analyze Phase 57 © Open Source Six Sigma, LLC
Hypothesis Testing Roadmap
Normal Data
Comparing Means
One Factor Two Factors
M# 355
OSSS LSS Black Belt v10.3 - Analyze Phase 58 © Open Source Six Sigma, LLC
2-Sample t Test Unequal Variance Example
M# 356
OSSS LSS Black Belt v10.3 - Analyze Phase 59 © Open Source Six Sigma, LLC
2-Sample t Test
Percent
Stat > Basic Statistics > Normality Test... 60
50
40
30
20
10
5
60
50
40
30
20 Our data sets are
10
5 Normally Distributed.
1
0.1
1 2 3 4 5 6 7 8
Sample 1
M# 356
OSSS LSS Black Belt v10.3 - Analyze Phase 60 © Open Source Six Sigma, LLC
2-Sample t Test for Equal Variance
Standard Deviation
of Samples Stat > ANOVA > Test of Equal Variance...
Test for Equal Variances for Stacked
F-Test
Test Statistic 0.11
1 P-Value 0.000
Levene's Test
We use F-Test
C4
Test Statistic 67.07
P-Value 0.000
Statistic because 2
Medians of Samples -5 0 5 10 15
Stacked
M# 357
OSSS LSS Black Belt v10.3 - Analyze Phase 61 © Open Source Six Sigma, LLC
2-Sample t Test Example: Unequal Variance
DO NOT CHECK
“Assume equal
variances” box.
M# 357
OSSS LSS Black Belt v10.3 - Analyze Phase 62 © Open Source Six Sigma, LLC
2-Sample t Test Unequal Variance
Boxplot of Stacked by C4
15 Indicates
Sample
Means
10
Stacked
-5
1 2
C4
M# 358
OSSS LSS Black Belt v10.3 - Analyze Phase 63 © Open Source Six Sigma, LLC
2-Sample t Test Unequal Variance
15
Indicates
10 Sample
Means
Stacked
-5
1 2
C4
M# 358
OSSS LSS Black Belt v10.3 - Analyze Phase 64 © Open Source Six Sigma, LLC
2-Sample t Test With Unequal Variance
Two-Sample T-Test
(Variances Not Equal)
Stat > Basic Statistics > 2-Sample t ... (Deselect Assume Equal Variance)
M# 359
OSSS LSS Black Belt v10.3 - Analyze Phase 65 © Open Source Six Sigma, LLC
Hypothesis Testing Roadmap
Normal Data
Comparing Means
One Factor Two Factors
M# 359
OSSS LSS Black Belt v10.3 - Analyze Phase 66 © Open Source Six Sigma, LLC
Paired t Test
A Paired t test is used to compare the Means of two measurements from the
same samples generally used as a before and after test.
Stat > Basic Statistics > Paired t…
MINITABTM performs a Paired t test. This is appropriate for testing the
difference between two Means when the data are paired and the paired
differences follow a Normal Distribution.
1. Practical Problem:
• We are interested in changing the sole material for a popular
brand of shoes for children.
• In order to account for variation in activity of children wearing the
shoes, each child will wear one shoe of each type of sole
material. The sole material will be randomly assigned to either
the left or right shoe.
2. Statistical Problem:
H0: μδ = 0
Ha: μδ ≠ 0
3. Paired t test (comparing data that must remain paired).
α = 0.05 β = 0.10
4. Sample Size:
• How much of a difference can be detected with 10 samples?
Exh_stat delta.MTW
M# 361
OSSS LSS Black Belt v10.3 - Analyze Phase 69 © Open Source Six Sigma, LLC
Paired t Test Example
Now that’s
a tee test!
M# 361
OSSS LSS Black Belt v10.3 - Analyze Phase 70 © Open Source Six Sigma, LLC
Paired t Test Example
60
50
40
30
20
10
1
-0.5 0.0 0.5 1.0 1.5
AB Delta
M# 362
OSSS LSS Black Belt v10.3 - Analyze Phase 72 © Open Source Six Sigma, LLC
Paired t Test: Using a 1-Sample t test on the difference column
M# 363
OSSS LSS Black Belt v10.3 - Analyze Phase 73 © Open Source Six Sigma, LLC
Paired t Test Solution
Another way to analyze this data is to use the Paired t test command.
Stat > Basic Statistics > Paired t…
M# 364
OSSS LSS Black Belt v10.3 - Analyze Phase 75 © Open Source Six Sigma, LLC
Paired t Test
M# 364
OSSS LSS Black Belt v10.3 - Analyze Phase 76 © Open Source Six Sigma, LLC
Paired t Test
M# 365
OSSS LSS Black Belt v10.3 - Analyze Phase 77 © Open Source Six Sigma, LLC
Paired t Test Exercise
M# 365
OSSS LSS Black Belt v10.3 - Analyze Phase 78 © Open Source Six Sigma, LLC
Paired t Test Exercise: Solution
M# 366
OSSS LSS Black Belt v10.3 - Analyze Phase 79 © Open Source Six Sigma, LLC
Paired t Test Exercise: Solution
M# 366
OSSS LSS Black Belt v10.3 - Analyze Phase 80 © Open Source Six Sigma, LLC
Paired t Test Exercise: Solution
M# 367
OSSS LSS Black Belt v10.3 - Analyze Phase 81 © Open Source Six Sigma, LLC
Paired t Test Exercise: Solution
M# 367
OSSS LSS Black Belt v10.3 - Analyze Phase 82 © Open Source Six Sigma, LLC
Hypothesis Testing Roadmap
Normal Data
Comparing Means
One Factor Two Factors
M# 368
OSSS LSS Black Belt v10.3 - Analyze Phase 83 © Open Source Six Sigma, LLC
Summary
M# 369
OSSS LSS Black Belt v10.3 - Analyze Phase 84 © Open Source Six Sigma, LLC