Geometry Solver
Home › Probability and statistics

How to build the distribution function F(x) from a probability table

The recipe: probabilities must sum to 1, then accumulate

A discrete random variable is given by a table: the values it takes and the probability of each. Two facts do all the work. First, the probabilities of the whole table add up to - that is what lets you recover a missing entry. Second, the distribution function accumulates them from left to right, so between two neighbouring values of it is constant, and at each value it jumps by exactly the probability of that value. The graph is therefore a staircase that starts at and ends at . One warning about conventions: this textbook defines with a strict inequality. Many English-language courses define instead; the staircase is the same, only the endpoints of each step change from open to closed.

Problem

A random variable is given by the distribution table

Find the distribution function of and draw its graph.

2340.20.61xF(x)
The graph of F(x): a staircase that jumps by the probability of each value and stays at 1 afterwards.

Answer

, and
Checked by hand: the missing probability and all four steps are correct for the convention F(x) = P(X < x).

Step-by-step solution

1. Recover the missing probability

The probabilities in the table must add up to . Call the unknown one :

So .

2. Accumulate the probabilities

The distribution function collects everything strictly to the left of , that is . Walk along the axis: For no value of is smaller than , so

For only the value is to the left:

For the values and are to the left:

For all three values are to the left:

3. Write it as one formula

4. Draw the staircase

The graph is constant between the values and jumps at by , and - exactly the probabilities from the table. It starts on the axis at height and stays at height to the right of the last value, as every distribution function must.

Add to Chrome - solve your own

Screenshot any problem on your screen and get the steps. Chrome on a computer; free.