InterviewStack.io LogoInterviewStack.io

Exploratory Data Analysis Questions

Exploratory Data Analysis is the systematic process of investigating and validating a dataset to understand its structure, content, and quality before modelling or reporting. Core activities include examining schema and data types, computing descriptive statistics such as counts, means, medians, standard deviations and quartiles, and measuring class balance and unique value counts. It covers distribution analysis, outlier detection, correlation and relationship exploration, and trend or seasonality checks for time series. Data validation and quality checks include identifying missing values, anomalies, inconsistent encodings, duplicates, and other data integrity issues. Practical techniques span SQL profiling and aggregation queries using GROUP BY, COUNT and DISTINCT; interactive data exploration with pandas and similar libraries; and visualization with histograms, box plots, scatter plots, heatmaps and time series charts to reveal patterns and issues. The process also includes feature summary and basic metric computation, sampling strategies, forming and documenting hypotheses, and recommending cleaning or transformation steps. Good Exploratory Data Analysis produces a clear record of findings, assumptions to validate, and next steps for cleaning, feature engineering, or modelling.

HardTechnical
69 practiced
A classification problem has an extremely imbalanced target and missing values that correlate strongly with the positive class. Propose an EDA-driven strategy for feature creation, sampling or weighting, validation schemes (e.g., stratified time splits), and steps to quantify the risk of optimistic bias or leakage introduced by handling the missingness.
EasyTechnical
75 practiced
Write a Python function using pandas that, given a DataFrame and a list of key columns, returns: (a) the number of duplicate groups (by keys), (b) a sample of duplicate rows, and (c) a deduplicated DataFrame keeping the first occurrence. Provide function signature, edge-case handling, and a brief usage example.
HardTechnical
115 practiced
You have hundreds of features with suspected multicollinearity. Propose a practical, scalable approach to detect and mitigate multicollinearity: include approximate VIF computation for large feature sets, correlation-based feature clustering, PCA or truncated SVD options, use of regularized models, and a plan to preserve interpretability for stakeholders.
EasyTechnical
69 practiced
Using Python and scikit-learn or pandas, write a short function to produce a stratified sample of a DataFrame by a categorical column 'country'. The function must guarantee a minimum of 5 rows per stratum when available; for strata smaller than the minimum, include the entire stratum. Ensure reproducibility via random_state.
EasyTechnical
66 practiced
You observe a numeric column 'purchase_amount' with a heavy right skew and a long tail. During EDA, list the steps you would take to visualize and quantify skewness, identify extreme outliers, and prepare the variable for modeling. Discuss transformations (log, Box-Cox), winsorization, binning, and when to prefer each approach.

Unlock Full Question Bank

Get access to hundreds of Exploratory Data Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.