Differences between revisions 12 and 13
Revision 12 as of 2019-04-07 06:54:35
Size: 2644
Editor: chapoton
Comment: repair first one
Revision 13 as of 2019-04-07 06:57:13
Size: 2666
Editor: chapoton
Comment: repair second one
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)

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)