A GLIMPSE INTO P-VALUES
2025-10-16
A GLIMPSE INTO P-VALUES
A p-value measures how compatible your data is with the null hypothesis.
Hypothesis testing compares two statements:
The p-value helps in deciding if H₀ should be rejected.
The p-value is the probability of observing data at least as extreme as the sample data if the null is true:
\[ p\text{-value} = P(\text{data as extreme as observed} \mid H_0 \text{ true}) \]
## [1] 9
## ## Exact binomial test ## ## data: sum(die_rolls) and length(die_rolls) ## number of successes = 9, number of trials = 60, p-value = 0.863 ## alternative hypothesis: true probability of success is not equal to 0.1666667 ## 95 percent confidence interval: ## 0.0709562 0.2657404 ## sample estimates: ## probability of success ## 0.15