What is p-value in statistics with examples

In statistics, the p-value is a measure of the strength of evidence against the null hypothesis. The null hypothesis is a statement about a population parameter that is assumed to be true until there is evidence to the contrary. The p-value is calculated based on the observed data and the null hypothesis, and it provides a way to assess whether the observed data is unlikely to have occurred by chance alone, assuming the null hypothesis is true.

For example, let’s say you want to test the hypothesis that the average height of all adult males in a certain population is 6 feet. You collect a random sample of 50 adult males and measure their heights. The mean height of your sample is 5 feet 10 inches, with a standard deviation of 2 inches. You can perform a hypothesis test to determine whether your sample provides enough evidence to reject the null hypothesis that the average height is 6 feet.

The p-value is the probability of observing a sample mean as extreme or more extreme than the one you observed, assuming the null hypothesis is true. In this case, you can calculate the p-value using a t-test, which compares the sample mean to the hypothesized population mean, taking into account the sample size and standard deviation. Let’s say the p-value you calculate is 0.05. This means that there is a 5% chance of observing a sample mean as extreme or more extreme than 5 feet 10 inches, assuming the true population mean is 6 feet. Typically, a p-value less than 0.05 is considered strong evidence against the null hypothesis.

Another example of p-value is if you are conducting a clinical trial to test the effectiveness of a new drug for treating a certain disease. You randomly assign participants to either a treatment group or a control group, and you measure their response to the treatment. You can use a hypothesis test to determine whether the treatment group shows a statistically significant improvement compared to the control group.

The p-value in this case would be the probability of observing a treatment effect as large or larger than the one you observed, assuming the null hypothesis that there is no difference between the treatment and control groups. A small p-value would indicate that the treatment is likely to be effective, while a large p-value would suggest that the treatment is not effective.

Leave a Comment