Академический Документы
Профессиональный Документы
Культура Документы
Lecture 11
Prof. Dr. M. Junaid Mughal
1
Last Class
• Introduction to Probability
– Conditional Probability
– Independent events
• Examples
2
Today’s Agenda
3
Example
4
Example
5
Example
6
Exercise
• 2.78. A class in advanced physics is comprised of 10 juniors,
30 seniors, and 10 graduate students. The final grades show
that 3 of the juniors, 10 of the seniors, and 5 of the graduate
students received an A for the course. If a student is chosen
at random from this class and is found to have earned an A,
what is the probability that he or she is a senior?
7
Theorem of Total Probability
B1 B2
k B5
P( A) P ( Bi A) Bk
i 1 B3 A
k
P( Bi ) P ( A | Bi ) …
i 1 B4
8
Example
• In a certain assembly plant, three machines, B 1, B2, and B3,
make 30%:, 45%, and 25%, respectively, of the products. It is
known from past, experience that 2%, 3%, and 2% of the
products made by each machine, respectively, are defective.
Now suppose that a finished product is randomly selected.
What is the probability that if is defective?
9
Bayes’ Rule
P( Br ) P( A | Br )
P( Br | A) k
P( B ) P( A | B )
i 1
i i
10
Bayes’ Rule (Proof)
P ( Br A)
We know, P ( Br | A)
P ( A)
And from the Theorem of Total Probabilty we know
k
P( A) P ( Bi ) P ( A | Bi )
i 1
P( B ) P( A | B ) P( B ) P( A | B )
i 1
i i
i 1
i i
11
Bayes’ Rule (Alternate Form)
We know,
P ( B A)
P ( B | A) P ( B A) P ( B | A ) P ( A)
P ( A)
and also
P( A B)
P ( A | B) P( A B) P( A | B)P(B)
P(B)
As we know that
P ( A B ) P ( B A)
Therefore ,
P ( B | A) P ( A) P ( A | B ) P ( B )
12
Example
13
Example
14
Example
• A company producing electric relays has three
manufacturing plants producing 50, 30, and 20 percent,
respectively, of its product. Suppose that the probabilities
that a relay manufactured by these plants is defective are
0.02,0.05, and 0.01, respectively. If a relay is selected at
random from the output of the company, what is the
probability that it,
– a) it is defective?
– b) If a relay selected at random is found to be defective, what is
the probability that it was manufactured by plant 2?
15
Random Variables
• Example
– Number of people visiting an ATM
– Pressure of gas at different CNG stations
– Tossing of coin???
16
Random Variables
• Example
– Two balls are drawn in succession without
replacement from an urn containing 4 red balls and
3 black balls it’s sample space is
17
Example
18
Example
19
Example
20
Example
21
Discrete and Continuous Sample Space
22
Example
23
References
24