Statistics / Testing and modelling
Hypothesis Tests and p-values
Assume nothing interesting is happening, then ask how surprising your data would be.
Contents 2 sections
By the end you can
- State null and alternative hypotheses
- Compute a test statistic and p-value
- Distinguish type I and type II errors
Helps to know: Confidence Intervals
§1The logic of a test
The null hypothesis says there is no effect. The p-value is the probability, if were true, of data at least as extreme as what was seen. A small p-value means the data and are hard to reconcile.
Example 1Is the coin fair?
100 flips give 62 heads.
- Under : mean 50, standard deviation .
Check yourself
- Q1Rejecting a true null hypothesis is a…