MLS-C01 Exploratory Data Analysis Practice Question
A data scientist is analyzing a dataset with a target variable that is binary (0/1). Which visualization is most appropriate to explore the relationship between a continuous feature and the target?
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.
The most appropriate visualization to explore the relationship between a continuous feature and a binary target is a box plot of the feature grouped by the target. This allows comparing the distribution of the continuous feature across the two target classes (0 and 1), revealing differences in central tendency, spread, and outliers. Option A (scatter plot) is unsuitable because scatter plots are for two continuous variables, not a binary target. Option B (bar chart) is typically used for categorical features, not continuous ones. Option D (histogram) shows the distribution of a single continuous variable but does not separate by target class, so it cannot reveal the relationship with the binary target. Therefore, option C 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.
- ✗
Scatter plot of the feature vs. the target.
Why it's wrong here
Scatter plots are for two continuous variables.
- ✗
Bar chart of the feature.
Why it's wrong here
Bar charts are for categorical data.
- ✓
Box plot of the feature grouped by target.
Why this is correct
Box plots compare distributions across categories.
- ✗
Histogram of the feature.
Why it's wrong here
Histogram shows univariate distribution.
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.