Quiz: Input data testing
How to use this quiz
Ten exam-style questions on chapter 5 of the syllabus. Questions 5 and 6 are K3 dataset constraint scenarios, worth 2 points each in the exam. Answer each question before you open the explanation.
1. A risk analysis finds that training labels were created inconsistently by different annotators. Which test approach mitigates this?
- A. Data pipeline testing
- B. Label correctness testing
- C. Data representativeness testing
- D. Performance testing
Show answer
2. A tester takes 200 loan applications, creates a copy of each with only the applicant’s gender changed, runs the model on both and compares the results statistically. What is this?
- A. Back-to-back testing
- B. Disparate impact analysis with counterfactuals
- C. Label correctness testing
- D. Data pipeline testing
Show answer
3. A model was trained on data from customers aged 20 to 69. In production, 18% of the applicants are older than 69. What does this indicate?
- A. A label error
- B. The training data is not representative of the operational data
- C. A data pipeline performance problem
- D. Overfitting
Show answer
4. In data pipeline testing, which activity feeds deliberately corrupted inputs into the pipeline to check how it reacts?
- A. Smoke testing
- B. Fault injection
- C. Configuration management review
- D. Design review
Show answer
5. (K3) A dataset of exam results has the attributes student_id, marks (0 to 100) and grade (A to F). The constraints are: marks is not missing; marks is between 0 and 100; there are no duplicate records; a mark more than 1.33 standard deviations above the mean always has grade A. Which record set violates exactly two constraints?
- A. {id 17, marks 105, grade A}
- B. {id 21, marks missing, grade C} and a second, identical record {id 21, marks missing, grade C}
- C. {id 30, marks 98 (2 SD above the mean), grade B}
- D. {id 44, marks 72, grade C}
Show answer
6. (K3) In a training dataset, every record has a different value for the attribute “transaction_reference”. Which constraint flags this attribute, and why?
- A. The range constraint, because the values are too large
- B. The useful constraint, because an attribute with a unique value per record offers no pattern for the model to learn
- C. The duplicate constraint, because the values repeat
- D. The greater-than constraint, because it should be larger than the amount
Show answer
7. Two annotators agree on 90% of the labels, but Cohen’s kappa is 0.45. What is the best interpretation?
- A. Agreement is excellent
- B. Much of the agreement could be due to chance, for example because one class is very common; the real agreement is moderate
- C. The kappa calculation is wrong
- D. Cohen’s kappa is not suitable for two annotators
Show answer
8. Which approach uses data points that a model classifies with low confidence as candidates for mislabelling?
- A. Model confidence analysis
- B. Data distribution analysis
- C. Automated rule-based testing
- D. Disparate impact analysis
Show answer
9. A statistical outlier check on income does not flag a value of −5,000, because incomes vary a lot. What does this show?
- A. The outlier check is broken
- B. Statistical checks find unusual values, not impossible ones; domain rules (constraints) are needed as well
- C. −5,000 is a valid income
- D. Outliers should never be removed
Show answer
10. Which statistical test is suitable for comparing the proportions of categories (such as cities) in training and production data?
- A. Kolmogorov-Smirnov
- B. Chi-squared
- C. F1-score
- D. Cohen’s kappa
Show answer
Your score
- 9-10: ready for chapter 5. The K3 constraint questions count double.
- 7-8: read the explanations of the ones you missed.
- 6 or fewer: go through lessons 35 to 39 again.