Jump to content

Discrete Random Variables

From UBC Wiki
This article is part of the EconHelp Tutoring Wiki


A discrete random variable maps outcomes to values of a countable set (e.g., the integers), with each value in the range having probability greater than or equal to zero.

Discrete Probability

P(x)∈[0,1]∑xP(x)=1F(a)=∑x≤aP(x)=P(X≤a)F(a)∈[0,1]F(a)≤F(b) ∀a<bP(X>a)=1−P(X≤a)=1−F(a)

Mean and Variance

Expected Value

E(X)=∑xxP(x)=μx

Variance

Var(X)=E[(X−μx)2]=∑x(x−μx)2P(x)=E(X2)−μx2

Binomial Distribution

X∽B(p), where p is the probability of successes in n independent trials.

μXB=E(XB)=pVar(XB)=p(1−p)P(x)=px(1−p)n−xCxn

Jointly distributed variables

PX,Y(x,y)=P(X=x,Y=y)

∑X∑YPX,Y(x,y)=1

PX(x)=∑YPX,Y(x,y)PY(y)=∑XPX,Y(x,y)

Conditional Probabilities

E(Y|X=x)=∑yyPY|X(y|x)=μY|XVar(Y|X=∑y(y−μY|X)2PY|X(y|x)=E(Y2|X=x)−μ(2Y|X)

Covariance and Correlation

Cov(X,Y)=E[(X−μX)(Y−μY)]=∑x∑y(x−μx)(y−μy)PX,Y(x,y)=E(XY)−μXμY

ρ=Cov(X,Y)σXσY, −1≤ρ≤a

Other useful results

Var(X+Y)=Var(X)+Var(Y)+2Cov(X,Y)Var(X−Y)=Var(X)+Var(Y)−2Cov(X,Y)Var(aX+bY)=a2Var(X)+b2Var(Y)+2abCov(X,Y)