Escolar Documentos
Profissional Documentos
Cultura Documentos
1.155, 2.943, 3.577, 6.938, 10.816, 13.621, 16.862, 22.82, ESD.72, ESD.721
RPRA 2.
Spring 2007
RPRA 2. Elements of Probability Theory 1
Relative-frequency interpretation
Imagine a large number n of repetitions of the experiment of which A is a possible outcome.
k n
It is postulated that:
k lim P( A ) n n
Venn Diagram
EE = S
P(E) = 1 P(E)
RPRA 2. Elements of Probability Theory 5
K + ( 1)
N +1
N P I A i 1
Rare-Event Approximation:
N N P P (A i ) U Ai 1 i =1
RPRA 2. Elements of Probability Theory 6
Union (contd)
For two events: P(AB) = P(A) + P(B) P(AB)
Fair: The outcomes are equally likely (1/6). P(even) = P(2 4 6) = (mutually exclusive)
i =1
Mi
P( X T ) =
N 1 N
N +1
N P Mi i=1
N 1
Rare-event approximation:
P(XT ) P (Mi )
i =1
N1 N
N+1 N
i =1
P(Mi )
P(XT ) P (Mi )
P( X T ) P( M i )
i =1
P( M i M j )
i =1 j= i +1
Conditional probability
P(AB ) P(A B ) P(B )
P(AB ) = P(A B )P(B ) = P(B / A )P(A )
M 1 = X1 X 2 X 3 M 3 = X3 X 4 X 1
M2 = X2 X3 X4 M4 = X1 X2 X4
13
P( E) = P( E / H i )P(H i )
1
14
P(H i / E) =
P ( E / H i )P ( H i ) P(E)
Bayes Theorem
P (H i E ) =
Posterior Probability
P(E H i )P(H i )
1
P(E H i )P(H i )
Prior Probability
16
17
E = {The host opens door B and a Yugo is behind it} What is P(A/E)? Bayes Theorem
18
P (A E ) =
P(E/C) = 1
(The host must open door B, if the Ferrari is behind door C; he cannot open door A under any circumstances).
RPRA 2. Elements of Probability Theory 19
p x= 1+ p
Therefore
For P(E/A) = p = 1/2 (the host opens door B randomly, if the Ferrari is behind door A) P(A/E) = x = 1/3 = P(A) (the evidence has had no impact)
20
For P(E/A) = p = 1 (the host always opens door B, if the Ferrari is behind door A) P(A/E) = 1/2 offer any advantage. P(C/E) = 1/2, switching to door C does not
21
Random Variables
Sample Space: The set of all possible outcomes of an experiment. Random Variable: A function that maps sample points onto the real line. Example: For a die S = {1,2,3,4,5,6}
22
Events
3.6
- 0 1 2 3
4 5
6
We say that {X x} is an event, where x is any number on the real line. For example (die experiment): {X 3.6} = {1, 2, 3} {1 or 2 or 3} {X 96} = S {X -62} = (the certain event) (the impossible event)
23
Sample Spaces
The SS for the die is an example of a discrete sample space and X is a discrete random variable (DRV). A SS is discrete if it has a finite or countably infinite number of sample points. A SS is continuous if it has an infinite (and uncountable) number of sample points. The corresponding RV is a continuous random variable (CRV). Example: {T t} = {failure occurs before t}
24
25
F(x)
1
1/ 6 1 2 3 4 5 6
26
P(X = x i ) p i
xi x
normalization
6 1
1 1 1 + = 6 6 3
27
dF (x ) f (x ) = dx
P( S ) = F( ) =
F( x ) = f (s )ds
f (s)ds = 1
normalization
28
f (x ) = kx 2 ,
f (x ) = 0,
is a pdf. Answer:
for
0x1
otherwise
k=3
29
F( x) = x 3
F(0.875) F(0.75) = 3x 2dx =
0.75 0.875
1 f(x) 3
1 0.75 0.875
30
Moments
Expected (or mean, or average) value
xf (x )dx E[X ] m x jp j j
CRV
DRV
CRV DRV
31
Percentiles
Median: The value xm for which
F(xm) = 0.50 For CRV we define the 100 percentile as that value of x for which
f (x )dx =
RPRA 2. Elements of Probability Theory 32
Example
m = 3x 3 dx = 0.75
0 1
= 0.194
x m = 0.79