Paired Test for Whether a New ODE Solver Runs Faster
Last updated: November 29, 2026
Quick Overview
A new ODE solver setting is benchmarked against the current one on the same 10 Simulink models; given the per-model runtime savings in seconds, decide whether it is faster, and compare a paired t-test with a sign test.
MathWorks
November 29, 20260
0
0 solved
A new ODE solver setting is benchmarked against the current one on the same 10 Simulink models; given the per-model runtime savings in seconds, decide whether it is faster, and compare a paired t-test with a sign test.
MathWorks performance teams compare solver and code generation changes on suites of benchmark models before shipping a release. The interviewer checks that you pair by model, compute a t statistic and interval correctly by hand, and reason about the assumptions and a nonparametric fallback.
What the Interviewer Expects
- Pairs measurements by model rather than running a two-sample test
- Computes mean difference, standard deviation, standard error and t with 9 degrees of freedom
- Gives a 95% confidence interval and interprets it in seconds
- Runs a sign test and explains why it is less powerful
- Raises practical issues: timing noise, relative versus absolute savings, multiple runs per model
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- Runtimes vary by orders of magnitude across models. Would you test differences in seconds or log ratios, and why?
- How many repeated runs per model would you take to control timing noise, and how do they enter the analysis?
- If you also tested 15 other solver settings on the same suite, how would you adjust for multiple comparisons?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Savings in seconds for 10 models: 0.12, 0.05, -0.02, 0.20, 0.08, 0.15, 0.01, 0.09, -0.04, 0.11. : mean saving is 0; two-sided test at . Each...
Approach
Each model is its own control, so model-to-model variance cancels and we test the differences directly. Use a one-sample t-test on , and as a robustness check a sign test that only uses the direc...