# Ordination teaching example: symbolic alignment

This document fixes the symbols before the simulation, code, figures, and
interpretation are made. It is a teaching example, not an empirical analysis.

| Component | Symbol in the lesson | Simulation draw | Fitted-model representation | Known truth used in figures |
|---|---|---|---|---|
| Between-individual shared variation | $\boldsymbol{\Lambda}_B\mathbf z_{B,i}$ | $\mathbf z_{B,i}\sim N(\mathbf0,\mathbf I_2)$ | `latent(0 + trait | individual, d = 2, unique = TRUE)` | rows of $\boldsymbol{\Lambda}_B$ and the simulated $\mathbf z_{B,i}$ |
| Between-individual unique variation | $\mathbf s_{B,i}$ | $\mathbf s_{B,i}\sim N(\mathbf0,\boldsymbol{\Psi}_B)$ | the `unique = TRUE` component at the individual level | diagonal of $\boldsymbol{\Psi}_B$ |
| Within-individual shared variation | $\boldsymbol{\Lambda}_W\mathbf z_{W,ij}$ | $\mathbf z_{W,ij}\sim N(\mathbf0,\mathbf I_2)$ | `latent(0 + trait | occasion, d = 2, unique = TRUE)` | rows of $\boldsymbol{\Lambda}_W$ and the simulated $\mathbf z_{W,ij}$ |
| Within-individual unique variation | $\mathbf s_{W,ij}$ | $\mathbf s_{W,ij}\sim N(\mathbf0,\boldsymbol{\Psi}_W)$ | the `unique = TRUE` component at the occasion level | diagonal of $\boldsymbol{\Psi}_W$ |
| Between-individual covariance | $\boldsymbol{\Sigma}_B$ | $\boldsymbol{\Lambda}_B\boldsymbol{\Lambda}_B^{\mathsf T}+\boldsymbol{\Psi}_B$ | `extract_Sigma_B()` after fitting | exact matrix above |
| Within-individual covariance | $\boldsymbol{\Sigma}_W$ | $\boldsymbol{\Lambda}_W\boldsymbol{\Lambda}_W^{\mathsf T}+\boldsymbol{\Psi}_W$ | `extract_Sigma_W()` after fitting | exact matrix above |

The example has six traits and two axes at each level. Its low-rank-plus-unique
covariance has $6(2+1)-2(2-1)/2=17$ parameters at a level, fewer than the 21
entries in an unstructured six-trait covariance matrix. This counting check is
necessary but does not prove that a real dataset identifies the model well.

The code records a fixed seed (`20260911`). Figures display the known simulated
scores and loadings, rather than claiming that a fitted model recovered them.
The optional fitting code in the lesson is deliberately not executed during
website rendering.
