We generate synthetic execution-time data for two algorithms to demonstrate hypothesis testing in practice.
algo_A <- rnorm(30, mean = 120, sd = 8)
algo_B <- rnorm(30, mean = 110, sd = 8)
df <- data.frame(
time = c(algo_A, algo_B),
algorithm = rep(c("Algorithm A", "Algorithm B"), each = 30)
)