Beta

Sync to cloud

Uses your current signed-in YoolVi account. A Learn profile is not required.

Upload a snapshot of this browser’s saved lesson work across all subjects, including notes, experiments, journal and review history. Existing guest work is included only when you confirm below. This does not upload account credentials or award XP.

Sync uploads to your private account; it does not automatically merge or replace this device’s work. On another device, download the cloud copy and use My Learning’s backup import. The previous cloud snapshot is retained when a new one replaces it.

Export or import this device’s work

No background uploads. Edits made after a snapshot need another sync. On shared devices, work is bound to the first account observed by cloud sync; another account must use a separate browser profile. Keep your own downloaded backup too.

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Back to AI Data and Decisions

AI Data and Decisions · Lesson 2 of 3 in this module

Understand alert thresholds

Alert thresholdsFixed teaching example — not your saved experiment.
  1. Starting information

    Two risks: 0.4 and 0.7

  2. Relationship or operation

    Alert at 0.5: only 0.7 qualifies

  3. Consequence

    Lowering to 0.3 alerts on both

A threshold is a decision cutoff. Moving it changes actions, not the fitted risk scores; both missed cases and false alarms matter.

The idea in everyday terms

A score ranks or estimates a case; a threshold turns that score into an action. Lowering the threshold usually catches more positive cases but also sends more negative cases for action. “Positive” names a class, not a desirable outcome.

What to watch in the experiment

Count correct alerts, false alerts, misses and correct rejections. Each rate divides by a particular group, so read its denominator. Compare thresholds using the costs and review capacity relevant to the task, rather than choosing accuracy alone.

What this does not establish

A threshold change does not improve the underlying score. Rates with an empty denominator are undefined, and selecting a threshold on these public cases is development, not fresh final evaluation.

Full worked explanation, calculations and control definitions

Use this reference for the detailed mechanism and control meanings. Derivations explicitly marked optional are enrichment.

Start with the decision, not the percentage

An equipment desk can review only some requests urgently. A score ranks requests; a threshold is the cutoff for action. In this lesson, “positive” means urgent. It does not mean good, correct, or desirable. A true label says what actually happened, while a prediction is the system’s decision.

At threshold 0.50, a request scoring 0.60 receives urgent review and one scoring 0.35 does not. Lowering the threshold to 0.35 includes both. The model has not learned anything new: its scores are unchanged. Our supplied scores are invented rankings, not calibrated probabilities. A score of 0.80 does not establish an 80% chance of urgency.

Four boxes reveal the mistakes

The live matrix crosses the actual outcome with the predicted outcome. “True” means correct; “false” means incorrect. Positive and negative refer to the prediction.

CountPlain-language meaningDefault worked example
True positive, TPUrgent and flagged urgent3
False positive, FPOrdinary but flagged urgent: a false alarm3
False negative, FNUrgent but missed1
True negative, TNOrdinary and correctly left unflagged13

These are the worked-example defaults, with 20 requests and threshold 0.50. The lab’s matrix and calculations change with your controls. There are four truly urgent requests (TP + FN) and six alerts (TP + FP). Count those groups before dividing.

Three rates answer three questions

Accuracy asks how many decisions were right overall: 16 out of 20, or 80%. Precision asks how many alerts were right: 3 out of 6, or 50%. Recall asks how many truly urgent requests were caught: 3 out of 4, or 75%.

accuracy=TP+TNTP+FP+FN+TN=3+1320=0.80\text{accuracy}=\frac{TP+TN}{TP+FP+FN+TN}=\frac{3+13}{20}=0.80 precision=TPTP+FP=36=0.50,recall=TPTP+FN=34=0.75\text{precision}=\frac{TP}{TP+FP}=\frac{3}{6}=0.50,\qquad \text{recall}=\frac{TP}{TP+FN}=\frac{3}{4}=0.75

Each symbol is a count from the table. The fractions are unitless rates from 0 to 1; multiply by 100 to express percentages. Read precision as “correct alerts divided by all alerts,” and recall as “caught urgent requests divided by all urgent requests.” They exchange the denominator, not the numerator.

With no alerts, precision has denominator zero and is undefined. It is not 100% and not evidence of a reliable detector. With no actual positives, recall is undefined. An empty sample has no accuracy. The lab labels these cases rather than silently inserting a favorable number.

Accuracy can reward doing nothing useful

The majority baseline always predicts the most common class. On the default cohort it predicts ordinary and achieves 16 / 20 = 80% accuracy, exactly matching the default score rule. But its recall is zero: it misses all four urgent requests. The score rule catches three. This is why class balance—the relative numbers in each class—and the intended use matter.

Changing the displayed mix removes twelve ordinary requests while retaining the four urgent ones. This illustrates sensitivity to the sample. It also changes the ordinary-score distribution, so it is not an isolated population-prevalence experiment. A small teaching cohort does not establish future performance or subgroup fairness.

Turn assumptions into an explicit cost

Suppose each unnecessary review costs 2 points and each missed urgent request costs 10 points. The default rule costs 3 × 2 + 1 × 10 = 16 points. Predicting ordinary for everyone costs 4 × 10 = 40. Costs express our teaching assumptions about consequences; they are not measured money or universal values.

C=FP cFP+FN cFN=3(2)+1(10)=16C=FP\,c_{FP}+FN\,c_{FN}=3(2)+1(10)=16

C is total cost in points, c with subscript FP is cost per false alarm, and c with subscript FN is cost per miss. This model assumes constant costs per error, zero cost for correct decisions, and unlimited review capacity. Real decisions may need different costs for different cases, a review-capacity constraint, and human escalation.

Lowering the default threshold to 0.35 catches all four urgent requests but also creates five false alarms. At the original costs that is 10 points; if false alarms cost 10 and misses cost 2, it is 50 points. A threshold preference depends on the use and costs, not on a universally best cutoff of 0.50. Compare thresholds on the same cohort, since total cost also grows with the number of requests.

Separate practice from a release decision

Changing thresholds after inspecting outcomes is development. Choose the metric and costs, select a threshold on development evidence, freeze it, and then evaluate on fresh cases collected for the intended use. Reusing this tiny cohort cannot create new independent evidence. Examine affected groups, review workload, uncertain labels and future changes before recommending deployment.

Use the lab’s separate library calculation to practice the denominators. For a decision brief, record two compared thresholds, the counts and costs, your assumptions, and the next evidence you need. For implementation practice, build and test the count-and-rate function yourself, including the zero-denominator and exact-threshold cases. Neither a downloaded brief nor passing the lesson’s practice question certifies independent implementation or decision quality.