n> <span class="mf">0.2</span><span class="p">]])</span>
<span class="gp">   ...: </span>

<span class="gp">In [10]: </span><span class="n">MarkovChain</span><span class="o">.</span><span class="n">from_matrix</span><span class="p">(</span><span class="n">states</span><span class="p">,</span> <span class="n">transition_matrix</span><span class="p">)</span>
<span class="gh">Out[10]: </span><span class="go"></span>
<span class="go">       rainy  sunny</span>
<span class="go">rainy    0.1    0.9</span>
<span c