Confusion Matrix Puzzle Game

Sort predictions, complete matrices, tune thresholds, calculate essential metrics, and master classification errors through fast, visual, hands-on challenges with instant explanations and progress tracking.

Choose the puzzle and dataset

Progress and best scores are stored in this browser.
Use 0 for no timer.

Read predictions against actual outcomes

True positive: predicted positive and actually positive. False positive: predicted positive but actually negative.

True negative: predicted negative and actually negative. False negative: predicted negative but actually positive.

Accuracy = (TP + TN) / Total

Precision = TP / (TP + FP)

Recall = TP / (TP + FN)

Specificity = TN / (TN + FP)

F1 = 2 × Precision × Recall / (Precision + Recall)

MCC = (TP×TN − FP×FN) / √((TP+FP)(TP+FN)(TN+FP)(TN+FN))

  • Keyboard users can classify records with the accessible dropdown table.
  • Canvas cards can be dragged with mouse or touch.
  • The positive class is shown before each puzzle.

Scoreboard and progress

Score0Best: 0
Puzzle0 / 0Not started
TimeCurrent round
Streak0Correct rounds
Lives3Expert mode uses lives
Session accuracy0%0 correct

Start a game to generate a puzzle

The positive class will appear here.

Accessible record assignments

These controls mirror the canvas and provide a keyboard-friendly alternative.

RecordActualPredictionConfidenceYour category

Record

Count every record in the dataset, then enter the four matrix values.

Actual positive
Actual negative
Predicted positive
Predicted negative
IDActualPredictedScore

One displayed outcome label is incorrect. Select that row.

SelectIDActualPredictedDisplayed label

Live confusion matrix and metrics

Actual positive
Actual negative
Predicted positive
True positive0
False positive0
Predicted negative
False negative0
True negative0

Tune classification decisions and error costs

Current decision cost: 0.00 Costs update with the threshold.

Performance, outcome counts, and round history

Import, create, and export records

Accepted actual values: 1, 0, positive, or negative. Scores must be between 0 and 1.

Learning review and recommendations

Complete at least one puzzle to generate a learning report.

Related Calculators

Precision or Recall?Metric MatchROC Curve ExplorerError Analysis DetectiveCalibrationRegression Error HuntFair Evaluation Challenge

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.