Lecture-02_Probability_basics
Lecture-02_Probability_basics
•Frequentist Answer:
What is probability? Lecture #2
1. Independence*:
A, B independent events → P (A ∩ B) = P (A) · P (B).
2. Conditional Probability:
3. Chain Rule:
4. Bayes’ Theorem:
P (B|A)P (A)
If then P (A|B) = P (B) .
What is a Random Variable? Lecture #2
• We’ll use the notation: x(ω), X(ω), Y (ω), ... or just x, X, Y, ....
Basic properties of r.v.s Lecture #2
• Mixed-type PDF:
0 1 2 0 1 2
Dirac Delta Function (or impulse):
Moments of a r.v. Lecture #2
• Expected Value:
“center of mass”
empirical
! 2
"
= EX X − µ2X .
Jensen’s Inequality Lecture #2
• Jensen’s Inequality:
g(·) convex
⇒ g (E[X]) ≤ E [g(X)]
Markov’s Inequality Lecture #2
• Proof:
Chebyshev's Inequality Lecture #2
5
• When X is Gaussian, it holds: P (|X − µ| ≤ 2σ) ≤ 100 .
Sampling an r.v. given 𝐹! 𝑥 Lecture #2
• Algorithm:
Function of an r.v. Lecture #2
! ! ! !
! d −1 ! 1
fY (y)= fX (g (y)) · ! dy g (y)!= fX (g (y)) · ! g′ (g−1 (y)) !.
−1 −1 ! !
Proof: Examples:
! "
y−b
fY (y) = a1 fX a ,
fY (y)
Joint r.v.s Lecture #2
Limits: PDF:
Independence Lecture #2
• Independence of 𝑋, 𝑌:
Sum of two independent r.v.s Lecture #2
= P (X + Y ≤ z)
= P (X ≤ z − Y )
! +∞
= −∞ P (X ≤ z − y)fY (y)dy
! +∞
= −∞ FX (z − y)fY (y)dy
• Notation:
x = (x1 , . . . , xd )T , x ∼ N (µ, Σ).
• Mean Vector:
• Covariance Matrix:
Multivariate Gaussian Distribution Lecture #2
𝒖𝒊 : eigenvectors
𝝀𝒊 : eigenvalues
Multivariate Gaussian Distribution Lecture #2
• How to sample:
x = µ + σz ∼ N (µ, σ 2 ) , z ∼ N (0, 1)
Cholesky decomposition
Reparametrization trick
x = µ + Lz ∼ N (µ, Σ) , z ∼ N (0, Id )
• Conditional probability:
Schur complement
• In other words:
References Lecture #2