Quick answer
A confidence interval expresses uncertainty around an estimated population value, such as an average service time. A 95% confidence interval uses a method that, under its assumptions, would contain the true value in about 95% of repeated samples. It does not mean that 95% of individual observations fall inside the interval, or that the observed interval has a 95% probability of containing the true value. Report the estimate, interval, sample size, units, and important limitations together. (itl.nist.gov)
1. Start with the average you actually want to estimate
Suppose your question is: “What is the average time needed to complete a service request?”
Before calculating anything, specify what counts as a request, when timing starts and ends, and which requests belong in the analysis. For a practice project, your definition might be:
- One row represents one completed request.
- Service time runs from work starting to completion.
- Time is measured in minutes.
- The target population is requests handled under a defined operating process.
The population mean is the average across that population. The sample mean is the average across the requests you observe. Different random samples can produce different sample means, even when the underlying population has not changed. This is sampling variation; an interval estimate helps quantify the resulting uncertainty. (itl.nist.gov)
Keep the scope visible in your report. “Average service time for sampled weekday requests” is a more defensible description than “average service time for all customers” when weekends were never sampled.
Also distinguish description from inference. If your question concerns only the exact records in your file, their calculated average is a descriptive result. If you want to generalize beyond those records, explain what population or continuing process they represent and why that generalization is justified.
2. Separate standard deviation from standard error
Two quantities answer different questions:
| Quantity | Question it addresses |
|---|---|
| Standard deviation, (s) | How spread out are the individual service times? |
| Standard error of the mean, (SE) | How much would the estimated average vary across repeated samples? |
For independent observations from the same population, the usual estimated standard error is:
[
SE=\frac{s}{\sqrt{n}}
]
Here, (n) is the sample size. The confidence interval for the mean uses this standard error—not the standard deviation alone. SciPy’s sem function calculates the standard error of the mean, with a default degrees-of-freedom adjustment of 1. (itl.nist.gov)
A narrow confidence interval can therefore coexist with widely varying individual service times. You may know the average fairly precisely while still being unable to predict how long the next request will take.
For an individual future request, a prediction interval answers the more relevant question. Under the corresponding normal model, it includes both uncertainty about the mean and variation between individual requests, making it wider than the confidence interval for the mean. (itl.nist.gov)
Practical check: When reading an “average ± value” chart, look for a label stating whether the bars represent standard deviation, standard error, or a confidence interval. Without that label, ask before interpreting them.
3. Interpret “95% confidence” as a property of the method
Imagine repeatedly taking a random sample from the same population and calculating an interval using the same procedure. Under the procedure’s assumptions, about 95% of those intervals would cover the population mean over many repetitions. The intervals change from sample to sample; the population mean is treated as fixed. (itl.nist.gov)
Once you have calculated one particular interval, it either contains that fixed mean or it does not. Frequentist confidence does not assign a 95% probability to the mean being inside that already-observed interval. (itl.nist.gov)
Use wording such as:
“The estimated mean service time is 10.00 minutes, with a 95% confidence interval of 9.25–10.75 minutes.”
Then explain that the interval concerns uncertainty in the population average, subject to the sampling and modeling assumptions.
Avoid these interpretations:
- “95% of requests take between 9.25 and 10.75 minutes.”
- “The next request has a 95% chance of taking that long.”
- “There is a 95% probability that the true average is in this particular interval.”
The first two confuse an interval for the mean with the distribution of individual outcomes; the third confuses frequentist coverage with a probability statement about a fixed parameter. (itl.nist.gov)

