The probability function

The probability function is the random variable X that associates a probability pi to every possible value of X (x1,x2,,xn). We also need: 0pi1p1+p2+p3++pn=ipi=1

Example

Let the random variable X be the result of throwing a dice. Supposing that it has six equiprobable faces, the probabilities of every result are: p(X=1)=P(X=2)==P(X=6)=16 It is possible to prove that we have ipi=616=1 The graph of the above mentioned function is a bar chart:

imagen