Why One Data Set Does Not Give the Whole Answer
A fitted model and its measured performance are calculated from an observed data set. If a different sample had been collected from the same target population, the fitted coefficient, selected predictor, or estimated performance measure might have differed. That sample-to-sample variation is sampling variability. It matters because a conclusion that looks clear in one data set may be much less clear across other plausible data sets.
For example, a model may show a positive association between a customer characteristic and claim frequency in the observed sample. That association is evidence about the population, but it is not automatically proof that the population association is positive. The strength of the evidence depends partly on how much the estimate could vary from sample to sample. This tutorial focuses on expressing that uncertainty, not on deciding whether the data are representative or free of measurement problems.
The sampling distribution is usually conceptual: analysts have one observed sample, not every possible repeated sample. A standard error estimates its spread using assumptions about the sampling process, a probability model, or resampling methods such as the bootstrap. A small standard error indicates that an estimate would tend to vary less under those assumptions; it does not show that the estimate is unbiased or that the assumptions are appropriate.
Standard Errors and Approximate Confidence Intervals
For independent observations from a stable population, standard errors generally decrease as sample size increases. For instance, when estimating a population mean from independent observations with finite variance, the standard error of the sample mean is \(\sigma/\sqrt{n}\), where \(\sigma\) is the population standard deviation and \(n\) is the sample size. In practice, \(\sigma\) is usually unknown and is estimated from the sample. The square-root relationship explains why quadrupling the sample size, all else equal, roughly halves the standard error.
A confidence interval combines an estimate and a measure of its sampling uncertainty. Under the usual large-sample normal approximation, an approximate 95% interval is the estimate plus or minus 1.96 standard errors. The interpretation is about the method: if the sampling assumptions hold and the procedure were repeated many times, approximately 95% of intervals constructed this way would contain the fixed population quantity. It is not correct to say that, after calculating one interval, there is a 95% probability that the fixed quantity lies inside it.
Worked Example: Uncertainty in an Estimated Event Rate
A hypothetical insurer reviews 200 independently sampled policies from a defined portfolio. The specified event occurred on 84 policies. Estimate the event rate and construct an approximate 95% confidence interval. Assume each policy has a binary event indicator, the observations are independent, and the event probability is stable across the policies being represented.
Method. For independent Bernoulli observations, estimate the event probability \(p\) by the observed proportion \(\hat{p}=x/n\). Its estimated standard error is \(\sqrt{\hat{p}(1-\hat{p})/n}\). The normal approximation is reasonable here because both \(n\hat{p}=84\) and \(n(1-\hat{p})=116\) exceed 10.
Step 1: Calculate the observed rate. With \(x=84\) events and \(n=200\) policies,
Step 2: Calculate the standard error.
Step 3: Construct the interval. The margin of error is \(1.96(0.0349)\approx 0.0684\), so the endpoints are \(0.42-0.0684=0.3516\) and \(0.42+0.0684=0.4884\). To four decimal places, the approximate interval is \([0.3516,0.4884]\).
Interpretation and check. Under the stated sampling assumptions, the data are compatible with an event rate from about 35.16% to 48.84% using this interval procedure. The interval is centered on 0.42, and its half-width, 0.0684, matches the calculated margin of error. It does not establish that the sample represents policies outside the defined population.
Comparing Conclusions Across Two Groups
A model conclusion often compares two groups—for example, whether an event rate differs between groups receiving two hypothetical service approaches. A difference estimated from samples also varies across repeated samples. If the groups are sampled independently, the variance of the difference is the sum of the two variances. This gives a standard error for the estimated difference and helps show whether the observed gap is precise or uncertain.
Worked Example: Is an Observed Rate Difference Stable?
In a hypothetical evaluation, 96 of 160 independently sampled policies under Service A have a specified outcome, compared with 80 of 160 independently sampled policies under Service B. Assume the two groups are independent, observations within each group are independent, and the normal approximation is suitable. Estimate the rate difference, calculate an approximate 95% interval, and state what the result supports.
Step 1: Calculate both rates and their difference.
Step 2: Calculate the standard error.
Step 3: Calculate the interval. The margin is \(1.96(0.0553)\approx 0.1085\). The interval for the difference is \(0.10\pm0.1085\), or approximately \([-0.0085,0.2085]\).
Interpretation and check. The observed rate under Service A is 10 percentage points higher, but the approximate interval includes zero and also includes differences in either direction. Under the assumptions, this sample does not give a precise direction for the population difference at the 95% interval level. The interval is centered at 0.10, as required. The result does not show that the services are equivalent; it shows that these data leave substantial uncertainty about the difference.
Resampling Model Conclusions With the Bootstrap
For a fitted model, the estimate of interest may not have a simple standard-error formula. A bootstrap offers a way to approximate sampling variation by repeatedly constructing new data sets from the observed one. In the ordinary row bootstrap, each resampled data set has the same number of rows as the original and is formed by sampling rows with replacement. Each resample is then analyzed using the same fitting procedure.
The bootstrap distribution is the collection of estimates from those refits. Its spread can describe how sensitive a coefficient or performance estimate is to which observations happened to be sampled. A bootstrap standard error is commonly calculated as the sample standard deviation of the bootstrap estimates. Percentile intervals use selected quantiles of their empirical distribution. These are approximations, and their reliability depends on the data and procedure; an inadequate number of resamples can also make tail quantiles unstable.
Specify the conclusion to examine, such as a coefficient or a performance measure. Resample the independent observational units. If the sampling design has dependent clusters, resample appropriate clusters rather than pretending rows are independent.
Draw a bootstrap sample with replacement and repeat the entire relevant fitting procedure. Any data-dependent choices that are part of the procedure must be repeated within each resample.
Compare the estimates across refits. Report a measure of spread or an interval, and explain whether the direction or practical size of the conclusion is consistent across resamples.
Describe this as uncertainty under the observed-data resampling scheme. It is not a guarantee about new populations, and it does not repair selection bias, incorrect outcome definitions, or a misspecified model.
Worked Example: Resampling a Model Coefficient
A hypothetical model estimates the change in an outcome associated with a one-unit increase in a predictor. Eight bootstrap refits produce these coefficient estimates: \(0.1,\ 0.2,\ 0.3,\ 0.4,\ -0.1,\ 0.5,\ 0.2,\ 0.4\). Treat these values as a small teaching illustration of a bootstrap distribution; eight refits are not enough for a reliable tail-based confidence interval. Summarize the center, bootstrap standard error, and sign consistency.
Step 1: Calculate the mean coefficient. The sum is \(0.1+0.2+0.3+0.4-0.1+0.5+0.2+0.4=2.0\). The mean is \(2.0/8=0.25\).
Step 2: Calculate the sample standard deviation across refits. The squared deviations from 0.25, in the same order, are \(0.0225,\ 0.0025,\ 0.0025,\ 0.0225,\ 0.1225,\ 0.0625,\ 0.0025,\ 0.0225\). Their sum is 0.26, so the sample variance is \(0.26/(8-1)=0.0371429\), and the bootstrap standard error is \(\sqrt{0.0371429}\approx0.1927\).
Step 3: Assess the direction. Seven of the eight estimates are positive; one is negative. Thus the direction is positive in most of these illustrative refits, but it is not unchanged across them.
Interpretation and check. The mean of the listed values is 0.25, and their estimated spread is about 0.1927. Their positive majority is not the probability that the true coefficient is positive, nor is it a 87.5% confidence statement. The bootstrap here illustrates sensitivity to resampling; a practical analysis would use many more refits and report uncertainty with the limitations of the method.
Common Traps and Responsible Interpretation
Sampling variability is one limitation to communicate alongside other limitations relevant to the decision. The earlier material on selection bias distinguishes how the observed data came to be observed; a narrow interval cannot correct a systematically unrepresentative sample. Likewise, resampling the same observed data cannot reveal an important population pattern that the sample never captured.
- Calling an estimate certain because it is positive. A point estimate gives one result from one sample. Inspect its uncertainty and the range of conclusions compatible with the data.
- Confusing a confidence interval with a probability statement about a fixed parameter. The 95% refers to the long-run coverage of the procedure under its assumptions.
- Treating a bootstrap sign count as a probability about the truth. The fraction of positive bootstrap estimates summarizes the resamples, not the probability that the population coefficient is positive.
- Interpreting a nonzero estimate as a material effect. Statistical uncertainty and practical importance are different questions. A small effect can be estimated precisely, and a consequential estimate can remain uncertain.
- Assuming a narrow interval covers every source of uncertainty. Standard errors and bootstrap ranges usually address sampling variation under a method; they do not automatically include bias, data-definition problems, or changes in future conditions.
A useful report explains the point estimate, its uncertainty, and the decision consequence together. For example, it can state that an estimated difference is positive in the observed sample, that plausible sampling variation includes no difference, and that the available evidence is therefore insufficient to make a confident directional claim. This is more informative than presenting a single metric without qualification.
Check Your Understanding
For each problem, state the calculation or interpretation and retain the assumptions specified.
- A hypothetical portfolio sample has 30 events among 100 independent policies. Calculate the estimated rate and its approximate 95% interval using the normal approximation. Give endpoints to four decimals. (Answer: \(\hat p=0.3000\); approximate interval \([0.2102,0.3898]\).)
- Two independent hypothetical groups have event rates \(45/75\) and \(36/72\). Calculate the estimated first-minus-second difference and its approximate 95% interval using the independent-proportions standard error. Give endpoints to four decimals. (Answer: difference \(0.1000\); standard error \(\sqrt{0.24/75+0.25/72}\approx0.0817\); interval approximately \([-0.0601,0.2601]\).)
- A sample mean is 74, the population standard deviation is known to be 12, and \(n=36\) independent observations are drawn from a normal population. Calculate the standard error and the 95% interval for the population mean. (Answer: standard error \(12/\sqrt{36}=2\); interval \([70.08,77.92]\).)
- Six bootstrap refits produce coefficient estimates \(-0.05,\ 0.02,\ 0.04,\ 0.08,\ 0.10,\ 0.11\). What fraction are positive, and what can that fraction support? (Answer: \(5/6\), or about 83.33%, are positive; this describes the bootstrap refits only and is not the probability that the population coefficient is positive.)
- A narrow bootstrap interval is reported from a sample obtained through a process that systematically omitted a relevant part of the target population. Does the interval establish that the model conclusion is reliable for the full target population? (Answer: No. It describes resampling variation under the observed-data scheme and does not correct the selection bias.)