The probability function is the random variable that associates a probability to every possible value of . We also need:
Example
Let the random variable be the result of throwing a dice. Supposing that it has six equiprobable faces, the probabilities of every result are:
It is possible to prove that we have
The graph of the above mentioned function is a bar chart:
