2644
Comment: repair first one
|
2666
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
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.