Probability distributions and special functions with scipy


  • The file in jupyter notebook format is here

google colaboratory

  • To run it in google colaboratory here summary/summary_nb.ipynb)

Author’s environment

The author’s OS is macOS, and the options are different from those of Linux and Unix commands.

! sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G2022
Python -V
Python 3.7.3

Import the basic libraries and check their versions.

%matplotlib inline
%config InlineBackend.figure_format = 'svg'

import matplotlib
import matplotlib.pyplot as plt
import scipy
import numpy as np

print('matplotlib version :', matplotlib.__version__)
print('scipy version :', scipy.__version__)
print('numpy version :', np.__version__)
matplotlib version : 3.0.3
scipy version : 1.4.1
numpy version : 1.16.2

Uses of major probability distributions

Probability distributions are used in a variety of places in data analysis, etc. Let’s briefly summarize them. Negative binomial, for example, is a probability distribution that is often used in fields such as marketing.