MCMC: Person Visiting Rooms (1D)

Room height represents the target probability. The person moves according to a Metropolis–Hastings MCMC rule.
Top: Room sizes (target distribution) with current state (red dot)  |  Bottom-left: MCMC trajectory (wiggle)  |  Bottom-right: Empirical visit frequency (result)