Glossary

What is Markov chain?

In Turkish: Markov zinciri · Topic: Math foundations

A mathematical model in which a system moves between states with certain probabilities, and the next state depends only on the current state, not on the history.

How does it work?

First the possible states are listed, for example sunny, cloudy and rainy for the weather. Then the probability of moving from each state to every other one is set, such as the chance that a sunny day is followed by a cloudy one. The chain moves forward as if rolling dice with those probabilities, and at each step it looks only at the present state; what happened yesterday does not matter. This memoryless property makes the calculations much easier. The transition probabilities can be estimated by counting in observed data.

Why does it matter?

The Markov chain is one of the basic building blocks for modeling probabilistic, sequential processes in AI. The mathematical framework of reinforcement learning and many sampling methods rest on this idea. Early simple language models that predicted word sequences used similar logic, whereas today's large models take a much longer context into account.

Example

A basic next-word suggestion on a phone keyboard can be thought of as a Markov chain that looks only at the last word typed and suggests the most likely follower.

FAQ

What does the Markov property mean?

It means the future depends only on the present state, not on the past. Even if we do not know how the system reached its current state, the probabilities for the next step stay the same.

Is a Markov chain the same as a hidden Markov model?

No. In a Markov chain the states are observed directly. In a hidden Markov model the states are hidden and only the observations they produce are visible; this approach was long used in speech recognition.

All terms