Professional Documents
Culture Documents
pq
f p N p;
n
Hypothesis testing:
H 0 : p p0
H1 : p p0
Suppose H0 true.
f p f p0
The test statistic: Z N 0;1
pq p0 q0
n n
f ob p0
Z ob
p0 q0
n
Reject Ho Reject Ho
Do Not Reject Ho
W ; z /2 z /2 ; reject region (miền hiếm = miền bác bỏ)
Example: Suppose we want to check if 50% of the students at CSUF are male. Further,
if we collect a sample of 200 people at random from CSUF and find that 47% are male
and we want to test our hypothesis at the = 5% level of significance. We would state
the hypothesis as:
: = 0.50
: ≠ 0.50
Where is the proportion of students at CSUF that are male.
f p f p0
The test statistic: Z N 0;1
pq p0 q0
n n
f ob pob 47%; n 200
f ob p0 47% 50%
Z ob 0.85
p0 q0 0.5*0.5
n 200
W ; z /2 z /2 ; reject region (miền hiếm = miền bác bỏ)
–1.96 1.96 z
-0.86 test statistic
H 0 : p p0
H1 : p p0
1.645 z
H 0 : p p0
H1 : p p0
If zob W ; z , we conclusion zob = rare, then sample is happen rare.
Imply that the suppose is not true. Must accept H1.
If zob W : accept H0.
Example 2
Suppose we want to check if more than 30% of the US population has an iPhone.
Further, if we collect a sample of 150 people at random from the population and find
that 38% have iPhones and we want to test our hypothesis at the = 5% level of
significance.
1.645 z
Population 1: N ;
1
2
1
Population 2: N ;
2
2
2
H 0 : 1 2
H1 : 1 2
Theorem: Given n1 ; n2 two natural numbers.
2 2
X 1 X 2 N 1 2 ; 1 2
n1 n2
Suppose H0 true.
12 22 X1 X 2
X 1 X 2 N 0; Z N 0;1
n1 n2
2
1 2 2
n1 n2
X 1ob X 2 ob
Z ob
12 22
n1 n2
Two-Tail Hypothesis Test
Reject Ho Reject Ho
Do Not Reject Ho
H 0 : 1 2
H1 : 1 2
Equivalent,
H 0 : 1 2 0
H1 : 1 2 0
Suppose Ho true,
X 1ob X 2 ob
Z ob
12 22
n1 n2
Reject Ho
Do Not Reject Ho
0
Mean Increase in Test Score
If zob W z ; , we conclusion zob = rare, then sample is happen rare. Imply
that the suppose is not true. Must accept H1.
H 0 : 1 2
H1 : 1 2
Equivalent,
H 0 : 1 2 0
H1 : 1 2 0
Suppose Ho true,
X 1ob X 2 ob
Z ob
12 22
n1 n2
If zob W ; z , we conclusion zob = rare, then sample is happen rare.
Imply that the suppose is not true. Must accept H1.
Example
Suppose we conduct an experiment on two different types of cat food. “Booster” cat
food is supposed to increase the weight of a cat as compared to normal cat food.
Summarized results:
Average Weight Sample Standard Sample
Population of cats in kilos Deviation Size
___
X s n
We assume that the two sample sets of cats are independent. There is no relationship
between them.
H 0 : 1 2
H1 : 1 2
(right test).
Reject Ho
Do NOT reject Ho
Z
0 1.645
2.24