Example: Analysis of Variance in Sports Science

An example of analysis of variance in sports science

Three training groups, sprint tests before and after eight weeks: Do the improvements differ between strength training, plyometrics, and regular team training? This example shows how a mixed analysis of variance answers this question.

These are synthetic teaching data, not a conducted sports study. All results listed below were calculated using the provided R code. You can generate the complete dataset of 54 people yourself and recalculate every figure.

The study example: Which training improves sprint performance?

We consider a hypothetical study design with 54 amateur soccer players. 18 people belong to strength training, plyometrics, or a control group with regular team training. For a real intervention study, random group assignment would be appropriate; the data here were generated solely to explain the analysis.

Sprint time is measured at two time points: before the start of the intervention and after eight weeks. The central research question is not only whether the players get faster on average. Crucially, it is whether the change differs between the training groups.

This means there are two factors:

  • Time point with the levels pretest and posttest
  • Training group with the levels strength training, plyometrics, and control
The time point is a within-subjects factor because the same people are measured twice. The training group is a between-subjects factor because each player belongs to only one group. For this design, a mixed analysis of variance with repeated measures is appropriate, often referred to as a mixed ANOVA or a two-way analysis of variance with repeated measures.

Which hypothesis does the analysis of variance test?

In sports science papers, people often look too quickly at the p-value of the time effect. That would be too narrow here. If all groups achieve better sprint times after eight weeks, this could also be due to training effects that are not specific to an intervention, habituation to the test, or seasonal changes.

The professionally central hypothesis therefore concerns the interaction of time point and group:

The change in sprint time from pretest to posttest differs between the three training groups.

The interaction tests whether at least two groups differ in their mean change. Pre-planned contrasts can be planned independently of the result of this overall test. For the exploratory pairwise comparisons in this example, we then use a Tukey correction.

The generated dataset provides the following means and standard deviations (SD) in seconds. The change is defined as posttest minus pretest.

Synthetic sprint data: 18 people per group
Group Pretest M (SD) Posttest M (SD) Change M (SD)
Strength training 4.62 (0.18) 4.54 (0.22) −0.08 (0.10)
Plyometrics 4.61 (0.18) 4.47 (0.19) −0.14 (0.10)
Control 4.63 (0.18) 4.60 (0.19) −0.03 (0.10)

Smaller values mean better sprint performance here. Plyometric training shows descriptively the strongest improvement. However, whether this difference goes beyond random sampling fluctuations can only be answered by the inferential statistical analysis.

What results does the mixed ANOVA provide?

The analysis tests three different effects. The main effect of time point answers whether sprint times change between pretest and posttest across all participants. The main effect of group tests whether the groups generally differ in their sprint times regardless of the time point. The interaction of time point × group tests the actual intervention question.

The following test results are actually calculated from the dataset generated below:

For the time point, F(1, 51) = 37.50, p < 0.001, partial η² = 0.424. The interaction between time point and group is F(2, 51) = 5.46, p = 0.0071, partial η² = 0.176. The main effect of group is F(2, 51) = 0.755, p = 0.475.

In the teaching dataset, sprint times are shorter on average. At the same time, the change differs between the groups. Since the values were artificially generated, this is not proof of the effectiveness of a training program.

The non-significant main effect of group is not a contradiction. It merely says that the average sprint times of the groups do not clearly differ when considered across both measurement time points. For the question of different improvement, the interaction is decisive.

What follows a significant interaction

A significant interaction is not yet a complete result. It does not automatically show between which groups the differences lie. Therefore, post-hoc analyses or planned contrasts are required.

The Tukey-corrected comparisons of the change values show:

  • Plyometrics versus control: additional reduction in sprint time by 0.11 s; simultaneous 95% confidence interval 0.030 to 0.190 s; corrected p = 0.00495.
  • Plyometrics versus strength training: additional reduction by 0.06 s; 95% confidence interval −0.020 to 0.140 s; corrected p = 0.180.
  • Strength training versus control: additional reduction by 0.05 s; 95% confidence interval −0.030 to 0.130 s; corrected p = 0.299.

In this example, only the comparison of plyometrics versus control is statistically significant. Positive values here describe an additional improvement, i.e., a greater reduction in sprint time. Whether 0.11 s would be practically relevant in sports would have to be assessed based on measurement accuracy, performance level, and training goal.

This is exactly where a common mistake lies: "not significant" does not automatically mean "no effect". It first means that the data do not provide sufficiently clear evidence at the chosen significance level. Confidence intervals and effect sizes should therefore always be included in the assessment.

Assumptions: What must be checked before analysis

An analysis of variance is not automatic. It assumes that the data structure and model assumptions fit the procedure. In a mixed ANOVA, the independence of the individuals between the groups, the approximate normal distribution of the residuals, and the homogeneity of variance are particularly relevant.

Independence does not arise from an SPSS click, but from the study design. If several players come from the same team and are highly dependent on each other, a simple ANOVA can become problematic. Then a multilevel model might be better suited.

Normality should not be assessed solely with a significance test. For smaller samples, histograms, Q-Q plots, and the examination of noticeable outliers help. Individual moderate deviations are often less critical in groups of similar size. However, highly skewed distributions, floor effects, or a few extreme measurement values can significantly influence the result.

The variances should be checked for the variables belonging to the model. For exactly two measurement time points, the interaction test corresponds to a one-way ANOVA of the individual change values; here, their variance within the groups is particularly relevant. Sphericity is automatically met with two time points. With more time points, additional checks and, if necessary, corrections are required.

Missing values deserve special attention. If individual players do not participate in the posttest, the classic repeated measures ANOVA often leads to the complete exclusion of these cases. This reduces the test power and can create biases. With a relevant amount of missing data, linear mixed models are often the better, more flexible choice.

