7
$\begingroup$
tmat = Uncompress[
   "1:eJxTTMoPSuNjYGAoZgESPpnFJai8TCDNkMYEEuIAEkGJJZn5eYk5mYxATiYTHjkW\
AnJgg0kisDgMr+\
sIuQCfryh1GEGzCQYNNcKOilGJbjJlrqN2VBLpOsIxS5OopEbY0S4qKXQdjaOS/\
JilR1SSFXZ0i0pSXUffqCQhZgcgKon0/QBFJTkOo4gAGQwAi1ootQ=="];

mproc = DiscreteMarkovProcess[1, tmat];

fpd = FirstPassageTimeDistribution[mproc, Length@tmat];

RandomVariate[fpd]

Is met with:

enter image description here

10.3/Windows 7

Seems fine in 9.x/Windows.

$\endgroup$
4
  • 3
    $\begingroup$ Version 11 also chokes on this. $\endgroup$ Commented Oct 6, 2016 at 5:36
  • 1
    $\begingroup$ @J.M. - That's a bummer: some important stuff that was broken in 9.x for MC got addressed, but some basic functionality gets busted (it appears it might be related to PDF/CDF handling for the chain under the covers - I also see some strange results using them directly). Tagging as bug and when/if time permits, reporting to WRI. Thanks for confirmation. $\endgroup$
    – ciao
    Commented Oct 6, 2016 at 7:01
  • 1
    $\begingroup$ This works in 12.2. $\endgroup$
    – JimB
    Commented Feb 11, 2021 at 4:17
  • $\begingroup$ @JimB - well, +1, thanks for the ping! $\endgroup$
    – ciao
    Commented Feb 11, 2021 at 6:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.