Hypothesis-driven
State a possible cause, work out what must be true if it is right, and design a test that could prove it wrong. Run the test, record the result, and keep or discard the idea.
Also known as: the scientific method. In CompTIA's troubleshooting steps it appears as "establish a theory of probable cause" and "test the theory to determine the cause".
How it works
- Observe: write down the facts you have, without interpretation. Ask what has changed.
- State a hypothesis: "The fault is caused by X."
- Predict: if the hypothesis is true, what should you see? If it is false, what should you see instead?
- Design a test that could show the hypothesis is wrong, not only one that could confirm it.
- Run the test and record the result.
- Keep, refine or discard the hypothesis. Repeat.
When to use it
- The cause is not obvious, and the system has several interacting parts.
- You need to explain the cause to others, with the evidence for it.
- You are writing a root cause analysis and want each conclusion to trace back to a test.
When another approach is better
- A quick check would settle it. Run the check, and skip the formality.
- There are many parts and no explanation yet.Divide and conquerorEliminationcan produce one.
Worked example
Illustrative example
A report times out after 30 seconds, but only on Monday mornings. Two hypotheses are tried in turn, each with a prediction that could fail.
Observation The report times out after 30 seconds, only on Monday mornings Hypothesis 1 Network latency between the report server and the database Prediction Run on the database server itself, the report will not time out Test Run the report on the database server on Monday morning Result It still times out. The prediction failed: hypothesis 1 is disproved Hypothesis 2 The 06:00 backup job holds a lock the report needs Prediction The timeout appears whenever the backup runs, on any day Test Start the backup by hand on Wednesday, then run the report Result The report times out. The prediction held
The result supports hypothesis 2. It does not prove it. The next step is a second test, such as changing the backup so it does not take the lock and checking the timeout stops.
Watch for
- Confirmation bias. Look for the test that could prove you wrong, because a test that cannot fail tells you nothing.
- Too many hypotheses at once. Work with one or two, and keep a written list of the rest.
- Hypotheses that cannot be tested. If nothing could disprove it, refine it until something could.
- Treating "supported" as "proven". Keep testing until the fix removes the symptom.
Related methodologies
-
Elimination
: test the parts, not the explanations.
-
Spot the differences
: a source of good hypotheses.
-
Follow the path
: find where to test.
Sources
- The troubleshooting steps this maps to:Network Troubleshooting Study Guide for the CompTIA Network+ (N10-009)andCompTIA Network+ N10-008: How to Apply the Network Troubleshooting Methodology (AlphaPrep).
- The worked example is this site's own.
$ test hypothesis
- Observation Times out on Mondays ✓ Recorded
- Hypothesis 1 Network latency ✕ Disproved
- Hypothesis 2 Backup holds a lock ✓ Supported
- Next test Change the backup • Not tested
In practice
Examples and contributions
Entries appear here when a contributor tags them with this methodology.