Professional Documents
Culture Documents
VARIABLES
Ron Angelo R. Gatinga
Special Science Teacher I
LEARNING OBJECTIVES
At the end of this session, the learners shall be able to:
1. illustrate/provide examples of random variables
2. distinguish between discrete and continuous random variables
3. find the possible values of a discrete random variable
4. find the mean and variance of a discrete random variable
STATISTICAL EXPERIMENT
An activity that will produce outcomes, or a process that will generate
data.
The outcomes have a corresponding chance of occurrence.
Examples of which are (a) tossing three coins and counting the
number of heads, (b) recording the time a person can hold his/her
breath, (c) counting the number of students in the classroom who are
present today, (d) obtaining the height of a student, etc.
EXAMPLE: TOSSING A COIN
What are the possible results of tossing Outcome Chance of
one coin? Outcome
Heads(H) or Tails(T)
What are the possible results of tossing 0 heads 1/4 or 0.25
two coins? (TT)
Possible outcomes: two heads (HH), two
1 head 2/4 or 0.50 (HT
tails (TT), one head and one tail (HT),
and one tail and one head (TH). or TH)
Count the number of heads and the 2 heads 1/4 or 0.25
chance or probability of getting the
result (HH)
RANDOM VARIABLE AND PROBABILITY
DISTRIBUTION
Example:
Let X denote the number Outcomes X P(X)
of boys in a randomly GGG 0 1/8 = 0.125
selected three-child
family. Assuming that BGG,GBG,GGB 1 3/8 = 0.375
boys and girls are BBG,BGB,GBB 2 3/8 = 0.375
equally likely, construct BBB 3 1/8 = 0.125
the probability
distribution of X.
CONSTRUCTING PROBABILITY DISTRIBUTIONS
Example:
In a box, there are 5 red balls and 3 blue balls. Two balls were drawn with replacement. Count the
number of blue balls and construct the probability distribution.
Clue: Probability of getting red ball = 5/8 while the probability of getting blue ball is 3/8.
With replacement = a ball is returned after drawing, giving it a chance to be drawn again.
Outcomes X
RR 0
RB, BR 1
BB 2
Probability of getting 0 blue balls (getting 2 red balls):
5 5
= •
8 8
𝟐𝟓
= = 0.390625
𝟔𝟒
Probability of getting 1 red ball (one red ball and one blue ball):
5 3
= • •2
8 8
𝟑𝟎
= = 0.46875
𝟔𝟒
Probability of getting 2 blue balls:
3 3
= •
8 8
𝟗
= = 0.140625
𝟔𝟒
CONSTRUCTING PROBABILITY DISTRIBUTIONS
Example:
In a box, there are 5 red balls and 3 blue balls. Two balls were drawn with replacement. Count the
number of blue balls and construct the probability distribution.
Clue: Probability of getting red ball = 5/8 while the probability of getting blue ball is 3/8.
With replacement = a ball is returned after drawing, giving it a chance to be drawn again.
Outcomes X P(X)
RR 0 25/64 = 0.391
RB, BR 1 30/64 = 0.469
BB 2 9/64 = 0.141
CONSTRUCTING PROBABILITY DISTRIBUTIONS
Example:
In a box, there are 5 red balls and 3 blue balls. Two balls were drawn without replacement. Count the
number of blue balls and construct the probability distribution.
Without replacement = a ball is not returned after drawing
Outcomes X
RR 0
RB, BR 1
BB 2
Probability of getting 0 blue balls Probability of getting 1 blue ball (first
(getting 2 red balls back to back): blue ball or second blue ball:
5 4 15 15
= • = +
8 7 56 56
𝟐𝟎 𝟓 𝟑𝟎 𝟏𝟓
= or = 0.3571428571 = 𝒐𝒓 = 0.5357142857
𝟓𝟔 𝟏𝟒 𝟓𝟔 𝟐𝟖
Probability of getting 1 blue ball first:
3
= •
5 Probability of getting 2 blue balls back
8 7
15
to back:
= = 0.2678571429 3 2
56 = •
Probability of getting 1 blue ball second: 8 7
𝟔 𝟑
5 3 = or = 0.1071428571
= • 𝟓𝟔 𝟐𝟖
8 7
15
= = 0.2678571429
56
CONSTRUCTING PROBABILITY DISTRIBUTIONS
Example:
In a box, there are 5 red balls and 3 blue balls. Two balls were drawn without replacement. Count the
number of blue balls and construct the probability distribution.
Without replacement = a ball is not returned after drawing
Outcomes X P(X)
RR 0 5/14 = 0.357
RB, BR 1 15/28= 0.536
BB 2 3/28 = 0.107
CONSTRUCTING PROBABILITY DISTRIBUTIONS
Example:
A service organization in a large town
organizes a raffle each month. One
X P(X)
thousand raffle tickets are sold for $1 -1 997/1000 = 0.997
each. Each has an equal chance of
winning. First prize is $300, second 99 1/1000 = 0.001
prize is $200, and third prize is $100. 199 1/1000 = 0.001
Let X denote the net gain from the
purchase of one ticket. 299 1/1000 = 0.001
Let X denote the net gain from the
purchase of one ticket.
CONSTRUCTING PROBABILITY
DISTRIBUTIONS
Your Turn:
Javier volunteers in community events each month. He
does not do more than five events in a month. He
attends exactly five events 35% of the time, four
events 25% of the time, three events 20% of the time,
two events 10% of the time, one event 5% of the time,
and no events 5% of the time.
Let X = ?
CONSTRUCTING PROBABILITY
DISTRIBUTIONS
Your Turn:
A life insurance company will sell a $200,000 one-year
term life insurance policy to an individual in a
particular risk group for a premium of $195. Find the
expected value to the company of a single policy if a
person in this risk group has a 99.97% chance of
surviving one year.
Let X = ?
CONSTRUCTING PROBABILITY
DISTRIBUTIONS
Your Turn:
A roulette wheel has 38 slots. Thirty-six
slots are numbered from 1 to 36; half of
them are red and half are black. The
remaining two slots are numbered 0 and
00 and are green. In a $1 bet on red, the
bettor pays $1 to play. If the ball lands in
a red slot, he receives back the dollar he
bet plus an additional dollar. If the ball
does not land on red, he loses his dollar.
Let X = ?
DETERMINING PROBABILITIES BASED ON THE
PROBABILITY DISTRIBUTION
DETERMINING PROBABILITIES BASED ON
THE PROBABILITY DISTRIBUTION
Example:
Outcomes X P(X)
Toss a coin three
times. Let X = TTT 0 1/8
50
𝑃 𝑋 = 25 = (0.5)25 (1 − 0.5)50−25
25
𝑷 𝑿 = 𝟐𝟓 = 𝟎. 𝟏𝟏𝟐𝟑 or 11.23%
𝑛 𝑘
EXAMPLES 𝑃 𝑋=𝑘 =
𝑘
𝑝 (1 − 𝑝)𝑛−𝑘
Let X be the number of tails tossing a coin 50 times. What is the
probability that 30 tails will occur?
50
𝑃 𝑋 = 30 = (0.5)30 (1 − 0.5)50−30
30
𝑷 𝑿 = 𝟑𝟎 = 𝟎. 𝟎𝟒𝟏𝟗 or 4.19%
𝑛 𝑘
EXAMPLES 𝑃 𝑋=𝑘 =
𝑘
𝑝 (1 − 𝑝)𝑛−𝑘
Suppose we are tossing a fair coin five times. Let Y = the number of
heads when tossing a coin five times. What is the probability that at
least three heads will occur?
5 𝑃 𝑌 ≥ 3 =
𝑃 𝑌=3 = (0.5)3 (1 − 0.5)5−3 0.3125 +
3
= 0.3125 0.15625 +
5
𝑃 𝑌=4 =
4
(0.5)4 (1 − 0.5)5−4 0.03125
= 0.15625
5
𝑃 𝑌=5 = (0.5)5 (1 − 0.5)5−5
5
= 0.03125 𝑷 𝒀 ≥ 𝟑 = 𝟎. 𝟓 𝐨𝐫 𝟓𝟎%
EXAMPLES
Let X be the number of tails tossing a coin 50 times.
𝑛 𝑘
𝑃 𝑋=𝑘 = 𝑝 (1 − 𝑝)𝑛−𝑘
𝑛
𝑘 1. P(X = 10)
𝑛 𝑘
𝑘
𝑝 (1 − 𝑝)𝑛−𝑘 2. P(X ≤ 20)
𝑥=𝑘
3. P(X < 10)
4. P(X ≥ 15)
5. P(3 ≤ X ≤ 20)
MEAN, VARIANCE, AND STANDARD DEVIATION OF A
DISCRETE RANDOM VARIABLE
MEAN OF A DISCRETE RANDOM VARIABLE
Given a discrete random variable X, the mean, denoted by
𝛍 is the sum of the products formed from multiplying the
possible values of X with their corresponding probabilities.
𝜇 = 𝐸 𝑋 = [𝑋 • 𝑃 𝑋 ]
MEAN OF A DISCRETE RANDOM VARIABLE
Outcomes X P(X) X•P(X)
Example:
TTT 0*1/8 = 0
0 1/8
Toss a coin three
TTH, HTT,THT 1*3/8 = 3/8 = 0.375
1 3/8
times. Let X =
number of heads. THH,HTH,HHT 2 3/8 2*3/8 = 6/8 = 0.75