




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Probability & Statistics Full-ver. Cheatsheet Harvard Stat-110 Cheatsheet Harvard Stat-110 Review Notes
.Bb .BbiX SJ6 1 o` S:6 J:
"2`MUpV P (X = 1) = p, P (X = 0) = q p pq pt + q pet^ + q
"BMUn, pV
( n x
) p x q n−x
>:2QKUw, b, nV
( w x )(^
b n−x ) (w n+ b)
:2QKUpV q k p- x ≥ 0
q p
q p^2
p 1 −qt
p 1 −qet
6aUpV q k− 1 p- x ≥ 1
p
q p^2
pt 1 −qt
pet 1 −qet L"BMUr, pV
( n+r− 1 r− 1
) pr^ qn- n ≥ 0 r q p r q p^2 ( p 1 −qt )r^ ( p 1 −qet^ )r
SQBbUλV e−λλk k!
t−1)
*QMi .BbiX S.6 *.6 1 o` J:
lMB7Ua, bV
b−a -^ a < x < b^ · · ·^
x−a b−a -^ a < x < b^ · · ·^
a+b 2
(b−a)^2 12
etb−eta t(b−a)
N (0, 1)
2 π
e −z^2 / ∫ (^) z −∞
2 π
e −t^2 / dt y R e
t^2 2
N (μ, σ
)
σ
2 π
e −(z−μ)^2 /(2σ^2 ) ∫ (^) z −∞
σ
2 π
e −(t−μ)^2 /(2σ^2 ) dt μ σ
e μt+ 12 σ^2 t^2
1tTQUλV λe −λx
λ
λ^2
λ λ−t "2iUa, bV
β(a,b) xa−^1 (1 − x)b−^1 f a a+b f f
:KKUa, λV
Γ(a) (λy) a e −λy 1 y f a λ
a λ^2 f
"v2bǶ _mH2 Y /Bb Y +QMi
X /Bb
P (X=x|Y =y)P (Y =y) P (X=x)
P (X=x|Y =y)fY (y) P (X=x)
X +QMi
fX (x|Y =y)P (Y =y) fX (x)
fX|Y (x|y)fY (y) fX (x)
GPhS Y /Bb Y +QMi
X /Bb
∑ y P^ (X^ =^ x|Y^ =^ y)P^ (Y^ =^ y)^
∫ (^) ∞ −∞ P (X = x|Y = y)fY (y)dy
X +QMi
∑ y fX^ (x|Y^ =^ y)P^ (Y^ =^ y)^
∫ (^) ∞ −∞ fX|Y (x|y)fY (y)dy
*QmMiBM; P/2 LQ P/2
_2TH+2 n k
( n+k− 1 n− 1
)
LQ _2TH+2 n · · · (n − k + 1)
( n k
)
"Qb2@1Bbi2BM , x 1 + · · · + xr = n, xi > 0 -
( n− 1 r− 1
) FBM/bX
A/2MiBiB2b , n
(n− 1 k− 1
) = k
(n k
)
(m+n k
∑k j=
(m j
)( (^) n k−j
)
.2}MBiBQMb
Ç SJ6, P (X = x) @ LQMM2;iBp2c amKb iQ R
Ç DQBMi SJ6, P (X = x, Y = y) = P (X = x|Y = y)P (Y = y)
Ç K`;BMH SJ6, P (X = x) =
∑ y P^ (X^ =^ x, Y^ =^ y)
Ç S.6, fX (x) = F
X (x)^ @ LQMM2;iBp2c BMi2;`i2b iQ R
Ç DQBMi S.6, fX,Y (x, y) =
∂x∂y FX,Y (x, y)
Ç K`;BMH S.6, fX (x) =
∫ (^) ∞ −∞ fX,Y^ (x, y)dy
Ç *.6, FX (x) = P (X ≤ x) @ LQM/2+`2bBM;c _B;?i@+QMiBMmQmbc HBKx→−∞ F (x) = 0- HBKx→∞ F (x) = 1
Ç DQBMi *.6, FX,Y (x, y) = P (X ≤ x, Y ≤ y)
Ç +X2X, E(Y |A) =
∑ yP (Y = y|A) f
∫ (^) ∞ −∞ yf^ (y|A)dy
Ç +X2X, E(Y |X) rBi? E(Y |X = x) = g(x)
Ç +XpX, V ar(Y |X) = E((Y − E(Y |X))^2 |X) = E(Y 2 |X) − (E(Y |X))^2
1tT2+iiBQM f J2M
Ç RX E(X) =
∑ x xP^ (X^ =^ x)
kX bm`pBpH, E(X) =
∫ (^0) −∞(G(x)^ −^ 1)dx^ +^
∫ (^) ∞ 0 G(x)dx
jX GPhla, E(g(X)) =
∑ x g(x)P^ (X^ =^ x)
9X BM/B+iQb, X = I 1 + I 2 + · · · + In UQ Qi?2TiBiBQMbV- i?2M
E(X) = p 1 + p 2 + · · · + pn
8X #v S:6 f J:6, E(X) = g
X (1)^ Q`^ E(X) =^ M^
X (0)
eX k.@G, E(g(X, Y )) =
∑ x
∑ y g(x, y)P^ (X^ =^ x, Y^ =^ y)
dX GPh1, E(X) =
∑n i= E(Y |Ai)P (Ai)
3X /KǶb Gr
Ç SQT2iB2b,
RX GBM2`Biv
kX JQMQiQMB+Biv, X ≥ Y rXTX R ⇒ E(X) ≥ E(Y )
o`BM+
Ç RX V ar(X) = E((X − E(X))
) = E(X
) − (E(X))
≥ 0
kX GPhla, E(X
) =
∑ x x
P (X = x)
jX BM/Bb, X = I 1 + I 2 + · · · + In- i?2M E(
( X 2
) ) =
∑ i:2QKUw, b, nV ⇔ >:2QKUn, w + b − n, wV
Ç Z ∼ N (0, 1) ⇒ φ(z) = φ(−z)
Ç Z ∼ N (0, 1) ⇒ Φ(z) = 1 − Φ(−z)
Ç Z ∼ N (0, 1) ⇒ −Z ∼ N (0, 1)
Probability Cheatsheet v2.
Compiled by William Chen (http://wzchen.com) and Joe Blitzstein, with contributions from Sebastian Chiu, Yuan Jiang, Yuqi Hou, and Jessy Hwang. Material based on Joe Blitzstein’s (@stat110) lectures (http://stat110.net) and Blitzstein/Hwang’s Introduction to Probability textbook (http://bit.ly/introprobability). Licensed under CC BY-NC-SA 4.0. Please share comments, suggestions, and errors at http://github.com/wzchen/probability_cheatsheet.
Last Updated December 12, 2015
Counting
Multiplication Rule
cake
waffl e
S
V
C
S
V
C S
V
C
cake waffle cake waffle cake waffle
Let’s say we have a compound experiment (an experiment with multiple components). If the 1st component has n 1 possible outcomes, the 2nd component has n 2 possible outcomes,... , and the rth component has n (^) r possible outcomes, then overall there are n 1 n 2... n (^) r possibilities for the whole experiment.
Sampling Table
7
6
5
8
4
2
9 3
1
The sampling table gives the number of possible samples of size k out of a population of size n, under various assumptions about how the sample is collected.
Order Matters Not Matter
With Replacement n k^
⇣n + k 1
k
Without Replacement
n! (n k)!
⇣n
k
Naive Definition of Probability
If all outcomes are equally likely, the probability of an event A happening is:
P (^) naive (A) =
number of outcomes favorable to A number of outcomes
Thinking Conditionally
Independence Independent Events A and B are independent if knowing whether A occurred gives no information about whether B occurred. More formally, A and B (which have nonzero probability) are independent if and only if one of the following equivalent statements holds: P (A \ B) = P (A)P (B) P (A|B) = P (A) P (B|A) = P (B)
Conditional Independence A and B are conditionally independent given C if P (A \ B|C) = P (A|C)P (B|C). Conditional independence does not imply independence, and independence does not imply conditional independence.
Unions, Intersections, and Complements De Morgan’s Laws A useful identity that can make calculating probabilities of unions easier by relating them to intersections, and vice versa. Analogous results hold with more than two sets. (A [ B) c = A c \ B c
(A \ B) c = A c [ B c
Joint, Marginal, and Conditional Joint Probability P (A \ B) or P (A, B) – Probability of A and B. Marginal (Unconditional) Probability P (A) – Probability of A. Conditional Probability P (A|B) = P (A, B)/P (B) – Probability of A, given that B occurred. Conditional Probability is Probability P (A|B) is a probability function for any fixed B. Any theorem that holds for probability also holds for conditional probability.
Probability of an Intersection or Union Intersections via Conditioning P (A, B) = P (A)P (B|A) P (A, B, C) = P (A)P (B|A)P (C|A, B) Unions via Inclusion-Exclusion P (A [ B) = P (A) + P (B) P (A \ B) P (A [ B [ C) = P (A) + P (B) + P (C) P (A \ B) P (A \ C) P (B \ C)
Simpson’s Paradox
Dr. Hibbert Dr. Nick
heart
band-aid
It is possible to have P (A | B, C) < P (A | B c^ , C) and P (A | B, C c^ ) < P (A | B c^ , C c^ ) yet also P (A | B) > P (A | B c^ ).
Law of Total Probability (LOTP) Let B 1 , B 2 , B 3 , ...B (^) n be a partition of the sample space (i.e., they are disjoint and their union is the entire sample space).
P (A) = P (A|B 1 )P (B 1 ) + P (A|B 2 )P (B 2 ) + · · · + P (A|B (^) n )P (B (^) n ) P (A) = P (A \ B 1 ) + P (A \ B 2 ) + · · · + P (A \ B (^) n )
For LOTP with extra conditioning, just add in another event C!
P (A|C) = P (A|B 1 , C)P (B 1 |C) + · · · + P (A|B (^) n , C)P (B (^) n |C) P (A|C) = P (A \ B 1 |C) + P (A \ B 2 |C) + · · · + P (A \ B (^) n |C)
Special case of LOTP with B and B c^ as partition:
P (A) = P (A|B)P (B) + P (A|B c )P (B c ) P (A) = P (A \ B) + P (A \ B c )
Bayes’ Rule Bayes’ Rule, and with extra conditioning (just add in C!)
We can also write
P (A|B, C) =
Odds Form of Bayes’ Rule
P (A|B) P (A c^ |B)
P (B|A c^ )
P (A c^ )
The posterior odds of A are the likelihood ratio times the prior odds.
Random Variables and their Distributions
PMF, CDF, and Independence Probability Mass Function (PMF) Gives the probability that a discrete random variable takes on the value x.
p (^) X (x) = P (X = x)
0 1 2 3 4
x
pmf
●
●
● ●
●
The PMF satisfies
p (^) X (x) 0 and
x
p (^) X (x) = 1
Cumulative Distribution Function (CDF) Gives the probability that a random variable is less than or equal to x.
F (^) X (x) = P (X x)
0 1 2 3 4
x
cdf
●
● ●
● ●
● ●
● ●
●
The CDF is an increasing, right-continuous function with
F (^) X (x)! 0 as x! 1 and F (^) X (x)! 1 as x! 1
Independence Intuitively, two random variables are independent if knowing the value of one gives no information about the other. Discrete r.v.s X and Y are independent if for all values of x and y
P (X = x, Y = y) = P (X = x)P (Y = y)
Expected Value and Indicators
Expected Value and Linearity
Expected Value (a.k.a. mean, expectation, or average) is a weighted average of the possible outcomes of our random variable. Mathematically, if x 1 , x 2 , x 3 ,... are all of the distinct possible values that X can take, the expected value of X is
E(X) =
i
x (^) i P (X = x (^) i )
3 2 6 10 1 1 5 4 ...
4 2 8 23
7 4 14 33
∑ xi + ∑ yi = ∑ ( xi + yi )
i= 1
n i= 1
n i= 1
n n 1 n 1 n 1
Linearity For any r.v.s X and Y , and constants a, b, c,
E(aX + bY + c) = aE(X) + bE(Y ) + c
Same distribution implies same mean If X and Y have the same distribution, then E(X) = E(Y ) and, more generally,
E(g(X)) = E(g(Y ))
Conditional Expected Value is defined like expectation, only conditioned on any event A.
E(X|A) =
x
xP (X = x|A)
Indicator Random Variables Indicator Random Variable is a random variable that takes on the value 1 or 0. It is always an indicator of some event: if the event occurs, the indicator is 1; otherwise it is 0. They are useful for many problems about counting how many events of some kind occur. Write
1 if A occurs, 0 if A does not occur.
Note that I (^) A^2 = I (^) A , I (^) A I (^) B = I (^) A\B , and I (^) A[B = I (^) A + I (^) B I (^) A I (^) B.
Distribution I (^) A ⇠ Bern(p) where p = P (A). Fundamental Bridge The expectation of the indicator for event A is the probability of event A: E(I (^) A ) = P (A).
Variance and Standard Deviation
Var(X) = E (X E(X)) 2 = E(X 2 ) (E(X)) 2
q Var(X)
Continuous RVs, LOTUS, UoU
Continuous Random Variables (CRVs)
What’s the probability that a CRV is in an interval? Take the di↵erence in CDF values (or use the PDF as described later).
P (a X b) = P (X b) P (X a) = F (^) X (b) F (^) X (a)
For X ⇠ N (μ, 2 ), this becomes
P (a X b) =
b μ
a μ
What is the Probability Density Function (PDF)? The PDF f is the derivative of the CDF F.
F 0 (x) = f (x)
A PDF is nonnegative and integrates to 1. By the fundamental theorem of calculus, to get from PDF back to CDF we can integrate:
F (x) =
Z (^) x