## Summary

- The values of a discrete random variable are obtained by counting, thus making it known as countable
- Uniform distribution simply means that when all of the random variable occur with equal probability
- A random variable with probability density function is
- the expectation and variance of the data we use the following formulas

You must already be aware of the fact that there are two types of random variables, discrete random variables and continuous random variables. We have already discussed continuous random variable in this chapter we will discuss about the discrete random variable. The values of a discrete random variable are obtained by counting, thus making it known as countable.

You should by now also be aware of these two basic characteristics of a A discrete probability distribution function (PDF).

Each probability is between zero and one, inclusive.

The sum of all the probabilities is always equal to one.

Now that discrete random variable is clear. Lets, discuss uniform distribution.

Uniform distribution simply means that when all of the random variable occur with equal probability. Suppose that the random variable X can assume n different values. Also consider n is constant. Then we can say that:

For all values of = 0, 1, 2…. N

P(X = x) = 0 for other values of

#### Example #1

Q. Suppose a fair die is rolled. What is the probability that the die will land on 5?

*Solution:*

We are already aware that a die has 6 sides, thus when a die is rolled we already know that the outcome will be one of the following {1, 2, 3, 4, 5, 6}.

We also know that each possible outcome is a random variable (X), and since the die is fair all the outcomes have equal chances to occur ().

Thus, we have a uniform distribution.

Therefore we can say:

In order to find the expectation and variance of the data we use the following formulas:

We can thus write it as .

#### Example #2

Q. If we repeat the dice rolling experiment from above (Example #1) and we change the question a little bit from what is the probability that it will land on 5 to what is the probability that the die will land on a number that is smaller than 5?

*Solution:*

When already know that we have a uniform distribution as we discussed before that when a die is rolled, there are 6 possible outcomes that it can land on {1, 2, 3, 4, 5, 6}, with equal chances on landing on either number (if the die is fair of course).

The probability that the die will land on a number smaller than 5 is equal to:

P( X < 5 ) = P(X = 1) + P(X = 2) + P(X = 3) + P(X = 4)

*Note: We did not take P(X < 5) because it’s not smaller than equal to 5. If the question said only then we would take P(X = 5).*