State Sequence Analysis (Optimal Matching Distances and Sequence Typology)
State sequence analysis treats each life course, career or care pathway as a string of states over time. Optimal matching measures how different two sequences are by the cheapest set of insertions, deletions and substitutions that turns one into the other, and clustering of these distances gives a typology of trajectories.
상태 계열 분석은 생애 경로, 경력, 진료 경로를 시간에 따른 상태의 나열로 봅니다. 최적 정합은 한 계열을 다른 계열로 바꾸는 삽입, 삭제, 대체의 최소 비용으로 두 계열의 차이를 재고, 이 거리를 군집화하여 경로의 유형을 얻습니다.
We observed employment status every year for eight years. What typical career patterns are there?
8년 동안 해마다 취업 상태를 관찰했습니다. 전형적인 경력 유형은 무엇입니까?
The method computes optimal-matching distances with constant or transition-rate substitution costs, groups the sequences by Ward clustering with the number of types chosen by the silhouette, and reports each type's size and medoid sequence with the state distribution and entropy at each time point.
When to use State Sequence Analysis (Optimal Matching Distances and Sequence Typology)
- Each case has a categorical state at each of several ordered time points
- Whole trajectories, not single transitions, are of interest
- A typology of pathways is needed for later analysis
When to use something else
- Interest is in transition probabilities between consecutive states: use Markov Chain Transition Analysis
- The series are numeric: use Time Series Clustering (DTW K-Means)
Assumptions and requirements
- Sequences aligned on a common time axis and of equal length
- Cost settings meaningful for the research question
- No missing states (incomplete sequences are dropped)
What the analysis reports
- Optimal-matching distance matrix
- Clusters with sizes, medoids and silhouette
- Transition-rate and substitution-cost matrices
- State distribution and entropy over time
How to report it
Optimal matching and Ward clustering of [value] sequences gave [value] types (average silhouette = [value]).
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn at a stated tolerance of 1e-12.
독립 계산. scikit-learn 대조 참조 시험 1건 통과(허용오차 1e-12).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run State Sequence Analysis (Optimal Matching Distances and Sequence Typology) on Quorant
- Data you need
- a table (CSV or Excel) with item columns (e.g. questionnaire items)
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.