Lecture 4 - How To Choose A Statistical Test
Lecture 4 - How To Choose A Statistical Test
Choose a
Set null and alternative hypothesis suitable
test
Calculate a test statistic
Calculate a p-value
Continuous data
Graphical illustrations
Histogram (can be plotted against a
categorical variable)
Box & Whisker plot (can be plotted against
a categorical variable)
Dot plot (can be plotted against a
categorical variable)
Scatter plot (two continuous variables)
Exposure
variable Normal Skew
Normally
Or….Skewed
distributed
The mean and median are very different for skewed data.
Chi-squared test statistic
2
n
Oi Ei
2
i 1 Ei
T-tests
Paired or Independent (Unpaired) Data?
T-tests are used to compare two population means
₋ Paired data: same individuals studied at two different
times or under two conditions PAIRED T-TEST
₋ Independent: data collected from two separate groups
INDEPENDENT SAMPLES T-TEST
Assumptions in t-Tests
• Normality: Plot histograms
– One plot of the paired differences for any paired data
– Two (One for each group) for independent samples
– Don’t have to be perfect, just roughly symmetric
www.statstutor.ac.uk
Assumptions for ANOVA
Assumption How to check What to do if assumption
not met
www.statstutor.ac.uk
Correlation Coefficient r
Measures strength of a relationship between two
continuous variables
r = 0.9
r = 0.01
r = -0.9
www.statstutor.ac.uk
Summary Table of Statistical Tests
Level of Sample Characteristics Correlation
Measurement
1 2 Sample K Sample (i.e., >2)
Sample
Independent Dependent Independent Dependent
(Plonskey, 2001)