Professional Documents
Culture Documents
Basics On Probability
Basics On Probability
Jingrui He
09/11/2007
Coin Flips
Probability of Discrete RV
P(X = x ) = 1
(
(
)
) (
P X = xi X = x j = 0 if i j
P X = xi X = x j = P X = xi + P X = x j
P X = x1 X = x2 K X = xk = 1
) if i j
Common Distributions
Uniform X U [1,K , N ]
X takes values 1, 2, , N
P X = i =1 N
Binomial X
Bin ( n, p )
X takes values 0, 1, , n
n i
n i
P ( X = i ) = p (1 p )
i
Joint Distribution
P (X = x Y = y) = 1
E.g.
50
100
i =0
j =0
Conditional Probability
P ( X = x Y = y ) is the probability of X = x ,
given the occurrence of Y = y
P (X = x Y = y) =
P (X = x Y = y)
P (Y = y)
P (X = x Y = y )
= P ( X = x Y = y )P ( Y = y )
P ( X = xi ) =
Marginalization
Marginal Probability
Joint Probability
P (X = x Y = y )
= P ( X = x Y = y )P ( Y = y )
P ( X = xi ) =
Conditional Probability
Marginal Probability
Bayes Rule
P X = xi Y = y j =
P (X = x Y = y)
P (Y = y)
P Y = y j X = xi P ( X = xi )
P (Y = y
k
X = xk P ( X = xk )
Independent RVs
More on Independence
P (X = x Y = y ) = P (X = x) P (Y = y)
P (X = x Y = y ) = P (X = x)
P (Y = y X = x) = P (Y = y)
P (X = x Y = y Z = z) = P (X = x Z = z) P (Y = y Z = z)
Host reveals
Goat A
or
Host reveals
Goat B
Host must
reveal Goat B
Host must
reveal Goat A
P H ij Ck
i= j
0
0
j=k
=
i=k
1 2
1 i k , j k
P ( H13
P ( H13 C1 ) P ( C 1 )
P ( H13 )
1 1 1
C1 ) P ( C1 ) = =
2 3 6
1
1
= + 1
6
3
1
=
2
16 1
P ( C1 H13 ) =
=
12 3
16 1
P ( C1 H13 ) =
=
12 3
1 2
P ( C2 H13 ) = 1 = > P ( C1 H13 )
3 3
What if X is continuous?
Probability density function (pdf) instead of
probability mass function (pmf)
A pdf is any function f ( x ) that describes the
probability density in terms of the input
variable x.
PDF
Properties of pdf
f ( x ) 0, x
f ( x) = 1
( )
f x 1 ???
P ( 0 X 1) =
f ( x )dx
FX ( v ) = P ( X v )
Discrete RVs
FX ( v ) =
vi
P ( X = vi )
Continuous RVs
( )
FX v =
f ( x ) dx
d
FX ( x ) = f ( x )
dx
Common Distributions
N ,
Normal X
( )
f x =
x
)
1
(
exp
, x
2
2
2
0.2
0.15
0.1
0.05
0
-5
-4
-3
-2
-1
0
x
Beta ( , )
1
1
1
x (1 x ) , x [ 0,1]
f ( x; , ) =
B ( , )
= = 1 : uniform distribution between 0 and 1
0.8
0.6
0.4
0.2
0
0.1
0.2
0.3
0.4
0.5
x
0.6
0.7
0.8
0.9
Joint Distribution
x y
f X,Y ( x, y )dxdy = 1
Multivariate Normal
f Xv
( x1 ,K , xd ) =
( 2 )
d 2
12
T 1 v
1 v
exp ( x ) ( x )
2
Mean
Moments
Mean (Expectation): = E ( X )
Discrete RVs: E ( X ) = vi P ( X = vi )
Continuous RVs: E ( X ) =
vi
Variance: V ( X ) = E ( X )
xf ( x ) dx
Discrete RVs: V ( X ) = ( vi )2 P ( X = vi )
vi
Continuous RVs: V ( X ) =
( x ) f ( x )dx
2
Properties of Moments
Mean
(
) ( )
E ( aX ) = aE ( X )
( )
E X+Y = E X +E Y
Variance
( )
V aX + b = a V X
Binomial X
Mean np ; variance np 2
Normal X
N , 2
Mean ; variance 2
Beta X
Bin ( n, p )
Beta ( , )
Mean ( + ) ; variance
( + ) ( + + 1)
2
Probability of Events
= X, X
P () = 1
P ( X1 X 2 K) =
disjoint events
Useful rules
P ( X ) , where X
( )
P (X) = 1 P (X)
P X1 X 2 = P X1 + P X 2 P X1 X 2
are
X1
X2