Types of RV’s and Properties

TagsProperties

Bernoulli

Heads or tails, with success rate pp. (this is a piecewise function)

E[X]=pVar[X]=p(1p)E[X] = p\\ Var[X] = p(1-p)

We can express the likelihood as a function (which allows for certain numerical analysis)

xBer(ϕ)P(x)=ϕx(1ϕ)(1x)x \sim Ber(\phi) \rightarrow P(x) = \phi^x(1-\phi)^{(1-x)}

Binomial

This is the number of success in nn trials given success probability pp.

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k}p^k(1-p)^{n-k}

Here are some facts

It follows that

E[X]=npVar(X)=np(1p)E[X] = np\\ Var(X) = np(1-p)

Binomial distributions need not be symmetrical.

Poisson

This is the distribution of xx events happening given that λ\lambda events usually happen. It is the limit of Bin(n,p)Bin(n, p) such that np=λnp = \lambda and nn→ \infty.

p(X=x)=λxeλx!p(X = x) = \frac{\lambda^xe^{-\lambda}}{x!}

The stats are

E[X]=Var[X]=λE[X] = Var[X] = \lambda

Geometric

This is the number of trials until the first success

P(X=x)=(1p)k1pP(X = x) = (1-p)^{k-1}p

As such:

E[X]=1pVar(X)=1pp2E[X] = \frac{1}{p}\\ Var(X) = \frac{1-p}{p^2}

Negative Binomial

This is the number of trials until rr successes.

P(X=k)=(k1r1)(1p)krprP(X = k) = \binom{k-1}{r-1}(1-p)^{k-r}p^r

It is also the sum of rr geometric distributions, which means that

E[X]=rpVar(X)=r(1p)p2E[X] = \frac{r}{p}\\ Var(X) = \frac{r(1-p)}{p^2}

Uniform

This is just a distribution with uniform probability between α,β\alpha, \beta. The following are true:

E[X]=(α+β)/2Var(X)=(βα)2/12E[X] = (\alpha + \beta) / 2 \\ Var(X) = (\beta - \alpha)^2 / 12

Exponential

This is the time until first success

f(X=x)=λeλxf(X = x) = \lambda e^{-\lambda x}

The following are true:

E[X]=1λVar(X)=1λ2E[X] = \frac{1}{\lambda} \\ Var(X) = \frac{1}{\lambda^2}

Poisson and Exponentials are deeply connected. The poisson is events in a time, and exponential is time until an event.