Path: blob/master/notebooks/book2/12/random_walk_integers.ipynb
1192 views
Kernel: Python [conda env:py3713_2]
Symmetric random walk on uniform distribution
In [1]:
In [5]:
Out[5]:
/home/patel_zeel/miniconda3/envs/py3713_2/lib/python3.7/site-packages/probml_utils/plotting.py:26: UserWarning: LATEXIFY environment variable not set, not latexifying
warnings.warn("LATEXIFY environment variable not set, not latexifying")
We genereate samples from following distribution The proposal distribution is
In [6]:
In [19]:
In [8]:
In [17]:
Out[17]:
DeviceArray([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0], dtype=int32)
In [18]:
Out[18]:
In [16]:
Out[16]:
0.99999994 0.047619047619047616 [0.04665894 0.04683788 0.04656532 0.04708623 0.04656531 0.04738191
0.04665894 0.04769868 0.04683788 0.04800836 0.04708624 0.04828346
0.04738192 0.04849952 0.04769868 0.04863734 0.04800837 0.04868469
0.04828347 0.04863734 0.04849952]
In [11]:
Out[11]:
DeviceArray([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0], dtype=int32)
In [12]:
Out[12]:
In [13]:
Out[13]:
0.99999994 0.047619047619047616 [0.04665894 0.04683788 0.04656532 0.04708623 0.04656531 0.04738191
0.04665894 0.04769868 0.04683788 0.04800836 0.04708624 0.04828346
0.04738192 0.04849952 0.04769868 0.04863734 0.04800837 0.04868469
0.04828347 0.04863734 0.04849952]
In [ ]: