Compare Two Coin Proportions
UberData Scientist · Technical ScreenLast updated
This question evaluates proficiency in statistical inference for proportions, including hypothesis formulation, comparison of two independent samples, confidence interval interpretation, and interpretation of p-values and sampling variability.
You are given results from two independent coin-toss experiments:
- Coin A was tossed 100 times and landed heads 40 times.
- Coin B was tossed 1,000 times and landed heads 600 times.
Determine whether the probability of heads is statistically different between the two coins.
In your answer, specify:
- The null and alternative hypotheses.
- The appropriate statistical test.
- The test statistic and approximate p-value.
- A 95% confidence interval for the difference in head probabilities.
- Any assumptions or caveats, especially given the large difference in sample sizes.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.