MLS-C01 Exploratory Data Analysis Practice Question
A data scientist wants to visualize the correlation between a continuous feature and a binary target variable. Which plot is most appropriate?
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
✓
Box plot of the feature grouped by target class
A box plot displays the distribution of the continuous feature for each category of the binary target, allowing easy comparison of medians, spreads, and outliers. This reveals correlation: if the distributions differ notably between classes, the feature is likely correlated with the target. Option A is wrong because a scatter plot is typically used for two continuous variables, not a binary target. Option B is wrong because a histogram shows the distribution of a single continuous variable, ignoring the target. Option D is wrong because a bar chart of target class counts only shows class frequency, not the relationship with the feature.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Scatter plot with feature on x-axis and target on y-axis
Why it's wrong here
Target is binary, scatter plot would show points at 0 and 1, not informative.
- ✗
Histogram of the feature
Why it's wrong here
Histogram shows distribution of feature alone, not relationship with target.
- ✓
Box plot of the feature grouped by target class
Why this is correct
Box plot compares distributions across two groups.
- ✗
Bar chart of target class counts
Why it's wrong here
Bar chart shows class imbalance, not correlation with feature.
Go deeper
Related to this question
About these practice questions
This MLS-C01 question is part of Courseiva's 1,672-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MLS-C01 practice question is part of Courseiva's free Amazon Web Services 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 MLS-C01 exam.