Path: blob/master/notebooks/book1/02/student_laplace_pdf_plot.ipynb
1192 views
Kernel: Python [conda env:probml_murphy]
Univariate Gaussian, Laplace and Student t-distribution
In [1]:
In [2]:
Out[2]:
/home/patel_zeel/miniconda3/envs/probml_murphy/lib/python3.9/site-packages/probml_utils/plotting.py:26: UserWarning: LATEXIFY environment variable not set, not latexifying
warnings.warn("LATEXIFY environment variable not set, not latexifying")
In [3]:
Out[3]:
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
In [5]:
Out[5]:
/home/patel_zeel/miniconda3/envs/probml_murphy/lib/python3.9/site-packages/probml_utils/plotting.py:79: UserWarning: set FIG_DIR environment variable to save figures
warnings.warn("set FIG_DIR environment variable to save figures")
In [6]:
Out[6]:
/home/patel_zeel/miniconda3/envs/probml_murphy/lib/python3.9/site-packages/probml_utils/plotting.py:79: UserWarning: set FIG_DIR environment variable to save figures
warnings.warn("set FIG_DIR environment variable to save figures")
Demo
You can visualize the effect of loc, scale, and degree of freedom on the above three distributions by changing them.
In [7]:
In [8]:
Out[8]:
interactive(children=(FloatSlider(value=5.05, description='dof', max=10.0, min=0.1), FloatSlider(value=0.0, de…
In [ ]: