Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Probability Theory
Outline
• The concept of Probability.
• Definition of Probability.
• Exercise.
• Exercise.
The Concept of Probability
• Nothing in life is certain. In everything we do, we gauge the
chances of successful outcomes, from business to Interview to
the weather.
• Managers often base their decisions on an analysis of
uncertainties such as the following:
what are the chances that a new product launched in the
market is well received by the customers?
0 .5 1
Probability:
Random Experiment:
An experiment with two are more results and there is
uncertainty about the occurrence of a specific result.
Other features are:
-- it is repeatable,
-- all results can be described.
Event:A specific outcome of a single trial of a random experiment
.
Sample Space : The set of all possible events associated with a
random experiment and is denoted by S or ‘Ω’.
Probability: The probability of an event , E, denoted P(E), is the
likelihood of that event occurring.
Types of Events
• Event : A specific outcome of a single trial of a
random experiment
• Equally Likely Events: Events having the same
probability of occurrence.
• Mutually Exclusive Events: Events which can not
occur Jointly .
• Independent Events: Occurrence of one event
does not influence the probability of occurrence
of the other event
• Collectively Exhaustive Events: Events which add
up to the sample space:
Defining Probability
In general there are three ways of defining probability:
Empirical Method
Probability of an event = The observed relative frequency of an event
in a very large number of trials
Subjective Method
Probability of an event = ‘belief’ of a person regarding the occurrence of an
event based on what ever evidence is available.
We generally compute Probability using the classical method
as follows:
9
Exercise
Classify the following probability estimates as
classical, empirical and subjective.
1. The probability of a tie in T 20 cricket match is 0.02.
2. The probability that minister resigns from the cabinet is
0.5
4. The probability that you will visit Europe this year is 0.8
Classical Method
𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝒐𝒖𝒕𝒄𝒐𝒎𝒆𝒔 𝒘𝒉𝒆𝒓𝒆 𝒕𝒉𝒆 𝒆𝒗𝒆𝒏𝒕 𝒐𝒄𝒄𝒖𝒓𝒊𝒏𝒈
Probability of an event =
𝑻𝒐𝒕𝒂𝒍 𝒏𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝒑𝒐𝒔𝒔𝒊𝒃𝒍𝒆 𝒐𝒖𝒕𝒄𝒐𝒎𝒆𝒔
Empirical Method
Probability of an event = The observed relative frequency of an event
in a very large number of trials
Subjective Method
Probability of an event = ‘belief’ of a person regarding the occurrence of an
event based on what ever evidence is available.
Probability Rules
• Rule 1.
The probability of any event (E) is a number between zero and
one.
0 < P(E) < 1
• Rule 2.
The sum of the probabilities of all basic outcomes in the
sample space must equal one
P(S)=P(E1)+P(E2)+P(E3)+....+P(En)=1
• Rule 3.
The Complement of an event is the remainder of the sample
space beyond the event
P (E’) = 1 - P (E)
4. Addition Rule : For Any two events A and B.
P(A U B) = P(A) + P(B) – P(A ∩ B), if (A& B are not mutually exclusive)
A
B A A
BB
A B A B =0
5 : Conditional Probability
• Similarly we can also define the probability of occurrence of ‘B’ given the
occurrence of ‘A’ :
P( A) P( A B) P( A B )
P( A B) P( B ) P( A B ) P( B )
8. Bayes’ Rule
For any two events A and B
P(B/A) = P(A/B).P(B)
P(A)
With total probability rule we can write
P(B/A) = P(A/B).P(B)
P(A/B) P(B)+P( A/ B̅ )P(B̅ )
Conditional Probability (VS) Joint probability
Example:2
A consulting firm gets job A with a probability of 0.45, if it gets
job A , the chance that it will get another job B is 0.9. What is
the probability that firm will get both the jobs.
Bay’s Theorem
Example:1
Suppose a person has two coins in his purse, one is a fair coin
and the other is two headed. He takes a coin out at random
and tosses it and it turned out to be head. What is the
probability that the tossed coin is two headed?
We need to calculate
P ( H A)
P ( H A)
P ( A)
P ( H A)
P ( H A) P ( M A) P ( L A)
P( A H ) P( H )
P ( A H ) P ( H ) P ( A M ) P ( M ) P ( A L) P ( L)
( 0.70)( 0.30)
( 0.70)( 0.30) ( 0.40)( 0.50) ( 0.20)( 0.20)
0.21 0.21
0.21 0.20 0.04 0.45
0.467
Example 4
If a large competitor will buy a small firm, the
firm stock will rise with probability 0.85. The
purchase of the company has a 0.40 probability.
What is the probability that a purchase will take
place and firm stock will rise.
Exercise:5
A problem can be solved independently by three students,
A, B and C with respective probabilities: 1/2, 1/3 and 1/4.
What is the probability that the problem is solved?
Recap: Probability Theory
• Probability is a numerical measure of
uncertainty associated with the occurrence of
an event.
• Fundamental concepts of probability.
• Definition of probability : three approaches
• Rules of probability: “seven rules”
• Examples on probability.
We generally compute Probability using the
classical method as follows:
A bag contains 6 red 4 white and 8 blue balls. Of these balls 3 balls
are drawn at random. How many number of possible Outcomes are
there in this random experiment.
n n!
n C r
r r! (n r)!
Forexample:
n 6! 6! 6 * 5 * 4 * 3 * 2 *1 6 * 5 * 4 120
6 C3 20
r 3!(6 3)! 3!3! (3 * 2 *1)(3* 2 *1) 3 * 2 *1 6
Permutations (Order is important)
P n!
n r (n r )!
Fo rexa m p le:
6! 6! 6 * 5 * 4 * 3 * 2 *1
6 P3 6 * 5 * 4 120
(6 3)! 3! 3 * 2 *1
Problem 1
A bag contains 6 red 4 white and 8 blue balls. Of
these balls 3 balls are drawn at random then find
the probability that
.
Problem 2
A committee of 4 people are to be appointed from 3 officers of
production department, 4 officers of purchase department, 2
officers of sales department and 1 chartered accountant.
sample space
S
-3 -2 -1 0 1 2 3
Definition of a Random Variable
• Random variables assigns a real number to each outcome
of a particular random experiment.
A Random Variable ‘ X ’ can be defined as X : S → R
-3 -2 -1 0 1 2 3
Types of Random Variables
Two types:
b
– Continuous case: Pr(a X b) p ( x)dx
a
Probability Distributions of Random
Variables
Probability Distribution Function(PDF) of a
Random Variable
BBBB 0
BGBB
GBBB
BBBG 1
BBGB
GGBB
GBBG X
BGBG 2
BGGB
GBGB
BBGG
BGGG
GBGG 3
GGGB
GGBG
GGGG 4 Points on the
Real Line
Sample Space
Probability Distribution of a random
variable
Since the random variable X = 3 when any of the four outcomes BGGG, GBGG,
GGBG, or GGGB occurs,
P(X = 3) = P(BGGG) + P(GBGG) + P(GGBG) + P(GGGB) = 4/16
The probability distribution of a random variable is a table or graph that lists
the possible values of the random variables and their associated probabilities.
x P(x)
0 1/16
1 4/16
2 6/16
3 4/16
4 1/16
16/16=1
Random Variables (Continued)
0.3
Probability, P(X)
4/16 4/16
0.2
0.1
1/16 1/16
0.0
0 1 2 3 4
Number of Girls, X
Summary Measures of
Probability Distribution
1. Expected Value (Mean of probability distribution)
• It is the weighted average of all possible values
• = E(x) = xp(x)
2. Variance
• Weighted average of squared deviation about
mean
• 2 = E[(x 2(x 2 p(x)
3. Standard Deviation = 𝑉𝑎𝑟𝑖𝑎𝑛𝑐𝑒 = σ
Summary Measures Calculation
Table
X 1 2 3 4 5
P(X) k 2k 3k 4k 5k
Theoretical Probability Distributions:
• Binomial Distribution.
• Poisson Distribution.
• Uniform Distribution.
• Normal Distribution
Binomial Distribution
Number of ‘r’ successes in a sample of n observations
(trials)
• Number of heads in 15 spins of roulette wheel
• Number of defective items in a batch of 5 items
• Number correct on a 33 question exam
• Number of customers who purchase out of 100
customers who enter store (each customer is
equally likely to purchase)
Binomial Probability
Characteristics of a Binomial Experiment
• The experiment consists of n identical trials.
• There are only two possible outcomes on each trial. We
will denote one outcome by S (for success) and the other
by F (for failure).
• The probability of S remains the same from trial to trial.
This probability is denoted by p, and the probability of
F is denoted by q. Note that q = 1 – p.
• The trials are independent.
• The binomial random variable x is the number of S’s in
n trials.
Deriving Binomial Distribution Formula:
Binomial Probability Distribution
The probability distribution of Binomial random variable is given as
n x n x n!
p( x) p q p x (1 p ) n x
x x ! ( n x )!
5!
p (3) .53 (1 .5)53
3!(5 3)!
.3125
Mean, Variance, and Standard Deviation of the
Binomial Distribution
V ( X ) npq
2
V ( H ) (5)(.5)(.5) 1.25
2
H
0
10
20
x
30
Binomial PDF
40
50
Ex:1
A salesperson goes door-to-door in a residential area to
demonstrate the use of a new household appliance to potential
customers. At the end of a demonstration, the probability that the
potential customer would place an order for the product is a
constant 0.21, Then find out:
Examples:
• the number of telephone calls received per hour by an office.
• the number of strikes per year in an Organization.
• the number of customers arrive in a mall in a specific time interval.
• the number of games postponed due to rain during a baseball season.
• the number of leakages in 10 miles of a pipe line.
• the number of twins born out of given number of births in a locality.
Practical Use of Poisson PDF
The Poisson PDF is generally used to model rare events like:
i) Distribution of telephone calls going through a switch board.
ii) The number of vehicles arriving at a tollgate in a specific
time interval.
iii) The number of accidents on a given day at an intersection.
• The number of events that occur in one unit of time, area, or volume is
independent of the number that occur in any other mutually exclusive
unit.
• The actual number of successes that occur in the fixed iterval is denoted
by ‘x’.
Poisson Probability Distribution
•Discovered by a French mathematician S.D.Poisson .
• The average number of successes (λ) that occurs in a specified region is known.
• The probability that a success will occur is proportional to the size of the region.
• The probability that a success will occur in an extremely small region is virtually zero
• Specified region could take many forms: length, area, volume, period of time, etc.
• In general, if we count the number of times a event occurs
during a fixed interval, then that number would follow a
Poisson distribution.
–
ex
P(x | ) = (x = 0, 1, 2, 3, . . .)
x !
2
p(x|λ) = Probability of x given
= Mean number of events in an interval
e = 2.71828 . . . (base of natural logarithm)
x = Number of events per unit
Poisson Probabilities
Ex:1
The number of typological errors in a text book
are Poissonly distributed with a mean of 1.5
errors per 10 pages. What is the probability that
a randomly selected 10 pages of the text book
does not contain any error?
Poisson Distribution Example
Customers arrive in a
booking counter at a
rate of 72 per hour.
What is the probability
of 4 customers arriving
in 3 minutes? © 1995 Corel Corp.
Poisson Distribution Solution
72 Per Hr. = 1.2 Per Min. = 3.6 Per 3 Min. Interval
-
e
x
p( x)
x!
3.6
4 -3.6
e
p (4) .1912
4!
Thinking Challenge
You work in Quality Assurance
for a Bank. A clerk enters 75
words per minute with 6 errors
per hour. What is the
probability of 0 errors in a 255-
word cash transaction?
Poisson Distribution Solution:
Finding *
• 75 words/min = (75 words/min)(60 min/hr)
= 4500 words/hr
• 6 errors/hr= 6 errors/4500 words
= .00133 errors/word
• In a 255-word transaction (interval):
= (.00133 errors/word )(255 words)
= .34 errors/255-word transaction
Poisson Distribution Solution:
Finding p(0)*
-
e
x
p( x)
x!
.34
0 -.34
e
p (0) .7118
0!
dbinom(x, 20, 0.4)
0
10
20
x
30
Binomial PDF
40
50
Probability Distributions for Continuous Random
Variables
Probability Distributions for Continuous Random Variables
• We don’t calculate P(X = x1), we calculate P(a < X < b), where
a and b are real numbers
Continuous Random Variable
Examples
.
The Normal Probability Distribution
The most important continuous probability distribution in the entire field of
statistics is the normal probability distribution.
Describes many random processes or continuous phenomena in practical
problems. It is also called as Gaussian Distribution.
If a r.v is effected by a number of independent causes and the effect of each
cause is not overwhelmingly large compared to others then the r.v will
closely follow a normal distribution.
Its graph, called the normal curve, is the bell-shaped curve of which
approximately describes many phenomena that occur in nature, industry,
and research.
ex: Physical measurements in areas such as weights, Heights, lengths,
Business world variables like: prices, incomes, sales, etc can be used to
approximate discrete probability distributions
1
2
f (x) e
2
This is a bell shaped curve with different
centers and spreads depending on and
where
µ = Mean of the normal random variable x
= Standard deviation
π = 3.1415 . . .
e = 2.71828 . . .
Normal Distribution Curve
Properties of Normal distribution
-3σ -2σ -σ μ σ 2σ 3σ
f(x)
x
c d
Family of Normal
Distributions
Normal distributions differ by Each distribution would
mean & standard deviation. require its own table.
f(x)
x That’s an infinite
number of tables!
Standard Normal Distribution
The standard normal distribution is a normal
distribution with µ = 0 and = 1. A random variable
with a standard normal distribution, denoted by the
symbol z, is called a standard normal random variable.
The Standard Normal Table:
P(0 < z < 1.96)
Standardized Normal
Probability Table (Portion)
Z .04 .05 .06 =1
1.8 .4671 .4678 .4686
.4750
1.9 .4738 .4744 .4750
2.0 .4793 .4798 .4803
= 0 1.96 z
2.1 .4838 .4842 .4846 Shaded area
Probabilities exaggerated
The Standard Normal Table:
P(–1.26 z 1.26)
Standardized Normal Distribution
=1
f(x)
x That’s an infinite
number of tables!
The Standard Normal Distribution
The standard normal distribution has a mean of 0 and a
standard deviation of 1.
Using z-scores any normal distribution can be transformed into
the standard normal distribution.
–4 –3 –2 –1 0 +1 +2 +3 +4 z
μ
Standardize the
Normal Distribution
x
z
Normal Standardized Normal
Distribution : N(, Distribution: N(0,1)
=1
x = 0 z
One table!
The Standard Normal Table:
P(0 < z < 1.96)
Standardized Normal
Probability Table (Portion)
Z .04 .05 .06 =1
1.8 .4671 .4678 .4686
.4750
1.9 .4738 .4744 .4750
2.0 .4793 .4798 .4803
= 0 1.96 z
2.1 .4838 .4842 .4846 Shaded area
Probabilities exaggerated
Normal Distribution to Standard
Normal Distribution
x 100 115
Z (Standard Normal Distribution)
SAME
Z 0 1
Non-standard Normal μ = 5, σ = 10:
P(2.9 x 7.1)
x 7.1 5
z .21
10
Normal Standardized Normal
Distribution Distribution
= 10 =1
.1664
.0832 .0832
.1179
.0347
.0832
.4772
.0040 .4960
(𝑥− µ)
We converted X into Z by the transformation Z =
From the table find out the value of Z corresponding to this probability
0, otherwise.
𝟏 1
where, k = --------
𝒃−𝒂 𝑏−𝑎
Mean = 1/(b-a) 0 a b
variance = (b-a)2/12
• The uniform probability distribution provides a model for continuous random
variables that are evenly distributed over a certain interval.
• That is, a uniform random variable is one that is just as likely to assume a value in
one interval as it is to assume a value in any other interval of equal size.
• The density function forms a rectangle with base b−a and constant height 1/b−a. As a result,
the uniform distribution is often called the rectangular distribution.