1/81
Looks like no tags are added yet.
Probability Mass Function
Discrete random variable (pmf)
f(x)=p(x)=P(X=x)
0≤p(x)≤1
∑p(x)=1
Probability Density Function
Contiuous random variable (pdf)
f(x)=p(x)=P(X=x)
f(x)≥0
\int_{-\infty}^{\infty}f\left(x\right)\differentialD x=1
Cumulative Distribution function (cdf)
cumulative probability to the left of and including x
Denoted as Fx(x)
F\left(x\right)=P\left(X\le x\right)=\int_{-\infty}^{x}f\left(t\right)\differentialD t
F(x)=∑f(x)=∑p(x)
Survival Function
Sx(x)=P(X>x)=1−Fx(x)=∫x∞fx(s)ds
Survival Function Formula for Calculating E[X] & E[g(x)]
E\left\lbrack X\right\rbrack=\int_0^{\infty}xf\left(x\right)\differentialD x=\int_0^{\infty}\left(1-F\left(x\right)\right)\differentialD x=\int_0^{\infty}S\left(x\right)\differentialD x
E\left\lbrack g\left(x\right)\right\rbrack=\int_0^{\infty}g^{\prime}\left(x\right)S_{x}\left(x\right)\differentialD x
Example:E\left(x^2\right)=\int_0^{\infty}2xS_{x}\left(x\right)\differentialD x
E\left(X\right)=\int_{a}^{\infty}xf\left(x\right)\differentialD x=a+\int_{a}^{\infty}S_{x}\left(x\right)\differentialD x
Sum of infinite Geometric Series
1−ra
Sum of finite geometric series
1−ra(1−rn)

Check Endpoints and find f(x)

n-th central moment of X about the mean
E[(X−μ)n]
A fair die is tossed until the first 1 appears. Let X equal the number of tosses required., x = 1, 2, 3, · · · . You are to receive (0.5)^x dollars if the first 1 appears on the xth toss. What is the expected amount that you will receive?
0.1429

Solve for E(X)
0.5708

Coefficient of variation CV[X]
μσ
E(aX+b) =
aE(X)+b
E(XY) = … when X and Y are independent
E(X)E(Y)
Median
F(X)=0.5
Percentile
F(X)= x%
Mode
f’(x)=0
Var(X+Y)=
Var(X)+Var(Y)+2Cov(X,Y)
Cov(X,Y)=
E(XY)-E(X)E(Y)
Var(aX+bY)=
a2Var(X)+b2Var(Y)+2abCov(X,Y)
Var(X-Y) = … where X & Y are independent
Var(X)+Var(Y)
Var[c]=
0
Var[aX]=
a2Var(X)
Var(X-Y)=
Var(X) + Var(Y)X - 2Cov(X,Y)
Cov(X,X)=
Var(X)
Cov(a+X,Y)=
Cov(X,Y)
Cov(aX,bY)=
abCov(X,Y)
Cov(X,Y+Z)=
Cov(X,Y) + Cov(X,Z)
Cov(aW+bX, cY +dZ) =
acCov(W, Y) + adCov(W,Z) + bcCov(X,Y) + bdCov(X,Z)
Conditional Moments

