Criminal Trajectory Clustering

Statistics
Introduced by
Daniel S. Nagin; Christophe Genolini & Bruno Falissard (KmL)
Year
2010
Type
Algorithmic clustering of longitudinal offending trajectories
Family
Longitudinal clustering and latent class growth methods

What does it do?

Criminal trajectory clustering is an umbrella label used on this page for methods that group individuals by the shape of their repeated offending measures over age or time.

It covers distance-based algorithms such as KmL, which applies k-means to longitudinal data, and likelihood-based latent class growth, which is closely related to the group-based trajectory model. Because different estimators can recover different shapes, the choice of method and of the number of clusters is treated as part of the analysis and checked with validation criteria.

The intuition behind the method

Imagine drawing one offending curve per person across age, then sorting the whole stack of curves into piles so that curves in the same pile look alike and curves in different piles look different. Some people's curves rise and fall sharply in adolescence, some stay flat near zero, some climb steadily — clustering finds the small set of representative shapes that summarize the stack. You can do this geometrically, by measuring how far apart two curves are point by point and applying k-means; or probabilistically, by assuming each pile is generated by its own growth model and assigning curves by likelihood. The framing here is deliberately method-agnostic: the goal is to recover trajectory shapes and then ask which clustering recipe, and how many clusters, the data actually support.

History

Clustering of longitudinal curves has a longer history in statistics than its criminological use. In criminology, Nagin's 2005 monograph on group-based modeling of development sets out the estimation of distinct offending trajectories through latent class growth methods. Genolini and Falissard's 2010 paper on KmL introduced k-means for longitudinal data as an algorithmic alternative to likelihood-based estimation.

When to use it

Use criminal trajectory clustering when you have repeated offending measures per person and want to discover a small number of distinct developmental shapes without committing in advance to one estimator. It is especially useful for exploratory comparison — running k-means for longitudinal data alongside latent class growth and distance-based clustering to see whether the recovered shapes are robust to method. It suits irregular, noisy, or short series where a fully parametric mixture may be fragile, and settings where you want geometric, assumption-light groupings. It is less appropriate when you need the formal probabilistic inference, covariate links, and posterior diagnostics of a single specified mixture model, in which case a dedicated group-based trajectory model is preferable.

Limitations and considerations

  • The pointwise Euclidean distance compares trajectories at the same time index, so unequally spaced or misaligned measures must first be aligned, interpolated, or imputed, and those steps affect the grouping.
  • k-means assignment minimises within-cluster distance to a mean curve and yields no likelihood or posterior membership, so it cannot support formal fit tests.
  • Different estimators and validation indices can recover different numbers and shapes of clusters, so part of the solution depends on the method chosen.
  • Clusters of offending curves inherit the measure used as input (arrests, convictions, or self-reported delinquency), so the recovered shapes reflect that measure as much as the underlying behaviour.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Lets analysts run a distance-based grouping (KmL) and a likelihood-based latent class growth model on the same trajectories and compare the recovered shapes.
  • The distance route groups the observed trajectories directly, so cluster shapes are not forced into a fixed polynomial growth form.
  • Model-based assignment gives posterior membership probabilities, so borderline cases can be identified rather than forced into one cluster.
  • Feature extraction, such as smoothing or growth coefficients, can make short or noisy offending series comparable across individuals.

Applications

  • Recovering distinct offending-curve shapes (flat, adolescence-peaked, chronic) across a longitudinal cohort.
  • Comparing k-means for longitudinal data against latent class growth to test robustness of trajectory groups.
  • Clustering trajectories of arrests, convictions, or self-reported delinquency to build offender typologies.
  • Grouping recidivism or supervision-event curves among justice-involved samples to target services.
  • Clustering co-developing behaviors (substance use, aggression) jointly with offending using multivariate trajectories.

How it works

How it works

1

Each individual contributes a trajectory yᵢ of repeated offending measures over T time points. Clustering either works on these raw aligned sequences directly or first maps them to a feature representation fᵢ — for example smoothing splines, polynomial growth coefficients, or summary shape features — so that curves of differing length or noise can be compared on a common footing.

Formula
\mathbf{y}_i = (y_{i1}, y_{i2}, \ldots, y_{iT}) \ \longrightarrow \ \mathbf{f}_i = \phi(\mathbf{y}_i)
2

