Back to Notes
Descriptive Statistics and Hypothesis Testing
Basic theory and formulas for measures of location, spread and shape, and for tests on means, proportions, variances and categorical data.
Coming soon
Descriptive statistics summarises a sample with a few numbers and charts. Hypothesis testing decides, based on the same sample, whether the data agree with a claim about the population. This poster brings together the basic theory and formulas of both.
Measures of Location
- Mean:
- Median: the middle value of the ordered observations
- Mode: the value with the highest frequency
- Quartiles: , (the median) and
Measures of Spread
- Range:
- Interquartile range:
- Sample variance:
- Standard deviation:
- Coefficient of variation:
Measures of Shape
- Skewness: , positive when the tail is on the right
- Kurtosis: , positive when the tails are heavier than those of the normal
Charts
- Histogram: shows the shape of the distribution
- Box plot: a box from to , a line at the median, whiskers up to , and outliers beyond them
- Scatter plot: shows the relationship between two variables
Basic Concepts
- Null and alternative hypothesis: and , with a two-sided or one-sided alternative
- Test statistic: the quantity from the sample on which we base the decision
- Rejection region: the values of the test statistic for which we reject
- Significance level: , usually 0.05 or 0.01
- p-value: the probability, under , of getting a value as extreme as or more extreme than the observed one; we reject when
Errors and Power
- Type I error:
- Type II error:
- Power: , increases with the sample size
- Neyman–Pearson lemma: the likelihood ratio test is the most powerful for a given
Mean and Proportion
- z-test, known variance:
- t-test, unknown variance: , with degrees of freedom
- Two independent samples: t-test with pooled variance
- Paired observations: t-test on the differences
- Proportion:
Variance and Categorical Data
- One variance:
- Two variances:
- Goodness of fit:
- Independence in a contingency table: same formula, with degrees of freedom