Skip to main content
HireStepX is now in Beta! Be among the first to practice smarter and land your dream role.
Interview Skills

Data Analyst Interview Questions India 2026: Stats and Cases

Data analyst interview questions in India 2026: SQL (window functions, CTEs, joins), statistics (A/B testing), Python pandas/numpy, and business cases.

Interview Skills24 February 202612 min read5 sections

Data analyst roles are among the fastest-growing in India's product and tech companies. Companies like Flipkart, Swiggy, Razorpay, Meesho, and FAANG India hire data analysts to drive product decisions, measure campaign effectiveness, and identify growth opportunities. This guide covers the complete data analyst interview question bank for India 2026.

5 sections

SQL is the most tested skill in data analyst interviews.

Core SQL questions:

1. 'Find the top 3 products by revenue in each category.' SELECT category, product, revenue FROM ( SELECT category, product, SUM(price * quantity) as revenue, ROW_NUMBER() OVER (PARTITION BY category ORDER BY SUM(price * quantity) DESC) as rn FROM orders o JOIN products p ON o.product_id = p.id GROUP BY category, product ) ranked WHERE rn <= 3;

2. 'Find users who made their first purchase in January 2025 and made another purchase in February 2025' (cohort retention): WITH jan_first_timers AS ( SELECT user_id, MIN(order_date) as first_order FROM orders WHERE order_date >= '2025-01-01' AND order_date < '2025-02-01' GROUP BY user_id HAVING MIN(order_date) >= '2025-01-01' ) SELECT COUNT(DISTINCT j.user_id) as retained_users FROM jan_first_timers j JOIN orders o ON j.user_id = o.user_id WHERE o.order_date >= '2025-02-01' AND o.order_date < '2025-03-01';

3. Window function questions: - LAG(metric) OVER (PARTITION BY user_id ORDER BY month): access previous month's value per user - LEAD(metric) OVER (...): access next month's value - NTILE(4) OVER (ORDER BY revenue): assign revenue quartile to each row - SUM(revenue) OVER (PARTITION BY user_id ORDER BY month): running total per user - PERCENT_RANK() OVER (ORDER BY score DESC): percentile rank of each score

Statistics interview questions:

  • 1. 'What is the difference between mean, median, and mode and when would you use each?' Mean: sum / count; use for symmetric distributions; sensitive to outliers (one extreme value shifts the mean).
  • Median. the middle value when sorted; use for skewed distributions (income, house prices) or when outliers are present.
  • Mode. the most frequent value; use for categorical data (most common product category, most common failure type) or count data (most common order size).

2. 'What is an A/B test and how do you determine if the result is statistically significant?' A/B test: randomly split users (control = A, treatment = B); measure one primary metric; run until the minimum detectable effect is reached. Significance test: for conversion rate (proportion): chi-squared test or z-test for proportions. For continuous metrics (average revenue): two-sample t-test. p-value < 0.05: there is less than a 5% probability that the observed difference is due to chance; the result is statistically significant at the 5% level.

  • 3. 'What is statistical power and why does it matter?' Power: the probability that the test correctly detects a true effect (avoids a false negative).
  • Common target. 80% power.
  • Power is affected by. sample size (more data = more power), effect size (a larger true effect is easier to detect), and significance threshold (setting p < 0.01 instead of 0.05 reduces power). Pre-experiment power analysis determines the required sample size to detect the minimum meaningful effect.

4. 'What is the Central Limit Theorem?' As sample size increases, the distribution of sample means approaches a normal distribution regardless of the population distribution. Practical implication: for n > 30, we can use parametric tests (t-tests) even for non-normally distributed metrics like revenue or session length.

  • 5. 'What is selection bias and how does it affect analysis?' Selection bias: the sample is not representative of the population you want to study.
  • Examples. survivorship bias (only analysing users who are still active excludes churned users); self-selection bias (users who voluntarily opt into a feature differ from those who do not).
  • How to detect. compare demographic characteristics of your sample to the full user population.

Python (pandas/numpy) interview questions:

1. 'How do you find duplicate rows in a pandas DataFrame?' df.duplicated(): returns a boolean Series (True where the row is a duplicate of an earlier row). df[df.duplicated()]: show duplicate rows. df[df.duplicated(subset=['email'])]: find rows with duplicate emails specifically. df.drop_duplicates(subset=['email'], keep='first'): keep the first occurrence, drop subsequent duplicates.

2. 'How do you merge two DataFrames?' pd.merge(df1, df2, on='user_id', how='inner'): INNER JOIN on user_id. how options: 'inner' (matching rows only), 'left' (all rows from df1), 'right' (all from df2), 'outer' (all from both). df1.merge(df2, left_on='id', right_on='user_id'): merge on columns with different names.

3. 'How do you compute a 7-day rolling average in pandas?' df['rolling_7d'] = df['revenue'].rolling(window=7).mean() # The first 6 rows will be NaN because there are fewer than 7 days of history. # Use min_periods=1 to compute partial windows: rolling(7, min_periods=1).mean()

4. 'How do you handle outliers in a dataset before analysis?' Detection: IQR method (Q1 - 1.5*IQR, Q3 + 1.5*IQR); Z-score (flag values where |z-score| > 3). Options: cap (winsorize values to the 1st and 99th percentile), remove (only if outliers are clearly data errors), transform (log transformation reduces the effect of extreme values on mean-based statistics), analyse separately (include outliers in one analysis, exclude in another; report both).

