Definition of Random variable
Decide an experiment random with S as sample space. A function X which assigns to every outcomes $s \in S$, a real number X(s) = x is called a random variable.
Example:
When we toss a coin. S the sample space {H, T}. Defining a random variable X as:
- X(H) = 1 (if the result is heads)
- X(T) = 0 (if the result is tails)
Definition: Discrete random variable and probability mass function.
A random variable called X, which is able to take on a countable number of values is a discrete random variable, which probability