Probability
Probability
Dr S G Deshmukh
Mechanical Department Indian Institute of Technology
1
Learning Objectives
Comprehend the different ways of assigning probability. Understand and apply marginal, union, joint, and conditional probabilities. Select the appropriate law of probability to use in solving problems. Solve problems using the laws of probability including the laws of addition, multiplication and conditional probability Revise probabilities using Bayes rule.
2
Classical Probability
Number of outcomes leading to the event divided by the n total number of outcomes P( E ) = e N possible Where: Each outcome is equally N = total number of outcomes likely Determined a priori -- before ne = number of outcomes in E performing the experiment Applicable to games of chance Objective -- everyone correctly using the method assigns an identical 4 probability
= n m er o o tco es u b f u m
p d cin E ro u g
Subjective Probability
Comes from a persons intuition or reasoning Subjective -- different individuals may (correctly) assign different numeric probabilities to the same event Degree of belief Useful for unique (single-trial) experiments
New product introduction Initial public offering of common stock Site selection decisions Sporting events
Structure of Probability
Experiment Event Elementary Events Sample Space Unions and Intersections Mutually Exclusive Events Independent Events Collectively Exhaustive Events Complementary Events
Experiment
Experiment: a process that produces outcomes More than one possible outcome Only one outcome per trial Trial: one repetition of the process Elementary Event: cannot be decomposed or broken down into other events Event: an outcome of an experiment may be an elementary event, or may be an aggregate of elementary events usually represented by an uppercase letter, e.g., A, E1
An Example Experiment
Experiment: randomly select, without replacement, two families from the residents of Tiny Town
x Elementary Event: the sample includes families A and C x Event: each family in the sample has children in the household x Event: the sample families own a total of four automobiles Tiny Town Population
Family Children in Household Number of Automobiles
A B C D
3 2 1 2
9
Sample Space
The set of all elementary events for an experiment Methods for describing a sample space
roster or listing tree diagram set builder notation Venn diagram
10
A B C D
3 2 1 2
(A,B), (A,C), (A,D), (B,A), (B,C), (B,D), (C,A), (C,B), (C,D), (D,A), (D,B), (D,C)
11
13
Sample Space
Useful for discussion of general principles and concepts
Listing of Sample Space
(A,B), (A,C), (A,D), (B,A), (B,C), (B,D), (C,A), (C,B), (C,D), (D,A), (D,B), (D,C)
Venn Diagram
14
Union of Sets
The union of two sets contains an instance of each element of the two sets.
Y = { 2,3,4,5,6} X = { 1,4,7,9}
X Y
X Y = { 1,2,3,4,5,6,7,9}
15
Intersection of Sets
The intersection of two sets contains only those element common to the two sets.
Y = { 2,3,4,5,6} X Y = { 4} X = { 1,4,7,9}
Y = { 2,3,4,5,6} X Y = {
X = { 1,7,9}
P( X Y ) = 0
17
Independent Events
Occurrence of one event does not affect the occurrence or nonoccurrence of the other event The conditional probability of X given Y is equal to the marginal probability of X. The conditional probability of Y given X is equal to the marginal probability of Y.
P ( X | Y ) = P ( X ) a n dP ( Y | X ) = P ( Y )
18
E1
E2
E3
Complementary Events
All elementary events not in the event A are in its complementary event.
Sample Space
P ( S a m p leS p a ce = 1 )
P ( A ) = 1 P ( A)
20
21
mn Rule
If an operation can be done m ways and a second operation can be done n ways, then there are mn ways for the two operations to occur in order. A cafeteria offers 5 salads, 4 meats, 8 vegetables, 3 breads, 4 desserts, and 3 drinks. A meal is two servings of vegetables, which may be identical, and one serving each of the other items. How many meals are available?
22
23
Combinations
A tray contains 1,000 individual tax returns. If 3 returns are randomly selected without replacement from the tray, how many possible samples are there?
25
P( X )
The probability of X occurring
P( X Y )
The probability of X or Y occurring
P( X Y )
The probability of X and Y occurring
P( X | Y )
The probability of X occurring given that Y has occurred
X Y
X Y Y
26
27
S
.67
P( N ) P( S ) P ( N S ) P ( N S )
28
Noise Reduction
Yes No Total
29
Noise Reduction
Yes No Total
Noise Reduction
Yes No Total
32
P( X Y ) = 1 P( X Y )
33
P( N S ) = 1 P( N S ) = 1.81 =.19
34
Y X
35
Example..
Type of
Total 11 44 69 31 155
Example..
Type of
Total 11 44 69 31 155
Law of Multiplication
P ( X Y ) = P ( X ) P (Y | X ) = P (Y ) P ( X | Y )
80 P( M ) = = 0. 5714 140 P( S| M ) = 0. 20 P ( M S ) = P ( M ) P ( S| M ) = ( 0. 5714)( 0. 20) = 0.1143
38
P(MS) = P(M) P(MS) P(S) =1 P(S) =1 0. 24 = 0. 75 13 87 = 0.51 0.14 = 0. 47 74 13 51 P(M S) = P(S) P(MS) = 0.24 0.14 = 0.10 13 13 00 P(M) =1 P(M) =1 0.51 = 0. 48 74 26
39
P ( X Y ) = P ( X ) P (Y | X ) = P (Y ) P ( X | Y ) Special Law
If events X and Y are independent, P( X ) = P( X | Y ), and P(Y ) = P(Y | X ). Consequently, P( X Y ) = P( X ) P(Y )
40
P ( X Y ) P (Y | X ) P ( X ) P( X |Y ) = = P (Y ) P (Y )
41
N
.70
42
Noise Reduction
Yes No Total
Independent Events
If X and Y are independent events, the occurrence of Y does not affect the probability of X occurring. If X and Y are independent events, the occurrence of X does not affect the probability of Y occurring.
If X and Y are independent events , P( X | Y ) = P( X ), and P(Y | X ) = P(Y ).
44
.21 1.00
P( A) = 0.28
45
D A B C 8 20 6 34
E 12 30 9 51 20 50 15 85
46
47
48
P( Ei )
0.65
P(d| Ei )
0.08
P(Ei d) P( Ei| d )
0.052 0.052 0.094 =0.553
A Alamo
S South Jersey
0.35
0.12
0.042 0.094
0.094
S 0.35
50
52
Number of sequences containing 1 commercial and 2 retail customers n n! 3! nCr = = = =3 r r !( n r ) ! 1!( 3 1) ! Probability of a sequence containing 1 commercial and 2 retail customers
9 27 ( 3) = 64 64
54
55
Number of sequences containing exactly 2 erroneous tax returns n n! 4! n nCr = = C = = =6 r r !( n r ) ! 2 !( 4 2) ! r Probability of a sequence containing exactly 2 erroneous tax returns
55,552 ( 6) 0.06 5,527 ,200
58
Examples on Probability
A bag contains 5 white balls & 4 black balls. One ball is drawn at random. What is the probability of drawing alternative white and black ball? Ans:
=
5 4 4 3 3 2 2 1 1 9 8 7 6 5 4 3 2 1 126
59
Examples on Probability
If on an average rain falls on 12 days in every 30 day. Find probability 1) that first 3 of a given week will be fine and remainder wet. 2) that rain will fall on just 3 days of a given week. Ans. Here p= 12/30 =0.40 1) (0.40) (0.40) (0.40) (0.60)4 = (0.40)3 (0.60)4 = 0.0038 2) 7c3 (0.40)3 (0.60)4 = 0.2903
60
Chebyshevs Inequality
1 p [ x k ] k = ( x ) f ( x)
2 2 2
= ( x ) f ( x) + ( x ) f ( x) + ( x ) f ( x)
2 2 2 R1 R2 R3
R1 = x ( k ) R 2 = ( k ) < x < ( + k ) R 3 = x ( + k )
61
But ( x ) k ...inR1
( x ) k ...inR3
or x k ...inR1or 3
k
2 2 2
[ f ( x ) + f ( x )]
R1 R3
1 [ f ( x ) + f ( x )] k
62