Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

1.3 (2 of 3): Root cause analysis

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

The phone with no power

Your phone battery is empty by lunch. You buy a power bank and charge the phone every lunchtime. The next day, it is empty by lunch again.

You fixed the symptom, not the cause. The real cause was an app that ran all day. When you only treat the symptom, the problem comes back.

Key words

WordWhat it meansExample
SymptomWhat you can see going wrong.the app crashes
Root causeThe real reason a problem happens.the memory is full
Root cause analysisLooking for the real reason, not just the symptom.asking why five times
Five whysAsk why again and again until you reach the root cause.why? why? why?
FMEAA table that lists what could fail, how bad it is and how likely.login could fail
Event treeA picture that follows one event and what happens if each safety step works or fails.server stops, backup starts
EscalatePass a problem to somebody with more skill or power.tell a manager

The cells students fill in are left blank in this preview.

Symptom or cause?

Have a go

Symptom or cause?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Find the cause so it stops

Root cause analysis finds the real reason for a problem so you can stop it coming back.

Use it when a problem comes back, when it is serious, or when many people are affected. You do not need it for a single typing mistake.

Method 1: the five whys

Ask "why?" about the problem. Then ask "why?" about the answer. Keep going about five times. The last answer is usually the root cause.

Worked example: five whys on a bug

QuestionAnswer
Why was the total in the app wrong?The last item was not added.
Why was the last item not added?The code stopped one item too early.
Why did the code stop early?The programmer wrote the stop rule by hand and made a small mistake.
Why did nobody notice?There was no test for a basket with only one item.
Why was there no test?The team has no tests and no code review. This is the root cause.

The cells students fill in are left blank in this preview.

Put the whys in order

Have a go

Put the whys in order

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Method 2: FMEA

FMEA stands for failure mode and effects analysis. You do it before things go wrong.

You list each way a part could fail. You write the effect. You give two scores from 1 to 5: how bad, and how likely. You multiply them to get a risk score. (5 x 2 means 5 times 2.)

Worked example: an FMEA table

What could failEffectHow bad (1 to 5)How likely (1 to 5)Risk score
Login page is downNobody can sign in525 x 2 = 10
Wrong total in basketCustomers pay too much434 x 3 = 12
Logo is the wrong colourLooks wrong141 x 4 = 4
Payment failsOrder is lost535 x 3 = 15

The cells students fill in are left blank in this preview.

Fix the highest risk first

The highest risk score is 15, for a failed payment. Fix that first. The logo scores only 4, so it can wait.

Then you decide what to do about the high scores.

Score the risk

Have a go

Score the risk

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Extra: Real FMEA uses a third score

Note

Many companies add a third score: how hard the fault is to spot before it reaches a customer. They multiply all three scores. The answer is called the risk priority number. The idea is the same: fix the biggest number first.

Method 3: event tree analysis

Event tree analysis (ETA) starts with one event. Then it follows each safety step. Does it work, or does it fail? Each choice makes a new branch.

At the end of each branch you see the result.

An event tree: the server stops

An event tree drawn as an indented list, where Event: the main server stops leads to the step Does the backup server start, whose yes and whose no each lead to the step Is the alert sent to staff, and the four results are Result: site stays up, staff know; Result: site stays up, staff do not know; Result: short outage, staff fix it; and Result: long outage, nobody knows.An event tree drawn as an indented list, where Event: the main server stops leads to the step Does the backup server start, whose yes and whose no each lead to the step Is the alert sent to staff, and the four results are Result: site stays up, staff know; Result: site stays up, staff do not know; Result: short outage, staff fix it; and Result: long outage, nobody knows.

Match the method

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

After the analysis: log, close, escalate

When you know the root cause, do three things.

Log: write down the problem, the cause and what you did. This helps the next person.

Close: when the problem is fixed and checked, mark it finished.

Escalate: if you cannot fix it, tell a manager, a specialist or an outside company.

Which action?

SituationAction
You found the cause and wrote it in the team record.Log
The fix works and a test confirms it.Close
The fault is in a cloud service your team does not own.Escalate to an external company
The fault is serious and needs a decision from your manager.Escalate to a manager
The fault needs a security expert.Escalate to a specialist

The cells students fill in are left blank in this preview.

Watch: root cause analysis

Press Play on the short film below. It starts with the phone that is empty by lunch. Then it asks why five times about the bug in the app, until it reaches the root cause. Then it shows FMEA, the event tree, and what to do after. Watch what is fixed: the symptom or the cause.

Film: root cause analysis

Root cause analysis

Every scene, as text

  1. A symptom is what you can see going wrong: the phone is empty by lunch. A power bank treats only the symptom, so the next day it is empty by lunch again. The root cause, the real reason, was an app that ran all day. When you only treat the symptom, the problem comes back.
  2. The five whys: ask why again and again until you reach the root cause. The total in the app was wrong. Why? The last item was not added. Why? The code stopped one item too early. Why? The programmer wrote the stop rule by hand and made a small mistake. Why did nobody notice? There was no test for a basket with only one item. Why? The team has no tests and no code review. This is the root cause.
  3. Myth (false): a person is the root cause. Stopping at the programmer's mistake blames a person instead of a process. Anyone can make a small mistake, so blame does not stop the next one. The root cause is a missing process, no tests and no code review: add them, so the next mistake can be caught.
  4. FMEA lists what could fail, before it goes wrong, and gives two scores from 1 to 5: how bad and how likely. Multiply them to get a risk score: 5 x 2 = 10, 4 x 3 = 12, 1 x 4 = 4 and 5 x 3 = 15. The highest risk score is 15, for a failed payment: fix that first. The logo scores only 4, so it can wait.
  5. Event tree analysis starts with one event: the main server stops. Then it follows each safety step: does the backup server start, and is the alert sent to staff? Each yes or no makes a new branch, and at the end of each branch you see the result, from site stays up, staff know, to long outage, nobody knows.
  6. After the analysis: log, close or escalate. Log: write down the problem, the cause and what you did. Close: when the problem is fixed and checked, mark it finished. Escalate: if you cannot fix it, tell a manager, a specialist or an outside company.

Your turn: risk and next steps in code

Write three small functions for a support team. risk_score multiplies how bad (1 to 5) by how likely (1 to 5). log_entry gives text like Problem: App crashed. Cause: No memory left. what_next says close if fixed, escalate if it is not fixed and cannot be fixed here, and keep working in every other case. Press Run Tests.

Code: python
def risk_score(how_bad, how_likely):
    # Both numbers are from 1 to 5. Multiply them.
    return 0


def log_entry(problem, cause):
    # Text like: Problem: App crashed. Cause: No memory left.
    return ""


def what_next(fixed, can_fix_here):
    # If the problem is fixed, give back "close".
    # If it is not fixed and we cannot fix it here, give back "escalate".
    # Otherwise give back "keep working".
    return ""

Make a free account to save your work, or press Start lab to work through the whole lesson.

Your turn: five whys on your own problem

Choose a real problem you have had: a late bus, a phone that will not charge, or an app that crashed. Write the problem. Then ask why five times and write each answer. Mark the root cause. Last, say if you would log, close or escalate it, and why.

A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.

Make a free account to save your work, or press Start lab to work through the whole lesson.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Exit quiz

Have a go

Exit quiz

6 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Remember

Important

Find the root cause, not only the symptom. Use five whys, FMEA or an event tree. Then log, close or escalate.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.