Accuracy is the ratio of correct predictions to the total number of predictions made. It tells us how often the model is right overall.
Click to reveal answer
beginner
Define precision in classification tasks.
Precision measures how many of the items predicted as positive are actually positive. It shows the model's exactness or quality of positive predictions.
Click to reveal answer
beginner
What does recall tell us in classification?
Recall tells us how many of the actual positive cases the model correctly found. It measures the model's ability to find all positive examples.
Click to reveal answer
intermediate
Explain the F1 score and why it is useful.
The F1 score is the harmonic mean of precision and recall. It balances both, giving a single score that considers both false positives and false negatives.
Click to reveal answer
intermediate
Why might accuracy be misleading in some classification problems?
Accuracy can be misleading when classes are imbalanced. For example, if 95% of data is one class, a model predicting only that class gets 95% accuracy but fails to detect the other class.
Click to reveal answer
Which metric tells you the proportion of true positives out of all predicted positives?
APrecision
BRecall
CAccuracy
DF1 score
✗ Incorrect
Precision measures how many predicted positives are actually correct.
If a model has high recall but low precision, what does it mean?
AIt balances false positives and false negatives well
BIt misses many positives but has few false positives
CIt finds most positives but also has many false positives
DIt is very accurate overall
✗ Incorrect
High recall means most positives are found, low precision means many false positives.
What is the F1 score a balance of?
APrecision and recall
BAccuracy and recall
CAccuracy and precision
DTrue positives and true negatives
✗ Incorrect
F1 score balances precision and recall into one metric.
Why is accuracy not always the best metric for classification?
ABecause it ignores false negatives
BBecause it ignores false positives
CBecause it only works for binary classification
DBecause it can be high even if the model misses rare classes
✗ Incorrect
Accuracy can be misleading when classes are imbalanced.
Recall is also known as:
AFalse positive rate
BTrue positive rate
CPrecision
DAccuracy
✗ Incorrect
Recall measures the true positive rate.
Describe in your own words what precision and recall measure in classification.
Think about how many predicted positives are right vs. how many actual positives are found.
You got /2 concepts.
Explain why the F1 score is useful when evaluating a classification model.
Consider situations where precision and recall differ a lot.
You got /3 concepts.
Practice
(1/5)
1. Which metric tells you the overall percentage of correct predictions in a classification model?
easy
A. Recall
B. Precision
C. F1 Score
D. Accuracy
Solution
Step 1: Understand what accuracy measures
Accuracy is the ratio of correct predictions (both true positives and true negatives) to total predictions.
Step 2: Compare with other metrics
Precision and recall focus only on positive class predictions, while F1 score balances precision and recall. Only accuracy measures overall correctness.
Final Answer:
Accuracy -> Option D
Quick Check:
Overall correct predictions = Accuracy [OK]
Hint: Accuracy = correct predictions / total predictions [OK]
Common Mistakes:
Confusing precision with accuracy
Thinking recall measures overall correctness
Mixing F1 score with accuracy
2. Which of the following formulas correctly calculates precision?
easy
A. True Positives / (True Positives + False Positives)
B. 2 * (Precision * Recall) / (Precision + Recall)
C. (True Positives + True Negatives) / Total Predictions
D. True Positives / (True Positives + False Negatives)
Solution
Step 1: Recall the definition of precision
Precision measures how many predicted positives are actually correct, so it is True Positives divided by all predicted positives.
Step 2: Match formula to definition
True Positives + False Positives equals all predicted positives, so precision = TP / (TP + FP).