Lesson 1. Random Variables
Lesson 1. Random Variables
1
Lesson objectives
At the end of the lesson, the students should be able to:
1. illustrate a random variable (discrete and continuous).;
2. distinguish between a discrete and a continuous variable;
3. find the possible values of a random variable; and
4. illustrate a probability distribution for a discrete random
variable and its properties
2
“
A variable is an attribute that describes a person,
place, thing, or idea. The value of
the variable can "vary" from one entity to
another.
3
Random variable
Is a variable whose possible values are
determined by chance.
A random variable is typically represented by an
uppercase letter, usually X, while x is used to
represent one of its values.
4
Random variable
5
1st Toss 2nd Toss 3rd Toss Final Number of
Outcome Heads ( X )
H HHH 3
H
T HHT 2 S = {HHH, HHT,
H H HTH 2 HTH, HTT, THH,
T THT, TTH, TTT}
T HTT 1
6
Discrete random variable
A discrete variable can only take a finite
number of distinct values. The values are
exact and can be represented by a
nonnegative whole numbers.
7
The following are examples of discrete
random variables.
1. Let X = number of the students randomly
selected to be interviewed by a researcher.
8
Continuous random variable
Can assume an infinite number of values in an
interval between two specific values. This means
they can be assume values that can be represented
not only by a nonnegative whole number but also
by fractions and decimals. These are often results
of measurement.
9
The following are examples of continuous
random variables.
1. Let Y = the weight in kilograms of
randomly selected students.
10
“
11
Determine if the random variable xx and y is
discrete or continuous
x 0 1 2 3
P(x) 0.2 0.3 0.3 0.2
15
Example 3. the given spinner is divided into four sections. Let
X be the score where the arrow will stop ( numbered as 1, 2, 3,
4)
a. Find the probability that the arrow will stop at 1,2,3,4
b. Construct the discrete probability distribution of the random variable X.
x 1 2 3 4
1 2
P(x) 1/4 1/4 1/4 1/4
3 4
16
Example 5. the given spinner is divided into eight sections. Let
X be the score where the arrow will stop ( numbered as 1, 2, 3,
4)
a. Find the probability that the arrow will stop at 1,2,3,4
b. Construct the discrete probability distribution of the random variable X.
1 2
x 1 2 3 4
1 4
P(x) 2/8 1/8 2/8 3/8
4 4
3 3
17
Example 5. when two fair dice are thrown simultaneously, the
ff. are the possible outcomes.
(1,1) (1,1) (1,1) (1,1) (1,1) (1,1)
x 2 3 4 5 6 7 8 9 10 11 12
P(x) 1/36 1/18 1/12 1/9 5/36 1/6 5/36 1/9 1/12 1/18 1/36
19
Example 6. toss a coin twice and let X be the number of heads
(H) observed.
Construct the discrete probability distribution of X.
T HT 1 x 0 1 2
H TH 1
P(x) 1/4 1/2 1/4
T
T TT 0
20
Example 7. A discrete random variable X has the following
probability distribution as follows:
x 0 1 2 3 4
a. Determine P(2).
21
Example 7. A discrete random variable X has the following
probability distribution as follows:
x 1 2 3 4
a. Determine c.
ΣP(x) = P(1) + P(2) + P(3) + P(4)
1= 0.21 + 29c + 0.29 + 0.21
1 = 0.71 + 29c
1 - 0.71 = 29c
0.29 = 29c
0.01 = c
22
23
Example 1. Determine whether the distributions is a discrete
probability distribution.
a.)
x 2 6 8
P(x) -0.3 0.6 0.7
b.)
x 1 2 3 4 5
P(x) 3/10 1/10 1/10 2/10 3/10
24
Example 2. box a and b contain 1,2,3,4. write the probability mass
function and draw the histogram of the sum when one number from
each box is taken at a time, with replacement.
25
26
Probability mass function (pmf)
The probability distribution of a discrete random
variable.
The pmf of x is denoted by f(x) and satisfies the
following two basic properties:
a. f (x) = P (X = x) ≥ 0 if x ϵ the Support S
b. Σ f (x) = Σ P (X = x) = 1
27
28
“
29
EXPEXTED VALUE OF A
DISCRETE RANDOM
VARIABLE
30
The expected value of a discrete random
variable X, denoted by E(X), is equal to the
weighted average of the elements x in the
Support S where each element is weighted
by its respective probability.
31