Tutorials › Stochastic Differential Equations in Pharmacokinetics › Covariance Patterns That Distinguish the Two Noise Sources

Process Noise Versus Observation Error · Tutorial 6 of 100

Covariance Patterns That Distinguish the Two Noise Sources

Learn how a simple stochastic concentration model produces a characteristic covariance pattern, and what that pattern can—and cannot—tell you about process noise versus observation error.

Intermediate 11 min read

What You'll Learn

  • Derive the covariance function for a mean-reverting concentration fluctuation driven by Brownian process noise.
  • Separate latent process covariance from independent observation-error variance.
  • Calculate variances, covariances, and correlations at specified sampling times.
  • Interpret the diagonal and off-diagonal entries of an observed covariance matrix.
  • Recognize when correlated assay errors or model misspecification undermine the distinction.

Why covariance carries information about the noise source

Two sources of variation can make concentrations scatter around a predicted profile, but they do not generally leave the same pattern across time. A process perturbation changes the evolving concentration path. Its effect can persist, so measurements at different times share some of the same perturbations. Independent observation errors, by contrast, affect the recorded values at their own measurement times and do not create covariance between separate measurements.

The distinction is clearest in a model where the deterministic pharmacokinetic trajectory is separated from a stochastic fluctuation around it. We use a mean-reverting fluctuation as a tractable example. The same reasoning extends to linear models with other response kernels, but the precise covariance pattern depends on the dynamics.

Definition: A process-noise covariance is the covariance between latent concentrations at two times, induced by random perturbations to the evolving process. Observation error is an additional random deviation in a recorded measurement from the latent concentration at that time. If observation errors are independent across measurements and independent of the latent process, they contribute variance to the diagonal of the observation covariance matrix, but no covariance to its off-diagonal entries.

A mean-reverting concentration fluctuation

Let \(C(t)=m(t)+X(t)\), where \(m(t)\) is a deterministic reference concentration and \(X(t)\) is a zero-mean fluctuation. Consider

$$ dX(t)=-kX(t)\,dt+\sigma\,dW(t), \qquad k>0,\quad \sigma>0,\quad X(0)=0. $$

Here \(k\) controls how quickly a fluctuation is pulled back toward zero, \(\sigma\) controls the strength of process perturbations, and \(W(t)\) is standard Brownian motion. The zero initial fluctuation is assumed for the derivation below. A nonzero deterministic initial fluctuation would add a deterministic term, not a covariance contribution. The model is an additive-noise approximation; it can produce negative concentrations near zero and should not be treated as a universally realistic concentration model.

The solution is

$$ X(t)=\sigma\int_0^t e^{-k(t-u)}\,dW(u). $$

For deterministic square-integrable integrands, the covariance of two Itô integrals against the same Brownian motion is the integral of the product of their integrands. This standard consequence of the Itô isometry makes the shared Brownian history explicit: the perturbations before the earlier time can affect both concentrations.

Theorem: For \(0\le s\le t\), the latent fluctuation has mean zero and covariance $$ \operatorname{Cov}(X(s),X(t)) =\frac{\sigma^2}{2k}\left(e^{-k(t-s)}-e^{-k(t+s)}\right). $$ In particular, its variance is $$ \operatorname{Var}(X(t))=\frac{\sigma^2}{2k}\left(1-e^{-2kt}\right). $$

Proof. The deterministic kernel \(u\mapsto \sigma e^{-k(t-u)}\) is square-integrable on \([0,t]\), so the Itô integral has mean zero. For \(s\le t\), the covariance identity for deterministic-kernel Itô integrals gives

$$ \begin{aligned} \operatorname{Cov}(X(s),X(t)) &=\sigma^2\int_0^s e^{-k(s-u)}e^{-k(t-u)}\,du\\ &=\sigma^2 e^{-k(s+t)}\int_0^s e^{2ku}\,du\\ &=\frac{\sigma^2}{2k}e^{-k(s+t)}(e^{2ks}-1)\\ &=\frac{\sigma^2}{2k}\left(e^{-k(t-s)}-e^{-k(t+s)}\right). \end{aligned} $$

Setting \(s=t\) gives the variance formula. The covariance is positive when \(s>0\), because \(t-s<t+s\) and \(k>0\), so \(e^{-k(t-s)}>e^{-k(t+s)}\). The shared perturbations before time \(s\) therefore produce positive covariance in this model. \(\square\)

