MATHunit 3
MATHunit 3
MATHunit 3
Lesson Objectives: At the end of this unit, you are expected to:
This unit deals with the Difference Between Two Population Means t- test and ANOVA.
Observe the figure below. When do we use t-test and ANOVA?
The figure above is taken from https://www.iuj.ac.jp/faculty/kucc625/method/anova.html
(̅̅̅
𝑥1̅−𝑥
̅̅̅2̅)
𝑡= 1 1
√𝑠𝑝2(𝑛 +𝑛 )
1 2
(𝑛1−1)𝑠12+(𝑛2 −1)𝑠22
Where: 𝑠𝑝2 = ; with: 𝑑𝑓 = 𝑛1 + 𝑛2 − 2
𝑛1 +𝑛2−2
Two-tailed test: 𝐻𝑜 : 𝜇1 = 𝜇2 or 𝜇1 − 𝜇2 = 0
𝐻𝑎 : 𝜇1 ≠ 𝜇2 or 𝜇1 − 𝜇2 ≠ 0
One- tailed test: 𝐻𝑜 : 𝜇1 = 𝜇2 or 𝜇1 − 𝜇2 = 0 or 𝐻𝑜 : 𝜇1 ≥ 𝜇2 or 𝜇1 ≤ 𝜇2
𝐻𝑎 : 𝜇1 < 𝜇2 or 𝜇1 > 𝜇2
The Independent Samples t- test compares the means of two independent groups in
order to determine whether there is statistical evidence that the associated
population means are significantly different.
̅
𝒅
𝒕= 𝑺𝒅 ; with df = n – 1
⁄
√𝒏
𝒏(∑ 𝒅𝒊 𝟐 )−(∑ 𝒅𝒊 )𝟐 ∑ 𝒅𝒊
Where: 𝑺𝒅 = √ ; ̅=
𝒅
𝒏(𝒏−𝟏) 𝒏
𝑯𝒐 : 𝝁𝒅 = 𝟎 → 𝑯𝒂 : 𝝁𝒅 ≠ 𝟎 ; 𝑯𝒐 : 𝝁𝒅 ≥ 𝟎 → 𝑯𝒂 : 𝝁𝒅 < 𝟎
𝑯𝒐 : 𝝁𝒅 ≤ 𝟎 → 𝑯𝒂 : 𝝁𝒅 > 𝟎
Example 1:
A group of high school students was exposed to two different teaching methods, and
students’ ratings in the tests were obtained as follows:
Method A: 77, 85, 92, 87, 88, 84, 80, 82, 89, 79
Method B: 75, 93, 83, 90, 78, 83, 79, 91
Use 0.05 level of significance to test that there is no significant difference between the
mean ratings.
5 Since |𝑡𝑐𝑜𝑚𝑝 | = 0.11 < |𝑡𝑐𝑟𝑖𝑡 | = 2.120, then Do Not Reject the 𝐻0
Or: At 0.05 level of significance, there is sufficient evidence to show that there is no
significant difference between the mean ratings.
Step 1: Encode the data in excel. Step 2: Click on the “data” tab
Step 4: a) input the data of Method A to Variable 1 Range by highlighting cell A1 to A11
b) input the data of Method B to Variable 2 Range by highlighting cell B1 to B9
c) click on the labels because we included the labels
(Method 1- A1, and Method B- b1)
d) make sure the “Alpha” is correct. Alpha 0.05 is the default and you can change it
depending on the given.
e) click on the box beside output range, then click any cell (in the example below, I
clicked on the cell D2.
f) click “ok”
When clicking ok, the output will show on cell D2. As you can see the values are the same as
what we have computed manually above.
Example 2:
Ten female and male soldiers participated in a shooting competition. Their scores were
recorded as follows:
Female 67 24 57 55 63 54 56 68 33 43
Male 70 38 58 58 56 67 56 75 42 38
Do the data indicate that the male soldiers are better in shooting competitions than the
female soldiers? Use 1% level of significance.
𝐻𝑜 : 𝜇1 = 𝜇2 𝑜𝑟 𝐻𝑜 : 𝜇1 ≥ 𝜇2
𝐻𝑎 : 𝜇1 < 𝜇2 claim
52−55.8
𝑡= 1 1
= −0.617
√189.53( + )
10 10
5 Since |𝑡𝑐𝑜𝑚𝑝 | = 0.617 < |𝑡𝑐𝑟𝑖𝑡 | = 2.2552, then Do Not Reject the 𝐻0
6 At 0.01 level of significance, there is no sufficient evidence to show that male soldiers
are better in shooting competition than the female soldiers
Excel Output:
➢ As you can see, the values are the same even when you compute it manually.
Example 3
Charlie and Kate administered their researcher-made test to measure male high school
students' mathematical ability on some solid figures. They randomly took 10 male pupils of
San Louis laboratory High School. Their scores in each solid figure are shown below:
Students 1 2 3 4 5 6 7 8 9 10
Cube 9 7 6 6 4 3 5 4 5 8
Cylinder 5 6 8 6 5 6 5 7 3 5
Is there difference in the students' mathematical ability (mean scores) on the above-
mentioned solid figures? Assume that the test score is approximately normally distributed.
Use 0.01 level of significance.
Solution: First, you have to get the difference of each score (d) and the mean
difference
Students 1 2 3 4 5 6 7 8 9 10
Cube 9 7 6 6 4 3 5 4 5 8
Cylinder 5 6 8 6 5 6 5 7 3 5
d 4 1 -2 0 -1 -3 0 -3 2 3 ∑ 𝑑 = 1 𝑑̅ = 0.1
𝑑2 16 1 4 0 1 9 0 9 4 9 ∑ 𝑑 2 = 53
1 𝐻𝑜 : 𝜇𝑑 = 0
𝐻𝑎 : 𝜇𝑑 ≠ 0 claim
𝒅̅ 0.1
𝒕= 𝑺𝒅 = 2.4244 = 𝟎. 𝟏𝟑𝟎𝟒
⁄ √10
√𝒏
5 Since |𝑡𝑐𝑜𝑚𝑝 | = 0.1304 < |𝑡𝑐𝑟𝑖𝑡 | = 3.250, then Do Not Reject the 𝐻0
Excel Presentation:
The process is the same as the t- test for independent samples. The difference is that you
will choose the “t-test: Paired Two Samples for Mean”
The result should be like the photo below:
To do: Compare the result of the excel output and the one we computed manually.
Example 4
Twenty college freshmen were divided into 10 pairs, each member of the pair having
approximately the same IQ. One of each pair was selected at random and assigned to a Math
section using programmed materials only. The other member of each pair was assigned to a
section in which the professor lectured. At the end of the semester, each group was given
the same examination and the results were recorded. Assuming that the populations are
normally distributed, test at 0.01 significance level that there is no difference in the two
learning procedures.
𝒅̅ −1.6
𝒕= 𝑺𝒅 = 6.3805 = −0.793
⁄ √10
√𝒏
5 Since |𝑡𝑐𝑜𝑚𝑝 | = 0.793 < |𝑡𝑐𝑟𝑖𝑡 | = 3.250, then We Fail to Reject the 𝐻0
Test of Hypothesis for the Difference between Two or More Population Means
Analysis of Variance is used to test hypothesis about three or more population means
rather than population variances. The F-test is used to test the significance of the
differences of the population means named after R.A. Fisher.
- F- test: key statistics in ANOVA
One-way ANOVA: this design is called s completely randomized experiment with equal
sample sizes. The term “one-way” refers to the condition that only one factor attribute is
being studied in the experiment. (This is also categorized as a single factor ANOVA)
The purpose of ANOVA, as the term implies, is to establish the variations (or sources of
differences) between groups and within groups. In comparing the groups, there are three
possible sources of variation, these are:
1. Variation between groups (column means or treatments).
2. Variation within groups (experimental error).
3. Total variation among the values of all groups.
➢ The population being studied are referred to as the treatments. The term
treatment is used generally to refer various classifications such as different
schools, fertilizers, varieties of plants, soil types, age groups, methods,
machines, courses, or different locations. The variation among samples
involves the differences among the treatment means while variation within
samples is due to random error.
𝐻𝑜 : 𝜇1 = 𝜇2 = 𝜇3 = 𝜇4 = 𝜇5
𝐻𝑎 : 𝑎𝑡 𝑙𝑒𝑎𝑠𝑡 𝑡𝑤𝑜 𝑜𝑓 𝑡ℎ𝑒 𝑚𝑒𝑎𝑛𝑠 𝑎𝑟𝑒 𝑛𝑜𝑡 𝑒𝑞𝑢𝑎𝑙
➢ Basically, the steps are the same as what we have learned above/ from the
previous lessons.
➢ We will not deal with the manual computations of the f- test. What we will do
is the computation in excel. However, I will show you one example of manual
computation, but the rest will be in excel.
Note: You can see the table for F- distribution table (Critical Values) at the end of this
Module (Appendix).
Example 1. The following are the IQ’s of a random sample of students from 3 large schools.
At 5% level of significance, test if there is a significant difference among the three groups.
School 1 School 2 School 3
101 93 104
107 106 96
106 95 103
98 96 108
115 100 93
5 Since |𝐹𝑐𝑜𝑚𝑝 | = 1.97 < |𝐹𝑐𝑟𝑖𝑡 | = 3.89, then We Fail to Reject the 𝐻0
6 At 0.05 level of significance, there is not enough evidence to show that there is a
significant difference among the three groups.
Excel Process:
The excel output should be like the picture below:
Yield (cavans)
Year Fertilizer 1 Fertilizer 2 Fertilizer 3 Fertilizer 4
1 49 46 55 50
2 57 51 61 58
3 56 58 52 57
4 52 61 60 65
5 47 50 48 61
6 59 48 57 53
Solution:
1 𝐻𝑜 : 𝜇1 = 𝜇2 = 𝜇3 There is no significant difference among the population means.
(claim)
5 Since |𝐹𝑐𝑜𝑚𝑝 | = 1.086 < |𝐹𝑐𝑟𝑖𝑡 | = 3.098, then We Fail to Reject the 𝐻0
6 At 0.05 level of significance, there is not enough evidence to show that there is a
significant difference among the three groups.
Now it’s your turn to answer some exercises. Refer at the end of Module 5 for the key
answer.
5. Complete the one-way (single factor) ANOVA table and answer the questions below
the table.
Source of df Sum of Mean of Computed F
variation squares squares
Between 2 𝐹𝑐𝑜𝑚𝑝 =
samples
Within
samples 57.87
(error)
Total 11 285.00
a. How many treatments are there? ________________________
b. What is the sample size? _______________________
c. What is the critical value if 𝛼 = 0.01? _________________
d. State the null and the alternative hypothesis.
𝐻𝑜 :_______________________________________________________________________
𝐻𝑎 :_______________________________________________________________________
As we all know, you are done with your Research 1 subject last semester and
currently you are taking another research subject this second semester. As part of
your evaluation, write down your research title (last semester/ this semester) and
your specific research questions. Identify what statistical tool you need to answer
your research questions.