Random Variables and Probability Distribution
Random Variables and Probability Distribution
12 months
What is full of holes
but can still hold
water?
A sponge
What can you hold
without ever
touching or using
your hands?
Your breath!
First, I threw away the
outside and cooked the
inside. Then I ate the
outside and threw away
the inside. What did I
eat?
I T S
Guess the next three letters in the series
Your parents have six
sons including you and
each son has one sister.
How many people are in
the family?
NINE
Two parents, six sons, and one daughter. All of them have one sister (not six sisters).
Random
Variables and
Probability
Distributions
Would you bet
your life?
Uncertainty Chances
Many decisions in
real-life situations are
made by assigning
probabilities to all
possible outcomes
and evaluating the
results.
Historically, probability was studied by
gamblers who wanted to increase their
winnings (or at least decrease their losses)
• In the study of statistics, we are
concerned basically with the
presentation and interpretation of
chance outcomes that occur in a
planned study or scientific
investigation.
A probability experiment is a
chance process that leads to well-
defined results called outcomes.
random experiment…
S HH , HT , T1, T 2, T 3, T 4, T 5, T 6
Exercises
Construct a tree diagram for the following
experiments and list the elements of their sample
spaces.
1. Suppose that three items are selected at
random from a manufacturing process.
Each item is inspected and classified
defective or non-defective.
2. An experiment consists of tossing a die and
then flipping a coin if the number on the die
is even. If the number is odd, then the coin is
flipped twice.
3. A coin is tossed until a tail or three heads
appear.
Properties of the Probability
theprobability of an event is a non-
negative value; in fact it ranges from
zero (when the event is impossible) to
one (when the event is sure); the closer
the value to one, the more likely the
event will occur.
the probability of the sure event is one
(in other words, the chance of a sure
event is 100 percent).
Axioms of Probability
1. The probability of an impossible event is 0.
P ( ) 0.
2. The probability of an event that is certain to
occur is 1. P ( S ) 1
3. For any event A, the probability of A is
between 0 and 1 inclusive.
0 P( A) 1.
Computing
Probabilities
of Events
Situation
Two boxes contain green and blue chips. A chip is
drawn from the box, if it is green you win 100 pesos, if it
is blue you win nothing.
Box A Box B
𝑛 (𝐴)
P(A) =
𝑛 (𝑆)
Examples
𝑓
P(A) =
𝑛
Examples
Activity 1
Toss a 1-peso coin three times and record the results
Count the number of heads that appeared
Activity 2
Hold your breath and record the time (use a cell
phone timer and record up to the nearest hundredth
of a second)
Statistical Experiment – an
activity that will produce
outcomes, or a process that
will generate data.
A random variable is a function that
associates a real number with each
element in the sample space. We use a
capital letter, say X, to denote a random
variable and its corresponding small
letter, x, for one of its values. Each
possible value of X represents an event
that is a subset of the sample space for
the given experiment.
Note: Random variables are conceptually different from mathematical
variables. A random variable is linked to observations in the real world,
where uncertainty is involved.
Example
Sample Space X
RR 2
RB 1
BR 1
BB 0
Frequency and Relative Frequency Distributions of the
Number of TVs owned by City of Manila Families
1 2 3 4 5 6 7
A continuous variable is a quantitative variable
that can assume an infinitely many,
uncountable number of real number values.
The value given to an observation can include
values as small as the instrument of
measurement allows.
In an experiment, the outcome is said to be a
continuous random variable if an outcome can
take an uncountably infinite number of possible
outcomes within a specified real number
interval. Here, it is always possible to have an
outcome between any two existing ones.
0 1
Discrete Probability
Distributions
Group Activity
Itis consists of the values a random
variable can assume and the
corresponding probabilities of the values.
The probabilities are determined
theoretically or by observation. There are
requirements for a distribution of a
discrete random variable.
The listing is exhaustive (all possible
outcomes are included).
The outcomes are mutually exclusive (The
outcomes cannot occur at the same time).
A probability distribution
function is a function P(X) that
shows the relative probability
that each outcome of an
experiment will happen.
A discrete probability
distribution is a table of values
that shows the probability of
any outcomes of an
experiment.
Two Requirements for a Probability
Distribution
A probability distribution gives the probability for each value of the random
variable.
If H stands for heads and T for
tails, there are eight equally
likely possible outcomes in 3
successive tosses of a coin. Find
the probability distribution for
the number of heads.
Example
S = (HHH, HHT, HTH, THH, TTH,
THT, HTT, TTT)
Probability distribution
Number
of Heads 0 1 2 3
(x)
𝑥
1. Does P(X) = (where X can take on the
5
values of 0, 1, 2, 3,) determine a probability
distribution?
𝑥
2. Does P(X) = (where X can be 0, 1, 2, 3, or
10
4) determine a probability distribution?
3. Check whether the correspondence given
𝑥+3
by f(x) = for x = 1, 2, and 3 can serve as
15
the probability distribution of some random
variable.
Example
Find the probability distribution
of an experiment where the
sum of the number shown on a
pair of dice in a single throw is
considered.
Example 1
A shipment of 8 similar
microcomputers to a retail outlet
contains 3 that are defective. If a
school makes random purchase of
2 of these computers, find the
probability distribution for the
number of defectives.
Example 2
Three cards are drawn in
succession from a deck without
replacement. Let X be the number
of spades. Construct the
probability distribution table.
Example 3
Consider a group of 12 computer sets, two
of which have white cords and ten which
have black cords. Suppose three of them
are chosen at random and shipped to a
care center. What are the probabilities that
zero, one, or two of the sets with white
cords are shipped? Construct a probability
distribution table.
Example 4
Probability histogram of a discrete
random variable
A probability histogram shows relative
probabilities of the sample points in the
form of a bar graph.
Sample Histogram
Binomial Distribution
A binomial distribution is a probability
distribution with only two possible outcomes:
success and failure.
Let p = probability of success, q = probability of
failure, and n = number of trials performed
during an experiment of getting x successes.
The probability of getting x successes out of n
trials is given by
P (x) = nCx • px • q n – x .
Binomial Distribution
The probability mass function of a binomial distribution is
given by
X Success Failure
P(X) p q
where p + q = 1.
P (x) = nCx • p x •q n–x
Combination is an arrangement of
objects/things without reference to the
order in which they are arranged.
The number of possible combinations of r
objects from a collection of n objects is
given by the formula
𝒏!
nCr = 𝒏 −𝒓 ! 𝒓!
1. 8C3
8! 8! 8(7)(6)(5!)
= = = = 56
8 −3 !3! 5!3! 5!(3)(2)(1)
2. 7C2
7! 7! 7(6)(5!)
= = = = 21
7 −2 !2! 5!2! 5!(2)(1)
Example (Combination)
X (No. of
0 1 2
Nondefective)
P (X = x) 1/21 10/21 10/21
P (X = 0) = (2/7)(1/6) = 1/21
P (X = 1) = (5/7)(2/6) + (2/7)(5/6) = 10/21
P (X = 2) = (5/7)(4/6) = 10/21
Example (binomial distribution)
P (x) = nCx • px • q n – x
Example (binomial distribution)
P (x) = nCx • px • q n – x
Example (binomial distribution)
1. Mean: 𝜇 = σ 𝑥 • 𝑃(𝑋 = 𝑥)
Error (x) 3 4 5 6 7
P(X = x) 0.25 0.10 0.30 0.15 0.20
Probability
No. of typhoons per month (x)
P(X=x)
0 0.15
1 0.35
2 0.30
3 0.10
4 0.10
x 19 20 21 22 23
P(X=x) 0.10 0.20 0.40 0.20 0.10
Example 4