Posts

Showing posts from April, 2026
Understanding True Positives and Model Accuracy with Excel When working with machine learning models, especially classification tasks, it's important to evaluate how well your model performs . One simple way to do this is using Excel —no programming needed! In this post, we’ll walk through True Positives (TP) , other related metrics, and how to visualize results. What is a True Positive (TP)? A True Positive occurs when: Your model predicts a positive outcome, and the actual outcome is also positive. Example: a COVID-19 detection model Patient Actual (Has Disease?) Predicted (Model Says?) 1 1 1 2 1 0 3 0 1 4 1 1 5 0 0 6 0 0 From this table: TP = 2 (Patients 1 and 4) TN = 2 (Patients 5 and 6) FP = 1 (Patient 3) FN = 1 (Patient 2) Step 1: Enter Data in Excel Create a table in Excel: A (Actual) B (Predicted Class) 1 1 1 0 0 1 1 1 0 0 0 0 Step 2: Compute TP, TN, FP, FN Use COUNTIFS formulas: True Positive (TP) : =C...