topic badge
Standard level

7.04 Applications of discrete random variables

Lesson

 

When we are asked to model a particular situation using a discrete probability distribution, we are being asked to read and interpret an experiment and represent the probability distribution as a table or a function.

In this section where we're mainly dealing with discrete random variables, we'll mostly be constructing tables to represent our distributions.

How to construct a discrete probability distribution

Step One: Define exactly what your random variable $X$X represents.

Note: You can use any capital letter for your random variable, but most often we use $X$X

Step Two: Consider the possible outcomes $X$X can take.

Step Three: Devise a method for calculating the probabilities for each outcome.

Note: The main methods you will use here is either constructing a sample space (the most common being a tree diagram or a table) or using counting techniques (such as combinations).

Step Four: Calculate the probabilities and represent them in a table together with each outcome.

 

Worked examples

Example 1

A fair standard die is thrown and the number of dots on the uppermost face is noted.

Let $X$X be the number of dots on the uppermost face.

Construct the probability distribution for $X$X.

Think: In this example the random variable has already been defined for us. All we need to do is determine the number of possible outcomes and then work out their associated probabilities.

Do: The outcomes for $X$X are $1,2,3,4,5$1,2,3,4,5 and $6$6 since we're talking about rolling a standard die. We also know the probabilities for each are $\frac{1}{6}$16 since each outcome is equally likely.

Now we construct a table of values.

$x$x $1$1 $2$2 $3$3 $4$4 $5$5 $6$6
$P(X=x)$P(X=x) $\frac{1}{6}$16 $\frac{1}{6}$16 $\frac{1}{6}$16 $\frac{1}{6}$16 $\frac{1}{6}$16 $\frac{1}{6}$16

And there we have our probability distribution.

Example 2

A pencil case contains $5$5 blue pens and $3$3 red pens. $4$4 pens are drawn randomly from the pencil case without replacement.

Let $X$X represent the number of blue pens drawn. The probability distribution for $X$X is shown in the following table:

$x$x $1$1 $2$2 $3$3 $4$4
$P(X=x)$P(X=x) $\frac{1}{14}$114 $\frac{6}{14}$614 $\frac{6}{14}$614 $\frac{1}{14}$114

(a)  Calculate the probability of between $1$1 and $4$4 blue pens being drawn from the pencil case.

Think: We can use our table to add all the relevant probabilities. Note that between $1$1 and $4$4 does not include $1$1 and $4$4.

Do: $P(X=2)+P(X=3)=\frac{6}{14}+\frac{6}{14}=\frac{12}{14}$P(X=2)+P(X=3)=614+614=1214

(b) Calculate $P(X>1|X<4)$P(X>1|X<4)

Think: In words, this question is asking what is the probability of more than $1$1 blue pen being drawn if we know less that less than $4$4 blue pens were drawn from the pencil case. We can use our result from part b).

Do: 

$P(X>1|X<4)$P(X>1|X<4) $=$= $\frac{P(X>1\cap X<4)}{P(X<4)}$P(X>1X<4)P(X<4)
  $=$= $\frac{P\left(X=2\right)+P\left(X=3\right)}{P\left(X=1\right)+P\left(X=2\right)+P\left(X=3\right)}$P(X=2)+P(X=3)P(X=1)+P(X=2)+P(X=3)
  $=$= $\frac{\frac{12}{14}}{\frac{13}{14}}$12141314
  $=$= $\frac{12}{13}$1213

 

Practice questions

Question 1

At a car park in the city, all day parking is charged on the following basis:

  • Cars with just a driver pay $\$20$$20
  • Cars with a driver and one passenger pay $\$18$$18
  • Cars with a driver and at least two passengers pay $\$10$$10

The number of people in one of these cars on a given day is summarised in the table.

Number of people $1$1 $2$2 $3$3 $4$4 $5$5
Number of cars $4600$4600 $3400$3400 $1100$1100 $600$600 $300$300
  1. Calculate the probability a randomly selected car is carrying $3$3 people.

  2. Given that a car was carrying at least $2$2 people, what is the probability it was carrying $4$4?

  3. Let $X$X represent the parking fee paid by a randomly selected car. Construct the probability distribution for $X$X below.

    Write the possible values of $X$X in descending order from left to right.

    $x$x $\editable{}$ $\editable{}$ $\editable{}$
    $P$P$($($X=x$X=x$)$) $\editable{}$ $\editable{}$ $\editable{}$
  4. Calculate the expected revenue per car in this car park.

Question 2

In a game of two-up, a person called the “Spinner” tosses two coins.

If the coins land with two heads up, then the Spinner wins and the gamblers lose.

If the coins land with two tails up, the Spinner loses and the gamblers win.

If the coins land one head up and one tail up, the Spinner tosses the coins again and the gamblers break even.

  1. Construct a tree diagram to represent all possible outcomes of tossing two coins.

  2. If each gambler bets $\$3$$3, and can win $\$3$$3 per toss, use the table below to construct the probability distribution for the profit of the gambler for one game of two-up.

    Enter the possible outcomes from left to right in ascending order. Leave out the currency symbol.

    $x$x $\editable{}$ $\editable{}$ $\editable{}$
    $P$P$($($X=x$X=x$)$) $\editable{}$ $\editable{}$ $\editable{}$

Question 3

Two dice are rolled and the difference between the largest number and smallest number is calculated. A player wins $\$1$$1 if the difference is $3$3, $\$2$$2 if the difference is $4$4, $\$3$$3 if the difference is $5$5 and $\$0$$0 otherwise.

  1. Complete the following array, which shows the difference between the dice rolls.

      $1$1 $2$2 $3$3 $4$4 $5$5 $6$6
    $1$1 $0$0 $1$1 $2$2 $\editable{}$ $\editable{}$ $\editable{}$
    $2$2 $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
    $3$3 $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
    $4$4 $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
    $5$5 $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
    $6$6 $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Let $X$X be the winnings from one game. Complete the probability distribution table for $X$X.

    $x$x $\$0$$0 $\$1$$1 $\$2$$2 $\$3$$3
    $P\left(X=x\right)$P(X=x) $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  3. Find the expected winnings in dollars.

  4. If it costs $\$2$$2 to play each game, find the player's expected return in dollars.

Question 4

A group of statisticians conducted a study into the number of children Australian couples have. They surveyed a total of $300$300 couples and recorded the number of children, $Y$Y, of each couple.

Unfortunately the original survey data was accidentally thrown away, but from some paper records they were able to recover the following information about the probability distribution for $Y$Y and the mean $\mu$μ.

$y$y $0$0 $1$1 $2$2 $3$3
$P(Y=y)$P(Y=y) $0.3$0.3 $p$p $q$q $0.2$0.2

$\mu=1.4$μ=1.4

  1. Use the completeness property (probabilities sum to $1$1) to write an equation relating $p$p and $q$q.

    Write your equation with $p$p as the subject.

  2. Use the formula for the mean (or expected value) to write an equation relating $p$p and $q$q.

    Write your equation with $q$q as the subject.

  3. Using the previous parts, determine the value of $q$q.

  4. Hence, determine the value of $p$p.

What is Mathspace

About Mathspace