P-value - Coin Flipping Example

Coin Flipping Example

For example, an experiment is performed to determine whether a coin flip is fair (50% chance, each, of landing heads or tails) or unfairly biased (≠ 50% chance of either of the outcomes).

Suppose that the experimental results show the coin turning up heads 14 times out of 20 total flips. The p-value of this result would be the chance of a fair coin landing on heads at least 14 times out of 20 flips. The probability that 20 flips of a fair coin would result in 14 or more heads can be computed from binomial coefficients as


\begin{align}
& \operatorname{Prob}(14\text{ heads}) + \operatorname{Prob}(15\text{ heads}) + \cdots + \operatorname{Prob}(20\text{ heads}) \\
& = \frac{1}{2^{20}} \left = \frac{60,\!460}{1,\!048,\!576} \approx 0.058
\end{align}

This probability is the (one-sided) p-value. It measures the chance that a fair coin would give a result at least this extreme.

Read more about this topic:  P-value

Famous quotes containing the word coin:

    The moral equalizes all; enriches, empowers all. It is the coin which buys all, and which all find in their pocket. Under the whip of the driver, the slave shall feel his equality with saints and heroes.
    Ralph Waldo Emerson (1803–1882)