Only 2% of transactions are fraud. Which steps help with the imbalance?
- Exam domain
- Model Development31% of the exam
- Difficulty
- Medium
- In this mock
- 16 questions on this domainPractise this domain
Why the exam asks this
Model Development (31% of the exam)
Objective in the exam guide: Identify methods to mitigate data imbalance in training data
Mitigating data imbalance is named.
Why A is the answer
Class weights or resampling, stratified splits, and F1
Weighting or resampling gives the minority class influence, stratification keeps proportions, and F1 or PR metrics reflect minority performance.
Remember: Rebalance and measure the minority.
How it works
Imbalance needs data, model and metric changes.
In detail
- Weights or resampling.
- Metrics that see the minority.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Class weights or resampling, stratified splits, and F1Right
Rebalance and measure the minority.
B. Use accuracy as the only metricWrongMost tempting
Accuracy of 98% is reached by predicting no fraud.
Why it tempts: Accuracy looks high and is misleading.
C. Drop all fraud rowsWrong
Dropping fraud removes the signal.
D. Shuffle the labelsWrong
Shuffling labels destroys the data.
Use case
An illustrative scenario, not a real incident.
Illustrative: class weights raise fraud recall from 40% to 75%.
See it in different ways
mindmap
root(("Imbalance"))
n1["Data"]
n2["Oversample"]
n3["Undersample"]
n4["Model"]
n5["Class weights"]
n6["Split"]
n7["Stratified"]
n8["Metrics"]
n9["F1"]
n10["PR AUC"]How to read this chart
- The centre is "Imbalance".
- "Data" covers "Oversample", "Undersample".
- "Model" covers "Class weights".
- "Split" covers "Stratified".
- "Metrics" covers "F1", "PR AUC".
flowchart LR S0["Stratified split"] --> S1["Class weights"] --> S2["Evaluate F1"] --> S3["Tune threshold"]
How to read this chart
- Read it in order: Stratified split, then Class weights, then Evaluate F1, then Tune threshold.