8.hypothesis Testing
8.hypothesis Testing
Mekdes W. (MPH)
1
Objective
At the end of this session you are expected to
To understand the concept of hypothesis
To understand on how to calculate hypothesis of a
single mean
To know on how to calculate hypothesis of a single
population proportion
2
Introduction
• Researchers often have preconceived ideas about
what the values of these parameters might be and
wish to test whether the data conform to these ideas.
For example:
1. The hospital administrator may want to test the
hypothesis that the average length of stay of patients
admitted to the hospital is 5 days!
3
• Hypothesis testing is widely used in medicine,
dentistry, health care, biology and other fields as a
means to draw conclusions about the nature of
populations.
4
Hypothesis
• A hypothesis is a statement or a claim about
population parameter such as population mean,
variance proportion and so on.
5
Types of hypothesis
6
Cont’d…
• Statistical hypotheses are stated in such a way that
they may be evaluated by appropriate statistical
techniques.
• Of two types:
- Null hypothesis
- Alternative hypothesis
7
8
9
10
11
12
13
Rules for sating statistical
hypothesis
• Stating hypothesis is different for single population
and two population.
1. One population
• Indication of equality (either =, ≤ or ≥) must
appear in Ho
Ho: μ = μo, HA: μ ≠ μo
Ho: P = Po, HA: P ≠ Po
14
Rules cont’d…
15
Rules cont’d…
2. Two population
Ho: μ1 = μ2 HA: μ1 ≠ μ2
Ho: P1 = P2 HA: P1 ≠ P2
16
NOTE
• The general aim in hypothesis testing is to use
statistical tests that make α and β as small as
possible.
19
P-value and confidence
interval
• Confidence intervals are referable because they
give information about the size of any difference in
the population
20
• But for what values of p-value should we reject
the null hypothesis?
– By convention, a p-value of 0.05 or smaller is
considered sufficient evidence for rejecting the
null hypothesis.
– By using p-value of 0.05, we are allowing a 5%
chance of wrongly rejecting the null hypothesis
when it is in fact true.
Reject Ho if P-value< α
Accept Ho if P-value≥α
21
22
23
24
25
26
Test statistic
27
Test statistics cont’d…
• Test statistics are unit less. This fact can make them
difficult to interpret on their own.
• You know they evaluate how well your data agree
with the null hypothesis.
• If your test statistic is extreme enough, your data
are so incompatible with the null hypothesis that
you can reject it and conclude that your results are
statistically significant.
28
Decision rule
• Computed from the data of the sample
• The decision to reject or not to reject the Ho
is based on the magnitude of the test statistic
• The Z test and T test can be used.
• When the variance of the population is
unknown and the sample is small (n=30), we use T
test.
29
Rejection and non-rejection
region
• The values of the test statistic assume the points on
the horizontal axis of the normal distribution and
are divided into two groups:
30
Statistical decision
31
32
33
34
35
36
37
38
By observing z table the area would shown
as shaded part on the table
39
40
41
42
Any question??
Thank you
43