how to sample a Markov chain distribution
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have got a stationery Markov chain distribution:
ans =
0.1444 0.0456 0.0138 0.0126 0.0116 0.0107 0.0052
0.1444 0.0456 0.0138 0.0126 0.0116 0.0107 0.0052
0.1222 0.0386 0.0116 0.0106 0.0098 0.0091 0.0044
0.1444 0.0456 0.0138 0.0126 0.0116 0.0107 0.0052
0.1222 0.0386 0.0116 0.0106 0.0098 0.0091 0.0044
0.1889 0.0596 0.0180 0.0164 0.0151 0.0140 0.0067
0.1333 0.0421 0.0127 0.0116 0.0107 0.0099 0.0048
in which I would like to sample from. Using
datasample(A,128)
makes the output mostly zero all, or certain lines 1 all. If I wanna use the median/mean of the distribution, it will arise the same issue. Does anyone know of a way to sample a Markov chain distribution correctly?
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Markov Chain Models in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!