Professional Documents
Culture Documents
Module 4 Review of Basic Probabilities and Probability Rules-Converted (2) - Merged
Module 4 Review of Basic Probabilities and Probability Rules-Converted (2) - Merged
Module 4 Review of Basic Probabilities and Probability Rules-Converted (2) - Merged
https://www.storyofmathematics.com/sample-space
Examples of Probability: Finding the Sample Space
Example 2:
Find the sample space for drawing
one card from an ordinary deck of
cards.
Solution:
Since there are 4 suits (hearts,
clubs, diamonds, and spades) and
13 cards for each suit (ace through
king), there are 52 outcomes in the
sample space.
https://www.mathgoodies.com/lessons/vol6/sample_spaces
Examples of Probability: Finding the Sample Space
Example 3:
Find the sample space for the gender of the children if a family has
three children. Use B for boy and G for girl.
Solution:
There are two genders, male and female, and each child could be either
gender. Hence there are eight possibilities, as shown below:
BBB, BBG, BGB, GBB, GGG, GGB, GBG, BGG
http://www2.hawaii.edu/~hile/probb.htm
http://www2.hawaii.edu/~hile/probb.htm
Elementary Statistics by A. G. Bluman
Examples of Probability:
Example 1:
For a card drawn from an ordinary deck, find the probability of getting a queen.
Solution:
Since there 52 cards in a deck and there are four queens,
4 1
P(Queen ) = =
52 13
1
P(GGG ) =
8
{exactly no heads} =
Tossing 2 coins {HH, TH, HT, HH} P(E) = ¼
{TT}
{doubles} =
Tossing a two dice {(1,1), (1,2), (1,3), …, (6,6)} P(E) = 1/6
{(1,1), (2,2), …, (6,6)}
A card from 52 p.c. {x/x is a card in 52 deck of pc} {getting a diamond} P(E) = 1/4
{(blue, blue), (green, green),
Getting 2 red balls {(red, red)} P(E) = 1/3
(red, red)}
Selecting a male {4 males, 5 females} {M1, M2, M3, M4} P(E) = 4/5
The following illustrates experiments, sample space, events, and
probabilities:
Experiment Sample Space S Suppose Event E is Probability of E
Sales: {high sales (0.75),
{high sales} P(E) = 0.75
High = 0.75, low= 0.25 low sales (0.25)}
{low (20%), moderate
Company backlog {moderate backlog} P(E) = 45%
(45%), high, worst (35%)}
{ 0 defective (10%), 1
defective (15%), 2
Defective Items {getting 3 defective
defectives (25%), 3 P(E) = 30%
Testing items}
defectives (30%), 4
defectives (20%) }
Probability Rules:
Probability Rule 1:
The probability of any event E is a number (either a fraction or decimal) between
and including 0 and 1, denoted by
0 P(E) 3
When a single die is rolled, what is the probability of getting a number less than
7?
Solution:
Since all outcomes --- 1, 2, 3, 4, 5, and 6 --- are less than 7, then the probability is
given by
P(1, 2, 3, 4, 5, or 6) =6/6 = 1.
The probability of getting a 7 is certain to happen. This indicates that the
probability of a sample space is 1.
Elementary Statistics by A. G. Bluman
Probability Rules:
Probability Rule 4:
The sum of the probabilities of all outcomes in the sample space is 1.
In the roll of a fair dice, each outcome in the sample space has a probability of
1/6. Hence , the sum of the probabilities of the outcomes is as shown.
Outcome 1 2 3 4 5 6 Sum
Probability 1/6 1/6 1/6 1/6 1/6 1/6 1
Drawing a single
{13 hearts, 13, diamonds,
heart in 52 deck of {13 clovers} P(E) = 13/52=1/4
13 spades, 13 clovers}
p.c.
A roulette
consisting of {1, 2, 3, 4, 5 ,6} {numbers less than 3} P(E) = 2/6 = 1/3
numbers 1-6
{HHH, HHT, HTH, THH, TTH,
Tossing 2 coins {exactly 1 tail} P(E) = 3/8
THT, HTT, TTT}
Exhaustive Events (Jaggia et al, 2021)
Example:
• Suppose Student final grade remark S = {Passed,
Failed}
• If some students passed and some failed, then the
event E is exhaustive.
• However, if all students passed the course, then
event E is not exhaustive.
Equally Likely Events
• The outcomes in a sample space S are equally likely if each outcome
has the same probability of occurring. In general, if outcomes in
a sample space S are equally likely, then computing the probability of
a single outcome or an event is very straightforward.
• In many situations, outcomes are equally likely
(e.g., flipping coins, throwing dice, drawing a card etc.).
• Many probabilities, particularly in games of chance, can be calculated
by using an equally likely argument.
• However, many other probabilities, especially those in business
situations, cannot be calculated by equally likely arguments, simply
because the possible outcomes are not equally likely.
Mutually Exclusive Events (Jaggia & Kelly, 2021)
Mutually Exclusive Events – the occurrence of one event precludes the occurrence of
the other or events cannot can not happen together.
Example:
• A student cannot receive an A and a B on the same course, so A and B are mutually
exclusive events.
• A student can receive an A and a B on different courses, say A in ELE BA and B in
Economics, so A and B are non-mutually exclusive events.
• When drawing a single card in a deck of 52 playing cards, it is not possible to draw a
Jack and a Queen in just one draw, so Jack and Queen are mutually exclusive events.
• When drawing a single card in a deck of 52 playing cards, it is possible to draw a Jack
and a Diamond in just one draw of a card, so Jack and Diamond are non-mutually
exclusive events.
Mutually Exclusive Events (Jaggia & Kelly, 2021)
Example:
• From an experiment of tossing one die, if event A = {1, 2, 3} and event B = {4, 5,
6}, then when a die is tossed both A and B cannot happen at the same time,
thus, A and B are mutually exclusive events.
• From an experiment of tossing one die, if event A = {1, 2, 3} and event C = {2, 3,
4, 5, 6}, then when a die is tossed both A and C can happen at the same time
when 2 or 3 faces up, thus, A and C are non-mutually exclusive events.
• High demand and low demand are mutually exclusive events because only one
of these two possibilities can occur at one time.
• Approved and not approved proposal are mutually exclusive events.
• A government regulation may be amended or not amended are mutually
exclusive events.
Mutually Exclusive Events and Exhaustive Events
• The experiment on grades distribution in a particular course where the
grades are ranging from A to B are non-exhaustive and mutually exclusive
events.
• The experiment on grades distribution in a particular course where the
grades are ranging from A to D are exhaustive and mutually exclusive events.
• If there are three states of nature in a decision making problem: high,
moderate, low, then only one of them is possible to happen. So these events
are non-exhaustive and mutually exclusive events.
Combining Events (Jaggia & Kelly, 2021)
Union of Events A ꓴ B (Jaggia & Kelly, 2021)
The union of two events denoted by A ꓴ B – is the event consisting of all
the outcomes in A or B. The elements contained in A or B are the combined
elements of the two events.
The rectangle represents the sample space S and the two circles
represents events A and B.
Union and Intersection of Events A Ո B
(Jaggia & Kelly, 2021)
The intersection of two events denoted by A Ո B – is the event consisting
of all the outcomes in A and B. The elements in A and B are the common
outcomes of the two events.
The rectangle represents the sample space S and the two circles
represents events A and B.
Complement of Event A (Jaggia & Kelly, 2021)
The Complement of event A denoted by Ac or A’ – is the event consisting of
all outcomes in the sample space S that are not in A.
Ac
The rectangle represents the sample space S and the circle represents
event A.
Two Defining Properties of Probability (Jaggia & Kelly, 2021)
20 item - Quick assessment
After studying this module, a 20 item – quick assessment must be
accomplished in the blackboard on Sept. 11, 2021, 8 pm.
Reference
Business Analytics: Communicating with Numbers by Jaggia, S., Kelly, A.,
Lertwachara, K. and Chen, L.
Copyright 2021 by McGraw-Hill Education.
Probability and Statistics by Walpole, R., Myers R., and Myers S. Prentice Hall
International, Inc., 1998.
https://www.youtube.com/watch?v=f7agTv9nA5k
APPROACHES TO AND
ESSENTIALS OF PROBABILITIES
Learning Objectives
At the end of this module, learners are expected to:
1. Familiarize with and apply approaches to probabilities.
2. Apply probability essentials to calculate different event possibilities.
Approaches of Probability (Jaggia & Kelly, 2021; Walpole et
al., 1998)
1. Marginal Probability
2. Conditional Probability
3. Mutually Exclusive and Non-Mutually Exclusive Events
4. Dependent and Independent Events
Marginal Probability (Walpole, et al., 1998 )
Marginal Probability – is the probability of a single event without
consideration of any other event. Marginal probability is also called
Simple Probability.
Suppose a group of students are ask on their opinion about
online learning being part of regular teaching and learning modalities
during post pandemic. The following gives the distribution of the
responses.
In favor (I) Against (A) Total
Male (M) 10 11 21
Female (F) 16 13 29
Total 26 24 50
Marginal Probability
The following are examples of marginal probability:
In favor (I) Against (A) Total
Male (M) 10 11 21
Female (F) 16 13 29
Total 26 24 50
1. P(Male) = 21/50
2. P(In favor) = 26/50 or 13/25
3. P(Female) = 29/50
4. P(against) = 24/50 or 12/25
Conditional Probability (Jaggia & Kelly, 2021, Walpole, et al., 1998)
Conditional Probability – is the probability that an event will occur given that
another event has already occurred. If A and B are two events, then conditional
probability of A is written as P(A/B) and read as “ the probability of A given that
B has already occurred.” P(M/I) = P(M)
Example:
• The probability that a customer will make an online purchase conditional on
receiving an e-mail with a discount offer.
• The probability of making a 6-figure salary conditional on getting an MBA.
• The probability that sales will improve conditional on the firm launching a new
innovative product.
• The probability that an individual will shop online given that the individual is
female.
Conditional Probability (Walpole, et al., 1998 )
Suppose a group of students are asked on their opinion about online learning being part of regular teaching and
learning modalities during post pandemic. The following gives the distribution of the responses.
Example 2:
Suppose the probability that a recent business college graduate finds
a suitable job is 0.80. The probability of finding a suitable job if the recent
business college graduate has prior work experience is 0.90.
If A represents finding a job and B represents prior work experience, then
P(A) = 0.80 and P(A/B) = 0.90. DE
In this example, the probability of finding a suitable job increases
from 0.80 to 0.90 when conditioned on prior work experience.
Conditional Probability Example (Jaggia & Kelly, 2021)
Example 3:
The probability that a student will pass a major course 0.70, while
the probability that the same student will pass a major course is 0.85
given that he also pass an elective course.
If M represents passing the major course and E represents passing an
elective course, then P(M) = 0.70 and P(M/E) = 0.85. DE
In this example, the probability of passing a major course increases
from 0.70 to 0.85 when conditioned passing an elective course.
Conditional Probability Example (Jaggia & Kelly, 2021)
Example 4:
The probability that a student will pass a major course 0.90, while
the probability that the same student will pass a major course is 0.75
given that he fail an elective course.
If M represents passing the major course and E’ represents not passing an
elective course, then P(M) = 0.90 and P(M/E’) = 0.75. DE
In this example, the probability of passing a major course decreases
from 0.90 to 0.75 when conditioned to failing an elective course.
Conditional Probability (Jaggia & Kelly, 2021)
• In general, the conditional probability P(A/B) is greater than the
unconditional probability (marginal probability) P(A), if B exerts positive
influence on A.
• Consequently, P(A/B) is less than P(A), if B exerts negative influence on
A.
• Finally, if B exerts no influence on A, then P(A/B) = P(A).
P(A) = 65%, P(A/B) = 65% IE
• It is common to refer to “unconditional probability” as “marginal
probability”, “simple probability”, or simply “probability”.
• Conditional probabilities of mutually exclusive events equals 0.
P(M/F) = 0 P(J/Q) = 0 P(H/L) = 0 P(P/F) = 0
Conditional Probability (Jaggia & Kelly, 2021)
We rely on the Venn diagram on the right
to explain conditional probability. Because
P(A/B) represents the probability of A
conditional on B (B has occurred), the original
sample space S is reduced to B. The conditional
probability P(A/B) is based on the portion of A
that is included in B. It is derived as the ratio of
the probability of the intersection of A and B to
the probability of B.
Conditional Probability (Jaggia & Kelly, 2021)
Dependent and Independent Events (Jaggia & Kelly, 2021)
Two events A and B are independent events if the occurrence of one event does not
affect the probability of the occurrence of the other event. That is, two events are
independent if either
P(A/B) = P(A) or P(B/A) = P(B)
Two events A and B are dependent events if the occurrence of one event affects the
probability of the occurrence of the other event. That is, two events are dependent if either
P(A/B) ≠ P(A) or P(B/A) ≠ P(B)
Example:
1. The probability of the event of drawing each of the two green balls (G1, G2) from a box of
2 green and 3 yellow balls;
a) with replacement of the first ball. b) without replacement of the first ball.
Answer: P(G1) = P (G1/G2) Answer: P(G1) P (G1/G2)
2/5 = 2/5 2/5 1/4
⸫ Events G1 and G2 are independent ⸫ Events G1 and G2 are dependent
Definition:
Two events A and B are independent if and only if,
P(A/B) = P(A) and P(B/A) = P(B).
Otherwise, A and B are dependent.
Therefore;
1. If one event does not affect the occurrence of another event, then it is an
Independent event.
2. If one event affects the occurrence of another event, then it is dependent
event.
3. Two events are independent if and only if the drawing is done with
replacement.
4. Two events are dependent if the first element is not replaced before the
second element is drawn.
Exercise:
Tell whether the following are dependent or independent events:
1. The operation of each of the pairs of escalator in a certain mall.
2. Landing on heads after tossing a coin AND rolling a 5 on a single 6-sided die.
3. Drawing red card and a black card with replacement.
4. The life span of each of the love birds.
5. Choosing a marble from a jar AND landing on heads after tossing a coin.
6. If the mother and father is diabetic, offspring will also be diabetic.
7. Choosing a 3 from a deck of cards, replacing it, AND then choosing an ace as the second
card.
8. The event of getting 2 laptops when the first is replaced.
9. Rolling a 4 on a single 6-sided die, AND then rolling a 1 on a second roll of the die.
Dependent and Independent Events Example:
In favor (I) Against (A) Total Each pair of the events are not
Male (M) 10 11 21 equal which means that the
events are dependent. This
Female (F) 16 13 29 indicates that the opinion of the
Total 26 24 50 students is dependent on gender.
Dependent and Independent Events Example:
a. Error and Makati b. Error and Manila c. Balanced and Makati d. Balanced and Manila
P(E ) P(E / X) P(E ) P(E / Y) P(B) P(B / X) P(B) P(B / Y)
10 6 10 4 40 24 40 16
50 30 50 20 50 30 50 20
1 1 1 1 4 4 4 4
5 5 5 5 5 5 5 5
Dependent and Independent Events Example:
The Complement Rule – is the event that A does not occur. The sum of
probabilities assigned to simple events in a sample space must equal one.
Let A be the given event, the Ac (or A’) will denote the complement of A,
thus the P(A) + P(Ac ) = 1.
The Addition Rule – is the probability of the union of two events denoted
by P(A ꓴ B). If two events are mutually exclusive, then
P(A ꓴ B) = P(A) + P(B)
If two events are non-mutually exclusive, then
P(A ꓴ B) = P(A) + P(B) – P(A Ո B) ,
• These formulas can also extend to more than 3 events:
P(A ꓴ B ꓴ C) = P(A) + P(B) + P(C)
P(A ꓴ B ꓴ C) = P(A) + P(B) + P(C) - P(A Ո B) - P(A Ո C) - P(B Ո C) + P(A ꓴ B ꓴ C)
Example of the Addition Rule
A. Suppose an experiment is consisting of tossing a single die:
Then S = {1, 2, 3, 4, 5, 6}
Let the event A = {1, 2, 3}, B = {5, 6}, C = {2, 3, 4}
1. P(A ꓴ B) = P(A) + P(B) = 3/6 + 2/6 = 5/6
2. P(A ꓴ C) = P(A) + P(C) – P(A Ո C) = 3/6 + 3/6 – 2/6 = 4/6 or 2/3
3. P(B ꓴ C) = P(B) + P(C) – P(B Ո C) = 2/6 + 3/6 – 0 = 5/6
B. Suppose an experiment is consisting of tossing 2 coins:
Then S = {TT, TH, HT, HH} , X = 0, 1, 2
1. What is the probability of getting at least 1 head?
P(at least 1 head) = P(1 head) + P(2 heads) = 2/4 + ¼ = ¾, let the random variable = be the number
of heads, X = 1, 2
2. What is the probability of getting at most 2 heads?
P(at most 2 heads) = P(no heads) + P(1 head) + P(2 heads) = ¼ + 2/4 + ¼ = 1
Example of the Addition Rule
(Jaggia & Kelly, 2021)
The Multiplication Rule P(A and B) (Jaggia & Kelly, 2021)
The probability that events A and B can happen together is called the Joint
Probability of A and B.
The Joint Probability of A and B is the intersection of two events.
Multiplication Rule for Dependent Events:
P(A B) P(B / A) P(A) or P(B A) P(A / B) P(B)
If one of these employees is selected at random for membership on the employee management
committee, what is the probability that this employee is;
a. A female and tenured? P(F and T) =P(F)P(T/F) = 18/40* 6/18 = 6/40 0.15 or 15%
18/40 = 6/16 or 0.45 = 0.375
P(F) /= P(F/T) DE
b. A female and non-tenured? P(F and N)=P(F)*P(N/F)
c. A tenured on the condition he is male? P(T/M) = 10/22 = 0.45
d. A tenured or a male? P(T or M) = P(T) + P(M) – P(T and M) = 16/40 + 22/40 – 10/40 = 0.70
e. Not Male? P(Female) = 18/40 or P(F) = 1 – P(M) = 1- 22/40 = 18/40
2. The probability that a randomly selected employee has an international
certification is 0.35, and the joint probability that the employee is a
board passer and has an international certification is 0.25. Find the
conditional probability that the employee selected at random is a board
passer given that he/she has an international certification.
P(C) = 0.35, P(B and C) = 0.25 ; P(B/C) = P(B and C)/P(C) = 0.25/0.35 = 0.7143
3. An owner of a fine dining restaurant estimates that the probability that
his company application with CSR will be approved is 0.55; the
probability that the application with the DOH will be approved is 0.65,
and the probability that it will pass with both CSR and DOH is 0.45.
Determine the probability that the application with CSR will be approved
given that the application with DOH will also be approved.
P(CSR) = 0.55, P(DOH) = 0.65 , P(CSR and DOH) = 0.45
P(CSR/DOH) = P(CSR and DOH)/P(DOH) = 0.45/0.65 =0.6923
Reference
Business Analytics: Communicating with Numbers by Jaggia, S., Kelly,
A., Lertwachara, K. and Chen, L.
Copyright 2021 by McGraw-Hill Education.
https://www.youtube.com/watch?v=f7agTv9nA5k
RANDOM VARIABLES,
PROBABILITY DISTRIBUTIONS,
AND SUMMARY MEASURES
Learning Objectives:
At the end of the discussion, the student should be able to;
1. Distinguish a discrete random variable from a continuous variable.
2. Describe the probability distributions of a discrete random
variable.
3. Calculate the cumulative probability of a random variable.
4. Calculate the summary measures of a probability distribution of
random variables.
5. Become familiar with the continuous distributions and density
functions.
Random Variable (Albright and Winston, 2020)
• A key aspect of solving real business problem is dealing
appropriately with uncertainty.
• This involves recognizing explicitly that uncertainty exists
and using quantitative methods to model uncertainty.
• In many situations, the uncertain quantity is a numerical
quantity. In the language of probability, it is called a Random
Variable, usually denoted by uppercase letters like X, Y, M.
A Random Variable is a function that associates a real number
with each element in the sample space.
X = 0, 1, 2, ….
Random Variable (Walpole, et al., 1998)
Consider the experiment is Tossing 2 coins whose sample
space is given by S = {TT, TH, HT, HH}.
If we let X = be the random variable for the number of getting
heads, the value of X depends on the number of heads that
occur in each of the outcomes of the experiment. That is, if the
outcome is: {TT}, X = 0; {TH} or {HT}, X = 1; {HH}, X = 2
Therefore, X = 0, 1, 2
Random Variable (Walpole, et al., 1998)
Consider for example the random experiment of drawing two
balls in succession from an urn without replacement. Suppose the urn
contains 4 red balls and 3 black balls. Find the possible outcomes
(sample space) and the values y of the random variable Y, where Y is
the number of red balls.
Sample Space Y Y = 0,1,2
RR 2
RB 1
BR 1
BB 0
Discrete and Continuous Random Variables
(Walpole et al., 1998)
Definition:
If a sample space contains a finite, COUNTABLE number of possible values
or an unending sequence with as many elements as there are whole numbers, it is
called a DISCRETE SAMPLE SPACE.
Example: Sum of 6 = {(1,5), (5,1), (2,4), (4, 2), (3,3)}
1. The sum of the numbers between 5 and 7 facing up when 2 dice are thrown.
2. Four balls drawn from a box of 5 red and 6 green balls where x is the number
of green balls. X = 3, 2, 1, 0
3. The number of females from three children. GGG, GGB, GBG, BGG,…BBB
4. The total number of employees in a corporation given the health benefits.
Discrete and Continuous Random Variables
(Walpole et al., 1998)
Definition:
If a sample space contains an infinite number of possible values equal to the
number of points on a line segment, it is called CONTINUOUS SAMPLE SPACE.
The outcomes of some statistical experiments may be neither finite nor countable.
1. When one conducts an investigation measuring the distance that a certain make of
automobile will travel over a prescribed test on 5 liters of gasoline. X = 1.5, 2.26
2. If one were to record the length of time in a manufacturing process, the possible
time intervals making up the sample space are infinite in number and are
uncountable.
3. An operations engineer measuring the rate at which the machine is producing tons
of oil per hour.
4. A company financial analyst calculating the cost it will take before they could reach
their target profit. C = 1.5m, 2.3m
Statistics by Walpole
Discrete and Continuous Random Variables
(Albright and Winston, 2020)
• Usually a discrete distribution results from a count, whereas
a continuous distribution results from a measurement.
• This distinction between counts and measurements is not
always clear-cut.
• Mathematically, there is an important difference between
discrete and continuous probability distributions.
• Specifically, a proper treatment of continuous
distributions requires calculus.
• The normal distribution learned in Statistics is a type of
continuous distribution.
Discrete and Continuous Random Variables
Discrete and Continuous Random Variables
Discrete and Continuous Random Variables
Example:
3. The sample space giving a detailed description of each possible outcome when three
electronic components are tested may be written
S = { NNN, NND, NDN, DNN, DDN, DND, NDD, DDD} 2*2*2 = 8 ELEMENTS
Where: N denotes non-defective and D denotes defective
Let M = be the random variable for THE NUMBER OF defective item
Each point in the sample space will be assigned a numerical value called the random
number m:
m = 0 – for no defective occur E={NNN} P(NNN) = 1/8
m = 1 – for 1 defective occur E={NND, NDN, DNN} = P(1D) = 3/8
m = 2 - for 2 defective occur E={NDD, DND, DDN} = 3/8
m = 3 - for 3 defective occur E={DDD} = 1/8
Thus, the variable M is a discrete random variable. M = 0, 1, 2, 3
Discrete and Continuous Random Variables
4. Consider for example the random experiment of drawing two balls
in succession from an urn without replacement. Suppose the urn
contains 4 red balls and 3 black balls. Find the possible outcomes
(sample space) and the values y of the random variable Y, where Y
is the number of red balls.
Sample Space Y Y = 0, 1, 2
Since the values of the random
RR 2
variable Y are whole number that
RB 1
BR 1
represents the number of red
BB 0 balls drawn, then Y is a discrete
random variable.
Probability Distributions (Albright and Winston, 2020)
• A probability distribution lists all of the possible values of the
random variable and their corresponding probabilities.
• The essential properties of a discrete random variable and its
associated probability distribution are quite simple.
• To specify the probability distribution of X, we need to specify its
possible values and their probabilities.
• We assume that there are k possible values, denoted
x1, x2, … , xk.
• The probability of a typical value xi is denoted in one of two
ways, either P(X = xi) or p(xi).
Probability Distribution of a Discrete Random Variable
Probability distributions must satisfy two criteria: Sample Space Y Y = 0, 1, 2
RR 2
• The probabilities must be nonnegative.
RB 1
• They must sum to 1. BR 1
Example: BB 0
Let us again consider the experiment of drawing two balls in succession from
an urn without replacement. Suppose the urn contains 4 red balls and 3 black
balls. We have listed the sample space of the experiment and identified the
random value of Y (red) = 0, 1 , 2. We now find the probability distributions of
this experiments as follows:
Y 0 1 2
P(Y=2) 1/4 2/4 or 1/2 1/4
Observe that all probabilities are positive and adding all the probabilities equals 1 .
Probability Distribution of a Discrete Random Variable
Example:
Consider the experiment of three electronic components tested,
S = {NNN, NND, NDN, DNN, NDD, DND, DDN, DDD}
If M is the random variable for a defective item and each point in the sample space will
be assigned a numerical value of 0, 1, 2, 3:
m = 0 – for no defective occur E={NNN}
m = 1 – for 1 defective occur E={NND, NDN, DNN}
m = 2 - for 2 defective occur E={NDD, DND, DDN}
m = 3 - for 3 defective occur E={DDD}
Then the probability distribution is:
M 0 1 2 3
P(M = m) 1/8 3/8 3/8 1/8
P(M<=m) 1/8 4/8 or 1/2 7/8 1
Cumulative Probability (Albright and Winston, 2020)
• A cumulative probability is the probability that the random variable is
less than or equal to some particular value.
1. Assume that 10, 20, 30, and 40 are the possible values of a random
variable X, with corresponding probabilities 0.15, 0.25, 0.35, and 0.25.
X 10 20 30 40
P(X) 0.15 0.25 0.35 0.25
P(X<=x) 0.15 0.40 0.75 1
Find the cumulative probability P(X≤30).
• From the addition rule, the cumulative probability P(X≤30) can be calculated as:
Statistics by Walpole
Cumulative Distribution Using Excel:
1. Two dice are rolled where the sum of all possible outcomes is recorded.
Use excel construct the probability distribution and the cumulative
probability distribution.
2. Based on the probability distribution generated in #1, determine the
probability of
a. Rolling a 6 or less.
b. Rolling a 7 or more.
c. Rolling a number between 4 and 8 or 4 P(X) 8.
© 2020 Cengage. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
protected website or school-approved learning management system for classroom use.
Mean of a Discrete Random Variable for Two fair coins
1. If two fair coins are tossed where X is the r.v. for number heads that occur
per toss, then the values of X can be 0, 1, or 2.
S = {TT, TH, HT, HH} X 0 1 2
Find the variance and standard deviation for the number of heads per
toss in an experiment.
1 2 1 2 1
= Var (X) = (0 − 1) + (1 − 1) + (2 − 1) = 0.50
2 2
4 2 4
= STdev (X) = Var (X) = 0.50 = 0.7071
Mean of a Discrete Random Variable for 7 Components
2. A lot containing 7 components is sampled by a quality inspector; the lot
contains 4 good components and 3 defective components. A sample of 3
is taken by the inspector. Find the expected value of the number of good
components in this sample. The following table gives the probability
distribution of the random variable X, where X represents the number of
good components in this sample.
X 0 1 2 3
P(X) 1/35 12/35 18/35 4/35
1 12 18 4 12
= E(X) = (0) + (1) + (2) + (3) = or 1.7 2 components are good
35 35 35 35 7
Variance and Standard Deviation of a Random Variable
for 7 Components
2 = Var (X)
3
= [ x i − E(X)]2 p( x i )
i =0
2 1 2 12 2 18 2 4
= (0 − 1.7143) + (1 − 1.7143) + (2 − 1.7143) + (3 − 1.7143)
2
= x i2 p( x i ) − 2
2
35 35 35 35 i =0
X 0 1 2 3
P(X) 1/35 12/35 18/35 4/35
Mean of a Discrete Random Variable for Gambling game
4. In gambling game a man is paid $5 if he gets all heads or all tails when three
coins are tossed, and he will pay out $3 if either one or two heads show. What
is his expected gain?
Solution:
Let Y = be the random variable of the amount the gambler can win.
The sample space for the possible outcomes when three coins are tossed
simultaneously, or equivalently if 1 coin is tossed three times, is
S = {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}
• One can argue that each of these probabilities is equally likely and occurs with
probability equal to 1/8.
• An alternative approach would be to apply the multiplicative rule of probability
for independent event to each element of S.
Mean of a Discrete Random Variable
P(H H T ) = P(HHT ) For the random variable Y, the amount the
= P(H )P(H )P(T ) gambler can win, the possible values of Y are $5 if
1 1 1 event E1 = {HHH, TTT} occurs and -$3 if event E2 =
=
2 2 2 {HHT, HTH, THH, HTT, THT, TTH} occurs. Thus the
1 probability table is given by,
=
8 Y E1 = 0 heads or 3 heads E2 = 1 or 2 heads
2 3
It follows that, = E(Y) = (5) + (−3) = −1, lose $1 per toss of the three coins.
8 4
In this game, the gambler will, on average, lose $1 per toss of the three coins.
Therefore, the expected gain of the gambler will be zero.
Variance and standard deviation of a Discrete Random Variable
3. In gambling game a man is paid $5 if he gets all heads or all tails when
three coins are tossed, and he will pay out $3 if either one or two heads
show. What is the variance and the standard deviation? Use alternative
formulas.
For the random variable Y, the amount the gambler can win, the possible
values of Y are $5 if event E1 = {HHH, TTT} occurs and -$3 if event E2 = {HHT,
HTH, THH, HTT, THT, TTH} occurs. Given the probability distribution below
and the computed expected mean equals μ = 0 solve for variance and
standard deviation using alternative formulas:
Y E1 = 0 heads or 3 heads (x1 = $5) E2 = 1 or 2 heads (x2 = -$3)
2 = Var (X) 2
= x i2 p( x i ) − 2
2
3 i =0
= [ x i − E(X)] p( x i )
2
2 6
= 5 2 + (-3)2
i =0
2 2 6
= (5 − 0 ) + (− 3 − 0 )
2 8 8
8 8 50 54
= + −0
=
50 54
+ 8 8
8 8 = 13
= 13
= 13 = 3.61
= 13 = 3.61
Reference
Business Analytics: Data Analysis and Introduction to Decision Making
by Albright, C. and Winston, W. 5th Edition
Copyright 2020 by Cengage Learning.
https://www.youtube.com/watch?v=f7agTv9nA5k
CALCULATING SUMMARY MEASURES USING
EXCEL SPREADSHEET and INTRODUCTION
TO SIMULATIONS
Learning Objectives:
At the end of the discussion, the student should be able to;
1. Calculate summary measures of a probability distribution of
random variables using excel spreadsheet.
2. Use simulation to incorporate uncertainty into spreadsheet models.
Cumulative Probability and Summary Measures using
Excel Spreadsheet (Albright and Winston, 2020)
Refer to the following problems presented in module 4C for excel
spreadsheet modeling:
1. If two fair coins are tossed where X is the number heads that occur
per toss, then the values of X can be 0, 1, or 2.
S = {TT, TH, HT, HH} X 0 1 2
3. Assume that 10, 20, 30, and 40 are the possible values of a random
variable X, with corresponding probabilities 0.15, 0.25, 0.35, and 0.25.
X 10 20 30 40
P(X) 0.15 0.25 0.35 0.25
a. Find the probability that the first enveloped purchased contains less
than $100.
b. Calculate the mean and standard deviation.
Cumulative Probability and Summary Measures using Excel Spreadsheet
6. Consider again the experiment of drawing two balls in succession from an
urn without replacement. Suppose the urn contains 4 red balls and 3 black
balls. We have listed the sample space of the experiment and identified
the random value of Y (red) = 0, 1 , 2.
Y 0 1 2
P(Y) 1/4 2/4 1/4
Given the Conditional mean and Conditional standard deviation, find the unconditional mean and
variance.
State of Economy Conditional mean Conditional SD P(X=x)
Awful -20% 30% 0.2
Stable 5% 20% 0.5
Great 25% 15% 0.3
Conditional Mean and Variance
(Albright and Winston, 2020)
Unconditional mean and Unconditional standard deviation of X – are the
mean and standard deviation without the knowledge of (or before
determining) the state of economy.
Conditional Mean and Variance
For Stock Price and Economy
Conditional Mean and Variance
For Stock Price and Economy
0.3
Conditional Mean and Variance
For Stock Price and Economy (in Excel)
ConditionProbabilities Mean SD
Awful 0.2 -0.2 0.3
Stable 0.5 0.05 0.2
Great 0.3 0.25 0.15
.
Procedure for Generating Random Market Returns in Excel
(Albright and Winston, 2020)
Now let’s step back and see what has been accomplished.
The following points are relevant.
❑ Simulations like this are very common, and we will
continue to use them to illustrate concepts in
probability and statistics.
❑ The numbers one may obtain will be different from the
ones in Figure 4.5 because of the nature of simulation.
The results depend on the particular random numbers
that happen to be generated.
Procedure for Generating Random Market Returns in Excel
(Albright and Winston, 2020)
❑ The way we entered cumulative probabilities and then used a lookup
table is generally the best way to generate random numbers from a
discrete probability distribution. However, there is an easier way if a
simulation add-in is available in the excel.
❑ Each generated market return in the Simulated_market_return range is
one of the five possible market returns. If you count the number of
times each return appears and then divide by 400, the number of
simulated values, you will see that the resulting fractions are
approximately equal to the original probabilities. For example, the
fraction of times the highest return 23% appears is about 0.12. This is
the essence of what it means to simulate from a given probability
distribution.
Procedure for Generating Random Market Returns in Excel
(Albright and Winston, 2020)
❑ The average and standard deviation calculated using the simple
formula for finding the mean and standard deviation from the
formulas in the Descriptive Statistics, are actually very close to the
mean and standard deviation of a probability distribution.
However, these measures are calculated in entirely different ways.
Specifically, the average in Descriptive statistics is an arithmetic
mean, whereas the mean computed in a probability distribution is
a weighted sum of the possible X - values, weighted by their
probabilities.
Procedure for Generating Random Market Returns in Excel
(Albright and Winston, 2020)
In this simulation, the mean is the long-run average of the
simulated values. Similarly, the standard deviation measures their
variability.
This long –run average interpretation will be more relevant
when a decision maker must choose among several actions that
have uncertain outcomes, the preferred decision is often the one
with the largest expected (monetary) value. This makes the
expected value of a probability distribution extremely important
in decision-making contexts.
Role of Simulation (Albright and Winston, 2020)
Spreadsheet simulation is one of the most important
tools in an analyst’s arsenal. Simulation doesn’t show you
what will occur; instead, it shows you many of the possible
scenarios that might occur. By seeing a variety of
scenarios, including those that are “typical” and those that
are “extreme,” you understand the situation much better
and can make more informed decisions relative to reward
and risk.
Assignment 3: Individual Activity
Exercise 1:
Submit excel
spreadsheet as an
output
Exercise 2: