Probability Prof Docs
Probability Prof Docs
Classification of Processes
• Based on the nature of the processes, they can be classified as:
Deterministic
• No uncertainty about the time dependence of the process at any
instant of time
• Conservation laws 2m
m
Stochastic/Random
• Processes depend upon number of unknown factors, and hence,not
completely predictable
• Most real life processes – throwing of dice, detection of an
encoded signal at receiver, weather forecasting,etc.
Approximations
Imperfections
Disturbances
• In many situations one will know what are all the possible outcomes,
but one cannot be certain about the exact outcome
• e.g. You Buy a Lottery ticket
• You may win, or may not win – Possibilities are fixed, known
• Will you win, or not win – Exact outcome is uncertain
• e.g. You roll a dice
• You may get 1,2,3,4,5, or 6 - Possibilities are fixed, known
• Will you get 1,2,3,4,5, or 6 - Exact outcome is uncertain
• Both the examples above has an element of randomness that governs
the outcome at any instance
Quantifying Randomness
• Lets take the example of rolling the dice again
• If two people experiment (with 10 trials) to understand what is the proportion
of the outcome being “6”, we may get something like this..
Roll Your Cumulative Cumulative
(Trial) Roll Proportion of 6's My roll Proportion of 6's
1 6 1/1 1 0/1
2 5 1/2 2 0/2
3 1 1/3 1 0/3
4 6 2/4 1 0/4
5 6 3/5 3 0/5
6 2 3/6 2 0/6
7 3 3/7 4 0/7
8 1 3/8 5 0/8
9 4 3/9 3 0/9
10 4 3/10 6 1/10
You may have vastly different predictions with small number of trials – Expected of a random phenomenon
At the end of 250 trials, proportion of 6’s – 50/250, and at the end of 1000 trials – 170/1000
Quantifying Randomness - Probability
• If the number of trials are large (or as they say “In the Long
Run”),the proportion of 6’s will be closer to 1/6.
The sum of the two die values cannot be 0, or 1, and also cannot be
greater than 12
We can get a sum of 2, through only one combination: {1,1}. Hence probability of sum = 2, is 1/36
We can get a sum of 6, through the following combinations: {1,5}, {5,1}, {2,4}, {4,2}, {3,3}.Hence probability of sum = 6, is 5/36
Sum 2 3 4 5 6 7 8 9 10 11 12 Total
Probability 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36 1
Binomial
1.20E-01
1.00E-01
1
Uniform Distribution f ( x) ,a x b
ba
Sampling Distribution - Proportions
• Mutually Exclusive events are events which do not have any common
outcomes:
• Say, in a three coin toss,
• Event A = {First toss is heads}
• Event C = {First Toss is Tails}
• Event A = {HHH, HHT, HTH, HTT}, P(A) = 4/8
• Event C = {THH,THT, TTH, TTT}, P(C) = 4/8
• If we define a new event D, as either Event A or Event C,
• P(D) = P(A or C) = P(A)+P(C) = 4/8+4/8 = 1
• i.e. – is the sum rule for mutually exclusive events
Mutually non-exclusive events – Addition Rule
• Mutually Non-Exclusive events are events that do have some common
outcomes:
• Say, in a three coin toss,
• Event A = {First toss is heads, and there are two heads in total} {HHH, HHT, HTH}, P(A) = 3/8
• Event B = {First Toss is Heads, and the last is not tails} {HHH, HTH}, P(B) = 2/8
• If we define a new event C, as either Event A or Event B
• P(C) = {P(A or B) = P(A)+P(B) – Outcomes that are double counted}
= 3/8+2/8 -2/8 = 3/8
• i.e.
• – is the sum rule for mutually non-exclusive events
Independent Events – Product Rule
• Two events are independent, if occurrence of one event does not
influence the occurrence of the other event
• e.g. Suppose we want to know the probability of event {HHT}, in a three coin toss..
• First Event = P(Heads in the first toss) = ½
• Second Event = P(Heads in the second toss) = ½
• Third Event = P ( Tails in the third toss) = ½
• The outcome of the first event does not affect the outcome of the second event,
and so forth.
• Therefore, P(HHT) = ½ * ½ * ½ = 1/8
• i.e. x P(C) – Is the Product rule for independent
events
Joint, Marginal, and Conditional Probabilities
Quality Check Plant A Plant B Plant C Total
Pass 9000 4000 4500 17500
Fail 1000 1000 500 2500
Total 10000 5000 5000 20000
A AC
F∩ A) F F
Joint, Marginal, and Conditional Probabilities
Quality Check Plant A Plant B Plant C Total
Pass 9000 4000 4500 17500 P(Test = Fail | Plant = A)
Fail 1000 1000 500 2500
Total 10000 5000 5000 20000 = P(Test =Fail ∩ Plant = A)/P(Plant =A)
Just like we computed P(Test = Fail | Plant = A), we can also compute P(Plant = A | Test = Fail), from the
contingency table as = P(Pant =A ∩ Test = Fail)/P(Test = Fail) = 0.05/0.125 = 0.4 (or as 1000/2500)
Joint, Marginal, and Conditional Probabilities
Quality Check Plant A Plant B Plant C Total
Pass 0.45 0.20 0.225 0.875
Fail 0.05 0.05 0.025 0.125
Total 0.5 0.25 0.25 1.0
The above formula relates two conditional probabilities, and two marginal probabilities, and is the
Bayes Theorem
Bayes Theorem
It is interpreted commonly as
The above are a set of marginal and conditional probabilities, which we compute by
constructing the contingency table
P ( A B )
P ( A B ) ( ∩ )
P (B ) P(Positive | Disease) =
( )
Bayes Theorem – An example
A patient is diagnosed with a rare disease. The doctor informs that the test is very accurate.
90% of those who have the disease are correctly tested positive, and 95% of those who
don’t have the disease are tested negative. He also says that the disease is normally found
in only 0.1 % of the population. Should the patient be worried?
Let us say, 100000 people were tested in total – 100 had the disease in total (0.1%)
90% of those who had the disease tested positive, and 10% tested negative
95% of those who did not have the disease tested negative, and 5% tested positive
Test +ve Test -ve Total = 90/100 = 0.9
Has Disease 90 10 100
No Disease 4995 94905 99,900
Total 5085 94915 1,00,000
.
Using the Bayes Equation we compute
.
Reference
• A first course in probability by Sheldon M. Ross
• Introduction to probability and statistics for engineers and scientists
by Sheldon M. Ross