4. Calculate a confidence interval with a synthetic example
The following values are hand-constructed teaching data, not measurements from a real organization. Each value represents one fictional completed request’s service time in minutes:
8, 9, 10, 10, 10, 10, 10, 10, 11, 12
For the calculation, assume independent observations from an approximately normal service-time population. The small, constructed dataset does not establish that assumption for real service operations.
When the population standard deviation is unknown, a standard two-sided interval for the mean is:
[
\bar{x}\pm t_{0.975,n-1}\frac{s}{\sqrt{n}}
]
For a 95% interval, (t_{0.975,n-1}) is the 97.5th percentile of Student’s t-distribution with (n-1) degrees of freedom. The two tails together account for the remaining 5%. (itl.nist.gov)
For these synthetic values:
| Calculation | Result |
|---|---|
| Sample size, (n) | 10 |
| Sample mean, (\bar{x}) | 10.0000 minutes |
| Sum of squared deviations from the mean | 10.0000 |
| Sample standard deviation, (\sqrt{10/9}) | 1.0541 minutes |
| Standard error, (1.0541/\sqrt{10}) | 0.3333 minutes |
| Degrees of freedom | 9 |
| t critical value | 2.2622 |
| Margin of error, (2.2622\times0.3333) | 0.7541 minutes |
| 95% confidence interval | 9.2459–10.7541 minutes |
Rounded for communication, that becomes 10.00 minutes, with a 95% confidence interval of 9.25–10.75 minutes.
You can reproduce the calculation in Python with NumPy and SciPy. The functions below follow the SciPy 1.18.0 documentation; record your installed package versions when saving your analysis. stats.sem calculates the standard error, and stats.t.ppf supplies the t critical value. (docs.scipy.org)
import numpy as np
from scipy import stats
# Synthetic teaching data: minutes per completed request
times = np.array(
[8, 9, 10, 10, 10, 10, 10, 10, 11, 12],
dtype=float
)
if times.size < 2 or not np.isfinite(times).all():
raise ValueError("Use at least two finite observations.")
n = times.size
mean = times.mean()
sd = times.std(ddof=1)
se = stats.sem(times, ddof=1)
critical = stats.t.ppf(0.975, df=n - 1)
margin = critical * se
lower = mean - margin
upper = mean + margin
print(f"n={n}")
print(f"mean={mean:.4f}, sd={sd:.4f}, se={se:.4f}")
print(f"95% CI: [{lower:.4f}, {upper:.4f}]")
Expected rounded output:
n=10
mean=10.0000, sd=1.0541, se=0.3333
95% CI: [9.2459, 10.7541]
Check that the interval’s midpoint equals the mean and its half-width equals the margin of error. Retain unrounded values for calculations; round only the reported result.
5. Check assumptions before trusting the bounds
A correct formula cannot compensate for unsuitable data collection. Statistical inference depends on assumptions about sampling, analysis, and which results were selected for reporting. (doi.org)
Use this checklist before applying the simple t-interval:
- Define the sampling scope. Document the locations, dates, request types, and operating conditions included.
- Investigate dependence. Flag repeated customers, shared outages, batches, or other groupings rather than automatically treating every row as independent.
- Inspect the distribution. Plot the service times and look for pronounced skew or extreme observations. The t-interval is less robust when samples are small or departures from normality are severe. (itl.nist.gov)
- Check data quality. Review units, duplicated request IDs, missing durations, and impossible timestamps.
- Document exclusions. Explain which records were removed and why; do not silently discard inconvenient values.
These are questions to resolve, not boxes that software can certify automatically.
For a small sample with pronounced skew, do not assume that changing a function name solves the problem. Reconsider the interval method and whether the mean is the quantity the reader needs.
If observations are grouped or serially dependent, seek a method that accounts for that structure. Ordinary confidence calculations rely on their stated model; violations can undermine interpretation. (doi.org)
6. Understand what sample size and significance can—and cannot—tell you
More observations generally narrow the interval through the (1/\sqrt{n}) term. If variability and the critical multiplier were held constant, quadrupling the sample size would halve the margin of error. With a t-interval, the multiplier also changes as degrees of freedom increase, so this is a planning approximation rather than an exact promise. (itl.nist.gov)
Do not manufacture that precision by copying rows. Plan for additional observations collected under a defensible sampling design.
Now suppose, purely for the teaching example, that a stakeholder sets an average-time target of 10.5 minutes. Our interval, 9.25–10.75 minutes, crosses that target. It does not support a clear conclusion that the population mean is below 10.5 minutes.
Compare this with a fictional target of 11 minutes: the whole interval lies below it. Under the model, that is stronger evidence that the mean is below the target. Neither comparison guarantees that every request meets the threshold.
Statistical importance also differs from practical importance. A large sample can make a tiny difference statistically detectable; a small sample can leave a practically important difference uncertain. Interpret the size of the difference and its interval in business context, not merely through a significance label. (itl.nist.gov)
For example, ask a stakeholder to define a meaningful time saving before reviewing results. Would a few seconds matter, or would a change need to save a full minute?
If comparing two groups, estimate their difference directly using an appropriate method. Overlap between separate confidence intervals is not a reliable significance test for that difference. (doi.org)
7. Communicate the result without promising more than it shows
For the synthetic example, a stakeholder summary could read:
“Across 10 synthetic requests, the average service time was 10.00 minutes. A two-sided 95% t-confidence interval for the population mean is 9.25–10.75 minutes, assuming independent observations from an approximately normal population. Because this interval crosses the illustrative 10.5-minute target, the example does not clearly establish that the average meets that target.”
This wording separates the result, assumptions, and decision question.
For a real report, add the sampling period, population definition, exclusions, and any unresolved limitations. If the records are observational, avoid attributing a difference to a process change merely because an interval looks convincing. A confidence interval alone does not establish causation. (doi.org)
Before sharing, check:
- Have I named the population and units?
- Have I reported the estimate, interval, confidence level, and sample size?
- Have I distinguished uncertainty about the mean from individual variability?
- Have I stated the method and unresolved assumptions?
- Have I compared the result with a meaningful decision threshold?
- Have I avoided guarantees and unsupported causal wording?
Treat the interval as one part of the evidence—not as a substitute for understanding how the data were collected and what decision they need to inform.