Statistics for Analysts — Intermediate
Sampling and Bias
One-line idea: You almost never measure an entire population — you measure a sample of it, and the whole game is making sure that sample actually represents the group you care about.
Everyday comparison: Asking 20 people leaving a cricket stadium who they think will win the league tells you about stadium-going fans that day — not about every fan in the country. If you only ask people in the expensive seats, you've added bias on top of that: your sample now overrepresents one kind of fan.
Common mistake + fix: Treating "a big sample" as automatically a "good sample." Fix: a huge but biased sample (say, 10,000 survey responses collected only from your app's power users) can be worse than a small, genuinely random one — size doesn't fix a biased collection method.
Memory line: A sample is only as good as how it was collected, not how big it is.
Standard Error
One-line idea: The standard error tells you how much a sample's mean would likely bounce around if you repeated the sampling again and again — it's the standard deviation of the mean itself, not of the raw data.
Everyday comparison: If you asked 9 different groups of 9 customers each "how long did checkout take you," you'd get 9 slightly different average times. The standard error estimates how much those 9 averages would typically differ from each other — smaller samples bounce around more; bigger samples settle down.
Worked example: 9 checkout times (seconds): 2.1, 2.3, 2.0, 2.5, 2.2, 2.4, 2.6, 2.1, 2.3.
Common mistake + fix: Confusing standard deviation (how spread out the raw data is) with standard error (how much the mean would vary across repeated samples) — they answer different questions. Fix: standard deviation describes individual values; standard error describes your confidence in the mean you calculated.
Memory line: Standard deviation describes the data. Standard error describes how sure you can be about the average of that data.
Confidence Intervals
One-line idea: A confidence interval is a range built around your sample's mean that's wide enough to very likely contain the true population mean — "very likely" because of how the range was built, not because the true value has a 95% chance of landing inside this one specific range.
Everyday comparison: Imagine you and 99 other analysts each took your own random sample of the same checkout process and each built your own 95% confidence interval. About 95 of those 100 intervals would actually contain the true average checkout time — but any one interval, like the one you calculated, either contains it or it doesn't; you just can't know which without measuring everyone.
Worked example (same 9 checkout times, mean 2.28s, standard error 0.07s): For a 95% confidence interval with 8 degrees of freedom (n−1 = 9−1), the critical t-value from the Student-t table is 2.306.
We use the unrounded values (mean 2.2778, standard error 0.066) to compute the bounds below; rounding first (2.28 ± 2.306 × 0.07) gives 2.12 to 2.44 instead — a different, less accurate answer.
So: "we're 95% confident the true average checkout time is between 2.13 and 2.43 seconds" — meaning the method used to build this range would capture the true value 95% of the time it's used, not that this specific range has a 95% chance of being right.
Common mistake + fix: Saying "there's a 95% chance the true value is in this interval." Fix: say "95% of intervals built this way would contain the true value" — a small wording change that keeps the statistics honest.
Memory line: The 95% describes the method's track record across repeated sampling, not this one interval's odds.
Correlation vs. Causation
One-line idea: Correlation measures whether two things move together; it says nothing about whether one causes the other.
Everyday comparison: Ice cream sales and sunscreen sales both rise in summer — they're strongly correlated, but ice cream doesn't cause sunscreen sales (or vice versa). Hot weather causes both. Correlation found a real pattern; it just didn't tell you the actual reason.
Worked example: Monthly ad spend (₹ thousands) and sales (₹ thousands) across 6 months: ad spend = 10, 15, 20, 25, 30, 35; sales = 52, 61, 68, 75, 85, 92.
Excel's CORREL function computes exactly this — a value near +1 means a strong positive relationship (as one rises, so does the other), near −1 means a strong inverse relationship, and near 0 means little linear relationship at all.
Common mistake + fix: Seeing a strong correlation (r = 0.999 above) and concluding "ad spend causes sales" without ruling out other explanations — maybe both rose because it's a growing season for the whole market, independent of the ads. Fix: a strong correlation is a reason to investigate causation (with an experiment, like an A/B test — see the Advanced page), never a substitute for proving it.
Memory line: Correlation finds a pattern. It never proves a cause — only an experiment can do that.
Simple Linear Regression
One-line idea: Linear regression draws the single straight line that best fits a scatter of points, giving you a slope (how much y changes per unit of x) and an intercept (where the line crosses y when x is 0).
Everyday comparison: If every extra ₹5,000 of ad spend tends to add roughly ₹8,000 of sales, the regression line's slope captures that "roughly ₹8,000 per ₹5,000" rate as one clean number — useful for predicting sales at an ad-spend level you haven't actually tried yet.
Worked example (same ad spend/sales data):
Per Microsoft's function references, [INTERCEPT](https://support.microsoft.com/en-us/office/intercept-function-2a9b74e2-9d47-4772-b663-3bca70bf63ef) "calculates the point at which a line will intersect the y-axis" and [RSQ](https://support.microsoft.com/en-us/office/rsq-function-d7161715-250d-4a01-b80d-a8364f2be08f) "returns the square of the Pearson product moment correlation coefficient" — exactly R², the same number this page's R² is.
Common mistake + fix: Trusting a regression line to predict far outside the range of x-values it was built on (here, ₹10,000-₹35,000 ad spend) — the straight-line relationship isn't guaranteed to hold at, say, ₹200,000 of spend. Fix: use the line to predict within (or just slightly beyond) the range of the original data, and flag any prediction far outside that range as a guess, not a forecast.
Memory line: Slope is the rate of change; intercept is the starting point; R² is how much of the story the line actually explains. None of the three licenses a prediction far outside the data you fit it on.

