Bits Per Reading in the Long Run

Information Theory & Stochastic ProcessesHard+30 XP+30

Bits Per Reading in the Long Run

A cleaning robot wanders between three rooms — Kitchen, Hall, Study — and its room at the next minute depends only on the room it is in now. The transition probabilities are:

Currently in→\to→ Kitchen→\to→ Hall→\to→ Study
Kitchen0.60.60.60.30.30.30.10.10.1
Hall0.30.30.30.50.50.50.20.20.2
Study0.20.20.20.40.40.40.40.40.4

A logger records which room the robot is in once every minute, forever. After the chain has settled into its long-run behaviour, the room recorded on a given minute behaves like a draw from the chain's stationary distribution.

You want the average surprisal of a single logged reading, judged on its own and ignoring which room preceded it — the Shannon entropy of that stationary distribution.

Base-2 logarithms (you will not need all of them):

vvv0.10.10.10.20.20.20.30.30.30.40.40.40.50.50.50.60.60.6
log⁡2v\log_2 vlog2​v−3.3219-3.3219−3.3219−2.3219-2.3219−2.3219−1.7370-1.7370−1.7370−1.3219-1.3219−1.3219−1.0000-1.0000−1.0000−0.7370-0.7370−0.7370

What is that entropy, in bits? Round your answer to 3 decimal places.

Markov Chain

Markov Chain Simulator

Observe convergence to the stationary state as the transition matrix powers update the state probability vector over time.

Transition Rates

P(State A → State B)0.30
P(State B → State A)0.40
TRANSITION MATRIX P
[
0.700.300.400.60
]
Rows sum to exactly 1.0
State Transition Diagram
0.300.400.700.60SUNNY ARAINY B
Probability State Distribution
Sunny A:100.00%
Rainy B:0.00%
Transition Steps:0
Stationary Target:[57.1%, 42.9%]
Regardless of which state you start from (Sunny or Rainy), repeated multiplication by the transition matrix converges to the same stationary distribution.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

bits