Discrete random uniform distribution

Standard series results

It’s important to remember our standard series results when working with discrete random uniform distributions. The main two are these ones:

Transformations

Another reminder of how we transform discrete random probabilities.

If Y=aX+b is a transformation of the DRV X:

Rectangular distribution

If we have something that looks like a uniform distribution, but it’s a rectangle instead of vertical lines of the same height, then it’s not a uniform distribution, but instead a rectangular distribution.

You should be able to tell: the graphs of rectangular distributions are, well, rectangles.

Notation for distributions

We can represent a probability distribution using a notation like this:

That means that X is an A distribution (whatever A may be) and we need to know the parameters: b, c, etc. to be able to work with it.

Uniform distribution notation

X \sim U(n)

This means that X is a discrete random variable which follows a uniform distribution, from 1 to n.

Example: rolling a die

For a normal, fair, 6-sided die, our distribution is:

X \sim U(6)

Let’s say we were to write a table of our probabilities for this distribution. It would look like this:

x123456\sum
p\frac16\frac16\frac16\frac16\frac16\frac16
xp\frac16\frac26\frac36\frac46\frac56\frac66\frac{21}{6}
x^2p\frac16\frac46\frac{9}{6}\frac{16}{6}\frac{25}{6}\frac{36}{6}\frac{91}{6}

Let’s calculate our expected value and variance for the distribution:

General formula

We’ve calculated the expected value and variance for a specific example, but we can do it more generally. Let’s say that P(X=r)=\frac1n for r=1, 2, ..., n.

We can put this into a table to visualise it:

x123n\sum
p\frac1n\frac1n\frac1n\frac1n1
xp\frac1n\frac2n\frac3n\frac{n}{n}\frac{n(n+1)}{2n}
x^2p\frac1n\frac4n\frac9n\frac{n^2}{n}\frac{n(n+1)(2n+1)}{6n}

To calculate our expected value:

Now, our variance. This one’s a little more complicated:

For a discrete random variable X which follows a uniform distribution from 1 to n:

Probability of a specific value

To find the probability of getting x from a discrete random variable following a uniform distribution:

P(X=x)=\frac1n\quad\text{for values in set} 0\quad\quad\quad\quad\quad\quad\quad \text{otherwise}

flashcards

QuestionAnswer
X \sim U(n)X is a discrete random variable following a uniform distribution from 1 to n.
What is the sum of r from 1 to n?\frac12 n(n+1)
What is the sum of r^2 from 1 to n?\frac16 n(n+1)(2n+1)
If Y = aX + b, what is E(Y)?aE(X) + b
If Y = aX + b, what is Var(Y)?a^2 Var(X)
What is the shape of the graph of a rectangular distribution?A rectangle.
How do you notate a uniform distribution for a discrete random variable X with n outcomes?X \sim U(n)
For a DRV X following U(6), list the values of P(X=r) for r=1 to 6.Each is \frac16.
Calculate E(X) for X \sim U(6)3.5
Calculate Var(X) for X \sim U(6)\frac{35}{12}
What is the general formula for E(X) when X \sim U(n)?\frac{n+1}{2}
What is the general formula for Var(X) when X \sim U(n)?\frac1{12}(n^2 - 1)
What is the probability of X=x for a DRV following a uniform distribution from 1 to n?\frac1n for values in the set, 0 otherwise.