1 Hypothesis Testing Rev
1 Hypothesis Testing Rev
1 Hypothesis Testing Rev
TESTING
What is Hypothesis
A Hypothesis is the statement or an
assumption about relationships
between variables which can be
proven false.
or
A Hypothesis is a tentative
explanation for certain behaviors,
phenomenon or events that have
occurred or will occur.
HYPOTHESIS TESTS
Null hypothesis HO:
There is no difference
TYPES OF HYPOTHESIS
Each of the following statements is
an example of a null hypothesis
and alternative hypothesis.
A difference is considered
significant if the probability of
getting that difference by random
chance is very small.
P value:
The probability of making an error by
chance
Historically we use p < 0.05
ERRORS IN HYPOTHESIS
TESTING
Student
t - Test
Students t-test
Student was W. S.
Gossett. He published his
test anonymously as
Student because he was
working for the brewers
Guinness and had to keep
the fact they were using
statistics a secret.
The test is used to compare
samples from two different
batches.
It is usually used with small
(<30) samples that are
normally distributed.
Examples:
Do males and females significantly
differ on their level of math anxiety?
IV: Gender (2 groups: males and females)
DV: Level of math anxiety
Do older people exercise significantly
less frequently than younger people?
IV: Age (2 groups: older people and
younger people)
DV: Frequency of getting exercise
Examples:
Do 6th graders have significantly more
unexcused absences than 4th graders
in LNC?
IV: Grade (2 groups: 6th grade and 4th
grade)
DV: Unexcused absences
Note that Independent t-test can be
applied to answer each research
question when the independent
variable is dichotomous with only two
groups and the dependent variable is
continuous.
Assumptions
The two groups are independent of
one another.
The dependent variable is normally
distributed.
The two groups have approximately
equal variance on the dependent
variable.
Ho: 1 = 2
H 0:
1
or
H 0:
1
H1 : 1 2
H 1:
1
or
H 1:
1
x x
1
1
s n
s n 1
2
n n
n n
variance
Whereby:
n : Sample size
x : Sample mean
s2 = variance
df
Fail to reject the null hypothesis and conclude that there is no statistically
significant difference between the two groups on the dependent variable,
t = , p > .
OR
Reject the null hypothesis and conclude that there is a statistically
significant difference between the two groups on the dependent variable,
t = , p < .
If directional, indicate which group is higher or lower (greater,
or less
31
than, etc.).
Total
Mean
Standard deviation
Dog A
Dog B
46
31
57
35
54
50
51
35
38
36
246
187
Dog B
46
31
57
35
54
50
51
35
38
36
Total
246
187
Mean
49.2
37.4
Standard deviation
Dog B
46
31
57
35
54
50
51
35
38
36
Total
246
187
Mean
49.2
37.4
7.463
7.301
Standard deviation
Total
Mean
Standard
deviation
Dog A
Dog B
46
31
57
35
54
50
51
35
38
36
246
49.2
7.463
187
37.4
7.301
Total
Mean
Standard
deviation
Dog A
Dog B
46
31
57
35
54
50
51
35
38
36
246
49.2
7.463
187
37.4
7.301
11.8
= 2.527
t=
4.67
Total
Mean
Standard
deviation
Dog A
Dog B
46
31
57
35
54
50
51
35
38
36
246
49.2
7.463
187
37.4
7.301
=5+5 -2=8
Dog A
Dog B
46
31
57
35
54
50
51
35
38
36
Total
246
187
Mean
49.2
37.4
Standard
7.463
7.301
df = n1 + n2 - 2
deviation
=5+5 -2=8
tcrit = 2.306
=5+5 -2=8
tcrit = 2.306
2
3
4
4
2
4
3
MeansA = ?
SDA = ?
3
5
0
3
4
0
MeansB = ?
SDB = ?
Diff of means= ?
SE of diff = ?
DoF = ?
t=?
Group A
Group B
.
xB - xB
3
_
xA=
Diff of means =
df = n A + n B
xB=
SDA=
xA - xB
2=
SDB=
SE of diff = SDA - SD B =
t=?
2
3
4
4
2
4
3
Mean = 3.143
SD= 0.8997
3
5
0
3
4
0
Mean = 2.50
SD = 2.07
df = 11
t = 0.7433
Single-Sample
Z Test
30%
Sample Mean
()
30%
Population Mean
30%
Sample Mean
()
This is the
symbol
for a
sample
mean
30%
Population Mean
30%
Sample Mean
()
30%
Population Mean
30%
Sample Mean
()
30%
Population Mean
30%
Sample Mean
()
30%
Population Mean
50% -
50% +
34% -
34% +
34% -
-1
34% +
mean
68%
+1
34% -
-2 -1
34% +
mean
95%
+1 +2
34% -
-2 -1
34% +
mean
95%
+1 +2
rare
rare
-2 -1
mean
+1 +2
2.5%
95%
2.5%
Or common
Common
-2 -1
mean
95%
+1 +2
Common
-2 -1
mean
95%
+1 +2
Common
Z
values
-2 -1
mean
-1.96
+1 +2
+1.96
95%
Note this
little hat ()
over the p
means that
this proportion
is an estimate
of a population
(.90)
(100)
(100)
(100)
Sample Proportion
Sample Proportion
Sample Proportion
Population Proportion
Population Proportion
Population Proportion
The difference
The difference
Sample Size:
Sample Size:
Common
rare
-2 -1
mean
-1.96
rare
+1 +2
+1.96
95%
Common
rare
-2.67
-2 -1
-1.96
mean
95%
rare
+1 +2
+1.96
Common
rare
-2.67
-2 -1
-1.96
This is the
Z-Statistic
we calculated
mean
rare
+1 +2
+1.96
95%
Common
rare
-2.67
-2 -1
-1.96
This is the
Z Critical
mean
rare
+1 +2
+1.96
95%