Adding independent observation errors

Suppose observations at times \(t_1,\ldots,t_n\) are \(Y_i=C(t_i)+\epsilon_i\), where \(E[\epsilon_i]=0\), \(\operatorname{Var}(\epsilon_i)=\tau_i^2\), and the errors are mutually independent and independent of the process. Since \(m(t_i)\) is deterministic, it contributes no covariance. For any \(i,j\),

$$ \operatorname{Cov}(Y_i,Y_j) =\operatorname{Cov}(X(t_i),X(t_j)) +\operatorname{Cov}(\epsilon_i,\epsilon_j). $$

When \(i\ne j\), error independence makes the second term zero. When \(i=j\), it equals \(\tau_i^2\). Thus the observation covariance matrix has the form \(K+D\), where \(K\) is the latent process covariance matrix and \(D\) is diagonal with entries \(\tau_i^2\).

Result: Under the stated independence assumptions, independent observation error increases each observed variance by its error variance, while leaving covariances between different observation times unchanged. This is a model-based distinction: it is not a universal claim that all assay errors are independent over time.

To verify the result directly, expand the covariance of \(Y_i\) and \(Y_j\). The two cross-covariances between \(X\) and \(\epsilon\) are zero by independence. The remaining terms are the process covariance and the error covariance. For distinct indices, the latter is zero; for equal indices, it is \(\operatorname{Var}(\epsilon_i)=\tau_i^2\). This proves the matrix decomposition without requiring normality.

Worked Example: Variance and Covariance at Two Times

Let \(k=0.5\), \(\sigma=0.2\), and observe at \(s=1\) and \(t=3\). Let the independent observation-error standard deviation be \(\tau=0.1\) at both times. Calculate the two observed variances and their covariance.

First, \(\sigma^2/(2k)=0.04/1=0.04\). The latent variance at time 1 is

$$ \operatorname{Var}(X(1))=0.04(1-e^{-1}) =0.04(1-0.367879)=0.025285. $$

At time 3 it is

$$ \operatorname{Var}(X(3))=0.04(1-e^{-3}) =0.04(1-0.049787)=0.038009. $$

Since \(\tau^2=0.01\), the observed variances are \(0.035285\) at time 1 and \(0.048009\) at time 3. Their covariance is the latent covariance:

$$ \operatorname{Cov}(Y(1),Y(3)) =0.04(e^{-1}-e^{-2}) =0.04(0.367879-0.135335) =0.009302. $$

The covariance is unchanged by the independent assay errors. For scale, the observed correlation is approximately \(0.009302/\sqrt{0.035285(0.048009)}=0.226\). The added observation variance reduces the correlation, even though it does not reduce the covariance.

What the covariance pattern says

In this mean-reverting model, process noise creates positive covariance across distinct times because part of the random history is shared. The covariance depends on both the separation between times and how much process variation has accumulated by the earlier time. Independent observation error instead appears only on the diagonal. The diagonal alone does not identify the sources: a large observed variance could reflect process variability, observation error, or both. Off-diagonal covariance supplies additional information under the model assumptions.

A useful comparison is the stationary version of the same mean-reverting process. If \(X(0)\) is independent of future Brownian increments and has distribution \(N(0,\sigma^2/(2k))\), then the process has variance \(\sigma^2/(2k)\) at every time, and for \(s\le t\),

$$ \operatorname{Cov}(X(s),X(t)) =\frac{\sigma^2}{2k}e^{-k(t-s)}. $$

This follows by writing \(X(t)=e^{-k(t-s)}X(s)+\sigma\int_s^t e^{-k(t-u)}\,dW(u)\). The integral is independent of \(X(s)\) and has mean zero, so the covariance is \(e^{-k(t-s)}\operatorname{Var}(X(s))\). The stationary covariance depends only on the time lag; the zero-initial-condition covariance above does not.

Worked Example: A Stationary Covariance Calculation

Suppose \(k=0.25\) per hour and \(\sigma=0.1\) concentration units per square-root hour. Under the stationary model, calculate the process variance and the covariance between concentrations two hours apart.

The stationary process variance is

$$ \frac{\sigma^2}{2k}=\frac{0.01}{0.5}=0.02. $$

A two-hour separation gives

