Input: a CSV participant,table,chart with each participant's time (s) for the same kind of question with a table and with a chart (within-subjects).
Compute the differences table − chart and print:
n=8: mean time table 49.4 s, chart 38.8 s
mean difference (table - chart) 10.6 s, 95% CI [6.4, 14.9]
paired t(7) = 5.93, p = 0.0006, effect size dz = 2.10
8 of 8 participants were faster with the chart
conclusion: the chart is faster on average; the CI excludes 0
The CI is mean ± t₀.₉₇₅,ₙ₋₁ × sd/√n (scipy.stats.t.ppf), the test scipy.stats.ttest_rel, dz = mean difference / sd of differences. Conclusions: CI entirely above 0 → chart faster; entirely below 0 → conclusion: the table is faster on average; the CI excludes 0; otherwise conclusion: no reliable difference; the CI includes 0 (more participants needed?).