📈What Is a Sequence Model
A sequence model is a type of machine learning model designed to handle data where order matters. Unlike models that treat each data point independently, sequence models learn from the order in which data appears, because in much of real-world data, meaning is encoded in that order.
Core Idea
Shuffle the words in a sentence and the meaning can change entirely; shuffle the notes in a melody and it's no longer the same tune. A sequence model's job is to learn the patterns hidden in these before-and-after relationships, not just memorize individual elements.
Original Order
I love eating apples
Shuffled Order
Apples eating love I
Same four words — reorder them and notice whether it still makes sense, or means the same thing.
The Evolution of Sequence Models
RNN (Recurrent Neural Network)
The earliest model designed for sequential data, reading items one at a time — but it tends to "forget" earlier information in long sequences.
LSTM (Long Short-Term Memory)
Builds on RNNs with a gating mechanism that helps retain important earlier information, easing the forgetting problem.
Transformer
Abandons step-by-step reading in favor of an attention mechanism that looks at every position in the sequence at once — faster to train and better at capturing long-range relationships.
Types of Sequence Models
Natural Language
Word order determines meaning in a sentence — the classic use case for sequence models.
Time Series
Stock prices, temperatures, sensor readings — data ordered by time, where later values often relate to earlier ones.
Audio & Signals
Speech and music are essentially waveform sequences ordered in time — change the order, and the content changes too.
Why This Site Uses Sequence Models on Draw Data
Draw results are naturally ordered by draw number, forming a sequence. This site uses sequence models like LSTM and Transformer to explore statistical patterns and distributions in historical data — more as a data-analysis and pattern-exploration exercise than a guarantee of future outcomes. See the "Independent Repeated Events" topic for why.
Sequence Models Aren't Magic
Sequence models excel at learning patterns that genuinely exist in the order of data. But if the underlying data is mathematically independent and random — like a properly run lottery draw — no model, however powerful, can learn a pattern that isn't there. At best it can describe the statistical distribution of past results.