The Entropy of a Markov Chain

(chillphysicsenjoyer.substack.com)

91 points | by surprisetalk 8 hours ago

5 comments

  • abetusk 2 hours ago
    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?

    • ssivark 2 hours ago
      Here's a thought: once could derive the spectrum of the Markov transition matrix, and assign an entropy to each of the eigenvectors. The dominant eigenvector (highest entropy) would be the ergodic / stationary distribution, but it seems likely that each successive eigenvector would have a little less entropy. One could initialize the system in a "localized" state (very low entropy) and study the thermalization process as each of the low-entropy eigen-components decay away (exponentially, with rates proportional to the corresponding eigenvalue of the transition matrix) finally leaving the system in the high-entropy stationary distribution. The balance between the eigenvalues (exponential rates) and the entropies of respective eigenvectors would characterize the rate of entropy production (at different times) in the Markov chain!
    • abetusk 1 hour ago
      OK, no, I'm wrong. The entropy of a Markov chain with stationary distribution v is [0]:

          -\sum v_i p_{i,j} \log(p_{i,j})
      
      That is, the "entropy" of the transition matrix modified by the stationary distribution.

      [0] https://math.stackexchange.com/questions/1040972/entropy-of-...

      • chermi 1 hour ago
        That is the entropy rate. If I'm understanding your original question correctly, you were asking about the standard equilibrium-defining thermodynamic entropy?
    • chermi 1 hour ago
      Find the equilibrium probabilities from first eigenvector, use definition of entropy like you did. If it's not ergodic then you get subsystems with their own entropies. Second eigenvalue iirc basically characterizes dominant relaxation time.

      This is all if you mean the equilibrium entropy of the underlying system, not the entropy rate.

  • niklasbuschmann 6 hours ago
    Stochastic thermodynamics covers this
    • chermi 5 hours ago
      This predates stochastic thermo quite a bit. Entropy of markov chain is at least 50 y/o, maybe more.
  • BedVibe_Studios 1 hour ago
    [flagged]