- $\text{H}_{0}\text{: }P(\text{Positive}|\text{Group = A}) = P(\text{Positive}|\text{Group = B})$, $\text{H}_{\text{A}}\text{: }P(\text{Positive}|\text{Group = A}) \ne P(\text{Positive}|\text{Group = B})$
$\text{H}_{0}\text{: }P(\text{Positive}|\text{Group = A}) = P(\text{Positive}|\text{Group = B})$, $\text{H}_{\text{A}}\text{: }P(\text{Positive}|\text{Group = A}) \ne P(\text{Positive}|\text{Group = B})$
This null hypothesis implies that the best estimate of $P(\text{Positive})$ combines counts from both groups, or (No. Positive in A + No. Positive in B) ÷ Total. When multiplied by the total counts in each group, these create the expected counts, $E_{ij}$ for the top row in a table of expected counts. For example, the expected count of positives for Group A = Total Count in A × (No. Positive in A + No. Positive in B) ÷ Total and (No. Negative in A + No. Negative in B) ÷ Total gives $P(\text{Negative})$ under the null, which does similar for the bottom row in the table of expected counts:
This null hypothesis implies that the best estimate of $P(\text{Positive})$ combines counts from both groups, or (No. Positive in A + No. Positive in B) ÷ Total. When multiplied by the total counts in each group, these create the expected counts, $E_{ij}$ for the top row in a table of expected counts. For example, the expected count of positives for Group A = Total Count in A × (No. Positive in A + No. Positive in B) ÷ Total and (No. Negative in A + No. Negative in B) ÷ Total gives $P(\text{Negative})$ under the null, which does similar for the bottom row in the table of expected counts: