








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









6/23/2012 Lecture 4:^ Nasir M Mirza^1
Room A-114,
Department of Physics & Applied Mathematics,
Pakistan Institute of Engineering & Applied Sciences, PIEAS
P.O. Nilore, Islamabad
email: [email protected]
Lecture Four: Probability Theory
6/23/2012 Lecture 4:^ Nasir M Mirza^2
Monte Carlo calculations are numerical stochastic process; a sequence
of random events.
Elementary Events: Those events that we can not further analyze into
simpler events. For example, results (HEAD or TAIL) of a coin flipping are
elementary events.
Compound or Composite Events: Those events that are defined from a
number of elementary events. For example, results of flipping two coins.
Random Events occur in nature. For example,
6/23/2012 Lecture 4:^ Nasir M Mirza^4
Given an elementary event with a countable set of random outcomes,
E 1 , E 2 , E 3 , En
k
Another notation for the probability of event Ek is:
k
k k P (E ) p
A property: P{^ Ek and /or Ej} pk pj
6/23/2012 Lecture 4:^ Nasir M Mirza^5
If two events Ek and Ej are mutually exclusive:
and j then all the possible events (exhaustive set) will have following
property:
j
Two events Ei and Ej are mutually exclusive events if and only if the
occurance of Ei implies that Ej does not occur.
6/23/2012 Lecture 4:^ Nasir M Mirza^7
This can be extended to k events as
k
i
P E E E Ek P Ei 1
6/23/2012 Lecture 4:^ Nasir M Mirza^8
These are prior probabilities that piston rings are from A and B.
6/23/2012 Lecture 4:^ Nasir M Mirza^10
Now we write posterior probability as
( ) ( | ) ( ) ( | )
( ) ( | ) ( | ) P A P F A P B P F B
P A P F A P A F
Note that we have to find two probabilities P(F|A) and P(F|B).
These are probabilities that a piston ring will fail given that it came
from the corresponding manufacturer.
This is theorem when the outcomes are only two. In general Bayes
theorem for n number of mutually exclusive events can be written
as
( ) ( | ) ( ) ( | )
( ) ( | ) ( | )
i i n n
i i i P E P F E P E P F E
P E P F E P E F
6/23/2012 Lecture 4:^ Nasir M Mirza^11
j j
It is common to write this as < x >.
Where xi are countable elementary events with probability pi. If xi is a
random variable then G(xi) is also a random variable.
The expected value of g(x) is
( ( )) ( ) ( j) j
6/23/2012 Lecture 4:^ Nasir M Mirza^13
n j j
j
n x p x
j j
The First moment of x is x^ pj^ x
2 2 j j
The second moment of x is x^ pj^ x