Uniform Distribution

## Description

The Uniform Distribution Probability Density Function is for all $b>a$

(1)\begin{align} P(x)=\frac{1}{b-a}. \end{align}

The Sage cell plots the uniform distribution for b=2 and a=0.

## Sage Cell

#### Code

```
a=0
b=2
D=RealDistribution('uniform', [a, b])
p1=D.plot((x,a,b))
p1
```

## Options

None

## Tags

Primary Tags: Probability

Secondary Tags: Continuous Distributions: Uniform

## Related Cells

## Attribute

Permalink: http://doc.sagemath.org/pdf/en/reference/probability/probability.pdf

Author: Sage Development Team

Date: 09 Oct 2018 09:03

Submitted by: James A Phillips