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. AA is the original version; BB is the changed version. Each row describes one comparison. A smaller BB time favours the change. Keep the denominator explicit: the proportional reduction is (A−B)/A(A-B)/A.

Make “faster” measurable
A · 100 ms referenceB · at most 80 mssame job · same correct result
A · 100 ms referenceB · at most 80 mssame job · same correct result
reduction=100 A−BA%\mathrm{reduction}=100\,\frac{A-B}{A}\%
Illustrative decision rule, not measured data: against a 100 ms reference, a 20% reduction requires a time of at most 80 ms. The workload and correct answers must stay the same.

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

Editor tools
About Python ↗

Ctrl+Enter or ⌘+Enter runs the code.

What to compare

Find Reduction per pair (%) and Pairs meeting 20%. Which bars reach the dashed threshold, and how many do?

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
Bars show the percentage reduction for five invented timing pairs. A dashed line marks the useful threshold.
Open full-size figure ↗

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?

Choose an answer

Hints for this question
  1. Name what you would record.
  2. Name the old and new conditions and the size of change that matters.
Your notes