ML Math Lab — Precision vs Recall (Magic Door)
Tune the door threshold → catch good apples without too many wrong catches
Mode: Explore
Goal: balance Precision + Recall
Score: 0
Section 1 — What you will learn
By the end you will understand
  • Precision: Door ke “YES” kitne sahi the (Wrong catches kam).
  • Recall: Door ne real Good apples me se kitne pakde (Miss kam).
  • False Positive: Bad apple ko Good samajh ke pakad liya.
  • False Negative: Good apple chhoot gaya.
  • Trade-off: Threshold change → Precision/Recall idhar-udhar.
Section 2 — Controls
Challenge adds score + win: Precision & Recall both good.
Rule: if score ≥ threshold → Door says YES (opens).
Example: 20% Good, 80% Bad.
High skill makes the game easier.
This only changes animation speed and count per time.
How to play: Start → items move. Change Threshold slider. Watch TP/FP/FN/TN counters and meters.

Section 3 — Live stats
Precision
Recall
False Positives
0
False Negatives
0
True Positives
0
True Negatives
0

Section 4 — Math (simple)
What the Magic Door is computing Live formulas (kid mode)
Loading…
🧠 Kid Coach
Loading…
Tip: change threshold and watch FP vs FN.
Section 5 — The Magic Door Arena
Good apple (positive) Bad apple (negative) Door says YES (caught) Door says NO (rejected) score (0→1)
Live explanation
Press Start. Low threshold = catches many (high Recall) but may catch wrong (low Precision).
Game HUD (no useless text)
Explore: move the Threshold slider and watch how FP/FN changes.
Precision Meter
Recall Meter
Trade-off Alarm (FP vs FN)
If FP explodes → threshold too low. If FN explodes → threshold too high.
Quick actions