Module 04 · Lesson 3 of 4

Sampling, confidence intervals and effect sizes

about 4 min read

Worked examples and assessment values retain the manuscript’s own units (°C, K and W/m²), including temperature differences.

Audio for this lesson — a quick overview and a full narration — will be added as recordings are completed.

In this lesson · 7 sections

From a sample to a wider question

Researchers often want to understand more than the particular observations collected. A study of twenty buildings may aim to estimate the average cooling effect in a defined population of buildings. A sample is the set of units observed; the population is the wider set to which the question refers. Inference depends on how the sample was selected, how the measurements were made and the assumptions of the analysis.

Random sampling can support population inference when the sampling frame and participation process are appropriate. Convenience sampling may be practical but can limit representativeness. Increasing sample size does not necessarily remove selection bias. A very large sample of unusually well-ventilated buildings may still provide a misleading estimate for buildings generally.

Independent observations and standard error

A sample mean varies across repeated samples. Under suitable assumptions, its estimated standard error is SE = s/√n, where s is the sample standard deviation and n is the number of independent observations. Standard error describes sampling variability of the estimate, whereas standard deviation describes variability among observations.

Independence is crucial. A logger recording every minute for one day produces 1,440 readings, but these readings are usually correlated because temperature changes gradually. They are not equivalent to 1,440 independently sampled buildings. Treating correlated readings as independent can produce misleadingly narrow intervals. Depending on the design, analysis may require aggregation, clustered methods, time-series models or other approaches that account for dependence.

Worked example: estimating a cooling effect

Suppose 25 independently sampled buildings each provide a comparable estimated cooling difference. The synthetic sample mean is 2.0°C and the sample standard deviation is 2.0°C. The standard error is 2/√25 = 0.4°C. Under a suitable independent, approximately normal sampling model, a two-sided 95% Student t interval uses 24 degrees of freedom and a critical value of approximately 2.064. The interval is 2.0 ± 2.064 × 0.4, or approximately 1.17 to 2.83°C.

This calculation assumes the building-level estimates are appropriate independent observations and that the sampling and statistical model justify inference. It does not account automatically for calibration bias, unmeasured confounding or selection bias. A narrow interval around a biased estimate is not evidence that the bias has disappeared.

Interpreting confidence intervals

A frequentist 95% confidence interval is produced by a procedure that would cover the true fixed parameter in 95% of repeated samples under its assumptions. Once an interval has been calculated, the parameter is either inside it or outside it. The confidence level describes the long-run procedure, not a literal 95% probability assigned to the fixed parameter in that particular interval.

Confidence intervals help readers assess the precision and plausible magnitude of an estimate under the model. They should not be interpreted mechanically. An interval that includes zero does not prove the absence of an effect. An interval that excludes zero does not prove that the effect is practically important or that the study design establishes causation.

Effect size and practical importance

Effect size describes the magnitude of a difference or relationship. In cooling research, an absolute difference in degrees Celsius is often more interpretable than a standardised effect size. Other useful outcomes may include changes in peak temperature, hours above a threshold or energy use. The choice should reflect the research question and be specified clearly.

A reduction of 0.2°C could be statistically detectable in a large study yet have limited practical value for a particular application. A reduction of 2°C in a small pilot might be important but estimated imprecisely. Practical significance depends on context, costs, risks and the outcome of interest. Statistical evidence and practical judgement should be reported separately.

Practical exercise

If independent observations have s = 2°C, compare the standard error for n = 25 and n = 100. The values are 0.4°C and 0.2°C respectively. Quadrupling sample size halves the standard error under the stated assumptions. Explain why recording four times as frequently at one sensor may not achieve the same improvement. Feedback: closely spaced readings can be correlated and may not add equivalent independent information.

Key terminology

Population
wider set of interest.
Sample
observed units.
Standard error
estimated sampling variability of a statistic.
Confidence interval
interval generated by a procedure with stated long-run coverage.
Effect size
magnitude of a difference or association.

Quick knowledge check

Does a larger sample automatically correct a biased recruitment process?

Show the answer

No. Sample size can improve precision under suitable assumptions, but selection bias requires attention to study design.

Equations in this lesson

  • Standard error of the sample mean

    SE = s/√n