This is “Random Variables”, section 4.1 from the book Beginning Statistics (v. 1.0). For details on it (including licensing), click here.
This book is licensed under a Creative Commons byncsa 3.0 license. See the license for more details, but that basically means you can share this book as long as you credit the author (but see below), don't make money from it, and do make it available to everyone else under the same terms.
This content was accessible as of December 29, 2012, and it was downloaded then by Andy Schmitz in an effort to preserve the availability of this book.
Normally, the author and publisher would be credited here. However, the publisher has asked for the customary Creative Commons attribution to the original publisher, authors, title, and book URI to be removed. Additionally, per the publisher's request, their name has been removed in some passages. More information is available on this project's attribution page.
For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.
Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.
4.1 Random Variables
Learning Objectives
 To learn the concept of a random variable.
 To learn the distinction between discrete and continuous random variables.
Definition
A random variableA numerical value generated by a random experiment. is a numerical quantity that is generated by a random experiment.
We will denote random variables by capital letters, such as X or Z, and the actual values that they can take by lowercase letters, such as x and z.
Table 4.1 "Four Random Variables" gives four examples of random variables. In the second example, the three dots indicates that every counting number is a possible value for X. Although it is highly unlikely, for example, that it would take 50 tosses of the coin to observe heads for the first time, nevertheless it is conceivable, hence the number 50 is a possible value. The set of possible values is infinite, but is still at least countable, in the sense that all possible values can be listed one after another. In the last two examples, by way of contrast, the possible values cannot be individually listed, but take up a whole interval of numbers. In the fourth example, since the light bulb could conceivably continue to shine indefinitely, there is no natural greatest value for its lifetime, so we simply place the symbol $\infty $ for infinity as the right endpoint of the interval of possible values.
Table 4.1 Four Random Variables
Experiment 
Number X

Possible Values of X

Roll two fair dice 
Sum of the number of dots on the top faces 
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 
Flip a fair coin repeatedly 
Number of tosses until the coin lands heads 
1, 2, 3,4, … 
Measure the voltage at an electrical outlet 
Voltage measured 
118 ≤ x ≤ 122 
Operate a light bulb until it burns out 
Time until the bulb burns out 
0 ≤ x < ∞ 
Definition
A random variable is called discreteA random variable with a finite or countable number of possible values. if it has either a finite or a countable number of possible values. A random variable is called continuousA random variable whose possible values contain an interval of decimal numbers. if its possible values contain a whole interval of numbers.
The examples in the table are typical in that discrete random variables typically arise from a counting process, whereas continuous random variables typically arise from a measurement.
Key Takeaways
 A random variable is a number generated by a random experiment.
 A random variable is called discrete if its possible values form a finite or countable set.
 A random variable is called continuous if its possible values contain a whole interval of numbers.
Exercises
Basic

Classify each random variable as either discrete or continuous.
 The number of arrivals at an emergency room between midnight and 6:00 a.m.
 The weight of a box of cereal labeled “18 ounces.”
 The duration of the next outgoing telephone call from a business office.
 The number of kernels of popcorn in a 1pound container.
 The number of applicants for a job.

Classify each random variable as either discrete or continuous.
 The time between customers entering a checkout lane at a retail store.
 The weight of refuse on a truck arriving at a landfill.
 The number of passengers in a passenger vehicle on a highway at rush hour.
 The number of clerical errors on a medical chart.
 The number of accidentfree days in one month at a factory.

Classify each random variable as either discrete or continuous.
 The number of boys in a randomly selected threechild family.
 The temperature of a cup of coffee served at a restaurant.
 The number of noshows for every 100 reservations made with a commercial airline.
 The number of vehicles owned by a randomly selected household.
 The average amount spent on electricity each July by a randomly selected household in a certain state.

Classify each random variable as either discrete or continuous.
 The number of patrons arriving at a restaurant between 5:00 p.m. and 6:00 p.m.
 The number of new cases of influenza in a particular county in a coming month.
 The air pressure of a tire on an automobile.
 The amount of rain recorded at an airport one day.
 The number of students who actually register for classes at a university next semester.

Identify the set of possible values for each random variable. (Make a reasonable estimate based on experience, where necessary.)
 The number of heads in two tosses of a coin.
 The average weight of newborn babies born in a particular county one month.
 The amount of liquid in a 12ounce can of soft drink.
 The number of games in the next World Series (best of up to seven games).
 The number of coins that match when three coins are tossed at once.

Identify the set of possible values for each random variable. (Make a reasonable estimate based on experience, where necessary.)
 The number of hearts in a fivecard hand drawn from a deck of 52 cards that contains 13 hearts in all.
 The number of pitches made by a starting pitcher in a major league baseball game.
 The number of breakdowns of city buses in a large city in one week.
 The distance a rental car rented on a daily rate is driven each day.
 The amount of rainfall at an airport next month.
Answers

 discrete
 continuous
 continuous
 discrete
 discrete


 discrete
 continuous
 discrete
 discrete
 continuous


 $\left\{0.1.2\right\}$
 an interval $\left(a,b\right)$ (answers vary)
 an interval $\left(a,b\right)$ (answers vary)
 {4,5,6,7}
 {2,3}
