library(markovchain)
## Warning: package 'markovchain' was built under R version 4.2.2
## Package: markovchain
## Version: 0.9.0
## Date: 2022-07-01
## BugReport: https://github.com/spedygiorgio/markovchain/issues
Start_Mat <- matrix(c(1,0,0,0,0,0,0,0,0,
.6,0,.4,0,0,0,0,0,0,
0,.6,0,.4,0,0,0,0,0,
0,0,0.6,0,.4,0,0,0,0,
0,0,0,.6,0,.4,0,0,0,
0,0,0,0,.6,0,.4,0,0,
0,0,0,0,0,.6,0,.4,0,
0,0,0,0,0,0,.6,0,.4,
0,0,0,0,0,0,0,0,1
),nrow=9)
Start_Mat <- t(Start_Mat)
MarkovChain<- new('markovchain',transitionMatrix=Start_Mat)
absorptionProbabilities(MarkovChain)
## 1 9
## 2 0.9796987 0.02030135
## 3 0.9492466 0.05075337
## 4 0.9035686 0.09643140
## 5 0.8350515 0.16494845
## 6 0.7322760 0.26772403
## 7 0.5781126 0.42188739
## 8 0.3468676 0.65313243
##The probabilities of winning in the timid strategy is .0203 ```