Discrete Uniform Distribution n
f(x)=n1 for X= 1, 2, 3, …, n
E[X]=2n+1
Var[X]=12n2−1
probability distribution for a finite number of values consecutively spaced by 1 (such as integers) that are equally likely to be observed.
Notation: X ~ U(n) or X ~ U(1,n)
Discrete Uniform n: Useful Formulas for E[X] & E[X²]
Useful formula: E(x)=1+2+⋯+n=2n(n+1)= [ # of terms (1st term + last term) ] / 2
E(x2)=12+22+⋯+n2=6n(n+1)(2n+1)
Discrete Uniform Distribution a,b
f(x)=b−a+11
E[X]=2a+b
Var[X]=12(b−a+1)2−1
probability distribution for a finite number of values consecutively spaced by 1 (such as integers) that are equally likely to be observed.
Continuous Uniform Distribution & F(x), S(x)
f(x)=b−a1=length1
E[X]=2a+b
Var(x)=12(b−a)2=12(length)2
Fx(x)=b−ax−a
Sx(x)=b−ab−x
Median = Mean
think area base * height
Bernoulli Distribution
special case of binomial when n=1
E[X]=p
Var[X]= p(1-p)
Single success/failure trial. X=1 for success and X=0 for failure
Notation: X ~ Bernoulli (p)
Binomial Distribution
P(X=k)=(kn)pk(1−p)n−k
E[X]=np
Var[X]=np(1-p)
n independent success/failure trials where X is the # of successes (sum of Bernoulli)
Notation: X ~ B(n,p) integer n ≥ 1, and 0 ≤ p ≤ 1
Geometric Distribution & S(x)
P(X=k)=(1−p)k−1p
E[X]=p1
Var[X]=p21−p
SurvivialFunction=P(X>k)=(1−p)k
(waiting time) independent success/failure trials with the same probability of success p until you observe the first success. Let X be the number of trials on which the first success occurs
Negative Binomial Distribution
P(X=k)=(r−1k−1)pr(1−p)k−r
E[X]=pr
Var[X]=p2r(1−p)
(waiting time) independent success/failure trials with the same probability of success p until you observe the r successes. Let X be the trial on which the rth success occurs
sum of Geometric
Poisson Distribution
P(X=k)=k!e−λλk
E[X]=Var[X]=λ
independent success/failure trials at every instance in some time interval. Let X be the number of successes you observe
λ > 0 (time)
Hypergeometric Distribution
P(X=k)=(nN)(kM)(n−kN−M)
E[X]=n⋅NM
n dependent success/failure trials by sampling without replacement. N elements (total) of which M are looked upon as successes and the other N-M are failures. Let X be the number of successes in a sample of size n
Cumulative & Survival Poisson and Exponential
F(t)=1−e−λt
F(x)=1−e−θx
next arrival before t
Sx(x)=e−θx
Sx(t)=e−λt
Negative Binomial alternate form
P(Y=k)=(kk+r−1)pr(1−p)k
E[Y]=pr(1−p)
Var(Y)=p2r(1−p)
Y be the number of “failures” before the rth “success,”
Examples of Discrete Uniform Distributions
Roll of a fair die
Number of accidents in a week
Number of claims
Examples of Bernoulli Distribution
Single flip of a coin
Single throw of a die
Single contest resulting in winning or losing
Examples of Binomial Distribution
toss of a coin n times to know how many times you get heads
probability of genders
choosing from a batch with replacement
Examples of Hypergeometric Distribution
randomly selecting balls without replacement
choosing from a batch w/o replacement
Examples of Geometric Distribution
flipping a coin or throwing a die repeatedly till you get your first success (first heads or first 6)
Difference b/w binomial and geometric Distribution
A binomial distribution describes a fixed number of “trials,” whereas the geometric distribution assumes “trials” continue until the first “success.”
A binomial distribution models the probability of a certain number of “successes,” while a geometric distribution models the probability of a certain number of “trials.”
Memoryless Property
The geometric distribution has a memoryless property. The memoryless property suggests the distribution does not “remember” previous “trials.” In other words, the outcome of previous “trials” does not a!ect the probabilities of the subsequent “trials.” Thus, a new “trial” can be treated as though it were the first “trial.”
P(X−c=k∣X>c)=P(X=k)
Alternate form of Geometric
number of “failures” before the first “success,” where Y=X-1
P(Y=k)=(1−p)kp
E[Y]=p1−1
Var[Y]=p21−p
Examples of Negative Bimonial
Probability that the 6th game played out of 10 is the fourth game that you win
Probability of second purchase made by sixth customer
3rd heads occurs on the fifth toss
Examples of Poisson
The number of claims that happen in a given time interval
The number of hits at a website in a given time interval
The number of customers who arrive at a store in a given time interval
The number of phone calls (or e-mails) you get in a day
The number of shark attacks in one summer
Exponential Distribution & median
f(x)=θ1e−θx
E[X]=θ
Var(x)=θ2
Median=θln2
waiting times between independent events that occur with a constant average rate.
Gamma Distribution
f(x)=Γ(α)θα1xα−1e−θx
E[X]=αθ
Var(x)=αθ2
Γ(α)=∫0∞tα−1e−tdt
Γ(0.5)=π
The exponential distribution models the waiting time until the next event, whereas the gamma distribution models the waiting time until the next α events.
Normal Distribution
f(x)=σ2π1e−2σ2(x−μ)2
E[X]=μ
Var(x)=σ2
Standard Normal Distribution
ϕ(z)=2π1e−2z2
E[X]= 0
Var(x)= 1
Beta Distribution
f(x)=Γ(a)Γ(b)Γ(a+b)xa−1(1−x)b−1
E[X]=a+ba
Var(x)=(α+b)2(α+b+1)αb
λ vs θ
θ=λ1
θ is the mean time until the next occurrence of an event
λ is the rate (average # of occurences per unit time)
Normal to Standard Normal Conversion
Z=σX−μ
X=μ+Zσ
Xp=μ+Zpσ
Rules for z table
P(X<x)=P(Z<σx−μ)=ϕ(σx−μ)
ϕ(−z)=1−ϕ(z)
P(Z>z)=1−ϕ(z)
P(Z > -x) = P(Z < x)
ϕ(z)=tablevalue (intersection point)
P(a<x<b)=ϕ(b)−ϕ(a)
Zp= p is table value then find z column and row
If p> 0.5 look for p inside the table then find corresponding row/column z
If p< 0.5 look for 1-p inside the table then make correspondingrow/column z negative
Gamma relation to Poisson P(X>x)
only when alpha is a positive integer
P(X>x)=e−βxk=0∑α−1k!(βx)k
Joint Probability Mass Functions
px,y(x,y)=fx,y(x,y)=P(X=x∩Y=y)
∑∑px,y(x,y)=1
Joint Cumulative and Survival Distribution Function
Fx,y(x,y)=P(X<x∩Y<y)
Sx,y(x,y)=1−Fx,y(x)
Marginal Distributions
px(x)=P(X=x)=all−y∑px,y(x,y)
py(y)=P(Y=y)=all−x∑px,y(x,y)
Joint Moments
px(x)=y∑px,y(x,y)
E[X]=x∑x⋅px(x)
py(y)=x∑fx,y(x,y)
E[Y]=y∑y⋅py(y)
Conditional Joint Moments
fX∣Y(x∣y)=fY(y)fX,Y(x,y)=P(Y=y)P(X=x∩Y=y)
fY∣X(y∣X=x)=f(x)f(x,y)
Conditional Joint Expectations
E[X∣Y]=E[X∣Y=y]=all−x∑x⋅P(X=x∣Y=y)
E[g(X)∣Y]=E[X∣Y=y]=all−x∑g(x)⋅P(X=x∣Y=y)
E[X2∣Y]=E[X∣Y=y]=all−x∑x2⋅P(X=x∣Y=y)
Var(X∣Y)=E(X2∣Y)−(E(X∣Y))2
Weighted Average
fy(y)=w1⋅f(y∣C1)+w2⋅f(y∣C2)
Weighted Average of Moments
E[Yk]=E[Yk∣C1]P(C1)+E[Yk∣C2]⋅P(C2)=w1E[Yk∣C1]+w2E[Yk∣C2]
Var[Y]=w1E[Y2∣C1]+w2E[Y2∣C2]−(w1E[Y∣C1]+w2E[Y∣C2])2
Double Expectation / Law of total Expectation
E[X]=E[E[X∣Y]]
Law of Total Variance
Var[X]=E[Var[X∣Y]]+Var[E[X∣Y]]
Cov[X,Y] when X & Y are independent
0
Uniform Connections
f(x)=length1
E[X]=2added,length
Var(discrete)=12(length)2−1
Var(continuous)=12(length)2
Length — Discrete: b-a+1 (counting) Continuous: b-a
Bernoulli & Binomial Connections
Binomial = ∑ Bernoulli where n=1
E[X]= np
Var(x) = np(p-1)
Geometric & Negative Binomial Connections
Geo ~ waiting times — (failures)k-1(success)
Negative Binomial ~ waiting time until rth success
Negative Binomial = ∑ Geometric where r=1
E[X] = r / p
Var(x) = r(1-p) / p2
Alternate Negative Binomial (failures before rth success) ~ E[X] = r(1-p) / p
Exponential and Gamma Connections
Gamma = ∑ Exponential where α=1
Gamma ~ f(x)=Γ(α)θα1xα−1e−θx
Gamma ~ f(x) = ( 1 / Γ(α)θα) ⋅ xα-1 ⋅ e-x / θ
E[X] = αθ
Var(x) = αθ2
Normal and Standard Normal Connections
Normal ~ f(x)=σ2π1e−2σ2(x−μ)2
Standard Normal ~ ϕ(z)=2π1e−2z2
Norm(2) — f(x) = ( 1 / σ√(2π) ) ⋅ e -(1/2) ⋅ second moment
“Normal” moments — E[X] = μ Var[X] = σ2
Standard moments — E[X] = 0 (b/c single point) Var(x) = 1 (movement by 1)
Only dependent distribution
Hypergeometric
Beta Connection
f(x)=Γ(a)Γ(b)Γ(a+b)xa−1(1−x)b−1
Var(x) — flip constant, drop Γ, square addition (counting)
Var(x)=(α+b)2(α+b+1)αb
E[X] = a / (a+b) — flip, drop Γ(b)
only distribution with (1-x)b-1
Property of Poisson Sums
Poisson( λx+λy ) = Poisson( λ = x + y )
Joint PMF from CDF
P(X=x , Y=y) = F(x,y) - F(x-1, y) - F(x, y-1) + F(x-1 , y-1)
Cumulative probability P( a < X < b , c < Y < d)
F(b,d) - F(a,d) - F(b,c) + F(a,c)
F(b,d) - last values
F(a,c) - first values