Discrete Uniform Distribution

## Description

The Discrete Uniform Distribution is for all $0 \leq x \leq n$

(1)
\begin{align} P(x) = \frac{ 1 }{ n } . \end{align}

The Sage cell below gives back the probability of $x = 3$ when $n = 10$.

## Sage Cell

#### Code

x = 0
n = 10
P(x) = 1 / n
P(x)


None

## Tags

Primary Tags: Probability

Secondary Tags: Discrete Distributions: Uniform

None