Random Variables Cheatsheet
Random Variables Cheatsheet
Marginal
P R∞
pX (x) = y pXY (x, y) fX (x) = −∞
fXY (x, y) dy
Conditional pX|Y (x|y) = pXY (x, y)/pY (y) fX|Y (x|y) = fXY (x, y)/fY (y)
Table 3: Essential facts that hold for all random variables, continuous or discrete: X, Y, Z and X1 , . . . , Xk are random variables; a, b, c, d are
constants; µ, σ, ρ are parameters; and g(·), h(·) are functions.
Sample Statistic Population Parameter Population Parameter
Setup Sample of size n < N from a popn. Population viewed as list of N objects Population viewed as a RV
n N
1X 1 X X
Mean x̄ = xi µX = xi Discrete µX = xp(x)
n i=1 N i=1
∞
x R
Continuous µX = −∞ xf (x) dx
n N
1 X 2 1 X 2
Variance s2X = (xi − x̄)2 σX = (xi − µX )2 σX = E (X − E[X])2
n − 1 i=1 N i=1
p p p
Std. Dev. sX = s2X σX = σx2 σX = σx2
n N
1 X 1 X
Covariance sXY = (xi − x̄)(yi − ȳ) σXY = (xi − µX )(yi − µY ) σXY = E [(X − µX ) (Y − µY )]
n − 1 i=1 N i=1
Correlation rXY = sXY /(sX sY ) ρXY = σXY /(σX σY ) ρXY = σXY /(σX σY )