Probability question -- A test to see if a coin is fair....

  • Thread starter Thread starter Mr Davis 97
  • Start date Start date
  • Tags Tags
    Probability Test
Click For Summary
SUMMARY

The discussion centers on calculating the P-value for a binomial test to determine if a coin is fair after flipping it 5 times, resulting in 4 heads. The initial calculation using the binomial probability density function (PDF) yielded a value of 0.15625, which was incorrect. The correct P-value is 3/16, derived from summing the probabilities of obtaining 4 or more heads in 5 flips, specifically P(4) + P(5) for a binomial distribution with parameters n=5 and p=0.5.

PREREQUISITES
  • Understanding of binomial distribution and its parameters (n, p).
  • Familiarity with calculating probabilities using the binomial probability density function (PDF).
  • Knowledge of P-value interpretation in hypothesis testing.
  • Basic statistics concepts, particularly related to fairness tests and extreme outcomes.
NEXT STEPS
  • Study the binomial distribution and its applications in hypothesis testing.
  • Learn how to calculate P-values for different outcomes using the binomial PDF.
  • Explore the concept of extreme outcomes in statistical tests and their implications.
  • Investigate other statistical tests for fairness, such as chi-squared tests.
USEFUL FOR

Students in statistics, data analysts, and anyone interested in understanding hypothesis testing and probability distributions, particularly in the context of fairness tests for random events.

Mr Davis 97
Messages
1,461
Reaction score
44

Homework Statement


[/B]
You want to see if a coin is fair. You flip it 5 times and count the number of heads. If H is the number of heads obtained in five flips of the coin, what is the P-value of the test when H equals 4?

Homework Equations


None

The Attempt at a Solution



To solve this problem, I thought that it would be correct to use the binomial PDF, to answer the question "If the probability of getting heads is .5, then what are the chances of getting 4 heads in 5 flips?" This gives .15625, which is not the right P-value. The correct answer is 3/16, but how do I get this value? What probability distribution to I use to obtain this P-value?
 
Physics news on Phys.org
The p-value is not the probability of landing on the exact outcome. It is the probability of obtaining that or a more extreme outcome. I would also disagree on how the "correct" answer has chosen to define an outcome as extreme (getting 1 head is as extreme as getting 4, getting 0 is as extreme as getting 5 - you would typically not design a test which broke the symmetry).
 
Mr Davis 97 said:

Homework Statement


[/B]
You want to see if a coin is fair. You flip it 5 times and count the number of heads. If H is the number of heads obtained in five flips of the coin, what is the P-value of the test when H equals 4?

Homework Equations


None

The Attempt at a Solution



To solve this problem, I thought that it would be correct to use the binomial PDF, to answer the question "If the probability of getting heads is .5, then what are the chances of getting 4 heads in 5 flips?" This gives .15625, which is not the right P-value. The correct answer is 3/16, but how do I get this value? What probability distribution to I use to obtain this P-value?

For binomial(5, 1/2), they take p-value = P(4) + P(5) = (5/32) + (1/32) = 3/16, so they take p-value = P(4 or more heads).
 

Similar threads

Replies
4
Views
3K
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 24 ·
Replies
24
Views
5K
  • · Replies 29 ·
Replies
29
Views
7K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
4
Views
3K
Replies
2
Views
2K