Additional Hypothesis Testing
Additional Hypothesis Testing
Before 14 13 9 9 10 10 12 7
After 11 15 10 14 14 13 11 12
Solution/Procedure
STEP 1.
Ho: There is no significant difference in the performance
level of employees before and after the seminar-workshop.
(µ𝐵 = µ𝐴 )
2 σ𝐷 2 16 2
σ𝐷 − 90 −
𝑛 8
𝑠𝐷 = = = 2.878
𝑛−1 8−1
Step 7. Conclusion.
Since we do not reject the Ho, we can conclude that
there is no significant difference in the performance level
of employees before and after the seminar-workshop.
Situation 2
A pig farmer wants to test two different diets
designed to maximize weight gain. The farmer
randomly selects 8 pigs and divides them randomly
into two groups, four pigs each. Each group is given
one of the diets. The weight gains, in pounds, after a
three-week period are shown below.
STEP 1.
Ho: There is no significant difference in the weight gains
of the pigs in Diet 1 and Diet 2.
(µ1 = µ2 )
𝒏𝟏 −𝟏 𝒔𝟏 𝟐 + 𝒏𝟐 −𝟏 𝒔𝟐 𝟐
SP = 𝒏𝟏 +𝒏𝟐 −𝟐
= 0.35121
INDEPENDENT SAMPLE T-TEST
Step 6. Decision Rule
Since the computed t value of -3.624 is greater
than the t critical of 2. 447 at level of significance of
0.05, the statistical decision is to reject the null hypothesis.
Step 7. Conclusion.
Since we reject the Ho, we can conclude that there
is a significant difference in the weight gain of the pigs
from Diet 1 and Diet 2.
T- TEST FOR INDEPENDENT SAMPLES
SOME STATISTICAL SOFTWARE
Paired T-test
• Determine the mean of the differences.
σ𝐷
ഥ
𝐷=
𝑁
2 σ𝐷 2
σ𝐷 −
𝑛
𝑠𝐷 =
𝑛−1
𝑥ҧ 1 − 𝑥ҧ 2
t= 1 1
𝑠𝑝 +
𝑛1 𝑛2
𝒏𝟏 −𝟏 𝒔𝟏 𝟐 + 𝒏𝟐 −𝟏 𝒔𝟐 𝟐
SP =
𝒏𝟏 +𝒏𝟐 −𝟐
Parametric Nonparametric
Purpose of Test (Random (Non-random
sampling) sampling)
Significant difference T –test (Independent Mann – Whitney U
between 2 groups samples) test
Paired samples Paired t – test Wilcoxon Signed -
Rank Test
Degree of association Pearson’s r (Pearson’s Spearman’s rho
between the two product-moment (spearman rank
variables correlation coefficient) correlation)
Difference between chi-square test Chi-square goodness-
categorical variables (Pearson’s chi-square of-fit test
test)
Significant difference One – way Analysis Kruskal Wallis Test
between 3 or more of Variance (ANOVA)
groups
Situation 3
A consumer agency wanted to find out if the mean time it takes for
each of the three brands of medicines to provide relief from a
headache is the same. The first drug was administered to six randomly
selected patients, the second to four randomly selected patients, and
the third to five randomly selected patients. The following table gives
the time (in minutes) taken by each patient to get relief from a
headache after taking the medicine.
Drug I Drug II Drug III
25 15 44
38 21 39
42 19 54
65 25 58
47 73
52
At the 2.5% significance level, will you conclude that the mean time
taken to provide relief from a headache is the same for each of the
three drugs?
Ho: The mean time it takes for each of the
three brands of medicines to provide relief
from a headache is the same.
µ1 = µ2 = µ3
Drug1 Drug 2 Drug3
25 15 44
38 21 39 2
(σ 𝑥)
2
42 19 54 𝑆𝑆 = 𝑥 −
𝑛
65 25 58
47 73 For Drug 1:
52 2692
𝑆𝑆 = 12971 −
6
= 910.83
Drug 1 Drug 2 Drug 3 Total
σ 𝒙 = 𝟔𝟏7
𝒙 = 𝟐𝟔𝟗 𝒙 = 𝟖𝟎 𝒙 = 𝟐𝟔𝟖
𝑥 2 = 29689
𝑥2 = 𝟏𝟐𝟗𝟕𝟏 σ 𝑥2 =1652 σ 𝑥2 =15066
Formula 𝑘
((σ 𝑋)𝑖 )2 ((σ 𝑋) 𝑇 )2
𝑺𝑺𝒃 = −
𝑛𝑖 𝑁
𝑖−1
𝑺𝑺𝒘 = 𝑆𝑆𝑖
𝑖=1
((σ 𝑋) )2
𝑇
𝑺𝑺𝑻 = ( 𝑋 2 ) −
𝑁
𝑇
Drug 1 Drug 2 Drug 3 Total
= 29689
Source df SS MS F
Between 2 2645.700003 1322.850002 9.53961168
Within 12 1664.03 138.6691667
Total 14 4309.7333
F critical: 5.10