Professional Documents
Culture Documents
Ababio
BSc MSc MPhil PhD
kaababs@gmail.com
+233 24 4980077
1
Determining Sample Size to
Estimate
Week 4: Part A
Margin of error = E.
Confidence level = (1 – α)*100% and the
corresponding normal value is Zα/2.
Population standard deviation is σ.
n is the required sample size when random
sampling from this population.
Z
2
n 2
E
Rationale for formula
Formula for interval estimate is x Z
2 n
Let E Z
2 n
Z
2
And solve this expression for n, giving n 2
E
Required Sample Size To Estimate a Population
Mean
Confidence level
.95
1.96 1.96
n n
ME ME
set ME 1.96 and solve for n
n
2
1.96
n
ME
Estimating s
2
z s *
n
ME
We want to be 95% confident that we are within 0.5
inch of , so
ME = 0.5; z*=1.96
Suppose previous data indicates that s is about 2
inches.
n= [(1.96)(2)/(0.5)]2 = 61.47
We should sample 62 male students
Ex: Sample Size
Z
2
2.575 1.298 40.1242 1,609.955
2
n 2
E 0.0833
Determining Sample Size for Mean
Z 2 21.645 45 2 2
219.2 220
n 2
2
Error 5
C
ha
Round Up
p
8-
18
Ex: Sample Size
2.58 .067
2
n 47.8 48
.025
. . .
1 2 3 48
End of Week 4: Part A
21
One Sample Tests of Hypothesis
Week 4: Part B
23
What is a Hypothesis?
24
What is Hypothesis Testing?
25
Hypothesis Testing Steps
26
Important Things to Remember about H0 and H1
28
Left-tail or Right-tail Test?
No more than H0
• For instance, if the variable involves
At least ≥ H0
time for a certain medication to take
effect, the words “better” “improve” or Has increased > H1
• On the other hand, if the variable Has “improved”, “is better See right H1
than”. “is more effective”
refers to a test score, then the words
“better” “improve” or more effective”
are translated as “>” (greater than, i.e.
higher test scores)
29
30
Parts of a Distribution in Hypothesis Testing
31
One-tail vs. Two-tail Test
32
Hypothesis Setups for Testing a Mean ()
33
Hypothesis Setups for Testing a
Proportion ()
34
Testing for a Population Mean with a
Known Population Standard Deviation- Example
36
Testing for a Population Mean with a
Known Population Standard Deviation- Example
39
Testing for a Population Mean with a Known
Population Standard Deviation- Example
Because 1.55 does not fall in the rejection region, H0 is not rejected.
We conclude that the average number of desks assembled in the last
50 weeks is not more than 200
40
Type of Errors in Hypothesis Testing
Type I Error -
– Defined as the probability of rejecting the null
hypothesis when it is actually true.
– This is denoted by the Greek letter “”
– Also known as the significance level of a test
Type II Error:
– Defined as the probability of “accepting” the null
hypothesis when it is actually false.
– This is denoted by the Greek letter “β”
41
p-Value in Hypothesis Testing
42
p-Value in Hypothesis Testing - Example
Reject H0 if Z > Z
where Z = 1.55 and Z = 2.33
43
What does it mean when p-value < ?
44
Testing for the Population Mean: Population
Standard Deviation Unknown
45
Testing for the Population Mean: Population
Standard Deviation Unknown - Example
46
Testing for a Population Mean with a
Known Population Standard Deviation- Example
47
t-Distribution Table (portion)
48
Testing for the Population Mean: Population
Standard Deviation Unknown – Minitab Solution
49
Testing for a Population Mean with a
Known Population Standard Deviation- Example
51
Testing for a Population Mean with a
Known Population Standard Deviation- Example continued
52
Testing for a Population Mean with a
Known Population Standard Deviation- Example continued
X 256 250
t 3.162
s n 6 10
54
Assumptions in Testing a Population Proportion
using the z-Distribution
When the above conditions are met, the normal distribution can
be used as an approximation to the binomial distribution.
55
Test Statistic for Testing a Single Population
Proportion
Hypothesized
population proportion
Sample proportion
p
z
(1 )
n
Sample size
56
Test Statistic for Testing a Single
Population Proportion - Example
58
Testing for a Population Proportion - Example
60