Implementation in SPSS, R, or Jamovi

The software is less important than a correct data structure and a clearly defined analysis plan. In SPSS, a mixed ANOVA is typically implemented via the general linear model with repeated measures. The pre- and post-values are defined as repeated measures variables, and the training group is added as a between-subjects factor.

In R, the analysis can be calculated, for example, with functions for analyses of variance or with linear mixed models. Jamovi and JASP offer a graphical interface that is well suited for many final theses. Nevertheless, the rule applies: A correctly executed menu path does not protect against a wrong model decision.

Before analysis, it should be clearly documented which variable is the primary endpoint, how outliers are handled, whether covariates are planned, and which comparisons are tested after an interaction. If these decisions are made only after viewing the results, the risk of selective interpretation increases.

Recalculating in R: Dataset and complete analysis

The following code requires no additional packages. Copy it completely into R or RStudio and run it. The fixed random start generates the same teaching data. The group means and dispersions are deliberately pre-specified; this construction serves for learning and does not represent an actual random sample. Calculations are performed with unrounded values.

# Synthetic teaching data, not a real sports study.
# R base functions, no additional packages required.
set.seed(20261031)
gruppen <- c("Krafttraining", "Plyometrie", "Kontrolle")
n <- 18
standardisiert <- function(x) as.numeric(scale(x))
daten <- do.call(rbind, lapply(seq_along(gruppen), function(g) {
  pre <- c(4.62, 4.61, 4.63)[g] + 0.18 * standardisiert(rnorm(n))
  delta <- c(-0.08, -0.14, -0.03)[g] + 0.10 * standardisiert(rnorm(n))
  data.frame(id = paste0(g, "_", seq_len(n)), gruppe = gruppen[g],
             pre = pre, post = pre + delta, delta = delta)
}))
daten$id <- factor(daten$id)
daten$gruppe <- factor(daten$gruppe, levels = gruppen)
lang <- reshape(daten[, c("id", "gruppe", "pre", "post")],
                varying = c("pre", "post"), v.names = "sprintzeit",
                timevar = "zeit", times = c("pre", "post"),
                direction = "long")
lang$zeit <- factor(lang$zeit, levels = c("pre", "post"))
options(contrasts = c("contr.sum", "contr.poly"))
modell <- aov(sprintzeit ~ gruppe * zeit + Error(id/zeit), data = lang)
summary(modell)
# With exactly two time points, the ANOVA of the difference values
# provides the same F-test as the group-time interaction.
differenzmodell <- aov(delta ~ gruppe, data = daten)
summary(differenzmodell)
TukeyHSD(differenzmodell)
# Partial effect size for the interaction:
tab <- summary(differenzmodell)[[1]]
eta2p <- tab[1, "Sum Sq"] / sum(tab[, "Sum Sq"])
eta2p
# Optional: Save teaching data as CSV in the current working directory.
# write.csv(daten, "sprint-lehrdaten.csv", row.names = FALSE)

Checking the interaction test by hand

For each person, we calculate Δ = Posttest − Pretest. With three groups of equal size and exactly two time points, the F-test for the group-time interaction is identical to the ANOVA of these differences.

  • Overall mean of the change: (−0.08 − 0.14 − 0.03) / 3 = −0.083333 s.
  • Sum of squares between the groups: 18 × [(−0.08 + 0.083333)² + (−0.14 + 0.083333)² + (−0.03 + 0.083333)²] = 0.1092.
  • Sum of squares within the groups: 3 × (18 − 1) × 0.10² = 0.5100.
  • Mean squares: 0.1092 / 2 = 0.0546 and 0.5100 / 51 = 0.0100.
  • F = 0.0546 / 0.0100 = 5.46; p = 0.0071.
  • Partial η² = 0.1092 / (0.1092 + 0.5100) = 0.1764.

In the output of the mixed ANOVA, the sums of squares of the within-person time contrast are half as large. Their ratio and thus F, p, and partial η² match. In R, the p-value can additionally be checked with pf(5.46, 2, 51, lower.tail = FALSE).

How to formulate the results section correctly

A convincing results section separates description, test result, and professional interpretation. First, the means and standard deviations are reported, then the ANOVA results with degrees of freedom, F-value, p-value, and effect size. Then follow the pre-defined or methodologically justified post-hoc comparisons.

One possible formulation is:

In the synthetic example dataset, sprint time in the plyometrics group decreased from M = 4.61 s (SD = 0.18) to M = 4.47 s (SD = 0.19). The mixed ANOVA revealed an interaction between time point and group, F(2, 51) = 5.46, p = 0.0071, partial η² = 0.176. The Tukey-corrected comparison showed a stronger reduction by 0.11 s compared to the control group, simultaneous 95% confidence interval [0.030; 0.190], p = 0.00495. Compared to strength training, the difference was not significant.

For a real study, the discussion would have to limit the results to the studied design. This teaching dataset does not allow any statement about the actual effectiveness of plyometrics, other performance levels, longer training periods, or injury risks.

If your sports study contains more than two measurement time points, unequal group sizes, relevant dropouts, or multiple dependent performance parameters, another procedure may be more appropriate. An early methodological check saves extensive corrections in the results section later. For an individual assessment of your design, you can request a statistics consultation from Easy Statistik via the contact form - discreet, traceable, and at an academic level.

Methodological sources and appropriate next steps


Put knowledge into practice

From explanation
to your own analysis.

Would you like to know which method suits your project? We review your plans free of charge and give you a clear recommendation.

Your question deserves a personal answer.

Describe your project. We will assess free of charge what support would be right for you.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.