Business case questions for data analyst interviews:

  • 1. 'How would you measure the success of a new recommendation feature on Flipkart?' First: what is the feature's goal? Increase average order value (AOV)? Increase sessions per user? Reduce time-to-purchase?
  • Primary metric. if the goal is AOV, track average revenue per session for users who see recommendations vs those who don't (A/B test).
  • Guardrail metrics. ensure the feature does not decrease overall conversion rate, increase return rate, or increase page load time.
  • Leading indicators. click-through rate on recommendation cards (available immediately; correlated with longer-term purchase).

2. 'Daily active users dropped 20% this week on Swiggy. How do you investigate?' Diagnosis tree: Is it all users or a specific cohort? All cities or one? All platforms (iOS/Android/web) or one? All time-of-day or specific slots? Is it new user acquisition (fewer new users) or retention (existing users stopping)? Is it correlated with a product release, a competitor campaign, a marketing spend change, or an external event (holiday, IPL finals, bad weather in key cities)? Verify: check error rates and page load times (technical issue?) before assuming a business explanation.

3. 'Razorpay's transaction failure rate increased from 1.5% to 2.5%. Root cause analysis.' Break down by: payment method (UPI vs card vs netbanking, is one spiking?), bank (is one issuing bank failing more?), merchant (is one large merchant causing the spike?), amount range (are failures concentrated in high-value transactions?), time of day (peak load correlation?). After isolating the segment: check with that bank/payment rail's status page; check Razorpay's own gateway error logs for error codes; contact the issuing bank's technical team if a bank-side failure.

4-week data analyst interview preparation plan:

Week 1 (SQL foundations): - Revise SELECT, JOIN (all types), GROUP BY, HAVING, ORDER BY, LIMIT - Practice 20 SQL problems on Stratascratch or Mode Analytics practice problems - Learn window functions: ROW_NUMBER, RANK, DENSE_RANK, LAG, LEAD, SUM OVER, AVG OVER

Week 2 (Advanced SQL + Python basics): - Practice 20 advanced SQL problems (CTEs, subqueries, retention queries, cohort analysis) - Pandas: merge, groupby, pivot_table, rolling, apply, handling nulls - Numpy: array operations, boolean indexing, statistical functions

Week 3 (Statistics + Metrics): - A/B testing: p-value, confidence interval, statistical power, minimum sample size - Common distributions: binomial (conversion rate), Poisson (event counts), normal (revenue per user) - Regression basics: linear regression interpretation (coefficients, R-squared, p-values) - Practise 10 metric design questions: what metrics for [feature X]?

Week 4 (Interview simulation): - Practice 5 business case questions under time pressure (30 minutes per question) - SQL: attempt company-specific data challenges (Stratascratch has Flipkart, Amazon, Swiggy tagged questions) - Review your own projects/work for specific examples of metrics you designed, analyses you ran, and decisions you influenced with data

Quick answers

Before you close this tab.

Data analyst salary in India (2024-25): Entry-level (0-2 years, IT services or small companies): 4-8 LPA. Mid-level (2-4 years, mid-tier product companies): 8-18 LPA. Senior (4-7 years, top product companies): 18-35 LPA. Principal/Lead Analyst (7+ years): 35-60 LPA. Highest-paying companies for data analysts in India (2024-25): FAANG India (Amazon, Google, Meta India): 25-55 LPA for 3-5 years experience. Compensation includes RSUs and performance bonus. Fintech (Razorpay, PhonePe, CRED, Juspay): 18-40 LPA for 3-5 years. E-commerce (Flipkart, Meesho, Swiggy): 15-35 LPA for 3-5 years. Consulting and IT services analytics (Mu Sigma, Analytics India, KPMG India, PwC India): 6-18 LPA depending on seniority and specialisation; lower than product companies but good for building domain expertise. Skills that command the highest premium in 2026: SQL + Python + A/B testing + causal inference (distinguishing correlation from causation in product data). Analysts who can design and interpret A/B tests and apply causal inference methods (difference-in-differences, regression discontinuity) earn 30-50% more than analysts with only descriptive analytics skills.

Data analyst vs data scientist in Indian companies: Data analyst: primary skill is SQL and business intelligence tools. Responsibilities: define metrics, build dashboards, run ad-hoc analyses, generate insights from structured data, support product and business teams with data-driven decisions. Tools: SQL, Excel, Tableau/Power BI, Python (pandas, matplotlib). Work is primarily descriptive (what happened?) and diagnostic (why did it happen?). Education: bachelor's degree in any quantitative field; MBA from a good institution is a common path to senior analyst roles. Data scientist: primary skill is machine learning and statistical modelling. Responsibilities: build predictive models (churn prediction, demand forecasting, fraud scoring, recommendation systems), design and analyse A/B tests, apply causal inference methods. Tools: Python (scikit-learn, PyTorch, XGBoost), SQL, Spark, cloud ML platforms (AWS SageMaker, GCP Vertex AI). Work is predictive (what will happen?) and prescriptive (what should we do?). Education: master's or PhD in statistics, computer science, or mathematics is common at top product companies. Overlap: in smaller companies (fewer than 50 engineers), data analyst and data scientist roles often blend. In large companies (Flipkart, Amazon, Google), the roles are more specialised. Career path: many data analysts transition to data scientist roles after developing strong statistical skills; many data scientists rely on data analyst tools (SQL, dashboards) daily regardless of their title.

Explore more

Continue reading

Practice

Know the answer. Now say it.

Practise data analyst interview questions with HireStepX's AI voice interviewer. Get scored feedback on SQL walkthroughs, A/B testing explanations, and metrics reasoning. First 2 sessions free.