|
Size: 2644
Comment: repair first one
|
← Revision 14 as of 2020-06-01 18:40:49 ⇥
Size: 2724
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 51: | Line 51: |
| def rwalk3d(n=(50,1000), frame=True): pnt = [0,0,0] |
def rwalk3d(n=slider([50..1000]), frame=True): pnt = [0, 0, 0] |
| Line 55: | Line 55: |
| pnt[0] += random()-0.5 pnt[1] += random()-0.5 pnt[2] += random()-0.5 |
pnt[0] += random() - 0.5 pnt[1] += random() - 0.5 pnt[2] += random() - 0.5 |
| Line 59: | Line 59: |
| show(line3d(v,color='black'),aspect_ratio=[1,1,1],frame=frame) | show(line3d(v, color='black'), aspect_ratio=[1, 1, 1], frame=frame) |
| Line 76: | Line 76: |
| html('<h3>The Occasionally Dishonest Casino</h3>') html('Emissions:'+str(test[0]).replace(',','').replace(' ','')[1:-1]) |
pretty_print(html('<h3>The Occasionally Dishonest Casino</h3>')) pretty_print(html('Emissions:'+str(test[0]).replace(',','').replace(' ','')[1:-1])) |
| Line 80: | Line 80: |
| html('Viterbi: '+vit_str) | pretty_print(html('Viterbi: '+vit_str)) |
| Line 83: | Line 83: |
| html('Actual: '+ actual_str)}}} | pretty_print(html('Actual: '+ actual_str)) }}} |
Sage Interactions - Statistics and Probability
goto interact main page
Contents
A Random Walk
by William Stein
3D Random Walk
Hidden Markov Model: The Occasionally Dishonest Casino
by Marshall Hampton
Based on the classic example in "Biological Sequence Analysis" by Durbin et al.
