Analysis · 24 concepts
Data analysis: SQL, statistics, metrics and BI
The analyst patterns interviews ask: funnels and cohorts in SQL, statistics and A/B tests, metric cases, Excel, Power BI and Tableau, pandas, and presenting findings.
Asked in these mock interviews
Part 1 · 6 concepts
SQL for analysis
- 01
Dates, time zones and half-open ranges
Dates in a report must be cut in the business time zone (IST for India), and a date range should be written as start inclusive, end exclusive. A day cut in UTC puts…
- 02
Funnels and drop-off lists
A funnel counts distinct users who reach each step in order. Counting events, or ignoring order, can give a step above 100%. The same ideas give lists of users who…
- 03
Cohorts, retention and active users
A cohort table groups users by signup period and shows what share return in each later period. The share must divide by the cohort size, use decimals, and leave…
- 04
Running totals and period-over-period
Window functions give running totals, moving averages and comparisons with an earlier period. Aggregate first, fill missing days with a calendar, and know what the…
- 05
Latest row per key and deduplication
A status log or history table has many rows per entity. ROW_NUMBER with a tie-breaker keeps the latest one, and the same pattern removes duplicates.
- 06
Sessionisation from a click stream
A session is a group of events with no gap longer than a timeout between them. Use LAG to find the gaps, a running SUM of new-session flags to number sessions, then…
Part 2 · 6 concepts
Statistics and experiments
- 07
Mean, median and percentiles
Most business numbers (order value, delivery time) are right-skewed, so the mean sits above the median. Use the median and percentiles to describe a typical or a bad…
- 08
Correlation, confounders and causation
Users who use a feature often spend more, but that does not mean the feature causes the spending. Selection, reverse causation and confounders explain many gaps. Only a…
- 09
p-values and confidence intervals
A p-value says how surprising the data is if the change did nothing. A confidence interval gives the range of effects that fit the data. Neither is the chance that the…
- 10
Sample size, power and test length
Before a test, fix the smallest effect worth detecting, the significance level and the power, then work out how many users each group needs. Halving the effect needs…
- 11
Designing an A/B test
A good test names a hypothesis, the unit of randomisation, one primary metric, guardrails, the sample size and a decision rule, all before the test starts. When users…
- 12
Peeking, novelty, SRM, Simpson and many comparisons
Experiment results can be wrong even with a good p-value: looking every day, novelty, a broken split, mixed groups, or too many segments. A senior analyst checks for…
Part 3 · 3 concepts
Product metrics and cases
- 13
Diagnosing a metric that moved
When a number drops or jumps, check the data first, then split it: by funnel step, segment, stage and mix. Many moves are a data problem, a mix change or one broken…
- 14
Choosing and judging product metrics
A good metric reflects value to the customer and predicts revenue, and it comes with guardrails. Judge launches and sales by incremental effect, not by raw growth.
- 15
Market sizing and growth plans
Estimation cases test structure and reasoning, not the exact number. State the steps, say the assumptions, cross-check from a second side and give a range. Growth cases…
Part 4 · 5 concepts
Excel and BI
- 16
Excel lookups and cleaning messy imports
XLOOKUP, INDEX-MATCH and VLOOKUP differ in match type, direction and safety. Most lookup errors and wrong dates come from data types, hidden characters and regional…
- 17
Pivot tables, Power Query and what-if tools
Reports that repeat every week or month should be automated with Tables, Power Query and one Refresh All. Know the what-if tools and the newer GROUPBY and PIVOTBY…
- 18
Star-schema modelling, measures and columns
Power BI models work best as a star: a fact table joined one-to-many to dimensions, with a proper Date table. Use measures for ratios and anything that depends on…
- 19
Filter context, time intelligence and LOD in Tableau
CALCULATE changes the filters a measure sees. Time intelligence needs a clean Date table. Tableau's FIXED calculations run before dimension filters, so order of…
- 20
Dashboards people trust: security, refresh, speed
A dashboard must be secure, fresh, fast, and agree with finance. When it breaks, communicate first, then find the cause. Design from the decisions the viewer makes.
Part 5 · 3 concepts
pandas for analysis
- 21
groupby, merge and transform in pandas
Summaries in pandas need a filter, a safe merge and a named aggregation. A merge can duplicate rows or lose rows, and groupby drops missing keys by default.
- 22
Types, dates and missing values
Wrong types and missing values cause silent errors. Check dtypes, parse dates with an explicit format, and understand why values are missing before you fill them.
- 23
Big files and clear charts in pandas
When a file does not fit in memory, read less, read in chunks or use another engine. A leadership chart needs complete weeks, a few series, labelled units and a finding…
Part 6 · 1 concept
Data storytelling
- 24
Presenting findings and handling disagreement
Lead with the answer and the ask, use one simple chart, and give confidence in plain words. When two numbers disagree or the data cannot answer, bring a reconciliation…
Your first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.