Worked Example: Architecture Sizing Example: Confusion Matrix & MCC
Evaluate binary classifiers using F1-Score and Matthews Correlation Coefficient (MCC).
- Enter the workload parameters, model dimensions, or network link specifications.
- Compute the sizing equation: Precision = TP/(TP+FP); Recall = TP/(TP+FN); F1 = 2·P·R/(P+R); MCC = (TP·TN − FP·FN) / √((TP+FP)(TP+FN)(TN+FP)(TN+FN)).
- Inspect the primary capacity metric, headroom buffers, and 3 SVG visualizations.
Result: Calculates Confusion Matrix & MCC via Precision = TP/(TP+FP); Recall = TP/(TP+FN); F1 = 2·P·R/(P+R); MCC = (TP·TN − FP·FN) / √((TP+FP)(TP+FN)(TN+FP)(TN+FN)).
Mathematics & Statistics · Machine Learning & Evaluation
Confusion Matrix Precision, Recall, F1-Score, Specificity & MCC Calculator: inputs, method, and how to read the result
Evaluate binary classifiers using F1-Score and Matthews Correlation Coefficient (MCC).
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- True Positives Tp: True Positives (TP) count.
- False Positives Fp: False Positives (FP / Type I Error) count.
- False Negatives Fn: False Negatives (FN / Type II Error) count.
- True Negatives Tn: True Negatives (TN) count.
What the calculation includes
With the default values shown, F1-Score (Harmonic Mean) is 91.3 %. The calculation follows Confusion Matrix & MCC Systems Engineering Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing True Positives Tp from 420 TP to 462 TP changes F1-Score (Harmonic Mean) from 91.3 % to 92.03 %. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses industry-standard IEEE, IETF RFC, and GPU/cloud hardware sizing conventions.
- Capacity planning estimate; benchmark under production traffic patterns before finalizing cluster or hardware procurement.
Scope: IEEE / IETF / Cloud Systems Engineering Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: API Token Cost Calculator, IPv4 CIDR Subnet, Password Entropy & URL/Base64 Encoding Calculator, Aspect Ratio, Image Dimensions & Storage Converter.