All AP Courses AP StatisticsAP Stats

Lab

Is This Coin Fair?

Each round hands you a coin that is either fair or secretly biased. You choose how many times to flip it and what significance level to use. The lab runs the one-proportion z-test with you, then reveals the truth. Over many rounds you will see exactly where Type I and Type II errors come from.

How to do this lab

  1. Set the Flips per round slider and choose a Significance level of 0.01, 0.05 or 0.10.
  2. Press New coin: flip it. The lab flips a hidden coin and shows Heads, p-hat, z and the p-value.
  3. Look at the graph: the curve is the sampling distribution if the coin is fair, and the shaded tails are the p-value.
  4. Decide with Reject H0: biased or Fail to reject H0.
  5. Read the feedback, which reveals whether the coin was fair, then check the tally of Rounds, Correct calls, Type I errors and Type II errors.

What you will learn

  • Run a one-proportion z-test from hypotheses to a decision.
  • Interpret a p-value as how often a result this extreme would happen if the null hypothesis were true.
  • Recognize Type I and Type II errors in context and see what raises or lowers each.
  • Explain how sample size and significance level change the number of biased coins you catch.

Common mistakes

  • Reading the p-value as the probability that the coin is fair. It is computed assuming the coin is fair.
  • Treating Fail to reject H0 as proof the coin is fair. It only means the evidence was not convincing.
  • Thinking a Type I error is possible with a biased coin. It can only happen when the coin was fair and you rejected.
  • Blaming yourself for an error. With random data, some errors are unavoidable.

Check your work

  • Confirm z by hand: (p-hat - 0.5) divided by the square root of 0.25 over n.
  • Your decision should match the rule: reject exactly when the p-value is below your significance level.
  • Over many rounds, Type I errors should be about the significance level times the number of fair coins, and a larger flip count should catch more biased coins.

Challenges

  1. Play 10 rounds with 20 flips each, then 10 rounds with 200 flips. Which setting caught more biased coins?
  2. Use a significance level of 0.01, then 0.10. Which setting produced more Type I errors over 20 rounds?
  3. Explain in context what a Type II error means for this game.
  4. Find a round where the p-value was small but the coin was fair. What is the name for that outcome?

Topics this lab supports