Biostats Lecture 9 Difference of Two Proportions v2
Biostats Lecture 9 Difference of Two Proportions v2
1
Biostats Lecture 9 (Diez Chapter 6.2)
Difference of Two Proportions (6.2)
Sampling Distribution of the Difference of Two Proportions (6.2.1)
Confidence Intervals for p1-p2 (6.2.2)
Hypothesis Tests for the Difference of Two Proportions (6.2.3)
More on 2-Proportions Hypothesis Tests (6.2.4)
Examining the Standard Error Formula (6.2.5)
2
Hypothesis testing about two
proportions
Baby Sex Proportion with Smoker Mother and
Nonsmoker Mother
7
Variance estimates under the null
hypothesis
1. The variance of under the null hypothesis
2. The variance of
3. The variance of
Steps for testing the hypothesis
1. Find the point estimate for
6. Make a decision.
Fail to reject (accept) the hypothesis.
Confidence interval comparing
two proportions
Comparing two population
proportions
1. When two proportions may not be equal, we
are interested in finding the difference:
17
Chi-square test of goodness of
fit.
Goodness of fit test for one-way
table.
1. The test for a proportion is for a binary
distribution.
2. For a categorical variable of more than two
categories, test of goodness of fit can be
done.
3. The test of goodness of fit is to examine if
the sample data follows a give distribution.
4. Such a test statistic is a chi-square
distributed.
Example on the mother age of birth
distribution
1. Test statistic
3. P-value=chisq.dist(3.383,2,TRUE)=0.184.
Fails to reject the null hypothesis.
Testing independence (No
association) in contingency table
Test of independence
(no association)
Question: Is baby sex associated with whether
mother smokes? No association implies