Which visualization suits the distribution of one continuous feature, and which suits one categorical feature?
- Exam domain
- Data Processing20% of the exam
- Difficulty
- Easy
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Data Processing (20% of the exam)
Objective in the exam guide: Create visualizations for categorical or continuous features
Visualizing features is named.
Why D is the answer
A histogram for continuous, a bar chart for categorical
Histograms show the shape of continuous data. Bar charts show counts per category.
Remember: Histogram for continuous, bars for categories.
How it works
Chart type follows the feature type.
In detail
- Continuous: histogram or box plot.
- Categorical: bar chart.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A pie chart for both, since pie charts work for any data typeWrongMost tempting
Pie charts hide shape and suit few categories at best.
Why it tempts: Pie charts are familiar.
B. A line chart for the categorical featureWrong
Line charts imply order over time.
C. A scatter plot of the categorical feature against itselfWrong
Self-scatter shows nothing.
D. A histogram for continuous, a bar chart for categoricalRight
Histogram for continuous, bars for categories.
Use case
An illustrative scenario, not a real incident.
Illustrative: a histogram shows income is right-skewed; a bar chart shows plan counts.
See it in different ways
flowchart TD
Q{"Feature type?"}
Q -->|"Continuous"| A0["Histogram or box plot"]
Q -->|"Categorical"| A1["Bar chart"]How to read this chart
- At "Feature type?": if "Continuous", go to "Histogram or box plot"; if "Categorical", go to "Bar chart".
mindmap
root(("Feature charts"))
n1["Continuous"]
n2["Histogram"]
n3["Box plot"]
n4["Categorical"]
n5["Bar chart"]How to read this chart
- The centre is "Feature charts".
- "Continuous" covers "Histogram", "Box plot".
- "Categorical" covers "Bar chart".