KatInterview

Statistical Comparison of Two Independent Bernoulli Rates

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentshypothesis testingproportionsz-test

Last updated

Evaluate whether two independent coin-tossing experiments with different sample sizes show a statistically significant difference in head probabilities.

You are given dataset results from two separate, independent coin flipping trials:

  • Coin A: Tossing the coin 100 times yields 40 heads.
  • Coin B: Tossing the coin 1,000 times yields 600 heads.

Analyze these trial results to evaluate if there is a statistically significant difference between the true underlying probability of getting a head for Coin A versus Coin B.

Address the following points in your analysis:

  1. Define the null ($H_0$) and alternative ($H_1$) statistical hypotheses.
  2. Identify the appropriate parametric test and discuss alternative valid testing methods.
  3. Calculate the test statistic, standard error, and corresponding p-value.
  4. Calculate a 95% confidence interval for the difference between the two proportions ($p_A - p_B$).
  5. Outline key statistical assumptions and explain the effect of the unequal sample sizes ($n_A = 100$ vs $n_B = 1000$) on standard error and estimation precision.

Hints

Hint 1

Recall why the pooled standard error is used for hypothesis testing under the null, whereas the unpooled standard error is used for constructing confidence intervals.

Hint 2

Check whether the sample sizes and observed counts satisfy the conditions for the normal approximation.

Hint 3

Consider how variance scales with sample size—which coin contributes most to the variance of the difference?