Ask a better questionLesson 01 of 30 · 5 min
What would change your mind?
Rewrite a broad claim as a question with an observable outcome.
A team says its new cache is faster. Faster at which job, on which machine, and compared with what? Without those boundaries, almost any result can be made to fit the claim.
Start with a question you can answer: for this fixed set of lookups, does enabling the cache reduce elapsed time by at least 20%, while returning the same answers? Elapsed time is the time from a stated start to a stated finish. The minimum useful reduction is a decision threshold, chosen before seeing the result.
These invented paired timings let you practise the arithmetic before collecting measurements. is the original version; is the changed version. Each row describes one comparison. A smaller time favours the change. Keep the denominator explicit: the proportional reduction is .
Does a reduction from 100 ms to 85 ms meet a 20% target?
Write a prediction (optional)
Run the prepared example
This page puts the example in the Python editor. Select Run Python with the code unchanged.
Invented data
A saved draft is open. To run the published example, open Editor tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
What to compare
Find Reduction per pair (%) and Pairs meeting 20%. Which bars reach the dashed threshold, and how many do?
Your result
Result tools
Three of the five invented pairs meet 20%. The table supplies elapsed times. Checking correctness would also require comparing the answers each version returned.
Published example output
The site ran the original code to produce this reference. Build environment ↗
Reduction per pair (%): [15. 20. 10. 20. 20.] Pairs meeting 20%: 3
Three of the five invented pairs meet 20%. The table supplies elapsed times. Checking correctness would also require comparing the answers each version returned.
Change and run again
In the Python editor, change minimum_reduction_pct = 20 to minimum_reduction_pct = 10. Select Run Python again. Compare Reduction per pair (%), the count labelled Pairs meeting 10% and the dashed line. Which changed? Return to the Python editor
What this example supports. The invented table records elapsed times only. A real comparison also needs a check that both versions return the same answers.
Try a fresh case
A claim says “the new process is better”. Which question is directly testable?
Hints for this question
- Name what you would record.
- Name the old and new conditions and the size of change that matters.