PT2425 Cheatsheet Updatedv2
PT2425 Cheatsheet Updatedv2
Formula Sheet - 1
Random variable Continuous Random Variable and PDF
A random variable X is a function from the • A random variable X is a continuous
outcome space S to the real numbers R: r.v. if its CDF is FX (x) is continuous
for all x ∈ R .
X:S→R
• A continuous r.v. X with CDF FX has
• Range RX : the set of possible values probability density function (PDF) fX
for X if Z x
FX (x) = fX (t)dt
−∞
Formula Sheet - 2
The Method of Transformations The Hypergeometric Distribution
Suppose that X is a continuous random vari- X ∼ HypGeom(n, s, m)
able with PDF fX and suppose g : R → R is
a strictly monotonic differentiable function. • n items in total. s are blue (for exam-
Let Y = g(X). Then the PDF of Y is given ple). The others red.
by
• Choose m ≤ n items at random with-
out replacement
dx
fX (x) · dy where g(x) = y,
fY (y) = 0 if g(x) = y has no • X is the number of blue samples
s
n−s
(real) solution.
k m−k
• PX (k) = n
m
• Var [X] = p − p2 λk −λ
• PX (k) = e ,
k!
for k = 0, 1, 2, . . .
The Binomial Distribution • E [X] = λ
X ∼ Binomial(N, p), N > 0, integer and
0<p<1
• Do N experiments with independent
Bernoulli(p) variables Xi , The Uniform Distribution
X ∼ Unif(a, b), b > a
• X is the total number of 1-s.
1 if a < x < b,
• SX = {0, 1, . . . , N }
• fX (x) = b − a
0 otherwise.
N k
• PX (k) = p (1 − p)N −k
k
• E [X] = 12 (a + b)
• E [X] = N p 1
• Var [X] = 12 (b − a)2
Formula Sheet - 3
The Normal/Gaussian Distribution Summations and Products
2 n
X ∼ N (µ, σ ) X
• uk = u1 + u2 + . . . + un
(x − µ)2
1 k=1
• fX (x) = √ exp −
σ 2π 2σ 2 n
Y
• uk = u1 · u2 · . . . · un
• E [X] = µ
k=1
• Var [X] = σ 2
• Standard normal: Z ∼ N (0, 1)
n
X n
X
Law of Large Numbers • c · uk = c uk ,
k=1 k=1
Let X1 , X2 , . . . , Xn be i.i.d. (independent
and identically distributed) r.v.-s X m
n X m X
X n
X −µ X + X2 + · · · + Xn − nµ
Zn = √ = 1 √
σ/ n nσ
Formula Sheet - 4
More derivatives
• f (x) = a · g(x) + b · h(x)
⇒ f ′ (x) = a · g ′ (x) + b · h′ (x)
• f (x) = g(x) · h(x)
⇒ f ′ (x) = g ′ (x) · h(x) + g(x) · h′ (x)
g(x)
• f (x) = ⇒
h(x)
g ′ (x) · h(x) − g(x) · h′ (x)
f ′ (x) =
(h(x))2
• f (x) = g(h(x))
⇒ f ′ (x) = g ′ (h(x)) · h′ (x)
Integrals
• f ′ (x) = g(x)
Z b
⇒ g(x)dx = f (b) − f (a)
a
• If α ̸= −1
Z b
1
xα dx = bα+1 − aα+1
⇒
a α+1
Formula Sheet - 5