# Introduction to Discrete Random Variables You can use probability and discrete random variables to calculate the likelihood of lightning striking the ground five times during a half-hour thunderstorm. (Credit: Leszek Leszczynski)

A student takes a ten-question, true-false quiz. Because the student had such a busy schedule, he or she could not study and guesses randomly at each answer. What is the probability of the student passing the test with at least a

$70\%$
?

Small companies might be interested in the number of long-distance phone calls their employees make during the peak time of the day. Suppose the average is

$20$
calls. What is the probability that the employees make more than
$20$
long-distance phone calls during the peak time?

These two examples illustrate two different types of probability problems involving discrete random variables. Recall that discrete data are data that you can count. A random variable describes the outcomes of a statistical experiment in words. The values of a random variable can vary with each repetition of an experiment.

# Random Variable Notation

Upper case letters such as

$X$
or
$Y$
denote a random variable. Lower case letters like
$x$
or
$y$
denote the value of a random variable. If
$X$
is a random variable, then
$X$
is written in words, and
$x$
is given as a number.

For example, let

$X$
= the number of heads you get when you toss three fair coins. The sample space for the toss of three fair coins is
$TTT$
; THH; HTH; HHT; HTT; THT; TTH; HHH[/latex]. Then,
$x = 0, 1, 2, 3$
.
$X$
is in words and
$x$
is a number. Notice that for this example, the
$x$
values are countable outcomes. Because you can count the possible values that
$X$
can take on and the outcomes are random (the
$x$
values
$0, 1, 2, 3$
),
$X$
is a discrete random variable.

### Activity

Toss a coin ten times and record the number of heads. After all members of the class have completed the experiment (tossed a coin ten times and counted the number of heads), fill in a table like the one below. Let
$X$
= the number of heads in ten tosses of the coin.

$x$
Frequency of
$x$
Relative Frequency of
$x$
1. Which value(s) of
$x$
occurred most frequently?
2. If you tossed the coin
$1,000$
times, what values could
$x$
take on? Which value(s) of
$x$
do you think would occur most frequently?
3. What does the relative frequency column sum to?

## Glossary

Random Variable (RV)
a characteristic of interest in a population being studied; common notation for variables are upper case Latin letters
$X$
,
$Y$
,
$Z$
,...; common notation for a specific value from the domain (set of all possible values of a variable) are lower case Latin letters
$x, y,$
and
$z$
. For example, if
$X$
is the number of children in a family, then
$x$
represents a specific integer
$0, 1, 2, 3,....$
Variables in statistics differ from variables in intermediate algebra in the two following ways.

• The domain of the random variable (RV) is not necessarily a numerical set; the domain may be expressed in words; for example, if
$X$
= hair color then the domain is {black, blond, gray, green, orange}.
• We can tell what specific value
$x$
the random variable
$X$
takes only after performing the experiment.