MS-DS Master of Data science Exploratory Data Analysis 5 — Questions and Answers
Question 1: Which EDA plot is MOST effective for visualizing the joint distribution of two continuous variables, including the density in dense regions?
- Bar chart
- Hex bin plot (Correct answer)
- Line chart
- Pie chart
Correct answer: Hex bin plot
Hex bin plots aggregate points into hexagonal bins colored by count, avoiding overplotting in dense regions where scatter plots become unreadable.
Question 2: What does it mean when the mean absolute deviation (MAD) of a feature is very close to zero?
- The feature has high variance
- Almost all values are clustered near the mean with little spread (Correct answer)
- The feature contains many outliers
- The feature is normally distributed
Correct answer: Almost all values are clustered near the mean with little spread
A near-zero MAD indicates that observations deviate very little from the mean on average, implying the feature has very low variability.
Question 3: During EDA, you find that a timestamp column contains dates ranging from 1900 to 2025, but the data should only span 2010–2025. What EDA action should you take first?
- Delete all records before 2010 immediately
- Visualize the temporal distribution and investigate the anomalous early dates before deciding on treatment (Correct answer)
- Replace all pre-2010 dates with the median date
- Ignore the issue since it affects few records
Correct answer: Visualize the temporal distribution and investigate the anomalous early dates before deciding on treatment
Investigating the anomalous values first reveals whether they are data entry errors, system defaults, or legitimate historical records before any transformation.
Question 4: Which measure is used to quantify the 'peakedness' or tail weight of a distribution relative to a normal distribution?
- Skewness
- Kurtosis (Correct answer)
- Variance
- Coefficient of variation
Correct answer: Kurtosis
Kurtosis measures the weight of a distribution's tails; excess kurtosis > 0 (leptokurtic) indicates heavier tails than normal, while < 0 (platykurtic) indicates lighter tails.
Question 5: A parallel coordinates plot is used in EDA primarily to:
- Display the temporal trend of a single variable
- Visualize multivariate data and identify patterns or clusters across many dimensions simultaneously (Correct answer)
- Compare two categorical variables
- Show the cumulative distribution of a feature
Correct answer: Visualize multivariate data and identify patterns or clusters across many dimensions simultaneously
Parallel coordinates draw each observation as a polyline across multiple parallel axes, making it possible to spot clusters, outliers, and correlations in high-dimensional data.
Question 6: When should you prefer a log scale on a plot axis during EDA?
- When the variable is normally distributed
- When the data spans several orders of magnitude (Correct answer)
- When all values are negative
- When the variable is categorical
Correct answer: When the data spans several orders of magnitude
Log scales compress large ranges so that patterns across orders of magnitude (e.g., 1 to 1,000,000) become visible without small values being crushed near zero.
Question 7: What is the purpose of computing a 'data profile' (e.g., using pandas-profiling or ydata-profiling) as part of EDA?
- To train a predictive model automatically
- To generate a comprehensive automated summary of each feature's type, missing values, distributions, and correlations (Correct answer)
- To deploy the dataset to a production database
- To encode categorical variables for modeling
Correct answer: To generate a comprehensive automated summary of each feature's type, missing values, distributions, and correlations
Profiling tools auto-generate feature-level statistics, histograms, missing value counts, and correlation matrices, giving analysts a fast holistic overview before deep-dive EDA.
Which EDA plot is MOST effective for visualizing the joint distribution of two continuous variables, including the density in dense regions?