Skip to content

Comments

Put probability on the diagonals of P so that process doesn't cycle#3

Open
atorch wants to merge 2 commits intomasterfrom
markov-puzzle-with-rooms
Open

Put probability on the diagonals of P so that process doesn't cycle#3
atorch wants to merge 2 commits intomasterfrom
markov-puzzle-with-rooms

Conversation

@atorch
Copy link
Owner

@atorch atorch commented Apr 29, 2022

Put probability on the diagonals of P so that process doesn't cycle between even and odd states


## Put some probability on the diagonals of the transition matrix
## Under P_with_cycles, the state would cycle between even and odd numbers
P <- 0.1 * diag(length(states)) + 0.9 * P_with_cycles
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment already says "some probability", which suggests that the 0.1 is arbitrary, but still that number looks suspicously like 1 / n_people. If this probability is indeed arbitrary, it might be better to take a different number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants