MLS-C01 Question 109
Single answerYou are a data scientist working on a machine learning project to predict customer churn. You have stored your dataset in an Amazon S3 bucket and are using Amazon SageMaker for preprocessing and visualization. You want to understand the distribution of the 'customer_age' feature and identify any outliers in the data. Which visualization technique should you use?
- A
Scatter plot
- B
Box plot
- C
Time series plot
- D
Histogram
Show answer and explanation
Correct answer: B
Explanation
The box plot is the most suitable visualization technique for this scenario because it provides a clear representation of the data distribution as well as outlier detection. While a histogram can show the frequency distribution, it does not explicitly highlight outliers. Scatter plots and time series plots are not relevant for analyzing the distribution of a single feature like 'customer_age'.
- A. Incorrect.
A scatter plot is used to show the relationship between two continuous variables. It is not ideal for understanding the distribution of a single feature or detecting outliers.
- B. Correct.
A box plot is specifically designed to show the distribution of data, including the median, quartiles, and outliers, making it the best choice for analyzing the 'customer_age' feature.
- C. Incorrect.
A time series plot is used to visualize data points over time. Since 'customer_age' is not a time-based feature, this visualization is not suitable.
- D. Incorrect.
A histogram shows the frequency distribution of a feature, but it does not explicitly identify outliers, which is one of the goals in the scenario.