6.5
Confusion matrix and accuracy (6.5) is a Class 10 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
A confusion matrix is a table counting correct and wrong predictions. For pass/fail: TP = predicted pass, really passed; TN = predicted fail, really failed; FP = predicted pass but failed; FN = predicted fail but passed.
Accuracy = (TP + TN) ÷ (TP + TN + FP + FN): correct predictions out of all. Book example, 15 students: (7 + 5) ÷ 15 = 12 ÷ 15 = 0.80, i.e. 80%.
Precision (asked in Long 2 but not taught in the book) = TP ÷ (TP + FP): of all predicted passes, how many really passed. Example: 7 ÷ (7 + 2) ≈ 0.78.
Step 1 / 1
A confusion matrix is a table counting correct and wrong predictions. For pass/fail: TP = predicted pass, really passed; TN = predicted fail, really failed; FP = predicted pass but failed; FN = predicted fail but passed.
Accuracy = (TP + TN) ÷ (TP + TN + FP + FN): correct predictions out of all. Book example, 15 students: (7 + 5) ÷ 15 = 12 ÷ 15 = 0.80, i.e. 80%.
Precision (asked in Long 2 but not taught in the book) = TP ÷ (TP + FP): of all predicted passes, how many really passed. Example: 7 ÷ (7 + 2) ≈ 0.78.
Correct = diagonal (TP, TN); mistakes = off-diagonal (FP, FN).
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.