DA0-002 Data Analysis Practice Question
After building a binary classification model, the data analyst obtains the following confusion matrix: True Positives=80, True Negatives=100, False Positives=20, False Negatives=30. What is the F1 score?
⚠ Common exam trap
CompTIA often tests the distinction between precision, recall, and F1, and the trap here is that candidates mistakenly use accuracy or a simple average instead of the harmonic mean, or they confuse recall with F1.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
0.76
The F1 score is the harmonic mean of precision and recall. Precision = TP/(TP+FP) = 80/(80+20) = 0.80. Recall = TP/(TP+FN) = 80/(80+30) ≈ 0.7273. F1 = 2 * (0.80 * 0.7273) / (0.80 + 0.7273) ≈ 0.7619, which rounds to 0.76. Option A is correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
0.76
Why this is correct
F1 balances precision and recall via their harmonic mean. Precision is 80/100 = 0.80; recall is 80/110 ≈ 0.727. F1 = 2 × (0.80 × 0.727) / (0.80 + 0.727) ≈ 0.762, which rounds to 0.76.
- ✗
0.73
Why it's wrong here
0.73 misstates the F1 score, which is the harmonic mean of precision (80/100 = 0.80) and recall (80/110 ≈ 0.727), giving 0.762. The value 0.73 is tempting because it approximates recall alone, the metric you would report when missing positive cases matters more than false alarms.
- ✗
0.80
Why it's wrong here
F1 is 2TP/(2TP+FP+FN) = 160/(160+20+30) = 160/210 ≈ 0.76, not 0.80. The value 0.80 is tempting because it resembles precision (80/100) or recall (80/110), but F1 requires the harmonic mean combining both precision and recall.
- ✗
0.69
Why it's wrong here
The F1 score is the harmonic mean of precision (80/100=0.80) and recall (80/110≈0.727), giving approximately 0.76, not 0.69. That value would arise from different counts, so it is tempting when precision and recall are misread or the arithmetic is rushed.
About these practice questions
One of 1,004 original DA0-002 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DA0-002 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DA0-002 exam.