1 Random Variables
1 Random Variables
1 Distributions
Random Variables
A random variable is a set whose elements are the numbers assigned to the outcomes of an experiment.
It is usually denoted by uppercase letters such as X, whose elements are denoted by lower case letters,
x1, x2, x3, and so on.
In some experiments such as tossing a coin three times, rolling a die twice, drawing two balls from an
urn and the like, we are not oftentimes concerned with every detail of the outcomes. We are usually
interested in some numerals associated with the outcomes. For instance, if a coin is tossed twice, the set
of all possible outcomes (S) of the experiment is:
If we are interested in the number of tails that comes out in the experiment, then we can assign
numbers 0, 1, and 2 for each of the 4 possible outcomes. Thus, we can write
TT 2
TH 1
HT 1
HH 0
Table 1.1
From the above, instead of Writing number of Tails, we can denote it as set X whose elements (x1, x2,
and x3) are 0, 1, and 2. In symbol,
X = {0, 1, 2}
in an experiment of tossing a coin n times, in X is the random variable determined by the number of tails
that will come out, then there is always a whole number (e.g. 0, 1, 2,….,n) that could be associated with
each outcome, regardless of whether n is finite ( countable) or infinite as the number of whole numbers.
This type of random variable is called discrete random variable. However, in a random variable Y,
determined by weight of students (in Kg) in any given moment, it is impossible for us to assign a whole
number for each weight. Because between two weights, there is always another value of weight. This is
called a continuous random variable.
A random variable X is said to be discrete random variable if it has a finite number of elements or
infinite but ca be represented by whole numbers. These values usually arise from counts.
A random variable Y is said to be continuous random variable if it has infinite number of elements and
cannot be represented by whole numbers. These values usually arise from measurements.
Example 1:
A teacher’s record has the following (a) Scores of students in a 50-item test, (b)Gender, (c) Heights of
the students
Y = Gender
Answer:
X is a discreate random variable because the scores of the students are represented by whole numbers.
Y is also a discrete random variable because male and female could be coded 0 = female and 1 = male,
and thus, could be counted
Z is a continuous random variable because between two values of height, there are always infinite
numbers of possible values for height, thus making representations to be impossible.
Practice Exercise 1.1
A. Classify each random variable as discrete or continuous.
10. Average temperature (in °C) in Baguio City for the past 5 days.
Answer Key 1.1
1. https://www.investopedia.com/terms/r/random-variable.asp
2. https://en.wikipedia.org/wiki/Random_variable
3. https://www.statisticshowto.com/random-variable/