Why Report an Interval for an Abundance Effect?
An abundance estimate is more informative when accompanied by a measure of its uncertainty. A point estimate alone does not show whether the data support a narrow range of plausible effects or leave substantial uncertainty. Nor does a significance label communicate the effect's scale, direction, or practical importance. An interval makes the range of effects compatible with a specified estimation procedure visible, while keeping the target contrast explicit.
For differential-abundance analyses, the effect might be a difference in cell-type proportions, an odds ratio, or a contrast between log-ratios. The interval depends on both that choice and the model used to estimate it. In particular, cells from the same donor are not generally independent biological replicates. When the scientific target concerns differences between conditions in a population of donors, uncertainty calculations must reflect donor-level replication or an appropriate model of within-donor dependence.
Before calculating either interval, define the estimand: the population quantity being estimated, including the conditions being compared, the cell type or contrast, and any adjustment variables. An interval cannot repair an unclear or mismatched estimand. The interpretation also depends on the sampling design: for example, a confidence interval based on variation across donors does not become an interval for variation among individual cells merely because cell counts were used to estimate each donor's proportion.
Confidence Intervals on Useful Effect Scales
For a risk difference, let \(p_1\) and \(p_0\) denote the condition-specific proportions in the target population. The risk difference is \(p_1-p_0\), measured in proportion units; multiplying by 100 expresses it in percentage points. For an odds ratio, the effect is \(\{p_1/(1-p_1)\}/\{p_0/(1-p_0)\}\). Odds ratios are positive, so intervals are usually constructed for their logarithm and then exponentiated. A log-ratio contrast is a difference between log proportions or log abundances as defined by the model, often comparing a cell type with a reference component. Its value is on a log scale; exponentiation gives the corresponding ratio of relative quantities.
A common large-sample confidence interval for a fitted coefficient \(\hat{\beta}\) is \(\hat{\beta}\pm z_{0.975}SE(\hat{\beta})\), where \(z_{0.975}\) is approximately 1.96 for a two-sided 95% interval. This Wald interval relies on the estimator being approximately normally distributed, with a reliable estimated standard error. In smaller samples, a suitable \(t\) critical value or a design-appropriate bootstrap interval may be preferable. The bootstrap must resample the independent sampling units, typically donors, rather than treating cells from a donor as independent replicates.
Worked Example: A Donor-Level Risk-Difference Interval
Suppose a hypothetical study measures the proportion of a target cell type for six independent donors in each of two conditions. The donor-level proportions in condition 0 are 0.10, 0.12, 0.08, 0.11, 0.09, and 0.10; in condition 1 they are 0.16, 0.18, 0.14, 0.17, 0.15, and 0.16. Treat the donors as independent, and use a pooled two-sample \(t\) interval, which assumes approximately normal donor-level proportions with a common variance in the two conditions.
The sample means are \(\bar{x}_0=0.10\) and \(\bar{x}_1=0.16\), so the estimated risk difference is \(0.16-0.10=0.060\), or 6.0 percentage points. In each group, the sum of squared deviations from the mean is 0.0010. Thus each sample variance is \(s^2=0.0010/(6-1)=0.000200\), and the pooled variance is also 0.000200.
The standard error of the difference is
The degrees of freedom are \(6+6-2=10\), for which the two-sided 95% \(t\) critical value is approximately 2.228. The interval is
Under the stated assumptions, the estimated condition-1 proportion is 4.18 to 7.82 percentage points higher than the condition-0 proportion. This interval reflects uncertainty in the difference in mean donor proportions, not the range of proportions expected among individual donors. With only six donors per group, approximate normality and the equal-variance assumption are difficult to assess, so this interval should be treated cautiously.
Intervals for Odds Ratios and Log-Ratio Contrasts
For a coefficient on the log-odds scale, first form the interval on that scale. Exponentiation is a monotone transformation, so exponentiating both endpoints gives the corresponding interval for the odds ratio. The resulting interval is generally asymmetric around the point estimate, which is appropriate because an odds ratio cannot be negative. The same logic applies to log-ratio contrasts: construct an interval for the log contrast, then exponentiate the endpoints if a ratio-scale interpretation is useful.
The model and its assumptions need to be stated before interpreting such an interval. For a fitted logistic model, these include a suitable link and linear predictor, a valid specification of the target contrast, and a standard error that reflects the sampling design and dependence structure. For abundance data, the model must also be appropriate to the data's compositional structure and overdispersion. A small standard error obtained by treating correlated cells as independent can produce a deceptively narrow interval.
Worked Example: Exponentiating an Odds-Ratio Interval
Suppose a hypothetical, appropriately specified donor-level logistic model estimates a condition coefficient of \(\hat{\beta}=0.70\) on the log-odds scale, with \(SE(\hat{\beta})=0.25\). Assume the coefficient is approximately normally distributed and that the standard error accounts for donor-level sampling. The estimated odds ratio is \(\exp(0.70)=2.014\).
The 95% interval on the log-odds scale is
Exponentiating gives the odds-ratio interval
Under the model, the estimated odds in condition 1 are about 2.01 times the odds in condition 0, with a 95% confidence interval from about 1.23 to 3.29. This is an odds comparison, not a claim that the proportion itself is doubled. The interval excludes 1, the null value for an odds ratio, but its width also shows meaningful uncertainty about the magnitude.
Worked Example: A Credible Interval for a Log-Ratio Contrast
Suppose a hypothetical Bayesian compositional model estimates a log-ratio contrast \(\beta\) between a target cell type and a reference component. Given the specified likelihood, prior, and observed data, suppose the posterior is approximately normal: \(\beta\mid\text{data}\sim N(0.30,0.12^2)\). This normal posterior approximation is the assumption used for the calculation.
For a normal posterior, a central 95% credible interval is approximately the posterior mean plus or minus 1.96 posterior standard deviations:
On the ratio scale, exponentiating the endpoints gives \((\exp(0.0648),\exp(0.5352))=(1.067,\ 1.708)\). Conditional on this model, prior, and data, the posterior probability that the log-ratio contrast lies between 0.0648 and 0.5352 is 95%. Equivalently, the posterior probability that the corresponding ratio lies between about 1.07 and 1.71 is 95%. This interpretation is conditional on the model and prior; it is not a repeated-sampling coverage statement.
Why the Standard Error Is Not Biological Variability
An interval for a population-level effect quantifies uncertainty in estimating that effect. It is not automatically an interval describing the spread of effects across donors. In a simple setting, the standard error of a sample mean is \(s/\sqrt{n}\), where \(s\) describes observed donor-to-donor spread and \(n\) is the number of independent donors. Increasing \(n\) can reduce the standard error even when the underlying biological variability \(s\) remains substantial.
A confidence interval for a mean difference therefore answers a different question from a prediction interval for a future donor's response. A prediction interval must include both uncertainty about the population mean and the variability of individual donor outcomes, and is generally wider. If the scientific question concerns heterogeneity across donors, report or model that variability directly rather than inferring it from the confidence interval alone. More cells per donor can improve the precision of each donor's estimated proportion, but they do not substitute for more independent donors when generalizing across donors.
Derivation, Diagnostics, and Alternatives
The familiar normal-based interval follows from a sampling approximation. If an estimator \(\hat{\beta}\) is approximately normal with mean \(\beta\) and standard error \(SE\), then the standardized quantity \((\hat{\beta}-\beta)/SE\) is approximately standard normal. Consequently, approximately 95% of its values lie between \(-1.96\) and \(1.96\). Rearranging that inequality yields an interval for the fixed parameter:
The approximation can fail if the estimator's sampling distribution is strongly skewed, the sample is too small for the normal approximation, the fitted model is misspecified, or the standard error ignores dependence. Check convergence warnings, extreme estimates, sparse counts, and whether the interval changes substantially under reasonable alternative specifications. For donor-level analyses, inspect the donor-level data and verify that resampling or model-based uncertainty uses donors as the independent units. For Bayesian intervals, inspect whether posterior summaries are stable and whether conclusions are sensitive to plausible prior choices; a narrow posterior alone does not establish that the model fits the data.
Different interval procedures address different weaknesses. Wald intervals are simple, but can behave poorly near parameter boundaries or with sparse data. Profile-likelihood intervals use the fitted likelihood over candidate parameter values and can better reflect asymmetry, though they still depend on the likelihood model. Donor-level bootstrap intervals can capture non-normal sampling behavior when there are enough independent donors and the resampling scheme matches the design; with few donors, bootstrap quantiles may be unstable. Bayesian credible intervals give a direct posterior-probability statement, but depend on the likelihood and prior. No method removes the need to define the target effect and justify the sampling assumptions.
Check Your Understanding
Answer each question, then compare with the solutions below.
- A 95% confidence interval for a risk difference is (0.02, 0.08). State its interpretation in context-free terms, and explain what it does not mean.
- A log-odds estimate is 0.40 with standard error 0.20. Calculate its approximate 95% confidence interval on the odds-ratio scale.
- What is the main difference between a 95% credible interval and a 95% confidence interval?
- Why can a large number of cells from a small number of donors still yield uncertain population-level abundance effects?
Solutions. 1. The interval procedure has 95% long-run coverage for the fixed risk difference under its assumptions; it does not mean there is a 95% probability that this particular interval contains the parameter. 2. On the log-odds scale, \(0.40\pm1.96(0.20)=(0.008,\ 0.792)\). Exponentiating gives an odds-ratio interval \((\exp(0.008),\exp(0.792))\), or approximately \((1.008,\ 2.208)\). 3. A credible interval contains the stated posterior probability conditional on the model, prior, and data; a confidence interval has a repeated-sampling coverage interpretation under its assumptions. 4. Cells within a donor are not independent biological replicates. Many cells can improve the precision of each donor's proportion, but population-level generalization still depends strongly on the number and variability of independent donors.