Home Back

Confusion Matrix Calculator 3x3

3x3 Confusion Matrix:

\[ CM = \begin{bmatrix} TP_1 & FP_{12} & FP_{13} \\ FP_{21} & TP_2 & FP_{23} \\ FP_{31} & FP_{32} & TP_3 \\ \end{bmatrix} \]

Actual vs Predicted Values

Predicted Class 1 Predicted Class 2 Predicted Class 3
Actual Class 1
Actual Class 2
Actual Class 3

Results

Class 1 Metrics

Class 2 Metrics

Class 3 Metrics

Macro Averages

Micro Averages

Unit Converter ▲

Unit Converter ▼

From: To:

1. What is a 3x3 Confusion Matrix?

A 3x3 confusion matrix is a table that visualizes the performance of a classification model with three classes. It shows how many predictions were correct (true positives) and where the model made errors (false positives and false negatives).

2. How to Use This Calculator

Enter the counts of:

The calculator will compute all standard classification metrics.

3. Understanding the Metrics

Accuracy: Overall proportion of correct predictions.
Precision: Proportion of positive identifications that were correct.
Recall: Proportion of actual positives that were identified correctly.
F1 Score: Harmonic mean of precision and recall.
Macro Average: Average of metrics calculated for each class.
Micro Average: Global average counting total true positives, false negatives, etc.

4. Interpretation of Results

High values (close to 1) indicate better performance. Compare metrics across classes to identify where the model performs well or struggles. Macro averages treat all classes equally, while micro averages are influenced by class sizes.

5. Frequently Asked Questions

Q1: When should I use a 3x3 confusion matrix?
A: When evaluating multi-class classification problems with exactly three classes.

Q2: What's the difference between macro and micro averages?
A: Macro averages treat all classes equally, while micro averages are influenced by class imbalance.

Q3: How do I improve my model based on these results?
A: Look for classes with low precision (many false positives) or low recall (many false negatives) to focus improvement efforts.

Q4: What does an F1 score of 0.5 mean?
A: This indicates moderate performance - the harmonic mean of precision and recall is 0.5.

Q5: Can I use this for binary classification?
A: While possible, it's better to use a 2x2 confusion matrix calculator for binary problems.

Confusion Matrix Calculator 3x3© - All Rights Reserved 2025