Two complementary engines drive the grouping. Distance-based methods (k-means for longitudinal data, hierarchical clustering) define a dissimilarity between trajectories; the classical pointwise Euclidean distance compares values at the same time index t, so it requires equal-length, aligned series. Unequally spaced or misaligned measures must be interpolated, aligned, or imputed onto a common time grid before this distance is applied. Model-based methods instead define a per-cluster generative model and score each trajectory by its log-likelihood ℓᵢⱼ under cluster j. This route rests on assumptions: each cluster's curve follows a specified growth form (for example a polynomial in age), repeated measures are conditionally independent given cluster membership, and the polynomial order and number of clusters are chosen by the analyst and must be checked. Likelihood surfaces can have local optima, so estimation should be run from multiple starting values, and small samples can make solutions unstable.

Formula
d(\mathbf{y}_i, \mathbf{y}_{i'}) = \sqrt{\sum_{t=1}^{T} (y_{it} - y_{i't})^2} \quad \text{or} \quad \ell_{ij} = \log P^{j}(\mathbf{y}_i)
3

Individuals are then assigned to clusters. In the distance-based route, each trajectory joins the cluster whose mean curve μⱼ is nearest, iterating between assignment and mean re-estimation as in k-means. In the model-based route, assignment uses the maximum posterior probability of cluster membership, giving a soft, probabilistic grouping that also quantifies classification uncertainty.

Formula
z_i = \arg\min_{j} d(\mathbf{y}_i, \boldsymbol{\mu}_j) \quad \text{or} \quad z_i = \arg\max_{j} \hat{P}(j \mid \mathbf{y}_i)
4

Because the number and form of clusters are not known in advance, solutions are compared across candidate numbers of clusters and across methods using validation criteria: the Calinski–Harabasz index and silhouette for distance-based solutions, the Bayesian Information Criterion and average posterior probabilities for likelihood-based solutions, plus stability checks under resampling. The Calinski–Harabasz index and BIC are general-purpose criteria, not specific to criminology. The chosen solution balances statistical fit, separation, and substantive interpretability.

Formula
CH(K) = \frac{B(K)/(K-1)}{W(K)/(n-K)}, \quad BIC = -2\hat{\ell} + p \log n

Common pitfalls

  • Using raw offending counts without standardization or level adjustment, so that clusters separate by overall volume rather than by trajectory shape.
  • Choosing the number of clusters from one index when silhouette, Calinski–Harabasz, and BIC disagree; these indices were defined for different estimators and are not on a common scale.
  • Comparing a k-means partition with a latent class solution as if they were equivalent, since one minimises distance and the other maximises likelihood.
  • Treating a k-means solution from a single run as definitive without rerunning from different starting seeds, because the result can depend on initial cluster centres.
  • Ignoring how missing data and unequal spacing are handled, which can dominate distance-based assignments.

Frequently asked questions

How is this different from a group-based trajectory model?

A group-based trajectory model is one specific likelihood-based estimator: a finite mixture of polynomial curves fit by maximum likelihood with posterior membership probabilities. Criminal trajectory clustering is the broader umbrella that also includes purely algorithmic, distance-based approaches such as k-means for longitudinal data and hierarchical clustering of trajectory shapes. The umbrella framing emphasizes choosing and comparing clustering methods and validation criteria, rather than assuming one parametric mixture is correct.

How do I decide how many clusters there are?

Fit solutions across a range of cluster numbers and compare validation indices appropriate to the method — Calinski–Harabasz and silhouette for distance-based clustering, BIC and average posterior probabilities for model-based clustering — and check stability under resampling or different starting seeds. Because indices can disagree, the final choice should weigh statistical fit against parsimony and whether the resulting shapes are substantively interpretable and reproducible.

Should I use a distance-based or a model-based method?

Use distance-based methods like KmL when you want assumption-light groupings of trajectory shapes, especially for noisy or short series, and when you do not need a probability model. Use model-based latent class growth when you need formal likelihood inference, soft probabilistic membership, covariate links, and posterior diagnostics. Running both and comparing the recovered shapes is good practice: agreement across methods suggests the shapes are not artifacts of one estimator, though it does not by itself establish that they correspond to real offender types.

Related methods

Sources

  1. Nagin, D. S. (2005). Group-Based Modeling of Development. Harvard University Press.

    ISBN: 9780674016866
  2. Genolini, C., & Falissard, B. (2010). KmL: k-means for longitudinal data. Computational Statistics, 25(2), 317–328.

    Open DOI reference