# How Boltzmann's Entropy Applies to Markov Chains

Original title: The Entropy of a Markov Chain

> Hacker News story 49183017 · language: en · submitted 2026-08-05
> Web version: https://zeli.app/story/49183017
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 139 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 15
[original](<https://chillphysicsenjoyer.substack.com/p/the-entropy-of-a-markov-chain>) · [HN discussion](<https://news.ycombinator.com/item?id=49183017>)

## Summary

The author explores how to define entropy for Markov chains, motivated by Dyson's toy model of a cell. They first review Clausius's thermodynamic entropy and Boltzmann's statistical definition, using Curie's magnet model to illustrate counting microstates. Then they show how to compute entropy for an equilibrium distribution of a Markov chain via multinomial coefficients, and hint at future work on entropy evolution.

## Key quote

> Boltzmann showed that entropy can be written as a function of the number of states that a system can be in, if we fixed what the macro state variables were.

## HN discussion (15 comments)

### [abetusk](<https://news.ycombinator.com/item?id=49187896>)

> So how does one calculate the entropy of a Markov Chain? Is it actually specified? If so, it seems buried.
>
> The Markov chain provided as an example has the edge labels swapped (np should be qp and qp should be np). Regardless, what is the entropy of the example provided?
>
> The problem with Markov chains is that states are dependent, so simply cataloguing states now violates the basic entropy calculation as neighboring states are now dependent on each other.
>
> If the Markov chain is ergodic then maybe you can talk about the entropy of the stationary distribution? Then it's just $-\sum p_i lg(p_i)$ of the stationary distribution probabilities?
>
> The article alludes to how entropy evolves. In the context of ergodic Markov chains, this is related to the size of the second eigenvalue?

### [niklasbuschmann](<https://news.ycombinator.com/item?id=49184552>)

> Stochastic thermodynamics covers this

---

## Cite

- Page: https://zeli.app/story/49183017
- Date: 2026-08-05
- Source: chillphysicsenjoyer.substack.com (https://chillphysicsenjoyer.substack.com/p/the-entropy-of-a-markov-chain)
- Hacker News: https://news.ycombinator.com/item?id=49183017

## Other languages

- zh: https://zeli.app/zh/story/49183017 · markdown: https://zeli.app/zh/story/49183017.md
- ja: https://zeli.app/ja/story/49183017 · markdown: https://zeli.app/ja/story/49183017.md
- ko: https://zeli.app/ko/story/49183017 · markdown: https://zeli.app/ko/story/49183017.md
- de: https://zeli.app/de/story/49183017 · markdown: https://zeli.app/de/story/49183017.md
- es: https://zeli.app/es/story/49183017 · markdown: https://zeli.app/es/story/49183017.md