$$ \operatorname{Cov}(X(t),X(t+2)) =0.02e^{-0.25(2)} =0.02e^{-0.5} =0.02(0.606531) =0.012131. $$

If independent observation errors have standard deviation \(0.05\), each observed variance is \(0.02+0.05^2=0.0225\), while the covariance of the two distinct observations remains \(0.012131\). The time separation reduces the process covariance, but independent measurement error does not add a cross-time covariance.

Worked Example: Reading a Covariance Matrix

Assume the stationary model with \(k=0.5\), \(\sigma=0.3\), and equal independent observation-error standard deviation \(\tau=0.2\). Two samples are one time unit apart. Calculate their covariance matrix and identify which entries contain observation error.

The process variance is \(0.3^2/(2(0.5))=0.09\). The lag-one process covariance is \(0.09e^{-0.5}=0.054588\). The observation-error variance is \(0.2^2=0.04\), so each observed variance is \(0.09+0.04=0.13\). Therefore the observed covariance matrix is

$$ \begin{pmatrix} 0.13 & 0.054588\\ 0.054588 & 0.13 \end{pmatrix}. $$

The diagonal entries contain both process and observation variance. The off-diagonal entries contain process covariance only. This interpretation relies on the specified independence assumptions; the matrix by itself does not prove that the assumed model is correct.

Diagnostics, alternatives, and limitations

In practice, covariance patterns are estimated from repeated information across individuals or replicates under a defined population model; two isolated observations do not provide a reliable covariance estimate. A useful diagnostic is to compare the fitted covariance structure with empirical residual patterns after accounting for the deterministic concentration profile and any modeled between-subject variation. Systematic residual association across times suggests that a diagonal-only error model may be inadequate. Conversely, a fitted process covariance that cannot reproduce observed temporal association may indicate an incorrect process model, an omitted source of shared variation, or insufficient information to separate components.

The main alternative is an observation-error-only model with independent errors. It permits variation at each measured time but predicts zero covariance between distinct residuals, conditional on the modeled mean and other included effects. A process-noise model predicts covariance according to the dynamics. A combined model allows both: process covariance off the diagonal and process-plus-observation variance on the diagonal. Selecting among these is not accomplished by labeling all scatter as one source; it requires checking whether the implied covariance structure is compatible with the data.

Several limitations matter. Correlated assay errors, shared batches, or common sample handling can create off-diagonal covariance that resembles process covariance. Random individual parameters can also induce correlation across a person's concentrations, even without a Brownian process perturbation. Further, not every process model has positive covariance at every lag; the positive pattern derived here belongs to the stated mean-reverting model. The decomposition is consequently a way to reason from assumptions and covariance structure, not a stand-alone proof of causal source.

A common mistake is to say, “measurement error increases variability, so it must increase covariance between any two observations.” The correction is to calculate covariance: independent errors have \(\operatorname{Cov}(\epsilon_i,\epsilon_j)=0\) for \(i\ne j\), so they increase the diagonal variances only. If errors share a batch effect or other common component, that independence premise fails and the error covariance need not be zero.

Key takeaway: For independent observation errors, the observed covariance matrix is the latent process covariance matrix plus a diagonal error-variance matrix. The off-diagonal pattern can therefore reveal temporal dependence, but its interpretation depends on the process model and on ruling out correlated observation errors and other shared sources.

Check Your Understanding

Answer each question, then check the solutions below.

  1. For the zero-initial-condition model, write the formula for \(\operatorname{Var}(X(t))\).
  2. If observation errors at two distinct times are independent and independent of the process, what happens to their observed covariance?
  3. In the stationary model, let \(\sigma^2/(2k)=0.05\) and \(k=0.2\). Find the process covariance at lag 3.
  4. Two observed values have latent process variance \(0.08\), and each has independent observation-error variance \(0.02\). What is the observed variance at either time?
  5. Name one reason an observed off-diagonal covariance might not be due to process noise.

Solutions. (1) \(\operatorname{Var}(X(t))=\frac{\sigma^2}{2k}(1-e^{-2kt})\). (2) It is unchanged from the latent process covariance, because the cross-time observation-error covariance is zero. (3) \(0.05e^{-0.2(3)}=0.05e^{-0.6}=0.05(0.548812)=0.027441\). (4) The observed variance is \(0.08+0.02=0.10\). (5) For example, shared assay-batch effects can create correlated observation errors across times.

Clinical Biostats