Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
GROUP 6
I. Definition of t-test
-is a continuous probability distribution that
arises when estimating the mean of a normally
distributed population in situations where the
sample size is small.
- are all parametric tests used at the bivariate
level and all compare means between two groups.
𝑑ത σ 𝑑𝑖
𝑡= , where 𝑑ҧ = ,
𝑠𝑑
ഥ 𝑛
2
σ 𝑑𝑖
σ 𝑑𝑖2 − 𝑠𝑑
𝑠𝑑 = 𝑛
and 𝑠𝑑ത = .
𝑛−1 𝑛
Where:
ഥ = mean of the difference
𝒅
𝒔𝟐𝒅 = variance of the group
𝒏 = number of subjects in a sample
II. Two-Sample Pooled t-test (Independent Samples t-
test with Equal Variances or Uncorrelated t-test)
• T-tests assume that independent samples are randomly
drawn from normally distributed populations with
unknown parameters. The samples are independent in
the sense that they are drawn from different
populations and each element of one sample is not
paired (linked to) with its corresponding element of the
other sample. The population variances of the two
groups 𝜎12 and 𝜎22 need to be equal or willing to
assume equal in order to use the pooled variance.
Where:
𝒙𝟏 = mean of sample 1
𝒙𝟐 = mean of sample 2
𝒔𝟐𝒑 = variance of the pooled group
𝒔𝟐𝟏 = variance of sample 1
𝑺𝟐𝟐 = variance of sample 2
𝒏𝟏 = number of subjects in sample 1
𝒏𝟐 = number of subjects in sample 2
NOTE: If 𝒔𝟐𝟏 and 𝑺𝟐𝟐 are not given in the problem,
use this formula to find 𝒔𝟐𝟏 and 𝑺𝟐𝟐 :
2
𝑛 𝑥𝑖 −𝑥ҧ 𝑗
𝑠𝑗2 = σ𝑖=1 ; for 𝑗 = 1,2
𝑛−1
Where:
ഥ𝒋 = mean of each samples.
𝒙
𝒙𝒊 = data of each samples.
𝒔𝟐𝒋 = variance of each samples
II. Meaning of Hypothesis
-Is defined as a proposition placed under
examination, which cannot be accepted as true
unless proven and tested statistically.
• Two kinds of Hypothesis:
1. Null Hypothesis (𝑯𝟎 )
- This expresses the idea of no existence of
relationship or difference between the variables
under study.
2. Alternative Hypothesis (𝑯𝒂 )
- it states the existence of difference or
relationship.
• Directional and Non-directional Hypothesis:
Directional Test of Hypothesis- is considered if the
direction of the difference is stated, that is the self-
concept of one group is more positive than that of the
other group. This test makes use of the one-tailed test
or one-sided test.
Example:
𝐻𝑜 : 𝜇1 > 𝜇2 .or 𝐻𝑎 : 𝜇1 < 𝜇2
Non-directional Test of Hypothesis- makes use of two-
tailed test or two sided test. The test is considered
non-directional if the direction or the nature of the
difference is not stated.
Example:
𝐻𝑜 : 𝜇1 = 𝜇2 or 𝐻𝑎 : 𝜇1 ≠ 𝜇2
III. Steps in testing Hypothesis:
Figure 1.1
B. For One-tailed test- the critical region
(rejection region) consists of one part –
either a lower part on the left end of the
curve of the sampling distribution of the
test statistic or an upper part of on the
right end of the curve.
See figure 1.2 and 1.3
𝑑ത σ 𝑑𝑖
𝑡= , where 𝑑ҧ = ,
𝑠𝑑
ഥ 𝑛
2
σ 𝑑𝑖
σ 𝑑𝑖2 −
𝑛
𝑠𝑑 =
𝑛−1
𝑠𝑑
and 𝑠𝑑ത =
𝑛
Before After Difference (𝑑𝑖 ) Squared of the
Difference (𝑑𝑖2 )
9 7 9-7=2 4
10 6 10-6=4 16
7 5 7-5=2 4
5 4 5-4=1 1
7 4 7-4=3 9
5 6 5-6=-1 1
9 7 9-7=2 4
6 5 6-5=1 1
8 5 8-5=3 9
7 7 7-7=0 0
𝑑𝑖 = 17 𝑑𝑖2 = 49
Using the table above, we can now solve for the
following equations:
σ 𝑑𝑖 17
A. 𝑑ҧ = 𝑛
=
10
= 1.7
2
σ 𝑑𝑖 17 2 289
σ 𝑑𝑖2 − 49− 49−
𝑛 10 10
B. 𝑠𝑑 = 𝑛−1
=
10−1
=
9
49−28.9 20.1
= = = 2.233 = 𝟏. 𝟒𝟗
9 9
𝑠𝑑 1.49 1.49
C. 𝑠𝑑ത = 𝑛
=
10
=
3.162
= 𝟎. 𝟒𝟕𝟏
𝑑ത 1.7
D. 𝑡 = 𝑠𝑑
=
0.471
= 𝟑. 𝟔𝟏
ഥ
6. State Result:
• If less than −2.2622, or greater than
2.2622, reject the null hypothesis and
accept the alternative hypothesis.
Since 𝑡 = 3.61 > 2.2622, we do not
accept 𝐻𝑂 , then we accept 𝐻𝑎 .
7. State Conclusion:
• The anti-hunger weight loss pill significantly
affected hunger, 𝑡 = 3.61, 𝑝 < 0.05.
Example of Independent T-TEST with
Assumed Equal Variance (Pooled t-test)
2. A statistic teacher wants to compare his two
classes to see if they performed any
differently on the tests he gave that
semester. Class A had 25 students with an
average score of 70, standard deviation 15.
Class B had 20 students with an average score
of 74, standard deviation 25. Using 𝛼 = 0.05,
did these two classes perform differently on
the tests?
Solution:
1. Define Null and Alternative Hypothesis
𝐻0 𝑎𝑛𝑑 𝐻𝑎
𝐻𝑜 ∶ 𝜇1 = 𝜇2 ; 𝐻𝑎 ∶ 𝜇1 ≠ 𝜇2
−2.0167 2.0167
1525 2
− 1 + 25 2 (20 − 1)
𝑠𝑝2 =
25 + 20 − 2
(225) 24 + (625) 19
=
43
5400 + 11875
=
43
17275
=
43
𝑠𝑝2 = 𝟒𝟎𝟏. 𝟕𝟒
𝑥1 −𝑥2
B. 𝑡 =
𝑠2
𝑝 𝑠2
𝑝
+
𝑛1 𝑛2
70 − 74
𝑡=
401.74 401.74
+
25 20
−4
=
36.16
𝑡 = −𝟎. 𝟔𝟕
6. State Result:
*If t is less than −2.0167, or greater than
2.0167, reject the null hypothesis and accept
the alternative hypothesis.
Since −2.0167 < 𝑡 = −0.67 < 2.0167, then we
accept 𝐻0 .
7. State Conclusion:
There was no significant difference between
the test performances of Class A and Class B,
𝑡 = −0.67, 𝑝 > 0.05.
Classmates try to solve these problems: ^^,
Group A (OB-surg ward): 20, 27, 28, 20, 15, 17, 18, 25, 25, 25, 22, 28
Group B (gen surg ward): 17, 17, 17, 30, 25, 15, 22, 30, 20, 25, 25, 15