Preparing for the next class
In the next in-class activity, you will need to understand the basic idea of null and alternative hypotheses, that an event with low probability is very unlikely but still may occur, and how probability can be used as statistical evidence.
Suppose that you are playing a game with your friend that involves flipping a coin. Each round consists of flipping the coin 10 times. Your friend is favored if more of the flips land on heads, and you are favored if more of the flips land on tails.
Question 1
In one round of play, your friend gets 8 heads out of the 10 total flips.
- What is the probability of obtaining 8 or more heads in 10 flips of a fair coin?
Hint: You can find this probability using the binomial model (what are [latex]p[/latex] and [latex]n[/latex] here?). Use technology. - Are you surprised that your friend got that many heads?
- a) Yes, because the probability is high.
- b) Yes, because the probability is low.
- c) No, because the probability is high.
- d) No, because the probability is low.
- You begin to suspect that your friend is not using a fair coin. If your friend’s coin is weighted on the heads side, what can you say about the probability, [latex]p[/latex] , of obtaining heads with your friend’s coin?
- a) [latex]p[/latex] < 5
- b) [latex]p[/latex] = 5
- c) [latex]p[/latex] = 8
- d) [latex]p[/latex] > 5
Hint: Remember that the 8 heads obtained was only in one round of 10 flips.
In this situation, you had a baseline assumption when you started playing the game with your friend: the coin is fair. This assumption is called the null hypothesis. Then you suspected that your friend’s coin was weighted in favor of heads. This guess is called the alternative hypothesis. If you wanted to claim that your friend was indeed cheating, you would need to produce evidence in order to prove that their coin was not fair.
Statistics is a very useful tool in this scenario and can be used to test these kinds of hypotheses. In a statistical hypothesis test:
- The null hypothesis, [latex]H_{0}[/latex], is what we assume to be true to begin with. It is often a statement of no change from the previous value or from what is expected (e.g., we expect a coin to be fair).
- The null hypothesis, [latex]H_{0}[/latex], is always given in the form: [latex]parameter = value[/latex].
- The alternative hypothesis, [latex]H_{A}[/latex], is what we consider to be plausible if the null hypothesis is false. Often, it is a change from the null hypothesis that we would like to test the accuracy of. The alternative hypothesis answers the question, “Do we think the actual parameter is larger than, smaller than, or just different from the null value, where the null value is the value specified in the null hypothesis?”
- The alternative hypothesis, [latex]H_{A}[/latex], is always given as an inequality: [latex]parameter>null value, parameter
- The alternative hypothesis, [latex]H_{A}[/latex], is always given as an inequality: [latex]parameter>null value, parameter
- The evidence used is probability. The statistical evidence that we gather is always evidence in support of the alternative hypothesis and against the null hypothesis. We ask ourselves the question, “Do we have enough evidence to reject the null hypothesis?”
- The outcomes of the hypothesis test are either:
- We reject the null hypothesis (we have gathered enough evidence).
- We fail to reject the null hypothesis (we have not gathered sufficient evidence, so we cannot reject the starting assumption).
Question 2
In the context of the coin-flipping game with your friend (where [latex]p[/latex] is the probability of obtaining heads), what is the null hypothesis, [latex]H_{0}[/latex]?
- a) [latex]p = 0.8[/latex]
- b) [latex]p > 0.5[/latex]
- c) [latex]p = 0.5[/latex]
- d) [latex]p < 0.5[/latex]
Question 3
In the context of the coin-flipping game, what is the alternative hypothesis, [latex]H_{A}[/latex]?
- a) [latex]p = 0.8[/latex]
- b) [latex]p \neq 0.5[/latex]
- c) [latex]p = 0.5[/latex]
- d) [latex]p > 0.5[/latex]
- e) [latex]p < 0.5[/latex]
Hint: What is it that you would like to gather evidence of? What do you suspect might be true about your friend’s coin?
Your friend claims the coin is fair, but you aren’t convinced. You can’t prove for certain that your friend’s coin is weighted unfairly (without special equipment, of course), but you can test your hypotheses with a sample of coin flips. If the proportion of heads in your sample is high enough, it provides strong evidence that your friend’s coin is weighted in their favor. In other words, a high enough proportion of heads would be sufficient evidence for you to reject the assumption that your friend’s coin is fair. Let’s suppose that you flip the coin 20 times for your sample.
Question 4
Which of the following would be stronger evidence that the coin is weighted unfairly towards the heads side (i.e., stronger evidence that the null hypothesis is false)?
- a) A higher proportion of heads, because that would be less likely if the coin is fair
- b) A higher proportion of heads, because that would be more likely if the coin is fair
- c) A smaller proportion of heads, because that would be less likely if the coin is fair
- d) A smaller proportion of heads, because that would be more likely if the coin is fair
Question 5
If your sample of 20 coin flips all landed on heads, would it prove with complete certainty that your friend’s coin is weighted?
- a) Yes, it is impossible for a fair coin to land on heads 20 out of 20 times.
- b) No, even though the probability is very small, it is still possible for a fair coin to land on heads 20 out of 20 times.
Question 6
Suppose that in your sample of 20 coin flips, you obtain 17 heads. The probability of obtaining 17 or more heads in 20 flips of a fair coin is 0.0013. Would you conclude that your friend’s coin is weighted? Explain.
Looking ahead
Notice that above, you assumed your friend’s coin is fair, and that assumption was used to calculate the probability of obtaining 17 or more heads. The probability of 0.0013 is the probability of obtaining 17 or more heads out of 20 flips if the coin is fair, and this low probability is evidence that the coin is not fair. Note that no matter what probability you obtain, even if it is a high probability, it is not evidence that the coin is fair. This is because fairness was already the given assumption, and the probability was computed using the assumption that the coin is fair. If we assume something is true, we can’t use that assumption to prove that it’s true (that would be using circular logic). From our sample of coin flips, we either get enough evidence to say the coin is weighted, or we don’t. In hypothesis-testing language, we either get enough evidence to reject the null hypothesis, or we don’t. When we don’t get enough evidence to reject the null hypothesis, we fail to reject the null hypothesis. We never accept the null hypothesis because that was already our assumption to begin with.
Question 7
Which of the following are the possible outcomes of your sample of 20 coin flips? There may be more than one correct answer.
- a) You obtain enough heads that you conclude your friend’s coin is weighted.
- b) You obtain enough heads that you conclude your friend’s coin is fair.
- c) You do not obtain enough heads to conclude that your friend’s coin is weighted.
- d) You do not obtain enough heads to conclude that your friend’s coin is fair.