Professional Documents
Culture Documents
___________________________________
___________________________________
HYPOTHESIS TESTING
___________________________________
By LrcCo
___________________________________
___________________________________
___________________________________
___________________________________
b. Alternative hypothesis
3. Discuss the steps in hypothesis testing
4. Identify the appropriate test statistic to be used in testing the
mean of a particular set of data
5. Conduct a two-tailed test of hypothesis for:
___________________________________
a. one mean
b. one proportion
6. Interpret the result of the hypothesis testing for:
a. one mean
2
___________________________________
b. one proportion
___________________________________
___________________________________
___________________________________
Slide 3 ___________________________________
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
INTRODUCTION
TO HYPOTHESIS TESTING
___________________________________
3
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 4 ___________________________________
STATISTICAL HYPOTHESIS
This is a statement about the value of a
population parameter (that is, mean median,
mode, variance, standard deviation, proportion,
___________________________________
4
___________________________________
___________________________________
___________________________________
___________________________________
Slide 5 ___________________________________
HYPOTHESIS TESTING
Statistical hypothesis testing is a method of
making decisions using data, whether from a
controlled experiment or an observational study
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
(not controlled)
It is a set of procedures that culminates in either
the rejection or the non-rejection of the null
hypothesis ___________________________________
It involves the comparison of two hypotheses:
Null hypothesis
Alternative hypothesis
5
___________________________________
___________________________________
___________________________________
___________________________________
Slide 6 ___________________________________
PROCESS OF HYPOTHESIS TESTING
Ho vs H1 ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Reject Ho Support Ho
Do not
reject Ho
___________________________________
No Yes
6
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 7 ___________________________________
STEPS IN HYPOTHESIS TESTING
1. State the null (Ho) & alternative (H1 or Ha)
hypotheses ___________________________________
7
___________________________________
___________________________________
___________________________________
___________________________________
Slide 8 ___________________________________
STEPS IN HYPOTHESIS TESTING
1. State the null (Ho) & alternative (Ha)
hypotheses ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Null hypothesis
Hypothesis of “no difference”
Statement of equality
Often used to signify the equivalence of population
parameters
Alternative hypothesis
___________________________________
Usually the researcher hypothesis (the hypothesis the
investigator believes in
Uses <, >, or ≠ sign
8
___________________________________
___________________________________
___________________________________
___________________________________
Slide 9 ___________________________________
NON-DIRECTIONAL VS DIRECTIONAL HA
Non-directional / two – tailed test
Simply states that there is a difference in the ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Example:
___________________________________
The average height of male students in Department
of MedTech is not equal to the height of male
students in Department of Tourism.
9
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 10 ___________________________________
NON-DIRECTIONAL VS DIRECTIONAL HA
Directional / one-tailed test
Specifies direction of disagreement with Ho ___________________________________
10
___________________________________
___________________________________
___________________________________
___________________________________
Slide 11 ___________________________________
STEPS IN HYPOTHESIS TESTING
2. State the level of significance
Level of significance (α) ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
11
___________________________________
___________________________________
___________________________________
___________________________________
Slide 12 ___________________________________
STEPS IN HYPOTHESIS TESTING
3. Select the appropriate test statistic
Factors to be considered: ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
12
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 13 ___________________________________
FACTORS TO BE CONSIDERED
a. Objectives of the Study
- Descriptive? ___________________________________
___________________________________
___________________________________
___________________________________
Slide 14 ___________________________________
FACTORS TO BE CONSIDERED
e. Related or Independent samples
Related – sample in one group is affected by the ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
other group
Independent – probability of selection of samples
in one group is not affected by the selection in the
other group
f. Assumption about the test
___________________________________
Parametric test – can be used if the assumptions
about the parameter like normality, independence and
homogeneity hold true
Non-parametric – when the assumptions for the 14 ___________________________________
use of parametric tests are questionable in the data
___________________________________
___________________________________
___________________________________
I. One Sample
Nominal Ordinal Interval / Ratio
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Case
Determine if Binomial test Kolmogorov- z-test for 1
sample is from Smornov mean
a population One Sample
with pre-
specified P or µ
Test ___________________________________
Determine if z – test for 1 t-test for 1
sample is from prop mean
a population Chi square
with pre- Goodness-of-fit
specified
distribution
Test
15
___________________________________
Test of Runs Test
randomness
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 16 GUIDE TO THE CHOICE OF BASIC
___________________________________
STATISTICAL TEST
Types of Levels of Measurement
sample
II. Two –
Nominal
Marginal Chi
Ordinal
Sign Test
Interval / Ratio
Paired t-test
___________________________________
___________________________________
___________________________________
___________________________________
III. K-sample
Nominal
Cochran Q-test
Ordinal
Page test
Interval / Ratio
Two-way ANOVA
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Case (F-test)
(comparison of
more than 2
groups)
Related samples
Independent Chi square test Extension of One-way ANOVA
___________________________________
Samples for r x k tables median test
17
___________________________________
___________________________________
___________________________________
___________________________________
Slide 18 ___________________________________
STEPS IN HYPOTHESIS TESTING
4. Determine the critical region
Depends on the level of significance set by the investigator ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
18
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 19 ___________________________________
CRITICAL REGION
Critical Region for a Two – tailed test
example: α = 0.05 ___________________________________
___________________________________
___________________________________
___________________________________
Slide 20 ___________________________________
CRITICAL REGION
Critical Region for a One – tailed test
example: α = 0.05 ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
α α ___________________________________
___________________________________
___________________________________
___________________________________
Slide 21 ___________________________________
STEPS IN HYPOTHESIS TESTING
5. Compute the test-statistic
It is important that before this step, the level of significance
and the critical region have been set to avoid manipulation
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
21
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 22 ___________________________________
STEPS IN HYPOTHESIS TESTING
6. Make a statistical decision
Whether to reject or not to reject the null hypothesis ___________________________________
22
___________________________________
___________________________________
___________________________________
___________________________________
Slide 23 ___________________________________
STEPS IN HYPOTHESIS TESTING
6. Make a statistical decision
Whether to reject or not to reject the null hypothesis ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
___________________________________
___________________________________
Slide 24 ___________________________________
STEPS IN HYPOTHESIS TESTING
6. Make a statistical decision
Whether to reject or not to reject the null hypothesis ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
24
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 25 ___________________________________
STEPS IN HYPOTHESIS TESTING
7. Draw conclusion
Reject Ho ___________________________________
hypothesis
Do not reject Ho
Conclude that there is no sufficient evidence to say
___________________________________
that Ha is true
25
___________________________________
___________________________________
___________________________________
___________________________________
Slide 26 ___________________________________
NON-REJECTION OF NULL HYPOTHESIS(HO)
___________________________________
26
___________________________________
___________________________________
___________________________________
___________________________________
Slide 27 ___________________________________
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 28 ___________________________________
HYPOTHESIS TESTING FOR ONE MEAN
Deals only with one sample or group
Hypothesis is that the population mean is equal ___________________________________
28
___________________________________
___________________________________
___________________________________
___________________________________
- If known ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
z-test =
- If unknown
___________________________________
- Sampling distribution of mean is t-distributed
- Use t-test
t-test =
29
___________________________________
___________________________________
___________________________________
___________________________________
Slide 30 ___________________________________
EXAMPLE 1
A researcher hypothesizes that males now weigh
more than in previous years. To investigate this
hypothesis, he randomly selects 100 adult males
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
30
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 31 ___________________________________
STEPS IN HYPOTHESIS TESTING
1. State the null and alternative hypothesis
Ho: µ = 68 kg (the mean weight of adult males ___________________________________
31
___________________________________
___________________________________
___________________________________
___________________________________
Slide 32 ___________________________________
COMMONLY USED Z-DEVIATE
Confidence α z-deviate
coefficient
90% 0.10
(two-tailed)
1.64
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
32
___________________________________
___________________________________
___________________________________
___________________________________
Slide 33 ___________________________________
STEPS IN HYPOTHESIS TESTING
4. Critical Region: z ≤ - 1.96 or z ≥ 1.96
5. Computations: ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
z= = 2.5
6. Statistical decision:
Since the computed z-value falls within the critical
region, the null hypothesis is rejected ___________________________________
7. Conclusion:
The mean weight of adult males is not equal to 68 kg.
It is significantly HIGHER from the previous years.
33
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 34 STEPS IN HYPOTHESIS TESTING
___________________________________
(USING COMPUTER OUTPUT)
1. State the null and alternative hypothesis
Ho: µ = 68 kg (the mean weight of adult males ___________________________________
34
___________________________________
___________________________________
___________________________________
___________________________________
7. Conclusion:
The mean weight of adult males is not equal to 68 kg. It is
significantly HIGHER from the previous years. 35
___________________________________
CI may be used as an alternative to p-value testing. If t value is not within the
CI, then reject Ho.
___________________________________
___________________________________
___________________________________
Slide 36 ___________________________________
EXAMPLE 2
The average number of persons per household for
the whole country based on the 1980 census result
is 5.6. If the random sample of 25 households in a
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
36
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 37 ___________________________________
STEPS IN HYPOTHESIS TESTING
1. State the null and alternative hypothesis
Ho: µ = 5.6 (There has been no change in the ___________________________________
___________________________________
___________________________________
___________________________________
Slide 38 ___________________________________
STEPS IN HYPOTHESIS TESTING
4. Critical Region: df = n – 1 = 25 – 1 = 24
t(0.10, 24) = 1.711 ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
5. Computations:
t= = - 1.28
6. Statistical decision:
Since the computed t-value is not within the critical
___________________________________
region, we do not reject the null hypothesis.
7. Conclusion:
There is no sufficient evidence to conclude that the
mean household size is not equal to 5.6. 38
___________________________________
___________________________________
___________________________________
___________________________________
Slide 39 ___________________________________
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 40 ___________________________________
HYPOTHESIS TESTING FOR ONE PROPORTION
Deals with only one sample or group
Hypothesis is that the population proportion is ___________________________________
40
___________________________________
___________________________________
___________________________________
___________________________________
Slide 41 ___________________________________
TEST STATISTIC
z=
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Where:
z = computed z-value
p = sample proportion
P = hypothesized population proportion ___________________________________
n = total number of samples
41
___________________________________
___________________________________
___________________________________
___________________________________
to 5 is satisfied.
___________________________________
42
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 43 ___________________________________
EXAMPLE 1
A barangay health center claims that 90% of the
infants in their barangay are fully immunized.
On the basis of this claim, a researcher
___________________________________
43
___________________________________
___________________________________
___________________________________
___________________________________
Slide 44 ___________________________________
EXAMPLE 1
Before doing the hypothesis testing check that the
sample size requirement is satisfied. ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
nP = 150(0.90) = 135
nQ = 150(0.10) = 15
___________________________________
44
___________________________________
___________________________________
___________________________________
___________________________________
Slide 45 ___________________________________
STEPS IN HYPOTHESIS TESTING
1. State the null and alternative hypothesis
Ho: P = 0.90 (The proportion fully ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 46 ___________________________________
STEPS IN HYPOTHESIS TESTING
4. Critical Region: z ≥ 1.96 or z ≤ -1.96
5. Computations:
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
output)
6. Statistical decision:
SPSS: Since the Sig 0.342 is greater than 0.05, do not reject the null
hypothesis
___________________________________
7. Conclusion:
There is no sufficient evidence to conclude that the proportion of fully
immunized infants in the barangay health center is not equal to 90%
48
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 49 ___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
Slide 50 ___________________________________
HYPOTHESIS TESTING FOR TWO MEANS
Deals with only two samples or groups
If the variable of interest is quantitative and was
measured using at least an interval scale, then
___________________________________
this comparison usually entails the testing of
hypothesis for two means derived from the
samples.
Examples:
Comparisons of:
___________________________________
- average heights of males and females
-average measurements of the experimental and
control groups
-mean values of the variable of interest before and
after a study ___________________________________
___________________________________
___________________________________
___________________________________
Slide 51 ___________________________________
Hypothesis is that the sample means of the two
groups is equal ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
Null hypothesis
Alternative hypothesis
(two-tailed)
(one-tailed)
___________________________________
(one-tailed)
51
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 52 ___________________________________
HYPOTHESIS TESTING FOR TWO MEANS
Considerations in choosing a test statistics when
testing a hypothesis for two sample means:
1. Independent Samples
___________________________________
Variance known – z-test for two independent means
Variance not known – t-test for two independent means
2. Related Samples – paired t-test
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
independent?
___________________________________
___________________________________
___________________________________
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
54
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 55 ___________________________________
HYPOTHESIS TESTING FOR TWO MEANS
Test Statistic Distribution
• Independent
samples
Standard Normal ___________________________________
• Populations normal
• Variances known
• Independent t-distribution with
samples
• Populations normal
• Variances
___________________________________
unknown where
___________________________________
___________________________________
___________________________________
___________________________________
Slide 56 ___________________________________
HYPOTHESIS TESTING FOR TWO MEANS
Test Statistic Distribution
• Related samples t-distribution with ___________________________________
where n = no. of
pairs
where
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
Slide 57 ___________________________________
EXAMPLE
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 58 STEPS IN HYPOTHESIS TESTING AND
___________________________________
COMPUTATION
1= Urban
2= Rural
58
___________________________________
___________________________________
___________________________________
___________________________________
Slide 59 ___________________________________
Critical Region z 2.58 or z -2.58
Computations = (22.6-18.4)-0 =14.83 ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
___________________________________
___________________________________
Slide 60 ___________________________________
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 61 HYPOTHESIS TESTING FOR TWO
___________________________________
PROPORTIONS
It deals with only two samples or groups
Hypothesis is that the sample proportions of the ___________________________________
two groups is equal
Null hypothesis
(The two population proportions are
equal)
Alternative hypothesis
___________________________________
(The two population proportions are
not equal)
___________________________________
___________________________________
___________________________________
___________________________________
Slide 62 ___________________________________
USES
Determining the probability of occurrence of the
difference between two proportions ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
62
___________________________________
___________________________________
___________________________________
___________________________________
Slide 63 ___________________________________
TEST STATISTIC
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 64 ___________________________________
TEST OF HYPOTHESIS: TWO PROPORTIONS
, the pooled estimate of the population proportion
(more precise) ___________________________________
___________________________________
And
64
___________________________________
___________________________________
___________________________________
___________________________________
Slide 65 ___________________________________
SAMPLE SIZE REQUIREMENT
Before performing z-test of hypothesis for two
proportions, check that the sample size
requirement that
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
Slide 66 ___________________________________
EXAMPLE
A random sample of 250 pregnancies from
Barangay X showed that there are 145 male
births in a calendar year. On the other hand, in
___________________________________
Barangay Y, another sample of 250 pregnancies
indicated that there are 140 male births in a
year. At 1% level of significance, test if the
proportion of male births in Barangay X is
different from that of Barangay Y.
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 67 ___________________________________
First, check if sample size requirements are
satisfied. Compute the pooled estimate ___________________________________
67
___________________________________
___________________________________
___________________________________
___________________________________
Slide 68 ___________________________________
Statistical Hypotheses
( The proportion of male births in Barangay
X is the same with that of Barangay Y.)
___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
68
___________________________________
___________________________________
___________________________________
___________________________________
Slide 69 ___________________________________
Critical region:
Computations: ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
= =0.45 ___________________________________
69
___________________________________
___________________________________
___________________________________
___________________________________
BioEpi Handout by LRCCo
1st Sem AY 2019 – 2020, FEU Manila, Dept. of Medical Technology
For class use only. Unauthorized reproduction, and distribution of this material is strictly prohibited.
Slide 70 ___________________________________
Decision: Since the computed z-value is outside
the critical region, do NOT reject ___________________________________
70
___________________________________
___________________________________
___________________________________
___________________________________
Slide 71 ___________________________________
___________________________________
THANK YOU FOR LISTENING!!!
___________________________________
___________________________________
___________________________________
___________________________________
___________________________________
Slide 72 ___________________________________
REFERENCES:
Borja, MP (2013) Bio 201 Lecture Notes. Department of
Epidemiology & Biostatistics, College of Public Health ___________________________________
BiostatEpi Notes SY2019-2020 lrrCo
___________________________________
72
___________________________________
___________________________________
___________________________________
___________________________________