← All notes

Statistical note

Longitudinal growth curves

Model individual trajectories, irregular timing, and between-unit variability rather than collapsing each series prematurely.

6 min read

How should dependence across time, censoring, or repeated observations change the analysis? This note turns that question into a practical analysis workflow.

Conceptual guide to Longitudinal growth curves

Core idea

Model individual trajectories, irregular timing, and between-unit variability rather than collapsing each series prematurely. The method is useful only when its target, data-generating assumptions, and unit of analysis match the scientific question.

Yit=f(tit)+b0i+b1itit+ϵitY_{it}=f(t_{it})+b_{0i}+b_{1i}t_{it}+\epsilon_{it}

The equation is a compact statement of the target; it is not a substitute for checking design and data quality. State what each observation represents, how it entered the sample, and which sources of dependence remain.

Practical workflow

  1. Write the scientific question and estimand in one sentence.
  2. Identify biological units, technical replicates, nesting, repeated measurements, and exclusions.
  3. Visualise raw observations and group structure before fitting the method.
  4. Check assumptions using design knowledge, diagnostic plots, and sensitivity analyses.
  5. Report the estimate, uncertainty, effect magnitude, sample sizes at every level, and limitations.
import numpy as np
from scipy import stats

time = np.arange(8)
signal = np.array([1.0, 1.1, 1.3, 1.7, 2.0, 2.4, 2.7, 3.1])
trend = stats.linregress(time, signal)
residual = signal - (trend.intercept + trend.slope * time)
print(trend.slope, np.corrcoef(residual[:-1], residual[1:])[0, 1])

Interpretation and failure modes

Do not read a software output as an automatic scientific conclusion. Ask whether dependence was modeled, whether preprocessing used information from validation data, whether missingness or selection is informative, and whether the reported uncertainty covers every level of sampling. Prefer estimates and intervals to threshold-only language.

Microscopy case study

Cell dry-mass trajectories can have individual intercepts and slopes while sharing a population growth pattern.

Connections

Use the tags above to continue to notes on design, assumptions, uncertainty, diagnostics, and complementary methods. A robust analysis normally combines several concepts rather than selecting one test in isolation.