Choosing the Right Statistical Test _ Types & Examples
Choosing the Right Statistical Test _ Types & Examples
Examples
Rebecca Bevans
Published on January 28, 2020 by Rebecca Bevans. Revised on June 22, 2023.
Statistical tests are used in hypothesis testing. They can be used to:
If you already know what types of variables you’re dealing with, you can use the flowchart to
choose the right statistical test for your data.
Table of contents
1. What does a statistical test do?
2. When to perform a statistical test
3. Choosing a parametric test: regression, comparison, or correlation
4. Choosing a nonparametric test
5. Flowchart: choosing a statistical test
6. Other interesting articles
7. Frequently asked questions about statistical tests
It then calculates a p value (probability value). The p-value estimates how likely it is that you
would see the difference described by the test statistic if the null hypothesis of no relationship
were true.
If the value of the test statistic is more extreme than the statistic calculated from the null
hypothesis, then you can infer a statistically significant relationship between the predictor
and outcome variables.
If the value of the test statistic is less extreme than the one calculated from the null hypothesis,
then you can infer no statistically significant relationship between the predictor and
outcome variables.
For a statistical test to be valid, your sample size needs to be large enough to approximate the
true distribution of the population being studied.
Statistical assumptions
Statistical tests make some common assumptions about the data they are testing:
If your data do not meet the assumptions of normality or homogeneity of variance, you may be
able to perform a nonparametric statistical test, which allows you to make comparisons
without any assumptions about the data distribution.
If your data do not meet the assumption of independence of observations, you may be able to use
a test that accounts for structure in your data (repeated-measures tests or tests that include
blocking variables).
Types of variables
The types of variables you have usually determine what type of statistical test you can use.
Quantitative variables represent amounts of things (e.g. the number of trees in a forest).
Types of quantitative variables include:
• Continuous (aka ratio variables): represent measures and can usually be divided into
units smaller than one (e.g. 0.75 grams).
• Discrete (aka integer variables): represent counts and usually can’t be divided into units
smaller than one (e.g. 1 tree).
Categorical variables represent groupings of things (e.g. the different tree species in a forest).
Types of categorical variables include:
Choose the test that fits the types of predictor and outcome variables you have collected (if you
are doing an experiment, these are the independent and dependent variables). Consult the tables
below to see which test best matches your variables.
Choosing a parametric test: regression, comparison, or
correlation
Parametric tests usually have stricter requirements than nonparametric tests, and are able to
make stronger inferences from the data. They can only be conducted with data that adheres to
the common assumptions of statistical tests.
The most common types of parametric test include regression tests, comparison tests, and
correlation tests.
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.
Predictor Outcome
Research question example
variable variable
• Continuous • Continuous
Simple linear What is the effect of income on
regression • 1 predictor • 1 outcome longevity?
• Continuous
• Continuous What is the effect of income and
Multiple linear • 2 or more
regression • 1 outcome minutes of exercise per day on
predictors longevity?
Logistic • Continuous • Binary What is the effect of drug dosage
regression on the survival of a test subject?
Comparison tests
Comparison tests look for differences among group means. They can be used to test the
effect of a categorical variable on the mean value of some other characteristic.
T-tests are used when comparing the means of precisely two groups (e.g., the average heights of
men and women). ANOVA and MANOVA tests are used when comparing the means of more
than two groups (e.g., the average heights of children, teenagers, and adults).
Predictor
Outcome variable Research question example
variable
• Quantitative
What is the effect of two different
• Categorical • groups come from test prep programs on the average
Paired t-test • 1 predictor the same exam scores for students from the
population same class?
• Quantitative
Independent
• Categorical • groups come from What is the difference in average
• 1 predictor different exam scores for students from two
t-test
populations different schools?
Correlation tests
Correlation tests check whether variables are related without hypothesizing a cause-and-
effect relationship.
These can be used to test whether two variables you want to use in (for example) a multiple
regression test are autocorrelated.
• Categorical • Quantitative
ANOSIM • 3 or more • 2 or more outcome MANOVA
groups variables
• Quantitative
• Categorical
Wilcoxon Rank-Sum • groups come from Independent t-
test • 2 groups test
different populations
• Quantitative
• Categorical
Wilcoxon Signed-rank • groups come from the
• 2 groups Paired t-test
test same population
Statistics
• Normal distribution
• Kurtosis
• Descriptive statistics
• Measures of central tendency
• Correlation coefficient
• Null hypothesis
When the p-value falls below the chosen alpha value, then we say the result of the test is
statistically significant.
Quantitative variables are any variables where the data represent amounts (e.g. height,
weight, or age).
Categorical variables are any variables where the data represent groups. This includes
rankings (e.g. finishing places in a race), classifications (e.g. brands of cereal), and binary
outcomes (e.g. coin flips).
You need to know what type of variables you are working with to choose the right
statistical test for your data and interpret your results.
Bevans, R. (2023, June 22). Choosing the Right Statistical Test | Types &
Examples. Scribbr. Retrieved January 22, 2025, from https://
www.scribbr.com/statistics/statistical-tests/
You have already voted. Thanks :-) Your vote is saved :-) Processing your vote...