Probability Basics Part1
Probability Basics Part1
9740310708
Customer Service
Policies related to customer service Queuing Models
Competitive Strategy
Markovs chains in strategy analysis
Product Design
Reliability theory probabilities of failure or breakdown
Drafting warranties and return policies
Arrival
Server(s)
Exit
Cost
Trade off
Cost of Service
Combined Costs
Cost of waiting
Capacity to serve
Popular Simulators:
Pro model, Simul8, Arena, Anylogic simulator, Matlab simulink
The gambling industry relies on probability distributions to calculate the odds of winning.
The rewards are then fixed precisely so that, on average, players lose and the house wins
Learning Objectives
In this chapter, you will learn:
What is probability?
Probability is a numerical measure of the
likelihood that an event will occur.
Probability lets you predict the future by assessing how likely outcomes are, and knowing what
could happen helps you make informed decisions.
0
The event
is very
unlikely
to occur.
.5
The occurrence
of the event is
just as likely as
it is unlikely.
1
The event
is almost
certain
to occur.
Statistical Experiments
In statistics, the notion of an experiment differs
somewhat from that of an experiment in the
physical sciences.
In statistical experiments, probability determines
outcomes.
Even though the experiment is repeated in exactly
the same way, an entirely different outcome may
occur.
For this reason, statistical experiments are sometimes called random experiments.
RANDOM EXPERIMENT
Experiment
Flip a coin
1.
2.
3.
Heads, Tails
Numbers: 0,
Exam Marks
1, 2, ..., 100
Course
On any single repetition of an experiment, one and only one of Grades
the possible experimental outcomes will occur.
Outcomes
Play a
football
game
Select a part
for
Inspection
F, D, C, B, A,
A+
Win, Lose,
Tie
Defective,
non defective
RANDOMNESS
Randomness is the lack of pattern or predictability in events
A random sequence of events, symbols or steps has no order and does not follow an
intelligible pattern or combination
Im convinced
that God
Doesnt play
Dice
SAMPLE SPACE
The sample space for an experiment is the set of all experimental
outcomes.
Experiment outcome is also known as a sample point to identify it as
an element of the sample space
ex. All 6 faces of a die:
Tossing a coin
S = {Head, Tail}
What is probability?
According to classical theorists,
*Pierre-Simon Laplace
Probability
Please note that this particular formula is only applicable in a well defined
purely theoretical settings
1 2
3 4
1 2
3 4
1
4
3
6
3
10
Counting Rules
Without the tree diagram, one might think only three experimental outcomes are possible for
two tosses of a coin: 0 heads, 1 head, and 2 heads.
EXPERIMENTAL OUTCOMES
(SAMPLE_POINTS) FOR THE KP&L PROJECT
Combinations
This counting rule allows one to count the number of experimental outcomes
when the experiment involves selecting n objects from a (usually larger) set of
N objects.
CnN
where:
N!
N
n n !(N n )!
Factorials!
This is just a short hand notation that is sometimes used to save
time!
Examples:
5! Means 5*4*3*2*1 = 120
4! Means 4*3*2*1 = 24
By definition, 1! =1 and 0! =1
AB, AC, AD, AE, BC, BD, BE, CD, CE, and DE.
Solve
Simple random sampling uses a sample of size n from a population of
size N to obtain data that can be used to make inferences about the
characteristics of a population.
Suppose that, from a population of 50 bank accounts, we want to
take a random sample of four accounts in order to learn about the
population.
How many different random samples of four accounts are possible?
where:
N!
N
n !
n (N n )!
The counting rule for permutations closely relates to the one for
combinations; however, an experiment results in more
permutations than combinations for the same number of objects
because every selection of n objects can be ordered in n! different
ways.
Consider again the quality control process in which an inspector
selects two of five parts to inspect for defects. How many
permutations may be selected?
AB, BA, AC, CA, AD, DA, AE, EA, BC, CB, BD,
DB, BE, EB, CD, DC, CE, EC, DE, and ED.
ABCD
ABDC
ACBD
ACDB
ADBC
ADCB
BACD
BADC
BCAD
BCDA
BDAC
BDCA
CABD
CADB
CBAD
CBDA
CDAB
CDBA
DABC
DACB
DBAC
DBCA
DCAB
DCBA
Assigning Probabilities
Basic Requirements for Assigning Probabilities:
1. The probability assigned to each experimental
outcome must be between 0 and 1, inclusively.
0 < P(Ei) < 1 for all i
where:
Ei is the ith experimental outcome and P(Ei) is its probability
Assigning Probabilities
Basic Requirements for Assigning Probabilities
2. The sum of the probabilities for all experimental
outcomes must equal 1.
Assigning Probability:
There are three approaches to assessing the probability of an
uncertain event:
Objectivists approach
3. subjective probability
the probability of an event is determined by an individual, based on
that persons past experience, personal opinion, and/or analysis of a
particular situation.
Classical Approach
If an experiment has n possible outcomes, the classical method would assign a
probability of 1/n to each outcome.
Experiment:
Rolling a die
Fair
Mutually exclusive events are events that cannot happen at the same time (simultaneously).
favourable.outcomes
number of face cards
total.outcomes
total number of cards
12 face cards
3
52 total cards 13
favourable.outcomes
number of face cards
total.outcomes
total number of cards
12 face cards
3
52 total cards 13
The probability of
heads is 0.5 = the
proportion of times
you get heads in
many repeated trials.
Consider a study of waiting times in the X-ray department for a local hospital. A
clerk recorded the number of patients waiting for service at 9:00 a.m. on 20
successive days and obtained the following results
Using the relative frequency method, we would assign a probability of 2/20 =.10
to the experimental outcome of zero patients waiting for service, 5/20 = .25 to
the experimental outcome of one patient waiting,so on
satisfies the two basic requirements of equations.
Lucas Tool Rental would like to assign probabilities to the number of car
polishers it rents each day. Office records show the following frequencies of
daily rentals for the last 40 days.
Number of
Polishers Rented
0
1
2
3
4
Number
of Days
4
6
18
10
2
Probability
.10
.15
.45
4/40
.25
.05
1.00
# of Days
10
12
For example,
10 days out of 30, 2 desktops were sold.
# of Days
Desktops Sold
10
12
There is a 40% chance Bits & Bytes will sell 3 desktops on any given day [Based on estimates
obtained from sample of 30 days]
Subjective probability
In the subjective approach we define probability as the degree of belief that
we hold in the occurrence of an event
P(you drop this course)
P(NASA successfully land a man on the moon)
P(girlfriend says yes when you ask her to marry you)
The subjective method requires extra care to ensure that the two basic
requirements of probability are satisfied
Both Judy and Tom assigned probabilities that satisfy the two basic
requirements.
The fact that their probability estimates are different emphasizes the personal
nature of the subjective method.
Even in business situations where either the classical or the relative frequency
approach can be applied, managers may want to provide subjective probability
estimates.
In such cases, the best probability estimates often are obtained by combining
the estimates from the classical or relative frequency approach with subjective
probability estimates.
Management could have provided subjective probability estimates, but felt that the current
project was quite similar to the 40 previous projects. Thus, the relative frequency method was
judged best.
Question
The Powerball lottery is played twice each week in 28 states, the Virgin Islands,
and the District of Columbia. To play Powerball a participant must purchase a
ticket and then select five numbers from the digits 1 through 55 and a Powerball
number from the digits 1 through 42.
To determine the winning numbers for each game, lottery officials draw five
white balls out of a drum with 55 white balls, and one red ball out of a drum
with 42 red balls.
To win the jackpot, a participants numbers must match the numbers on the five
white balls in any order and the number on the red Powerball. A variety of other
cash prizes are awarded each time the game is played. For instance, a prize of
$200,000 is paid if the participants five numbers match the numbers on the five
white balls (Powerball website, March 19, 2006).
Solve
a. Compute the number of ways the first five numbers can be selected.
Questions
Sample Space
Let us return to the KP&L project assume that the project manager is interested in the event that
the entire project can be completed in 10 months or less.
Let C denote the event that the project is completed in 10 months or less
C = {(2, 6), (2, 7), (2, 8), (3, 6), (3, 7), (4, 6)}
Event C is said to occur if any one of these six sample points appears
as the experimental outcome.
PROBABILITY OF AN EVENT
The probability of any event is equal to the sum of the probabilities of the
sample points in the event.
C = {(2, 6), (2, 7), (2, 8), (3, 6), (3, 7), (4, 6)}, the probability of event C, denoted P(C), is given by
Find P(M)
Any time that we can identify all the sample points of an experiment and
assign probabilities to each, we can compute the probability of an event using
the definition.
However, in many experiments the large number of sample points makes the
identification of the sample points, as well as the determination of their
associated probabilities, extremely cumbersome, if not impossible.
Dice
You toss two dice. What is the probability of the outcomes summing to 5?
This is S:
{(1,1), (1,2), (1,3),
etc.}
There are 36 possible outcomes in S, all equally likely (given fair dice).
Thus, the probability of any one of them is 1/36.
P(the roll of two dice sums to 5) = P(1,4) + P(2,3) + P(3,2) + P(4,1) = 4 / 36 = 0.111
Sample spaces
Its the question that determines the sample space.
A. A basketball player
shoots three free throws.
What are the possible
sequences of hits (H) and
misses (M)?
H -
HHH
M -
HHM
H
M
M
H -
HMH
M -
HMM
S = { 0, 1, 2, 3 }
S = { HHH, HHM,
HMH, HMM, MHH,
MHM, MMH, MMM }
Note: 8 elements, 23
Events example
Events
Complement of an Event
The complement of event A is defined to be the event
consisting of all sample points that are not in A.
The complement of A is denoted by Ac.
Event A
Venn
Diagram
Ac
Sample
Space S
A
2
A
1
5
4
A
6
5
3
4
2
Consider the case of a sales manager who, after reviewing sales reports, states
that 80% of new customer contacts result in no sale. By allowing A to denote the
event of a sale and Ac to denote the event of no sale, the manager is stating that
P(Ac) = .80.
We can conclude that a new customer contact has a .20 probability of resulting
in a sale
Event A
Event B
Sample
Space S
More examples
Mutually Exclusive means we can't get both events at the same time.
Sample Space
Event A
Event B
Sample
Space S
Event A
Sample
Space S
Event B
Union
Let A and B be two events, then the union of A and B is the
new event (denoted by AB) defined by:
A B = {e | e belongs to A or e belongs to B}
The event A B occurs if
the event A occurs or the
event B occurs .
AB
Event A
Intersection of A and B
Event B
Sample
Space S
Intersection
Let A and B be two events, then the intersection
of A and B is a new event (denoted by AB)
defined by: A B = {e| e belongs to A and e belongs to B}
AB
Rules of addition
The probability of a single event is called marginal (or unconditional )
probability
Eg. In the coin tossing example the marginal probability of event Head or tail
can be expressed as P(T) or P(H)
If two or more than two events are likely to occur from a Random Experiment
and we are interested to know the probability of occurrence of at least one of
the events then rules of addition are used to do so.
That is, with events A and B we are interested in knowing the probability that
event A or event B or both occur.
Addition rule
Mutually exclusive events
P( A or B) = P(A) + P(B)
Event A
Sample
Space S
Event B
Question
Consider the pattern of arrival of customers at a service counter during one hour
time slot along with its probability
No of
customers
4 or more
Probability
0.1
0.2
0.3
0.3
0.1
Find the probability that either 2 or 3 customers will arrive at the service
counter during this hour
P (2 or more) =?
AB
There is no need to
include P(A B
Exhaustive events
Condition : P(A B) = 1
P(A B) 1
P(A B C D) = 1
C
B
D
Sample space
Sample space
1. Event A and B ?
2. Event B and C ?
3. Event D and B ?
4. Event E and card drawn from a deck of cards is a diamond card ?
Question
Consider a recent study conducted by the personnel manager of a major
computer software company.
The study showed that 30% of the employees who left the firm within two years
did so primarily because they were dissatisfied with their salary, 20% left
because they were dissatisfied with their work assignments, and 12% of the
former employees indicated dissatisfaction with both their salary and their work
assignments.
What is the probability that an employee who leaves within two years does so
because of dissatisfaction with salary, dissatisfaction with the work assignment,
or both?
Question
50 sports enthusiasts at the Head First Health Club are asked
whether they play baseball, football, or basketball. 10 only play
baseball. 12 only play football. 18 only play basketball. 6 play
baseball and basketball but not football. 4 play football and
basketball but not baseball.
By adding up the values in each circle in the Venn diagram, we can determine that there are 16
total baseball players, 28 total basketball players, and 16 total football players.
The baseball and football events are mutually exclusive. Nobody plays both baseball and
football, so P(Baseball Football) = 0
The events for baseball, football, and basketball are exhaustive. Together, they fill the entire
possibility space, so P(Baseball Football Basketball) = 1
Questions
P(A)
P(B)
P(A B)
P(A B)
1- P(A B)
Question
Are A and A mutually exclusive or exhaustive?
Visualizing Events in
Sample Space
Ace
probability tables:
Black
Red
Total
2
2
4
Not
Ace
24
24
48
2
Tree Diagrams:
Sample
Space
Full Deck
of 52 Cards
24
2
24
Total
26
26
52
Definitions
Simple vs. Joint Probability
Simple (Marginal) Probability refers to the
P( A and B)
Example:
Joint Probability
P(Red and Ace)
Not
Ace
Total
Black
24
26
Red
24
26
Total
48
52
Example:
Marginal (Simple) Probability
P(Ace)
P( Ace and Re d) P( Ace and Black )
Ace
Not Ace
Total
Black
24
26
Red
24
26
Total
48
52
2
2
4
52 52 52
Event
B2
Total
A1
P(A1)
A2
P(A2)
Total
P(B1)
P(B2)
Joint Probabilities
Example
Why are some mutual fund managers more successful than others?
One possible factor is where the manager earned his or her MBA.
The following table compares mutual fund performance against
the ranking of the school where the fund manager earned their
MBA.
Mutual fund outperforms
the market
.11
.29
.06
.54
A1
A2
B1
B2
.11
.29
.06
.54
Marginal Probabilities
Marginal probabilities are computed by adding across rows and
down columns; that is they are calculated in the margins of the
table:
P(A2) = .06 + .54
whats the probability a fund
manager isnt from a top school?
B1
B2
P(Ai)
A1
A2
.11
.29
.40
.06
.54
.60
P(Bj)
.17
.83
1.00
By adding P(A1) plus P(B1) we add P(A 1and B1) twice. To correct we subtract P(A
and B) from P(A) + P(B)
B1
A1
B1
B2
P(Ai)
A1
A2
.11
.29
.40
.06
.54
.60
P(Bj)
.17
.83
1.00
P(A1 or B1) = P(A1) + P(B1) P(A1 and B1) = .40 + .17 - .11 = .46
Total
Male
84
145
229
Female
76
134
210
160
279
439
Total
Rules of Multiplication
Statistically Independent Events
When occurrence of an event does not affect and is not affected by
the probability of occurrence of any other event, the event is said to
be Statistically independent event.
Independent Events are not affected by previous events.
Eg. You toss a coin and it comes up "Heads" three times ... what is
the chance that the next toss will also be a "Head"?
The chance is simply (or 0.5) just like ANY toss of the coin.
What it did in the past will not affect the current toss! So it is an
independent event
Saying "a Tail is due", or "just one more go, my luck is due" is
called The Gambler's Fallacy
Independent event
Eg. You draw one card from a deck and its black and you
draw a second card and its black.
By removing one black card, you made the probability of
drawing a second one slightly smaller. Technically this is
called 'sampling without replacement'.
Taking colored marbles from a bag: as you take each marble
there are less marbles left in the bag, so the probabilities
change.
Rules of Multiplication
Case 1: Statistically independent Events
Joint Probability
Roulette (American)
http://www.casinolistings.com/games/playtech/free-american-roulette-game-playtech
http://rouletterus.com/american-roulette/
https://casino.bovada.lv/table-games/roulette?mode=practice
Conditional probability
New information often changes your expectation about the
probability that a particular event will occur.
For example, you may initially think that your football team has an
80% chance of beating its arch rival.
But if you learn that your star striker is injured and will miss the
game, you would probably reduce your initial estimate.
Summary
Suppose we have an event A with probability P(A).
P(A I B)
Rules of Multiplication
Case 2: Statistically
dependent Events
When the probability of an event depends upon or affected
by the occurrence of any other event, the event is said to
be statistically dependent .
Joint Probability
If A and B are dependent events, then their joint probability is no
longer equal to the product of their individual probabilities.
P (A and B) = P(A B) P(A) x P(B)
Multiplication Rules
Suppose a city council is composed of 5 democrats, 4
republicans, and 3 independents. Find the probability of
randomly selecting a democrat followed by an independent.
Is P(A|B) = P(A)?
If you answer yes to any one of these three questions then
events A and B are independent.
Statistical Independence
Events A and B are independent if the occurrence of
P(A | B) P(A)
P(B | A) P(B)
So how do we know the classes are independent? Lets multiply together P(Yoga) and
P(Swimming) and see what we get.
P(Yoga) P(Swimming) = 1/3 = 1/4
As this is the same as P(Yoga Swimming), we know that the classes are independent
Dumb Questions
Whats the difference between being independent and being
mutually exclusive?
Are all games on a roulette wheel independent? Why?
Youve shown how a probability tree can demonstrate
independent events. How do I use a Venn diagram to tell if events
are independent?
A Venn diagram really isnt the best way of showing dependence.
Venn diagrams are great if you need to examine intersections and
show mutually exclusive events. Theyre not great for showing
independence though.
Conditional Probability