Rullst AcademyRullst Academy/Lesson
Data, probability and statistics I · Lesson 11 / 12

Before celebrating a model, compare

A fictional alarm gets 90% of ten test cases right. That sounds good until a rule that always says “normal” also gets 90% — while missing the only failure.

Learning paths18 min

Let's discover together

  1. 1

    There are nine normal cases and one failure. Always normal has nine correct predictions, one missed failure and zero false alarms. Accuracy is correct/total; here, 9/10 = 90%. Alone, it hides which case was missed.

  2. 2

    The second rule detects the failure but also flags a normal case. It still has nine correct predictions: eight normal cases plus the failure. Now there are zero missed failures and one false alarm. Same percentage, different consequences.

  3. 3

    The comparison panel below calculates these results; it does not train AI or evaluate real equipment. The choice depends on the goal and error costs. Ten invented cases do not demonstrate performance beyond this exercise.

  4. 4

    Define the metric and baseline before comparing. In an AI project, examples used to tune a solution should not be its only final evaluation. Holding out cases and reporting errors by group helps reveal results hidden by an average.

Evidence lab

Experiment with fictional deliveries at Aurora station. Analysis runs in this browser. Nothing entered here is sent to the server.

The workshop resets when you leave or reload. Download data and report to keep your work, or send the report to the activity editor, which keeps a draft in this browser. Completion and XP belong to the account.

Header id,group,minutes; one delivery per row; unique id; groups A/B; decimal point; duration 0–1440 with up to two decimal places. Blank means unknown. Up to 100 rows. No quotes or decimal commas. Use invented data.

Selection uses the entered table, including missing values. A draw does not guarantee representativeness. The same seed reproduces selection; it cannot recover cases outside the table.

Make a prediction and analyze the table.

Virtual bag: model with replacement

There are four equally likely tokens; choose how many are blue. Each token returns before the next draw. This is a deterministic simulation, without prizes, money or real observations.

Repeating the seed repeats the sequence. More draws do not guarantee a closer result in every run and do not validate the real-world model.

Two rules, the same accuracy

Ten fictional cases: nine normal and one failure. Rules defined for this example; no AI training or real equipment testing. Same number correct, different consequences.

Two rules, the same accuracy
RuleCorrect / totalMissed failuresFalse alarms

Your investigation report

Official links and next step

✦
YOUR MISSION

Compare a solution with a simple baseline and inspect error types.

Now it's your turn

Discovery workshop

Predict, check, explain

Compare a solution with a simple baseline and inspect error types.
Build your answers and check when you are ready.
A moment to understand

Why compare with Always normal?

I need a hint

Accuracy does not replace the goal, case distribution or error costs. A simple baseline makes comparison more informative.

Loading your journey…

Take it with you

Invent 12 cases with two failures and compare Always normal with your own rule. Count correct predictions, missed failures and false alarms. Explain which error would cost more in this fictional setting and what data is still missing.

At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.