tezvyn:

Standard Error: Gauging Your Measurement's Precision

AI-drafted, machine-checkedSource: Wikipedia: Standard errorintermediate
Standard Error: Gauging Your Measurement's Precision

Standard error measures the precision of a sample statistic, like the mean. It answers: "If I ran this experiment again, how much would my result change?" It's key for building confidence intervals and A/B testing. Don't confuse it with standard deviation.

THE MENTAL MODEL: Standard error doesn't measure the spread of your data; it measures the precision of your measurement. Imagine you want to find the average user age. You take a sample of 100 users and get a mean. If you took another sample of 100, you'd get a slightly different mean. The standard error quantifies this expected variation across multiple hypothetical samples. A small standard error means your sample's result is likely very close to the true population's result.

HOW IT WORKS: The standard error of the mean (the most common type) is calculated by dividing the sample's standard deviation (s) by the square root of the sample size (n). The formula is SE = s / sqrt(n). This relationship reveals two key levers for precision. First, more inherent variability in the data (a larger 's') leads to a larger standard error. Second, and more importantly, increasing your sample size ('n') decreases the standard error, making your estimate more precise.

WHEN TO USE IT: Use standard error whenever you report a statistic calculated from a sample and want to communicate its reliability. This is critical in three main areas. First, for constructing confidence intervals, which give a range where the true population parameter likely lies (e.g., "average session time is 120s ± 3s"). Second, for hypothesis testing in A/B tests, where it helps determine if an observed difference is statistically significant or just random chance. Third, when comparing the means of two groups.

WHEN NOT TO USE IT: Do not use standard error to describe the variability of your raw data points. That is the job of standard deviation. If you want to describe how spread out individual user purchases are, use standard deviation. If you want to describe how precise your calculation of the average purchase amount is, use standard error. Confusing the two is a common and serious mistake.

ONE CANONICAL EXAMPLE: You run a performance test, measuring the API response time for 100 requests. The average (mean) response time is 200ms, and the standard deviation of those 100 measurements is 50ms. The standard error of the mean is SE = 50ms / sqrt(100) = 50ms / 10 = 5ms. You can report the result as "The mean response time is 200ms with a standard error of 5ms." This tells your team that while individual requests varied widely (SD=50ms), your estimate of the true average is quite precise.

Read the original → en.wikipedia.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.