Data Visualization and Exploratory Data Analysis (EDA): Practice Questions and Answers [Free PDF]
Develop practical fluency in data visualization and exploratory data analysis with 25 structured Q&As, worked numeric examples, 4 reference tables, and 10 multiple-choice quizzes. Built for university courses, exams, and data analyst interviews, this chapter covers frequency distributions, histograms, bar charts, scatter plots, box plots, heatmaps, Tufte’s lie factor, and end-to-end data cleaning workflows.
This is Chapter 3 of 18 (Module 1: Descriptive Statistics & Data Foundations · Beginner) in our Business Statistics & Data Analytics course. Review Descriptive Statistics: Mean, Median, Mode and Dispersion first, or continue with Probability Concepts, Conditional Probability and Bayes’ Theorem afterwards.
Frequency Distributions and Distribution Charts
Q1. What is a frequency distribution, and why is it the first step in summarizing raw data?
A frequency distribution organizes raw observations into mutually exclusive categories or numeric class intervals (bins) and counts how many observations fall into each bin. It transforms thousands of individual records into a compact view of center, spread, and skewness.
- Absolute frequency (f): Raw count of observations in each bin.
- Relative frequency (f / n): Proportion or percentage of total observations in each bin (sums to 1.0 or 100%).
- Cumulative frequency: Running total of frequencies up to and including a given bin, useful for answering “at or below” questions (for example, percentage of orders delivered within 3 days).
Q2. How do you construct a grouped frequency table and choose the number of bins?
For continuous numeric data, analysts choose the number of bins k using Sturges’ rule (k = 1 + 3.322 * log10(n)) or the square-root rule (k = sqrt(n)), typically targeting 5 to 15 bins. Bin width is then calculated as: Bin Width = (Max – Min) / k, rounded up to a clean business number.
Worked example: A SaaS analytics team summarizes 100 customer onboarding times ranging from 1 to 20 days into 4 clean bins of width 5 days:
| Onboarding Time (Days) | Frequency (f) | Relative Frequency (%) | Cumulative Frequency (%) |
|---|---|---|---|
| 1 to 5 | 42 | 42% | 42% |
| 6 to 10 | 33 | 33% | 75% |
| 11 to 15 | 17 | 17% | 92% |
| 16 to 20 | 8 | 8% | 100% |
From the cumulative column, executives immediately see that 75% of new accounts finish onboarding within 10 days.
Q3. What is a histogram, and how does bin width affect its interpretation?
A histogram displays the frequency distribution of a single continuous quantitative variable using adjacent vertical bars whose heights represent counts or densities and whose touching edges represent continuous class intervals.
- Too few bins (wide bins): Oversmooths the data and hides important features such as bimodality (for example, merging consumer and enterprise order clusters into one lump).
- Too many bins (narrow bins): Creates jagged random spikes that obscure the underlying distribution shape.
Best practice in Python, R, or Tableau is to inspect 2 or 3 bin widths alongside a kernel density curve (KDE) before drawing conclusions.
Q4. What is the difference between a bar chart and a column chart, and when should you use each?
Both bar charts and column charts compare discrete categorical values using rectangular lengths proportional to the metric, with visible gaps between categories.
- Column chart (vertical bars): Best when comparing a small number of categories (typically 3 to 7) or ordered periods such as Q1, Q2, Q3, and Q4 revenue.
- Bar chart (horizontal bars): Strongly preferred when category labels are long (such as product names or marketing campaign titles) or when ranking more than 7 categories from highest to lowest, because horizontal text is easy to read without tilting labels.
Q5. How do histograms, bar charts, and column charts differ?
Confusing histograms with bar charts is a classic exam and interview mistake. Their structural differences reflect the underlying data types:
| Feature | Histogram | Column Chart | Bar Chart |
|---|---|---|---|
| Data type | Continuous quantitative | Categorical (or discrete periods) | Categorical (especially ranked) |
| Bar spacing | No gaps (bars touch) | Gaps between bars | Gaps between bars |
| Bar order | Fixed numerical sequence | Flexible (or chronological) | Usually sorted descending by value |
| Business example | Distribution of customer order values ($) | Quarterly revenue for Q1 to Q4 | Top 12 Amazon product categories by sales |
Q6. When are side-by-side box-and-whisker plots better than histograms?
A side-by-side box-and-whisker plot compares the distribution of a numeric variable across multiple groups simultaneously by displaying each group’s median, IQR box, whiskers, and individual outliers.
While overlapping 5 or 6 histograms on one chart creates visual clutter, placing 5 box plots side by side (for example, comparing delivery times across five regional fulfillment centers) immediately reveals which region has the lowest median, tightest consistency (smallest IQR), and most extreme late-delivery outliers.
Relationship, Time-Series, and Matrix Visualizations
Q7. What is a scatter plot, and what four features should analysts evaluate when reading one?
A scatter plot graphs paired observations of two quantitative variables on the horizontal (x) and vertical (y) axes to inspect bivariate relationships. Analysts evaluate four features (often remembered as DOFS):
- Direction: Positive (as ad spend rises, revenue rises), negative (as price rises, units sold fall), or none.
- Outliers: Isolated points far from the main cloud (such as a single viral holiday day).
- Form: Linear (straight line), nonlinear/curved (diminishing marketing returns), or clustered subgroups.
- Strength: Tightness of points around the trend pattern (strong vs. weak correlation).
Q8. How does a bubble chart extend a scatter plot, and what perceptual caveat applies?
A bubble chart adds a third quantitative variable to a scatter plot by scaling the area of each circular marker (and optionally a fourth categorical variable using color). For example, plotting marketing channels with Customer Acquisition Cost on the x-axis, Lifetime Value on the y-axis, and total ad spend as bubble size.
Perceptual caveat: Always scale bubbles by area, never by radius or diameter. Doubling the radius quadruples the visual area (pi * r^2), which visually exaggerates a 2x metric difference into a 4x perceived difference.
Q9. Why are line charts the standard choice for time-series data, and what is the risk of dual-axis line charts?
A line chart connects sequential observations over time, emphasizing slope, growth rates, seasonal peaks, and sudden structural breaks (such as daily active users before and after a Netflix pricing update).
Dual-axis caveat: Plotting two metrics with different y-axis scales on the same chart (for example, monthly revenue on the left axis and churn rate on the right axis) can create false visual crossovers or fake correlations simply by stretching one axis. Whenever possible, use two aligned small-multiple panels instead of a dual y-axis.
Q10. What is a heatmap, and what are its two most common business analytics applications?
A heatmap represents numerical values in a two-dimensional matrix using color intensity gradients, enabling rapid pattern recognition across dozens of cells.
- Correlation matrix heatmap: Displays pairwise Pearson correlation coefficients (from -1 to +1) across numeric features during EDA to spot strong predictors and multicollinearity before regression modeling.
- Cohort retention heatmap: Tracks the percentage of monthly signup cohorts still active in Month 1, Month 2, …, Month 12, making product retention improvements immediately visible across rows and columns.
Q11. How do you choose the right chart type for a specific business analytics question?
Matching the visual encoding to the analytical goal prevents cluttered dashboards and speeds up executive decisions:
| Analytical Goal | Best Chart Type | Business Example |
|---|---|---|
| Compare categories or rankings | Horizontal bar or column chart | Monthly revenue by sales region |
| Inspect a single distribution | Histogram or density plot | Distribution of e-commerce order values |
| Compare distributions across groups | Side-by-side box plot | Support ticket resolution time by team |
| Show trend over time | Line chart | Weekly Spotify streaming hours over 24 months |
| Examine relationship between two numbers | Scatter plot | Paid search spend vs. weekly conversions |
| Visualize a 2D matrix or cohort table | Heatmap | 12-month SaaS customer retention by signup cohort |
Q12. Why do data visualization experts discourage pie charts and 3D charts in executive dashboards?
Human visual perception compares lengths along a common baseline (as in bar charts) far more accurately than angles and slice areas (as in pie charts). Pie charts become unreadable with more than 3 to 4 slices or when slices have similar values (such as 24% vs. 27%).
3D charts add perspective distortion: foreground slices or bars appear larger than identical background slices, violating graphical integrity without adding any information. A sorted horizontal bar chart with direct data labels almost always communicates part-to-whole shares more clearly.
Chart Integrity, Lie Factor, and Misleading Visuals
Q13. What is Edward Tufte’s Lie Factor, and how do you calculate it?
Statistician Edward Tufte defined the Lie Factor to quantify how severely a graphic distorts underlying data:
Formula: Lie Factor = (Size of Effect Shown in Graphic) / (Size of Effect in Data)
A truthful graphic has a Lie Factor between 0.95 and 1.05. Values above 1.05 indicate exaggeration, while values below 0.95 indicate understatement.
Worked example: Annual revenue rises from $100M to $110M, a true data increase of (110 – 100) / 100 = 10%. A truncated column chart starting at $95M makes the bar jump from 5 units tall to 15 units tall, a visual increase of (15 – 5) / 5 = 200%. Lie Factor = 200% / 10% = 20.0, exaggerating the growth twentyfold.
Q14. When is truncating the y-axis misleading, and when is a non-zero baseline acceptable?
Never truncate the y-axis on bar or column charts. Because viewers judge values by total bar length from the baseline, starting a bar chart at 90% instead of 0% dramatically exaggerates small differences.
When non-zero baselines are acceptable: On line charts tracking metrics that move within a narrow band far from zero (such as stock prices between $182 and $196, or customer uptime between 99.1% and 99.9%), zooming the y-axis reveals meaningful day-to-day variation, provided the analyst labels the axis range clearly so viewers see the scale immediately.
Q15. What are the most common misleading chart techniques to watch out for in business reports?
Analysts and executives should audit external decks and dashboards for five recurring distortions:
- Truncated baselines on bar charts: Inflates minor KPI gains into dramatic visual jumps.
- Cherry-picked time windows: Showing only a 3-week promotional spike while hiding a 12-month downward trend.
- Cumulative charts masking slowing growth: Plotting cumulative users (which can never go down) instead of monthly active users or net new signups.
- Area/pictogram distortion: Scaling both width and height of an icon proportionally to value, squaring the visual area.
- Unequal bin widths or inconsistent intervals: Compressing or stretching time gaps on the x-axis.
Q16. What is the data-ink ratio, and how does it improve dashboard design?
Also introduced by Edward Tufte, the data-ink ratio is the proportion of a graphic’s ink devoted strictly to displaying non-redundant data information: Data-Ink Ratio = (Data-Ink) / (Total Ink Used in Graphic).
To maximize clarity in Tableau, Power BI, or slide decks, analysts remove “chartjunk” such as heavy dark gridlines, redundant legends when direct labels fit, decorative background gradients, and 3D shadows, allowing the audience to spot business signals in seconds.
Q17. What is Simpson’s Paradox, and how can an aggregated chart mislead decision-makers?
Simpson’s Paradox occurs when a trend or comparison appears in multiple individual subgroups but reverses direction when the subgroups are combined into a single aggregate chart.
Worked example: Version B of a checkout page has a higher conversion rate than Version A on Desktop (12% vs. 10%) and on Mobile (4% vs. 3%). Yet if 80% of Version B’s traffic came from low-converting Mobile users while 80% of Version A’s traffic came from high-converting Desktop users, the combined chart shows Version A winning overall (8.6% vs. 5.6%). Always segment charts by key confounding variables during EDA.
Exploratory Data Analysis (EDA) and Data Cleaning
Q18. What is Exploratory Data Analysis (EDA), and why must it precede statistical modeling?
Exploratory Data Analysis (EDA), popularized by John Tukey, is the systematic process of inspecting, summarizing, and visualizing a dataset before building formal hypothesis tests or machine learning models.
EDA uncovers data quality bugs, skewed distributions, nonlinear relationships, and unexpected business segments. Skipping EDA risks feeding corrupted columns, duplicate rows, or violated assumptions into regression models, producing confident but wrong forecasts.
Q19. What does Anscombe’s Quartet teach business analysts about relying only on summary statistics?
Anscombe’s Quartet consists of four famously different 11-point datasets that share virtually identical summary statistics: same mean of x (9.0), same mean of y (7.5), same variance, same correlation (r = 0.816), and the exact same linear regression line (y = 3.0 + 0.5x).
When plotted as scatter plots, however, Dataset 1 is a clean linear trend, Dataset 2 is a smooth curve, Dataset 3 is a straight line with one extreme outlier, and Dataset 4 is a vertical line plus one leverage point. The lesson is foundational: always visualize your data alongside numerical summaries.
Q20. What are the core stages of a structured EDA workflow?
A repeatable EDA checklist used by senior data analysts follows five stages:
- Data profiling and schema check: Inspect row counts, column data types, primary keys, date ranges, and memory footprint.
- Data quality audit: Quantify missing percentages, duplicate IDs, impossible values (negative ages or future dates), and inconsistent text labels.
- Univariate analysis: Examine each column individually using histograms, box plots, frequency tables, mean/median, and IQR.
- Bivariate and multivariate analysis: Explore relationships using scatter plots, correlation heatmaps, cross-tabulations, and segmented box plots.
- Hypothesis generation and feature notes: Document anomalies, business hypotheses, and required transformations (such as log-scaling revenue).
Q21. What are the three mechanisms of missing data (MCAR, MAR, and MNAR)?
Choosing the right remedy for missing values depends on why the data are missing:
- MCAR (Missing Completely at Random): Missingness has no relationship to any observed or unobserved variable (for example, a random 1% server timeout dropping click logs). Dropping rows does not introduce bias.
- MAR (Missing at Random): Missingness depends on other observed variables (for example, older app versions failing to log device screen size). Conditional imputation using observed columns works well.
- MNAR (Missing Not at Random): Missingness depends on the unobserved value itself (for example, high-income respondents refusing to report salary). Simple deletion or mean imputation biases estimates severely; analysts often add a missingness indicator flag.
Q22. How should analysts handle missing values during data cleaning?
Different missing-value strategies trade off sample size preservation against bias risk:
| Strategy | How It Works | Best Use Case | Main Risk |
|---|---|---|---|
| Listwise deletion | Drop rows with any missing value | Tiny missing share (< 2%) and MCAR | Reduces sample size; biases results if MAR/MNAR |
| Mean / Median imputation | Fill numeric gaps with column mean or median | Quick baseline; use median for skewed data | Artificially shrinks variance and correlations |
| Group or Model imputation | Predict missing value using segment median or KNN/regression | MAR data with strong related features | More complex; risk of data leakage if fit on test set |
| Missing indicator flag | Impute value plus add a 0/1 “is_missing” column | MNAR business data (e.g., blank income field) | Adds extra feature columns |
Q23. How do duplicate records occur in business databases, and how do analysts detect and resolve them?
Duplicate records occur when payment gateways retry timed-out requests, users create multiple accounts with slightly different emails, or SQL joins accidentally multiply rows (a many-to-many join fan-out).
Detection and resolution: Check uniqueness on primary keys (such as order_id or transaction_id) and composite keys (customer_id + timestamp + amount). Exact duplicates are deduplicated by retaining a single canonical record; near-duplicates (“IBM Corp.” vs. “IBM”) are resolved using string normalization and entity resolution rules before aggregating revenue.
Q24. What is Winsorization, and when do analysts use it instead of deleting outliers?
Winsorization (capping) replaces extreme values beyond chosen percentile thresholds (commonly the 1st and 99th percentiles) with the threshold values themselves, rather than deleting the rows.
Worked example: In a dataset of 10,000 e-commerce order values where the 99th percentile is $850, an analyst caps three extreme $15,000 corporate orders at $850 before fitting a linear regression model for consumer spend. Winsorization preserves sample size and prevents extreme leverage points from distorting model slopes, though raw uncapped totals should still be used for accounting reports.
Q25. Why should data cleaning transformations (such as imputation and scaling) be documented and reproducible?
Ad-hoc manual edits in a spreadsheet cannot be audited, repeated on next month’s refresh, or defended in stakeholder reviews. Best practice is to implement cleaning rules in version-controlled SQL, Python (pandas), or R scripts that log exact row counts before and after each filter, preserve raw source tables untouched, and apply identical parameters consistently across training and production datasets.
Quick Revision Points
- Frequency distributions summarize raw values into bins with absolute, relative, and cumulative frequencies; histograms plot continuous intervals with touching bars, while bar and column charts compare discrete categories with gaps.
- Choose charts by analytical goal: horizontal bar charts for ranked categories, line charts for time-series trends, scatter plots for numeric relationships, side-by-side box plots for group distributions, and heatmaps for correlation or cohort matrices.
- Tufte’s Lie Factor equals (Visual Effect Size) / (Data Effect Size) and should stay between 0.95 and 1.05; never truncate the y-axis on bar or column charts.
- Anscombe’s Quartet demonstrates that identical summary statistics can mask completely different patterns, making visual EDA mandatory before modeling.
- Always diagnose why values are missing (MCAR, MAR, or MNAR) before choosing deletion, median/model imputation, or a missingness indicator flag.
- Audit primary keys and SQL joins for duplicate rows, and verify whether outliers are errors to fix or genuine extreme events to segment or Winsorize.
