Introduction
Introduction
Introduction
Sample Space and Events
Basic definitions
• Random experiment:
Any activity whose outcome is not known in advance
with certainty each time it is repeated.
– Flipping a coin
– Tossing a die
– Product conformity
– Number of defectives in a sample
– Demand for a product
– Life of a product
Dr. Shokri Z. Selim 2
Sample Space and Events
Basic definitions
• Sample Space, S: The set of all possible outcomes.
– Flipping a coin
– Tossing a die
– Product conformity
– Number of defectives in a sample
– Demand for a product
– Life of a product
(Ec⋂G)⋃F
disjoint
• A⋃B = (A – B) + B
disjoint
A⋃B = [ A – (A∩B) ] + B
P A B
P B | A , P A 0
P A
P A B P B | A P A
P A | B P B
P A B C D P D | A B C P C | A B P B | A P A
P(A|B) = P(A)
P(B|A) = P(B)
P(A⋂B) = P(A)P(B)
Let A denote the event that a disk has high shock resistance, and let B denote the event that a disk has
high scratch resistance. Are events A and B independent?
Independent events are events where knowing the outcome of one doesn't change
the probability of the other
P Ai A j P Ai P A j
P Ai A j Ak P Ai P A j P Ak
P A1 A2 An P A1 P A2 P An
Dr. Shokri Z. Selim 26
Jointly independent events
Source: Wikipedia
27
Pairwise independent but not jointly
(mutually) independent
Source: Wikipedia
28
Independent events
True or false:
Machine A B C
% of total qA qB qC
production
Prob(defective) pA pB pC
P(defective part) = ?
P ( E1 ) P ( E1 )
P ( A before B ) =
1 - P( E3 ) P( E1 ) P( E2 )
If P( E3 ) 0; P( A before B ) P ( E1 )
B = { a claim is made }
= the claim prob. for the four individual plants
P( B) P( A1 ) P( B | A1 ) P( A2 ) P( B | A2 ) P( A3 ) P( B | A3 ) P( A4 ) P( B | A4 )
(0.20 0.05) (0.24 0.11) (0.25 0.03) (0.31 0.08)
0.0687
P( A B )
P( A | B )
P( B )
P ( B | A) P ( A)
for P ( B ) 0
P( B )
P( S | D ) P( D )
P( D | S )
P( S | D ) P( D ) P( S | D c ) P( D c )
0.99 * 0.0001
0.001976
0.99 * 0.0001 0Z. Selim
Dr. Shokri .05 * 0.9999 53
Example 34
Printer failures are associated with hardware, software, or other problems
with probabilities 0.1, 0.6, and 0.3 respectively.
P( HW F )
P( HW | F )
P( F )
P( HW F )
P( HW F ) P( SW F ) P(O F )
P( F | HW ). P( HW )
( F | HW ). P ( HW ) P( F | SW ). P( SW ) P( F | O ). P(O )
P(HW) = 0.1, P(SW) = 0.6, P(O) = 0.3
P(F|HW) = 0.9, Dr.P(F|SW) = 0.7, P(F|O) = 0.5
Shokri Z. Selim 55
Solution
P(H|F)=1/4
P(S|F)=1/3
P(O|F)=5/12
• Bayes’ Theorem
If A1 , A 2 ,..., An is a partition of a sample space, then the posterior
probabilities of the event Ai conditional on an event B can be obtained
from the probabilities P ( Ai ) andP( B | Ai ) using the formula
P ( Ai ) P ( B | Ai )
P( Ai | B) n
P(A ) P( B | A )
j 1
j j