Path: blob/master/notebooks/book1/03/gauss_infer_2d.ipynb
1193 views
Kernel: Python 3.7.13 ('py3713')
Illustration of Bayesian inference for a 2d Gaussian random vector z
Importing probml_utils library
In [1]:
Importing other libraries
In [7]:
Set latexify params
In [8]:
Out[8]:
/home/patel_karm/probml-utils/probml_utils/plotting.py:26: UserWarning: LATEXIFY environment variable not set, not latexifying
warnings.warn("LATEXIFY environment variable not set, not latexifying")
Function declarations
In [9]:
In [13]:
In [11]:
In [14]:
Out[14]:
(<Figure size 432x288 with 2 Axes>,
<AxesSubplot:title={'center':'Posterior after 10 points'}, xlabel='$z_1$', ylabel='$z_2$'>)
In [8]:
Out[8]:
Interactive plot
In [9]:
Out[9]:
interactive(children=(IntSlider(value=5, description='random_state', max=10, min=1), IntSlider(value=10, descr…