Skip to content

Methodologies

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

  1. Observe: write down the facts you have, without interpretation. Ask what has changed.
  2. State a hypothesis: "The fault is caused by X."
  3. Predict: if the hypothesis is true, what should you see? If it is false, what should you see instead?
  4. Design a test that could show the hypothesis is wrong, not only one that could confirm it.
  5. Run the test and record the result.
  6. 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 conquer
    or
    Elimination
    can 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

Sources

$ test hypothesis

  1. Observation Times out on Mondays 30 seconds, mornings only ✓ Recorded
  2. Hypothesis 1 Network latency still times out on the database server ✕ Disproved
  3. Hypothesis 2 Backup holds a lock times out when the backup runs Supported, not proven. Test it again. ✓ Supported
  4. Next test Change the backup avoid the lock, check the timeout stops • Not tested
The worked example. A test that can fail is what makes a supported hypothesis worth keeping.

In practice

Examples and contributions

Entries appear here when a contributor tags them with this methodology.