Psych Stats 4 Parametric Tests
Psych Stats 4 Parametric Tests
• Formula:
𝑥1 −𝑥2
• 𝑍=
𝑠2 2
1 + 𝑠2
𝑛1 𝑛2
I. Z- test for Two Sample Means
• Example 1.
• An admission test was administered to incoming freshmen in
the College of Nursing and Veterinary Medicine with 100
students. Each was randomly selected. The mean scores of
the given samples were mean 1= 90 and mean 2= 85 and
the variances of the test scores were 40 and 35,
respectively. Is there a significant difference between the
two groups? Use 0.01 level of significance.
I. Z- test for Two Sample Means
• 1. Problem:
• Is there a significant difference between the two groups?
• 2. Hypotheses:
• Ho: There is no significant difference between the two
groups
• Ha: There is a significant difference between the two
groups.
I. Z- test for Two Sample Means
• 3. Level of Significance:
• α= 0.01
• Z tabular value= ± 2.575
-2.575 +2.575
I. Z- test for Two Sample Means
• 4. Test of Statistic:
• Z-Test for Two-Sample Mean
• 5. Decision Rule:
• If Z computed value ≤ - 2.575, reject Ho
• If Z computed value ≥ + 2.575, reject Ho
• If -2.575 < Z computed value < +2.575, accept Ho
I. Z- test for Two Sample Means
• 6. Computation:
𝑥1 −𝑥2
• 𝑍=
𝑠2 2
1 + 𝑠2
𝑛1 𝑛2
𝑥1 −𝑥2 90−85 5 5 5
• 𝑍= = = = = = 5.77
2 40 35 75 0.75 0.866025403
𝑠2
1 + 𝑠2 +
100 100 100
𝑛1 𝑛2
• 𝒁 = 𝟓. 𝟕𝟕
I. Z- test for Two Sample Means
• 7. Interpretation:
• Since the Z computed value of 5.77 is greater that the
Z tabular value of +2.575 at 0.01 level of
significance, the research hypothesis is accepted which
means that there is a significant difference between
the two groups.
I. Z- test for Two Sample Means
• Example 2
• Is there a significant difference between the average height of males
born from the two different countries? A random sample yielded the
following results:
• Use the Z-test at 0.05 level of significance to test the null hypothesis that
the corresponding population means are equal against the research
hypothesis that they are not equal.
n1= 100 𝑥1 = 63.8 SD1= 2.58
-1.96 +1.96
I. Z- test for Two Sample Means
• 4. Test of Statistic:
• Z-Test for Two-Sample Mean
• 5. Decision Rule:
• If Z computed value ≤ - 1.96, reject Ho
• If Z computed value ≥ +1.96, reject Ho
• If -1.96 < Z computed value < +1.96, accept Ho
I. Z- test for Two Sample Means
• 6. Computation:
𝑥1 −𝑥2
• 𝑍=
𝑠2 2
1 + 𝑠2
𝑛1 𝑛2
0.7 0.7
• 𝑍= = 0.351805817 = 1.99
0.123767333
• 𝒁 = 𝟏. 𝟗𝟗
I. Z- test for Two Sample Means
• 7. Interpretation:
• Since the Z computed value lies above 1.96, the null
hypothesis has been rejected. This signifies that there
is a significant difference between the average height
of males born from the two different countries.
II. t-test
• It is used to compare two means, the means of two independent
samples or two independent groups and the means of
correlated samples before and after the treatment.
• The t-test for independent samples is used when the samples
are drawn from different populations, while the t-test for
correlated samples is used when the samples come from the
same population or the same set of samples is subjected to two
different experimental conditions.
• Ideally, the t-test is used when there are less than 30 samples.
t- test for Two Independent Sample/ Groups
• The formula is:
𝑥1 −𝑥2
• 𝑡= 𝑆𝑆1 +𝑆𝑆2 1 1
+
𝑛1 +𝑛2 −2 𝑛1 𝑛2
t- test for Two Independent Sample/ Groups
• Where:
• t= t computed value
• 𝑥1 = mean for group 1
• 𝑥2 = mean for group 2
• 𝑆𝑆1 = sum of squares of group 1
• 𝑆𝑆2 = sum of squares of group 2
• 𝑛1 = number of observations in group 1
• 𝑛2 = number of observations in group 2
t- test for Two Independent Sample/ Groups
• Example 1.
• The following are the scores of 10 male and 10 female AB
students in Spelling. Test the null hypothesis that there is no
significant difference between the performance of male and
female AB students in the said test. Use t-test at 0.05 level of
significance
t- test for Two Independent Sample/ Groups
• 1. Problem:
• Is there a significant difference between the performance of
male and female students in spelling?
• 2. Hypotheses:
• Ho: There is no significant difference between the performance
of male and female students in spelling.
• Ha: There is a significant difference between the performance
of male and female students in spelling.
t- test for Two Independent Sample/ Groups
• 3. Level of Significance:
• α= 0.05
• 𝑑𝑓 = 𝑛1 + 𝑛2 − 2
• 𝑑𝑓 = 10 + 10 − 2
• 𝑑𝑓 = 20 − 2
• 𝑑𝑓 = 18
• t- tabular value= ± 2.101 -2.101 +2.101
t- test for Two Independent Sample/ Groups
• 4. Test of Statistic:
• t-test for two independent samples
• 5. Decision Rule:
• If t computed value ≤ - 2.101, reject Ho
• If t computed value ≥ +2.101, reject Ho
• If -2.101 < t computed value < +2.101, accept Ho
t- test for Two Independent Sample/ Groups
Male (X1) Female (X2) 𝒙𝟐𝟏 𝒙𝟐𝟐
14 12 196 144
18 9 324 81
17 11 289 121
16 5 256 25
4 10 16 100
14 3 196 9
12 7 144 49
10 2 100 4
9 6 81 36
17 13 289 169
Ʃx1= 131 Ʃx2= 78 Ʃ𝐱 𝟐𝟏 = 1891 Ʃ𝐱 𝟐𝟐 = 738
t- test for Two Independent Sample/ Groups
• 6. Computation:
𝑥1 −𝑥2
• 𝑡= 𝑆𝑆1 +𝑆𝑆2 1 1
+
𝑛1 +𝑛2 −2 𝑛1 𝑛2
Ʃ𝑥1 131
• 𝑥1 = = = 13.1
𝑛1 10
• 𝒙𝟏 = 𝟏𝟑. 𝟏
Ʃ𝑥2 78
• 𝑥2 = = 10 = 7.8
𝑛2
• 𝒙𝟐 = 𝟕. 𝟖
t- test for Two Independent Sample/ Groups
• 6. Computation:
Ʃ𝑥1 2 131 2 17,161
• 𝑆𝑆1 = Ʃ𝑥12 − 𝑛1
= 1891 − 10
= 1891 − 10 =
1891 − 1716.1 = 174.9
• 𝑺𝑺𝟏 = 𝟏𝟕𝟒. 𝟗
Ʃ𝑥2 2 78 2 6084
• 𝑆𝑆2 = Ʃ𝑥22 − 𝑛2
= 738 − 10
= 738 − 10
= 738 −
608.4 = 129.6
• 𝑺𝑺𝟐 = 𝟏𝟐𝟗. 𝟔
t- test for Two Independent Sample/ Groups
• 6. Computation:
𝑥1 −𝑥2 13.1−7.8
• 𝑡= 𝑆𝑆1+𝑆𝑆2
= =
1 1 174.9+129.6 1 1
+ +
𝑛1 +𝑛2 −2 𝑛1 𝑛2 10+10−2 10 10
5.3
=
304.5 2
18 10
• 𝒕 = −𝟎. 𝟒𝟎
t- test for Two Independent Sample/ Groups
• 7. Interpretation:
• Since the t computed value is > -2.878, accept Ho. This means
that no significant difference brought about by the dosages on
the length of time it took the rats to fall asleep.
t-test for Correlated Samples
• It is used when comparing the means before and after the
treatment. It is also used to compare the means of pre-test
and post-test.
t-test for Correlated Samples
• Formula:
𝐷
• 𝑡=
2 Ʃ𝐷 2
Ʃ𝐷 −
𝑛
𝑛(𝑛−1)
t-test for Correlated Samples
• Where:
• 𝐷 = mean difference between the pre-test and post-test
• Ʃ𝐷 2 = sum of squares of the difference between the pre-test
and post-test
• Ʃ𝐷= summation of the difference
• n= sample size
t-test for Correlated Samples
• Example 1.
• An experimental study was conducted on the effect of
programmed materials in English on the performance of 20
selected college students. Before the program was
implemented, the pre-test was administered and after 5
months the same instrument was used to get the posttest
result. The following is the result of the experiment. Test the
null hypothesis at 0.05 level of significance.
Pre-test (X1) Post-test (X2) D D2
20 25 -5 25
30 35 -5 25
10 25 -15 225
15 25 -10 100
20 20 0 0
10 20 -10 100
18 22 -4 16
14 20 -6 36
15 20 -5 25
20 15 5 25
18 30 -12 144
15 10 5 25
15 16 -1 1
20 25 -5 25
18 10 8 64
40 45 -5 25
10 15 -5 25
10 10 0 0
12 18 -6 36
20 25 -5 25
ƩD= -81 ƩD2= 947
t-test for Correlated Samples
• 1. Problem:
• Is there a significant difference between the scores of 20
selected college students before and after the
implementation of the program?
• 2. Hypotheses:
• Ho: There is no significant difference between the
performance of 20 selected college students before and after
the implementation of the program.
• Ha: The post-test is higher than the pre-test result
t-test for Correlated Samples
• 3. Level of Significance:
• α= 0.05
• 𝐷𝑓 = 𝑛 − 1
• 𝐷𝑓 = 20 − 1
• 𝐷𝑓 = 19
• t tabular value= -1.729
-1.729
• 5. Decision Rule:
• If t computed value ≤ - 1.729, reject Ho
• If t computed value > -1.729, Accept Ho
t-test for Correlated Samples
• 6. Computation:
𝐷
• 𝑡=
Ʃ𝐷)2
Ʃ𝐷2 − 𝑛
𝑛(𝑛−1)
Ʃ𝐷 −81
• 𝐷= = = −4.05
𝑛 20
𝐷 −4.05 −4.05 −4.05 −4.05
• 𝑡= 2
= 2
= = = =
Ʃ𝐷 −81 6561 947−328.05 618.95
Ʃ𝐷2 − 𝑛 947− 20 947−
20 380 380
𝑛(𝑛−1) 20(20−1) 20(19)
−4.05
1.62881579
−4.05 −4.05
• 𝑡 = 1.62881579 = 1.27625068 = −3.17
• 𝑡 = −3.17
t-test for Correlated Samples
• 7. Interpretation:
• Since the t computed value is < -1.729, Ho is rejected. It
implies that the post-test result is higher than the pre-test
result. This means that the program materials in English is
effective.
t-test for Correlated Samples
• Example 2.
• A certain mental health program was given to 15 insurance
agents for claims to improve their income generating. The
data were recorded before and after the implementation of
the program. Use 0.10 level of significance.
Before the Implementation After the Implementation (x2) D D2
(x1)
5,000 6,000 -1,000 1,000,000
7,500 7,000 500 250,000
8,000 10,000 -2,000 4,000,000
7,000 8,000 -1,000 1,000,000
7,000 7,000 0 0
8,000 9,000 -1,000 1,000,000
8,500 9,000 -500 250,000
10,000 10,000 0 0
6,000 8,000 -2,000 4,000,000
7,000 8,000 -1,000 1,000,000
5,000 10,000 -5,000 25,000,000
6,000 7,000 -1,000 1,000,000
5,500 6,000 -500 250,000
8,000 9,000 -1,000 1,000,000
10,000 11,000 -1,000 1,000,000
ƩD= -16,500 ƩD2= 40,750,000
t-test for Correlated Samples
• 1. Problem:
• Is there a significant difference between the income of insurance
agents before and after the implementation of the mental health
program?
• 2. Hypotheses:
• Ho: There is no significant difference between the income of insurance
agents before and after the implementation of the mental health
program.
• Ha: There is a significant difference between the income of insurance
agents before and after the implementation of the mental health
program.
t-test for Correlated Samples
• 3. Level of Significance:
• α= 0.10
• 𝐷𝑓 = 𝑛 − 1
• 𝐷𝑓 = 15 − 1
• 𝐷𝑓 = 14
• t tabular value= ±1.761
-1.761 +1.761
t-test for Correlated Samples
• 4. Test of Statistic:
• t-test for Correlated samples
• 5. Decision Rule:
• If t computed value ≤ - 1.761, reject Ho
• If t computed value ≥ +1.761, reject Ho
• If -1.761< t computed value < +1.761, accept Ho
t-test for Correlated Samples
• 6. Computation:
𝐷
• 𝑡=
Ʃ𝐷2
Ʃ𝐷2 − 𝑛
𝑛(𝑛−1)
Ʃ𝐷 −16,500
• 𝐷= 𝑛
= 15
= −1,100
𝐷 −1,100 −1,100
• 𝑡= 2
= 2
=
Ʃ𝐷 −16,500 272,250,000
Ʃ𝐷2 − 40,750,000− 40,750,000−
15
𝑛 15
𝑛(𝑛−1) 15(15−1) 15(14)
• Where:
• MSB= Mean Squares Between
• MSW= Mean Squares Within
F-test (One-way ANOVA)
• Example 1
• The store is selling 4 brands of Shampoo. The owner is
interested if there is a significant difference in the average
sales for one week. Perform the Analysis of Variance and test
the hypothesis at 0.05 level of significance that the average
sales of the 4 brands of shampoos are equal.
• The following data are recorded:
X1 X2 X3 X4 𝑿𝟐𝟏 𝑿𝟐𝟐 𝑿𝟐𝟑 𝑿𝟐𝟒
7 9 2 4 49 81 4 16
3 8 3 5 9 64 9 25
5 8 4 7 25 64 16 49
6 7 5 8 36 49 25 64
9 6 6 3 81 36 36 9
4 9 4 4 16 81 16 16
3 10 2 5 9 100 4 25
ƩX1= 37 ƩX2= 57 ƩX3= 26 ƩX4= 36 Ʃ𝐗 𝟐𝟏 Ʃ𝐗 𝟐𝟐 Ʃ𝐗 𝟐𝟑 Ʃ𝐗 𝟐𝟒
= 𝟐𝟐𝟓 = 𝟒𝟕𝟓 = 𝟏𝟏𝟎 = 𝟐𝟎𝟒
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒
= 𝟓. 𝟐𝟗 = 𝟖. 𝟏𝟒 = 𝟑. 𝟕𝟏 = 𝟓. 𝟏𝟒
F-test (One-way ANOVA)
• 1. Problem:
• Is there a significant difference in the average sales of the 4
shampoo brands?
• 2. Hypotheses:
• Ho: There is no significant difference in the average sales of
the 4 shampoo brands.
• Ha: There is a significant difference in the average sales of the
4 shampoo brands
F-test (One-way ANOVA)
• 3. Level of Significance:
• α= 0.05
• 𝑑𝑓𝑏 = 𝑘 − 1 = 4 − 1 = 3
• 𝑑𝑓𝑏 = 3
(3.01) (3)
A B C
40 50 40
Method of 41 50 41
Teaching Factor
40 48 40
1 (row)
39 48 38
38 45 38
40 45 50
Method of 41 42 46
Teaching Factor 2
39 42 43
(row)
38 41 43
38 40 42
40 40 40
Method of 43 45 41
Teaching Factor 41 44 41
3 (row) 39 44 39
38 43 38
Total ƩA3= 201 ƩB3= 216 ƩC3= 199 ƩR3= 616
Total ƩCL1= 595 ƩCL2= 667 ƩCL3= 620 GT= 1882
F-test (Two-Way ANOVA with Interaction Effect)
• 1. Problem:
• A. Is there a significant difference in the performance of the
three groups of students under three different instructors?
• B. Is there a significant difference in the performance of the
three groups of students under three different methods of
teaching?
• C. Is there an interaction effect between teachers and method
of teaching factors?
F-test (Two-Way ANOVA with Interaction Effect)
• 2. Hypotheses:
• Ho: There is no significant difference in the performance of the
three groups of students under three different instructors.
• Ha: There is a significant difference in the performance of the three
groups of students under three different instructors.
• Ho: There is no significant difference in the performance of the
three groups of students under three different methods of
teaching.
• Ha: There is a significant difference in the performance of the three
groups of students under three different methods of teaching.
F-test (Two-Way ANOVA with Interaction Effect)
• 2. Hypotheses:
3.26 3.26
2.63
F-test (Two-Way ANOVA with Interaction Effect)
• 4. Test of Statistic:
• 5. Decision Rule:
• If F computed value ≥ 3.26, reject Ho
• If F computed value ≥ 3.26, reject Ho
• If F computed value ≥ 2.63, reject Ho
• If F computed value < 3.26, accept Ho
• If F computed value < 3.26, accept Ho
• If F computed value < 2.63, accept Ho
F-test (Two-Way ANOVA with Interaction Effect)
• 6. Computation:
F-Value
Total 508.58 44
F-test (Two-Way ANOVA with Interaction Effect)
• 7. Interpretation:
𝑛Ʃ𝑥𝑦−Ʃ𝑥Ʃ𝑦
• 𝑟=
𝑛Ʃ𝑥 2 − Ʃ𝑥 2 [𝑛Ʃ𝑦 2 −(Ʃ𝑦)2
The Pearson Product Moment Coefficient of
Correlation, r
• Where:
• r= Pearson r
• n= sample size
• Ʃxy= the sum of the product of x and y
• ƩxƩy= the product of the sum of Ʃx and the sum of Ʃy
• Ʃx2= sum of squares of x
• Ʃy2= sum of squares of y
The Pearson Product Moment Coefficient of
Correlation, r
• Example no. 1
• Below are the midterm grades and the final
examinations of 10 students in Psychology 101. Use
0.05 level of significance.
Pearson Product Moment Coefficient of Correlation
x y x2 y2 xy
75 80 5625 6400 6000
70 75 4900 5625 5250
65 65 4225 4225 4225
90 95 8100 9025 8550
85 90 7225 8100 7650
85 85 7225 7225 7225
80 90 6400 8100 7200
70 75 4900 5625 5250
65 70 4225 4900 4550
90 90 8100 8100 8100
Ʃx= 775 Ʃy= 815 Ʃx2=60925 Ʃy2=67325 Ʃxy= 64,000
𝒙 = 𝟕𝟕. 𝟓 𝒚 = 𝟖𝟏. 𝟓
r- value Interpretation