October 2019
Beginner to intermediate
674 pages
16h 43m
English
The uniform distribution models a random variable, X, that can take any value within the range [a, b] with equal probability.
The PDF is given by
for a ≤ x ≤ b, and 0 otherwise.
The expectation and variance are given respectively by the following expressions:


A continuous uniform probability distribution is generated and plotted for various sample sizes in the following code:
In [11]: np.random.seed(100) ...
Read now
Unlock full access