Skip to content
Prev 389229 / 398513 Next

Problem with plotmat package

H
On 09/15/2021 09:40 PM, Jim Lemon wrote:
I am sorry but I think you have it wrong. A transition probability matrix for the rain/nice scenario would be written:

Rain, Nice

Rain |0.25, 0.75|

Nice |0.60, 0.40|

If you sum the transition probabilities for rain or nice, they should each add to 1. Logic dictates if the only two states are rain and nice, and rain continues the next day with a probability of 0.25, nice must have a probability of 0.75. Likewise, the sum of probabilities for nice weather to change to rain, 0.6, and remain the same, 0.4 must add up to 1.

I find that the arrow directions are the opposite of what I expect.