Differences between revisions 12 and 14 (spanning 2 versions)
Revision 12 as of 2019-04-07 06:54:35
Size: 2644
Editor: chapoton
Comment: repair first one
Revision 14 as of 2020-06-01 18:40:49
Size: 2724
Editor: kcrisman
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

A Random Walk

by William Stein

randomwalk.png

3D Random Walk

randomwalk3d.png

Hidden Markov Model: The Occasionally Dishonest Casino

by Marshall Hampton

Based on the classic example in "Biological Sequence Analysis" by Durbin et al.

hmm_casino.png

interact/stats (last edited 2020-06-01 18:40:49 by kcrisman)