Recitation Notes For PR2
Recitation Notes For PR2
Types of variables
Quantitative variables
Ordinal
- Represent data with an order (e.g. rankings).
Nominal
- Represent group names (e.g. brands or species names).
Binary
- Represent data with a yes/no or 1/0 outcome (e.g. win or lose)
PARAMETRIC TEST
1. Regression tests
- Regression tests look for cause-and-effect relationships. They can be used to estimate the effect of
one or more continuous variables on another variable.
a. Simple linear regression
2. Comparison tests
- Comparison tests look differences among group means. They can be used to test the effect of a
categorical variable on the mean value of some other characteristic.
a. T-tests
- T-tests are used when comparing the means of precisely two groups (e.g. the average heights of men
and women).
a. Pearson’s r
NONPARAMETRIC TEST
- Non-parametric tests don’t make as many assumptions about the data, and are useful when one or
more of the common statistical assumptions are violated. However, the inferences they make aren’t
as strong as with parametric tests.
1. Spearman’s rho (in this example, vendor scores were treated as ordinal variables)
3. Mann-Whitney U test (in this example, risk factors were treated as ordinal variables)
- a non-parametric statistical test used to compare two samples or groups.