AP Statistics Curriculum 2007 Infer 2Proportions
From Socr
(→ General Advance-Placement (AP) Statistics Curriculum - Inferences about Two Proportions) |
|||
(4 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
=== Testing for Equality of Two Proportions=== | === Testing for Equality of Two Proportions=== | ||
- | Suppose we have two populations and we are interested in estimating whether the proportions of subjects that have certain characteristic of interest (e.g., fixed gender) in each population are equal. To make this inference we obtain two samples {<math>X_1, X_2, X_3, \cdots, X_n</math>} and {<math>Y_1, Y_2, Y_3, \cdots, Y_k</math>}, where each <math>X_i</math> and <math>Y_i</math> represents whether the ''i<sup>th</sup>'' observation in the sample | + | Suppose we have two populations and we are interested in estimating whether the proportions of subjects that have certain characteristic of interest (e.g., fixed gender) in each population are equal. To make this inference we obtain two samples {<math>X_1, X_2, X_3, \cdots, X_n</math>} and {<math>Y_1, Y_2, Y_3, \cdots, Y_k</math>}, where each <math>X_i</math> and <math>Y_i</math> represents whether the ''i<sup>th</sup>'' observation in the sample has the characteristic of interest. That is |
: <math>X_i = \begin{cases}0,& \texttt{Characteristic-absent},\\ | : <math>X_i = \begin{cases}0,& \texttt{Characteristic-absent},\\ | ||
1,& \texttt{Characteristic-present}.\end{cases}</math> and <math>Y_i = \begin{cases}0,& \texttt{Characteristic-absent},\\ | 1,& \texttt{Characteristic-present}.\end{cases}</math> and <math>Y_i = \begin{cases}0,& \texttt{Characteristic-absent},\\ | ||
Line 24: | Line 24: | ||
* Null Hypothesis: <math>H_o: p_x=p_y</math>, where <math>p_x</math> and <math>p_x</math> are the sample population proportions of interest. | * Null Hypothesis: <math>H_o: p_x=p_y</math>, where <math>p_x</math> and <math>p_x</math> are the sample population proportions of interest. | ||
* Alternative Research Hypotheses: | * Alternative Research Hypotheses: | ||
- | ** One sided (uni-directional): <math>H_1: p_x > p_y</math>, or <math> | + | ** One sided (uni-directional): <math>H_1: p_x > p_y</math>, or <math>H_1: p_x < p_y</math> |
** Double sided: <math>H_1: p_x \not= p_y</math> | ** Double sided: <math>H_1: p_x \not= p_y</math> | ||
- | * Test Statistics: <math>Z_o={\tilde{p_x} - \tilde{p_y} \over SE_{\tilde{p_x}-\tilde{p_y}}}</math> | + | * Test Statistics: <math>Z_o={\tilde{p_x} - \tilde{p_y} \over SE_{(\tilde{p_x}-\tilde{p_y})}} \sim N(0,1)</math> |
===Genders of Siblings Example=== | ===Genders of Siblings Example=== | ||
Line 66: | Line 66: | ||
* Test Statistics: <math>Z_o = {Estimate-HypothesizedValue\over SE(Estimate)} = {\hat{p}_1 - \hat{p}_2 - 0 \over SE(\hat{p}_1 - \hat{p}_2)} = {\hat{p}_1 - \hat{p}_2 - 0 \over \sqrt{{\hat{p}_1(1-\hat{p}_1)\over n_1} + {\hat{p}_2(1-\hat{p}_2)\over n_2}}} \sim N(0,1)</math> and <math>Z_o=5.4996</math>. | * Test Statistics: <math>Z_o = {Estimate-HypothesizedValue\over SE(Estimate)} = {\hat{p}_1 - \hat{p}_2 - 0 \over SE(\hat{p}_1 - \hat{p}_2)} = {\hat{p}_1 - \hat{p}_2 - 0 \over \sqrt{{\hat{p}_1(1-\hat{p}_1)\over n_1} + {\hat{p}_2(1-\hat{p}_2)\over n_2}}} \sim N(0,1)</math> and <math>Z_o=5.4996</math>. | ||
- | * <math> | + | * <math>P_{value} = P(Z>Z_o)< 1.9\times 10^{-8}</math>. This small p-values provides extremely strong evidence to reject the null hypothesis that there are no differences between the proportions of mothers that had a girl as a second child but had either boy or girl as their first child. Hence there is strong statistical evidence implying that genders of siblings are not independent. |
* Practical significance: The practical significance of the effect (of the gender of the first child on the gender of the second child, in this case) can only be assessed using [[AP_Statistics_Curriculum_2007#Estimating_a_Population_Proportion |confidence intervals]]. A 95% <math>CI (p_1- p_2) =[0.033; 0.070]</math> is computed by <math>p_1-p_2 \pm 1.96 SE(p_1 - p_2)</math>. Clearly, this is a practically negligible effect and no reasonable person would make important prospective family decisions based on the gender of their (first) child. | * Practical significance: The practical significance of the effect (of the gender of the first child on the gender of the second child, in this case) can only be assessed using [[AP_Statistics_Curriculum_2007#Estimating_a_Population_Proportion |confidence intervals]]. A 95% <math>CI (p_1- p_2) =[0.033; 0.070]</math> is computed by <math>p_1-p_2 \pm 1.96 SE(p_1 - p_2)</math>. Clearly, this is a practically negligible effect and no reasonable person would make important prospective family decisions based on the gender of their (first) child. | ||
Line 75: | Line 75: | ||
<hr> | <hr> | ||
- | === | + | ===[[EBook_Problems_Infer_2Proportions|Problems]]=== |
<hr> | <hr> |
Current revision as of 17:24, 28 June 2010
Contents |
General Advance-Placement (AP) Statistics Curriculum - Inferences about Two Proportions
Testing for Equality of Two Proportions
Suppose we have two populations and we are interested in estimating whether the proportions of subjects that have certain characteristic of interest (e.g., fixed gender) in each population are equal. To make this inference we obtain two samples {} and {}, where each X_{i} and Y_{i} represents whether the i^{th} observation in the sample has the characteristic of interest. That is
- and
Since the raw sample proportions of observations having the characteristic of interest are
- and
The corrected sample proportions (for small samples) are
- and
where is the normal critical value we saw earlier.
By the independence of the samples, the standard error of the difference of the two proportion estimates is:
- Raw proportions:
- Corrected Proportions:
Hypothesis Testing the Difference of Two Proportions
- Null Hypothesis: H_{o}:p_{x} = p_{y}, where p_{x} and p_{x} are the sample population proportions of interest.
- Alternative Research Hypotheses:
- One sided (uni-directional): H_{1}:p_{x} > p_{y}, or H_{1}:p_{x} < p_{y}
- Double sided:
- Test Statistics:
Genders of Siblings Example
Is the gender of a second child influenced by the gender of the first child, in families with >1 child? Research hypothesis needs to be formulated first before collecting/looking/interpreting the data that will be used to address it. Mothers whose 1^{st} child is a girl are more likely to have a girl, as a second child, compared to mothers with boys as 1^{st} child. Data: 20 yrs of birth records of 1 Hospital in Auckland, New Zealand.
Second Child | ||||
Male | Female | Total | ||
First Child | Male | 3,202 | 2,776 | 5,978 |
Female | 2,620 | 2,792 | 5,412 | |
Total | 5,822 | 5,568 | 11,390 |
Let p_{1}=true proportion of girls in mothers with girl as first child, p_{2}=true proportion of girls in mothers with boy as first child. The parameter of interest is p_{1} − p_{2}.
- Hypotheses: H_{o}:p_{1} − p_{2} = 0 (skeptical reaction). H_{1}:p_{1} − p_{2} > 0 (research hypothesis).
Second Child | ||||
Number of births | Number of girls | Proportion | ||
Group | 1 (Previous child was girl) | n_{1} = 5412 | 2792 | |
2 (Previous child was boy) | n_{2} = 5978 | 2776 |
- Test Statistics: and Z_{o} = 5.4996.
- . This small p-values provides extremely strong evidence to reject the null hypothesis that there are no differences between the proportions of mothers that had a girl as a second child but had either boy or girl as their first child. Hence there is strong statistical evidence implying that genders of siblings are not independent.
- Practical significance: The practical significance of the effect (of the gender of the first child on the gender of the second child, in this case) can only be assessed using confidence intervals. A 95% CI(p_{1} − p_{2}) = [0.033;0.070] is computed by . Clearly, this is a practically negligible effect and no reasonable person would make important prospective family decisions based on the gender of their (first) child.
- This SOCR Analysis Activity illustrates how to use the SOCR Analyses to compute the p-values and answer the hypothesis testing challenge.
Problems
- SOCR Home page: http://www.socr.ucla.edu
Translate this page: