- Introduced by
- Andrew Abbott (introduced to sociology)
- Year
- 1980s–2000 (sociological consolidation)
- Type
- Holistic analysis of categorical state sequences over time
- Family
- Life-course / trajectory methods
What does it do?
Sequence analysis is a holistic method for studying ordered categorical trajectories, such as month-by-month employment states, family life-course events, or daily activity patterns.
It treats each individual's whole sequence as a unit, measures how dissimilar pairs of sequences are, and groups them into a typology of characteristic pathways. Introduced to sociology by Andrew Abbott, it shifts attention from isolated transitions to the shape of entire life courses.
The intuition behind the method
Many quantitative methods divide a life into separate transitions, such as getting a job or getting married, and model each one in isolation. Sequence analysis keeps the trajectory whole and asks how similar two people's entire paths are. The comparison works much like comparing two strings of letters by counting the edits needed to turn one into the other. Once every pair of trajectories has a dissimilarity score, the cases can be grouped into a small number of recognizable life-course types, such as 'continuous full-time work', 'interrupted careers', or 'early exit'. These types then become objects of further analysis.
History
Optimal matching borrows from edit-distance methods used for comparing strings. Andrew Abbott is credited with introducing sequence analysis to sociology, where it was used to study careers and life courses. Abbott and Tsay (2000) reviewed the social-science studies that had applied optimal matching and reported that the most promising results came from studies of careers and of sequentially organized cultural artifacts. The software TraMineR, documented in Gabadinho et al. (2011), provides a common implementation of the workflow.
When to use it
Choose sequence analysis when your data are ordered categorical trajectories and your interest lies in their holistic shape: typical pathways, timing, ordering, and duration. It suits life-course research on careers, families, residence, or education, as well as daily time-use and any process recorded as a string of categorical states. It is a descriptive and exploratory method, not a causal or inferential model. It does not test hypotheses about why trajectories take their shape, and its results depend on the dissimilarity definition and cost scheme. Do not use it for continuous outcomes, for very long sequences with large alphabets unless the states are first simplified, or when the goal is explicit modeling of transition probabilities, as in Markov or event-history models. Before applying the method, check three assumptions. First, time points should be equally spaced and share a common origin, or any misalignment should be made explicit. Second, the state alphabet should be mutually exclusive and exhaustive. Third, the treatment of missing or censored periods must be decided in advance, for example by exclusion, a dedicated missing-state category, or truncation. These choices change the dissimilarities and should be reported with the results.
Limitations and considerations
- Largely descriptive: it builds typologies but does not by itself explain or causally test why trajectories differ.
- Results are sensitive to the chosen dissimilarity measure and to the substitution and indel cost scheme, which are partly arbitrary.
- Clustering imposes discrete types on what may be continuous variation, and the number of clusters is a matter of judgment.
- Computation and memory scale with the square of the sample size, because the full pairwise distance matrix must be stored.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Preserves the whole trajectory — order, timing, and duration — instead of reducing it to isolated transitions.
- Produces an interpretable empirical typology of pathways that can feed downstream regression or comparison.
- Flexible choice of dissimilarity measures lets the analyst emphasize timing, sequencing, or state spells.
- Rich visualization (index plots, state-distribution plots) communicates complex longitudinal patterns clearly.
Applications
- Building typologies of employment and career trajectories from panel labor-market data.
- Studying family life-course pathways such as partnership and childbearing sequences.
- Analyzing residential and migration histories.
- Examining educational and school-to-work transition patterns.
- Describing daily activity and time-use sequences.
How it works
How it works
Each unit is represented as an ordered sequence of categorical states drawn from a fixed alphabet, for example {employed, unemployed, education, inactive} recorded at each time point. The temporal ordering and the duration spent in each state are preserved. This is what distinguishes a sequence from a simple set of events.
Formula
x_i = (x_{i1}, x_{i2}, \dots, x_{iT}),\quad x_{it} \in \Sigma\ \text{(alphabet of states)}A dissimilarity is computed for every pair of sequences, quantifying how costly it is to transform one into the other. Optimal matching does this with substitution and insertion/deletion (indel) operations, each with an assigned cost. Alternatives include Hamming distance, longest-common-subsequence distance, and transition-rate-based distances, each of which emphasizes different aspects of similarity.
Formula
d(x_i, x_j) = \text{cost of transforming } x_i \text{ into } x_jComputing the dissimilarity for all pairs produces an N×N distance matrix that summarizes the relational structure of the whole sample's trajectories. This matrix, rather than the raw sequences, is the input to the grouping step.
Formula
D = [\,d(x_i, x_j)\,]_{N \times N}The distance matrix is partitioned into K clusters of similar trajectories, typically by Ward hierarchical clustering or by partitioning around medoids. Each cluster is interpreted as a typical pathway. The number of clusters should not be fixed in advance or chosen to fit a preferred narrative. Instead, compute cluster-quality indices, such as the average silhouette width and the Calinski–Harabasz index, across a range of candidate values of K, and balance them against interpretability and parsimony. These indices often favour different values of K, so no single index settles the question. Cluster membership can then serve as a categorical outcome or predictor in further models.
Formula
\text{cluster } D\ \text{(e.g., Ward) into } K\ \text{typical trajectory types}Each cluster and the sample as a whole are summarized with sequence descriptives. These include the cross-sectional state distribution at each time point, modal-state and representative sequences, and complexity measures such as within-sequence entropy and turbulence, which describe how orderly or volatile the trajectories are. Higher within-sequence entropy indicates a more even spread across the states visited. Higher turbulence indicates more frequent changes between states and less uniform spell durations. Both measures depend on sequence length and alphabet size, so comparisons between sequences of different lengths require normalization or should be made with caution. Interpret values relative to the sample rather than against fixed cut-off values.
Formula
\text{describe entropy, turbulence, state distribution } d_t(s)\ \text{per cluster}Common pitfalls
- Choosing optimal-matching costs, especially indel relative to substitution, without justification and then treating the resulting typology as objective.
- Selecting the number of clusters to fit a preferred narrative rather than using cluster-quality indices.
- Comparing sequences of different lengths or with misaligned time origins without addressing the alignment.
- Interpreting cluster membership as causal, or as a fixed individual trait, rather than as a summary of an observed pathway.
Frequently asked questions
What is the relationship between sequence analysis and optimal matching?
Optimal matching is the most common way to compute the pairwise dissimilarities at the core of sequence analysis, but it is only one of several distance measures. Sequence analysis is the broader workflow of representing sequences, computing distances, clustering, and describing the resulting groups. Within that workflow, optimal matching, Hamming distance, or transition-based distances can each serve as the distance step.
How do I choose the number of trajectory clusters?
Compute cluster-quality indices across a range of candidate values of K, and balance those results against interpretability and parsimony. There is no single correct number. The choice should be justified both by statistical quality measures and by the substantive meaning of the resulting types.
Is sequence analysis a causal or inferential method?
No. It is fundamentally descriptive and exploratory: it summarizes and classifies trajectories. Causal or inferential questions are addressed afterward, for example by using cluster membership as a variable in a regression, by fitting event-history models, or by combining sequence analysis with other designs. Treating the typology itself as an explanation is a common misuse.
Related methods
Sources
Abbott, A., & Tsay, A. (2000). Sequence analysis and optimal matching methods in sociology: review and prospect. Sociological Methods & Research, 29(1), 3–33.
Open DOI referenceGabadinho, A., Ritschard, G., Müller, N. S., & Studer, M. (2011). Analyzing and visualizing state sequences in R with TraMineR. Journal of Statistical Software, 40(4), 1–37.
Open DOI referenceEveritt, B. S., Landau, S., & Lee, M., Cluster Analysis, section 9.8 (Summary); page number not recorded in the library extract