Path: blob/master/notebooks/book1/02/binom_dist_plot.ipynb
1193 views
Kernel: Python 3 (ipykernel)
Plots the pmfs of binomial distributions with varying probability of success parameter
In [1]:
In [2]:
Out[2]:
/home/patel_zeel/miniconda3/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.)
/home/patel_zeel/miniconda3/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 see different examples of binomial distributions by changing the theta in the following demo.
In [4]:
Out[4]:
interactive(children=(FloatSlider(value=0.5, description='theta', max=0.9, min=0.1), Output()), _dom_classes=(…