L15 Testing of Hypothesis
L15 Testing of Hypothesis
L15 Testing of Hypothesis
MATH 30
Probability and Statistics
OBJECTIVES
CONFIDENCE INTERVAL
Single Sample (Means)
Known Variance /Large Sample(n>30)
s s
x z x z
2 n 2 n
Large Sample (n>30): s s
s s
x z x z
2 n 2 n
Small Sample (n<30 and s unknown)
s s
v n 1 x t x t
2 n 2 n
REVIEW
CONFIDENCE INTERVAL
Two Sample (Difference Between Two Means)
Known Variance /Large Sample(n>30)
s 12 s 22 s 12 s 22
( x1 x2 ) z 1 2 ( x1 x2 ) z
2 n1 n2 2 n1 n2
Small Sample (Equal Variances)
v n1 n2 2 1 1 1 1
( x1 x2 ) t s p 1 2 ( x1 x2 ) t s p
2 n1 n2 2 n1 n2
(n1 1) s1 (n2 1) s2
2 2
sp
n1 n2 2
2
Small Sample (Unequal Variances) s12 s2 2
n n
v 2
1 2
2
s12 s22 s12 s22 s12 s2 2
( x1 x2 ) t 1 2 ( x1 x2 ) t
n
n
2 n1 n2 2 n1 n2 1 2
n1 1 n2 1
REVIEW
CONFIDENCE INTERVAL
Two Sample
Paired Observation
sd sd
v n 1 d t d d t
2 n 2 n
Proportion
Single Proportion
pˆ qˆ pˆ qˆ
pˆ z p pˆ z
2 n 2 n
Difference of Two Proportions
pˆ1qˆ1 pˆ 2 qˆ2 pˆ1qˆ1 pˆ 2 qˆ2
( pˆ1 pˆ 2 ) z p ( pˆ1 pˆ 2 ) z
2 n1 n2 2 n1 n2
REVIEW
CONFIDENCE INTERVAL
Two Sample
Paired Observation
sd sd
v n 1 d t d d t
2 n 2 n
Proportion
Single Proportion
pˆ qˆ pˆ qˆ
pˆ z p pˆ z
2 n 2 n
Difference of Two Proportions
pˆ1qˆ1 pˆ 2 qˆ2 pˆ1qˆ1 pˆ 2 qˆ2
( pˆ1 pˆ 2 ) z p ( pˆ1 pˆ 2 ) z
2 n1 n2 2 n1 n2
REVIEW
CONFIDENCE INTERVAL
Variances
(n 1) s 2 (n 1) s 2
v n 1 s 2
2 2 1
2 2
v n 1 s12
s 22 s2 s12
2 f
1
f ( v1 ,v 2 ) s 2 2
( v1 ,v 2 )
s 22
2
CONCEPTS
• "Critical tests of this kind may be called tests of significance, and when such tests
are available we may discover whether a second sample is or is not significantly
different from the first.“ - Fisher
Basic Concepts
Types:
Defining Hypothesis:
A. Determine the Claim in the problem.
B. What parameter does the claim wants to check?
C. Does the claim include equality:
Keywords:
GREATER ( > ) LESS THAN ( < ) NOT EQUAL (≠)
Higher Lower Changed
Better Worsened Different
More Less Varied
Increased Decreased
Defining Hypothesis:
H0 : q q
H1 : q > q ; q q ; q ≠ q
Level of Significance:
Acceptance
region
1-α
z / 2 μ z / 2
Critical values
Rejection regions
Classical Method of Testing
Critical Region:
• Region where there is no sufficient proof to accept the
null hypothesis, hence it is rejected and the alternative
is accepted.
k=0.2946
k00
1 0 0
H1: ≠ o
TEST STATISTICS
TESTING OF HYPOTHESIS
Single Sample (Means)
Known Variance /Large Sample(n>30)
pˆ p
z H1:p > po z > z
pˆ qˆ H1: p po z < z
H1: p ≠ po z > z/2 and z < z/2
n
EXAMPLES
Single Mean : Large Sample
A. One-tailed test
B. Two tailed test
21%
t
t
s
s
te
te
d
d
ile
ile
ta
ta
e-
o
Tw
On
An e-commerce research company claims that 60% or more
graduate students have bought merchandise on-line. A
consumer group is suspicious of the claim and thinks that the
proportion is lower than 60%. A random sample of 80
graduate students show that only 22 students have ever
done so. Is there enough evidence to show that the true
proportion is lower than 60%? Conduct the test at 10% Type
I error rate, and use the p-value and rejection region
approaches.
a. Which of the following is the correct alternative
hypotheses.
A. H1: p < 0.6 43% 43%
B. H1: p= 0.6
C. H1: p > 0.6 7% 7%
6
6
e
0.
0.
0.
ov
<
>
p=
ab
p
p
:
:
e
H1
H1
H1
th
of
e
on
N
An e-commerce research company claims that 60% or more
graduate students have bought merchandise on-line. A
consumer group is suspicious of the claim and thinks that the
proportion is lower than 60%. A random sample of 80 graduate
students show that only 22 students have ever done so. Is there
enough evidence to show that the true proportion is lower than
60%? Conduct the test at 10% Type I error rate, and use the p-
value and rejection region approaches.
a. What is the value of p-hat and q-hat
53%
47%
A. p-hat =22 and q-hat= 58
B. p-hat =0.22 and q-hat=
0.58
C. p-hat =0.025 and q-hat=
0.975 0% 0%
D. p-hat =0.275 and q-hat=
75
25
58
58
7
0.
t=
0.725
0.
0.
t=
ha
t=
t=
ha
q-
ha
ha
q-
q-
q-
d
an
d
an
an
an
22
22
t=
5
02
27
.
=0
ha
.
=0
=0
p-
at
An e-commerce research company claims that 60% or more
graduate students have bought merchandise on-line. A
consumer group is suspicious of the claim and thinks that the
proportion is lower than 60%. A random sample of 80 graduate
students show that only 22 students have ever done so. Is there
enough evidence to show that the true proportion is lower than
60%? Conduct the test at 10% Type I error rate, and use the p-
value and rejection region approaches.
a. What is the z-value at alpha?
A. 1.28
B. -1.28 57%
C. 3.28
D. -3.28
29%
14%
0%
TEST STATISTICS
TESTING OF HYPOTHESIS
Two Means (Difference Between Two Means)
Known Variance /Large Sample(n>30)
x1 x2 d 0 H1: 1 > do z > z
z H1: 1 do z < z
s 12 s 2
2 H1: 1 ≠ do z > z/2 and z < z/2
n1 n2
Small Sample (n<30 and s1 s and unknown)
x1 x2 d 0 (n1 1) s1 (n2 1) s2
2 2
H1: 1 > do t > t
t sp H1: 1 do t < t
n1 n2 2
sp 1 1 H1: 1 ≠ do t > t/2 and t < t/2
n1 n2 v n1 n2 1
Small Sample (n<30 and s1 ≠ s and unknown)
2 H1: 1 > do t > t
x1 x2 d 0 s12 s2 2
H1: 1 do
t n n
t < t
v 2
2
s12
s22 1
2
H1: 1 ≠ do t > t/2 and t < t/2
n1 n2 s12 s2 2
n n
1 2
n1 1 n2 1
EXAMPLES
A random sample of size n1 = 25 taken from a normal
population with a standard deviation of σ1 = 5 has a
mean x1 = 80. A second random sample of size n2=36
taken from a different normal population with a
standard deviation σ2= 3, has a mean x2 = 75. Using
α = .05, test the hypothesis that 1 2 .
EXAMPLES
#15 page 331 Difference of two means, Small Sample Equal Variances
• A study is made to see if increasing the substrate
concentration has an appreciable effect on the velocity of the
chemical reaction. With a substrate concentration of 1.5
moles per liter, the reaction was run 15 times with an average
velocity of 7.5 micromoles per 30 minutes with a standard
deviation 1.5. With a substrate concentration of 2.0 moles
per liter, 12 runs were made, yielding an average velocity of
8.8 micromoles per 30 minutes and a sample standard
deviation of 1.2. Is there a reason to believe that this increase
in substrate concentration causes an increase in the mean
velocity by more than 0.5 micromole per 30 minutes? Use a
0.01 level of significance and assume the population to be
approximately normally distributed with equal variances.
EXAMPLES
#17 page 331 Difference of two means, Small Sample Equal Variances
To find out whether a new serum will arrest leukemia, 9 mice,
which have all reached an advanced stage of the disease are
selected. Five mice receive the treatment and 4 do not. The
survival times, in years, from the time the experiment
commenced are as follows:
Treatment 2.1 5.3 1.4 4.6 0.9
No Treatment 1.9 0.5 2.8 3.1
Test the hypothesis that the average running time of films
produced by company 2 exceeds the average running time of
films produced by company 1 by 10 minutes against the one
sided alternative that the difference is more than 10 minutes.
Use a 0.1 level of significance and assume the distributions of
times to be approximately normal with unequal variances.
EXAMPLES
#18 page 331 Difference of two means, Small Sample Unequal Variances
A large automobile manufacturing company is trying to decide
whether to purchase brand A or brand B tires for its new
models. To help arrive at a decision an experiment is
conducted using 12 of each brand. The tires are run until they
wear out. The results are:
Brand A : x1 = 37 900 km s1 = 5100 km
Brand B : x2 = 39 800 km s1 = 5900 km
Test the hypothesis at the 0.05 level of significance that there is
no difference in the 2 brands of tires. Assume the populations
to be approximately normally distributed.
TEST STATISTICS
TESTING OF HYPOTHESIS
Two Sample – Paired Observation
d d
t H1: d > o t > t
sd H1: d o t < t
H1: d≠ o t > t/2 and t< t/2
n
Single Proportion
pˆ p
z H1:p > po z > z
pˆ qˆ H1: p < po z < z
H1: p ≠ po z > z/2 and z < z/2
n
Difference of Proportions
( pˆ 1 pˆ 2 ) d 0
z H1:p1 -p2 > po z > z
pˆ 1qˆ1 pˆ 2 qˆ 2 H1: p1 -p2 > po z < z
H1: p1 -p2 ≠ do z > z/2 and z < z/2
n1 n2
EXAMPLES
#27 page 333 Paired Observations
According to the article “Practice and Fatigue Effects on the
Programming of a Coincident Timing Response,” published in the
Journal of Human Movement Studies in 1976, practice under
fatigued conditions distorts mechanisms which govern
performance. An experiment was conducted using 15 college males
who were trained to make a continuous horizontal right-to-left arm
movement from a micro-switch to a barrier, knocking over the
barrier coincident with the arrival of a clock sweephand to the 6
o’clock position. The absolute value of the difference between the
time, in milliseconds, that it took to knock over the barrier and the
tie for the sweephand to reach the 6 o’clock position (500 msec)
was recorded. Each participant performed the task five times under
pre fatigue and post fatigue conditions, and the sums of the
absolute differences for the five performances were recorded as
follows:
EXAMPLES
#27 page 333 Paired Observations
Cont:
ATD Respondent Number
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
PreFTG 158 92 65 98 33 89 148 58 142 117 74 66 109 57 85
PostFTG 91 59 215 226 223 91 92 177 134 116 153 219 143 164 100
•
REVIEW
TEST OF HYPOTHESIS
Variances
(n 1) s 2 H1: s > so
2 z > z1
H1: s so
s2
z < z
H1: s ≠ so z > z1-/2 and z < z/2
s2 2
EXAMPLES