BIOSTAT Lab Discussion Midterm
BIOSTAT Lab Discussion Midterm
TEST
What is t-test?
▪Is used to compare data that we get in two groups
▪The t-statistic shows if there is a significant
difference (not expected difference) between the
two groups
▪For example: Is life satisfaction of students high
when they experience counseling?
Research Problem
We have 20 students; 10 of them experience
counseling while the other 10 students doesn’t
experience yet counseling.
- We measure their life satisfaction to know if
there’s a difference between the two groups
Hypotheses
H0 = There is no significant difference in the life satisfaction between the two groups.
(u1 = u2)
Ha = There is a significant difference in the life satisfaction between the two groups.
(u1 ≠ u2)
Data
Undergone Counselling Never experience counselling
7 5
8 4
10 7
8 6
7 7
6 5
4 3
7 4
8 4
9 5
Step 1: Compute the mean of the two groups
Undergone Counselling (X1) Never experience counselling (X2)
7 5
8 4
10 7
8 6
7 7
6 5
4 3
7 4
8 4
9 5
TOTAL = 74 TOTAL = 50
M = 74/10 = 7.4 M = 50/10 = 5
Step 2: Compute the variance of each group
X1 X1^2 X2 X2^2
7 49 5 25
8 64 4 16
10 100 7 49
8 64 6 36
7 49 7 49
6 36 5 25
4 16 3 9
7 49 4 16
8 64 4 16
9 81 5 25
TOTAL = 74 ΣX1^2=572 TOTAL = 50 ΣX2^2=266
M = 74/10 = 7.4 M = 50/10 = 5
Step 2: Compute the Variance of each
group
Step 3: Compute the Standard error of
difference between means
Step 4: Compute for T-statistics
Step 5: Know the critical value
Step 6: Compare the t-statistic (computed
value) to the critical value (from the table)
t = 3.58
Table t = 2.101
If the the t statistic (computed table ) is much
greater than the table t-value we will reject the null
hypothesis of H0
Conclusion: Therefore, there is significant difference
between the two groups
DEPENDENT/PAIRED
SAMPLE T-TEST
Hypothesis
H0: There is no significant difference in life satisfaction scores before and during
the COVID-19 pandemic
Two-tailed hypothesis
H1: There is significant difference in life satisfaction scores before and during
COVID -19 pandemic
One –tailed hypothesis
H1: The life satisfaction scores obtained before the COVID-19 pandemic will be
higher compared to the scores obtained during the outbreak
Result
This study is conducted to determine if there are changes in
life satisfaction scores before and during the COVID 19
pandemic. A paired samples t-test was utilized since the
researchers utilized a within subjects design. Results reveal
that the scores before COVID (M=109,4, s =8.08) was
significantly higher compared to the scores obtained during
the outbreak (M=91.7, s=5.52), t(14) = 6.76 , p < .001,
d=1.74. With these results, it can be argued that the COVID-
19 pandemic may have an effect on a persons well being or
happiness
ONE SAMPLE T-TEST
One sample t-test
• Parametric statistical tool that allows us to learn whether a sample
differs from the population from which it was drawn when the
population standard deviation is not known (Christopher,2017)
Formula
Sample Problem
NUMBER OF DAYS (x)
On average, the dogs in a local animal rescue
organization get adopted after 22 days (u=22 30
days) . Some digs get adopted in less than 22 35
days while some take more than 22 days to
20
get adopted. The Black Dog Syndrome refers
to the tendency for black dogs to get passed 41
over for adoption in favor of nonblack dogs. 58
Determine if there is a significant difference in
the number of days it takes for black dogs to 2
be adopted compared to other breeds 18
28
State the hypotheses
H0 : μ black dogs = μ all dogs
H1 : μ black dogs ≠ μ all dogs
α = 0.05 (two-tailed)
Locate the critical region
• α = 0.05 (two-tailed)
• Df = n -1
= 8-1
=7
• Critical value = 2.365
Make a decision
T = | 1.18|
Critical value = |2.365|
The number of days it takes for black dogs to get adopted (M=29, SD
16.71) does not significantly differ from that of other types of digs,
t=1.18, p =275.
ONE-WAY ANOVA
What is ANOVA?
• The ANOVA or F-test is used to compare 3 or more data in a
groups
• This shows if theres a significant difference in these groups
• For example : What is the ideal temperature to take an exam?
COLD, NORMAL (room temperature) or HOT?
State the hypotheses
H0 : μ 1 = μ 2 = :μ 3
H1 : At least one group is different from another
α = 0.05 (two-tailed)
DATA
COLD (15 C) NORMAL (25 C) HOT (35 C)
4 8 2
7 6 2
5 7 3
3 6 4
5 5 1
Step 1: Compute the mean of the groups