Problem-Solving Strategy ¶ Identify the Distribution : Recognize which distribution the problem involves
Use Definitions : Start with the definition (PMF, PDF, or property)
Check Conditions : Verify all conditions are met before applying theorems
Use Linearity : Expectation is linear - use this whenever possible
Conditioning : Break complex problems into simpler conditional problems
Symmetry : Look for symmetry to simplify calculations
Approximations : Use CLT for large n n n approximations
Differentiation Rules ¶ Power Rule d d x x n = n x n − 1 \frac{d}{dx} x^n = n x^{n-1} d x d x n = n x n − 1 Exponential d d x e a x = a e a x \frac{d}{dx} e^{ax} = a e^{ax} d x d e a x = a e a x Natural Log d d x ln ( x ) = 1 x \frac{d}{dx} \ln(x) = \frac{1}{x} d x d ln ( x ) = x 1 Product Rule d d x [ f ( x ) g ( x ) ] = f ′ ( x ) g ( x ) + f ( x ) g ′ ( x ) \frac{d}{dx} [f(x)g(x)] = f'(x)g(x) + f(x)g'(x) d x d [ f ( x ) g ( x )] = f ′ ( x ) g ( x ) + f ( x ) g ′ ( x ) Quotient Rule d d x [ f ( x ) g ( x ) ] = f ′ ( x ) g ( x ) − f ( x ) g ′ ( x ) [ g ( x ) ] 2 \frac{d}{dx} \left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2} d x d [ g ( x ) f ( x ) ] = [ g ( x ) ] 2 f ′ ( x ) g ( x ) − f ( x ) g ′ ( x ) Chain Rule d d x f ( g ( x ) ) = f ′ ( g ( x ) ) ⋅ g ′ ( x ) \frac{d}{dx} f(g(x)) = f'(g(x)) \cdot g'(x) d x d f ( g ( x )) = f ′ ( g ( x )) ⋅ g ′ ( x )
Integration Rules ¶ Power Rule ∫ x n d x = x n + 1 n + 1 + C \int x^n dx = \frac{x^{n+1}}{n+1} + C ∫ x n d x = n + 1 x n + 1 + C (for n ≠ − 1 n \neq -1 n = − 1 )Exponential ∫ e a x d x = 1 a e a x + C \int e^{ax} dx = \frac{1}{a} e^{ax} + C ∫ e a x d x = a 1 e a x + C Natural Log ∫ 1 x d x = ln ∣ x ∣ + C \int \frac{1}{x} dx = \ln|x | + C ∫ x 1 d x = ln ∣ x ∣ + C Integration by Parts ∫ u d v = u v − ∫ v d u \int u dv = uv - \int v du ∫ u d v = uv − ∫ v d u
∫ x e a x d x = u v − ∫ v d u u = x d v = e a x d x d u = d x v = e a x a \begin{align*}
\int x e^{ax} \, dx &= uv - \int v \, du \\
u &= x & dv &= e^{ax} \, dx \\
du &= dx & v &= \frac{e^{ax}}{a}
\end{align*} ∫ x e a x d x u d u = uv − ∫ v d u = x = d x d v v = e a x d x = a e a x ∫ − ∞ ∞ e − x 2 d x = π ∫ 0 ∞ e − a x d x = 1 a for a > 0 ∫ 0 ∞ x e − a x d x = 1 a 2 ∫ 0 ∞ x 2 e − a x d x = 2 a 3 \begin{align*}
\int_{-\infty}^{\infty} e^{-x^2} dx &= \sqrt{\pi} &
\int_0^{\infty} e^{-ax} dx &= \frac{1}{a} \quad \text{for } a > 0 \\
\int_0^{\infty} x e^{-ax} dx &= \frac{1}{a^2} &
\int_0^{\infty} x^2 e^{-ax} dx &= \frac{2}{a^3}
\end{align*} ∫ − ∞ ∞ e − x 2 d x ∫ 0 ∞ x e − a x d x = π = a 2 1 ∫ 0 ∞ e − a x d x ∫ 0 ∞ x 2 e − a x d x = a 1 for a > 0 = a 3 2 Probability ¶ A Probability Space is a triple ( Ω , A , P ) (\Omega, \mathcal{A}, P) ( Ω , A , P ) , where: Ω \Omega Ω : Set of outcomes, A \mathcal{A} A : Set of events, P P P : Probability measure.
A Probability Measure P : A → R P: \mathcal{A} \to \mathbb{R} P : A → R satisfies:
0 ≤ P ( A ) ≤ 1 ∀ A ∈ A 0 \leq P(A) \leq 1 \quad \forall \, A \in \mathcal{A} 0 ≤ P ( A ) ≤ 1 ∀ A ∈ A
P ( Ω ) = 1 P(\Omega) = 1 P ( Ω ) = 1
P ( ⋃ i = 1 ∞ A i ) = ∑ i = 1 ∞ P ( A i ) P\left(\bigcup_{i=1}^\infty A_i\right) = \sum_{i=1}^\infty P(A_i) P ( ⋃ i = 1 ∞ A i ) = ∑ i = 1 ∞ P ( A i )
Random Variable : X : Ω → R X: \Omega \to \mathbb{R} X : Ω → R
P ( A ) = ∣ A ∣ ∣ Ω ∣ P ( E ∣ F ) = P ( E ∩ F ) P ( F ) P ( A ∩ B ) = P ( A ) P ( B ∣ A ) = P ( B ) P ( A ∣ B ) P ( A ∣ E ) = P ( E ∣ A ) P ( A ) P ( E ) \begin{align*}
P(A) &= \frac{|A|}{|\Omega|} \\
P(E|F) &= \frac{P(E \cap F)}{P(F)} & P(A \cap B) &= P(A)P(B|A) = P(B)P(A|B) \\
P(A|E) &= \frac{P(E|A)P(A)}{P(E)} &
\end{align*} P ( A ) P ( E ∣ F ) P ( A ∣ E ) = ∣Ω∣ ∣ A ∣ = P ( F ) P ( E ∩ F ) = P ( E ) P ( E ∣ A ) P ( A ) P ( A ∩ B ) = P ( A ) P ( B ∣ A ) = P ( B ) P ( A ∣ B ) Bayes’ Theorem ¶ P ( A ∣ E ) = P ( E ∣ A ) ⋅ P ( A ) P ( E ) = P ( E ∣ A ) ⋅ P ( A ) P ( E ∣ A ) ⋅ P ( A ) + P ( E ∣ A c ) ⋅ P ( A c ) P(A|E) = \frac{P(E|A) \cdot P(A)}{P(E)} = \frac{P(E|A) \cdot P(A)}{P(E|A) \cdot P(A) + P(E|A^c) \cdot P(A^c)} P ( A ∣ E ) = P ( E ) P ( E ∣ A ) ⋅ P ( A ) = P ( E ∣ A ) ⋅ P ( A ) + P ( E ∣ A c ) ⋅ P ( A c ) P ( E ∣ A ) ⋅ P ( A ) Independence ¶ X X X and Y Y Y are independent if one of the following is true:
F X , Y ( a , b ) = F X ( a ) F Y ( b ) ∀ a , b f X , Y ( x , y ) = f X ( x ) f Y ( y ) , (continous RV) P ( X = x , Y = y ) = P ( X = x ) P ( Y = y ) , (discrete RV) \begin{aligned}
F_{X,Y}(a,b) &= F_X(a) F_Y(b) \quad \forall a,b \\
f_{X,Y}(x,y) &= f_X(x)f_Y(y) \quad \text{, (continous RV)} \\
P(X=x, Y=y) &= P(X=x)P(Y=y) \quad \text{, (discrete RV)}
\end{aligned} F X , Y ( a , b ) f X , Y ( x , y ) P ( X = x , Y = y ) = F X ( a ) F Y ( b ) ∀ a , b = f X ( x ) f Y ( y ) , (continous RV) = P ( X = x ) P ( Y = y ) , (discrete RV) Consequences of Independence
P ( E ∣ F ) = P ( E ) P ( E ∩ F ) = P ( E ) ⋅ P ( F ) E [ X Y ] = E [ X ] E [ Y ] Cov ( X , Y ) = 0 Var ( X + Y ) = Var ( X ) + Var ( Y ) ϕ X + Y ( t ) = ϕ X ( t ) ϕ Y ( t ) \begin{align*}
P(E|F) &= P(E) \\
P(E \cap F) &= P(E) \cdot P(F) \\
\mathbb{E}[XY] &= \mathbb{E}[X]\mathbb{E}[Y] \\
\operatorname{Cov}(X,Y) &= 0 \\
\operatorname{Var}(X+Y) &= \operatorname{Var}(X) + \operatorname{Var}(Y) \\
\phi_{X+Y}(t) &= \phi_X(t) \phi_Y(t)
\end{align*} P ( E ∣ F ) P ( E ∩ F ) E [ X Y ] Cov ( X , Y ) Var ( X + Y ) ϕ X + Y ( t ) = P ( E ) = P ( E ) ⋅ P ( F ) = E [ X ] E [ Y ] = 0 = Var ( X ) + Var ( Y ) = ϕ X ( t ) ϕ Y ( t ) Law of Total Probability ¶ P ( E ) = ∑ i = 1 n P ( E ∣ A i ) ⋅ P ( A i ) P(E) = \sum_{i=1}^n P(E|A_i) \cdot P(A_i) P ( E ) = ∑ i = 1 n P ( E ∣ A i ) ⋅ P ( A i )
Simplified (for binary partition): P ( E ) = P ( E ∣ A ) ⋅ P ( A ) + P ( E ∣ A c ) ⋅ P ( A c ) P(E) = P(E|A) \cdot P(A) + P(E|A^c) \cdot P(A^c) P ( E ) = P ( E ∣ A ) ⋅ P ( A ) + P ( E ∣ A c ) ⋅ P ( A c )
Expectation, Variance, Covariance, Correlation Coefficient (normalized Covariance) ¶ E [ X ] = ∑ x P ( X = x ) E [ X ] = ∫ x f X ( x ) d x E [ X 2 ] = Var ( X ) + ( E [ X ] ) 2 Var ( X ) = E [ X 2 ] − ( E [ X ] ) 2 Var ( a X + b ) = a 2 Var ( X ) Cov ( X , Y ) = E [ X Y ] − E [ X ] E [ Y ] ρ X , Y = Cov ( X , Y ) Var ( X ) Var ( Y ) ∈ [ − 1 , 1 ] \begin{align*}
\boldsymbol{\mathbb{E}[X]} &= \sum x P(X=x) & \boldsymbol{\mathbb{E}[X]} &= \int x f_X(x) dx \\
\boldsymbol{\mathbb{E}[X^2]} &= \text{Var}(X) + (\mathbb{E}[X])^2 & \\
\boldsymbol{\operatorname{Var}(X)} &= \mathbb{E}[X^2] - (\mathbb{E}[X])^2 & \boldsymbol{\operatorname{Var}(aX+b)} &= a^2 \operatorname{Var}(X) \\
\boldsymbol{\operatorname{Cov}(X,Y)} &= \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y] & \boldsymbol{\rho_{X,Y}} &= \frac{\operatorname{Cov}(X,Y)}{\sqrt{\operatorname{Var}(X)\operatorname{Var}(Y)}} \in [-1, 1]
\end{align*} E [ X ] E [ X 2 ] Var ( X ) Cov ( X , Y ) = ∑ x P ( X = x ) = Var ( X ) + ( E [ X ] ) 2 = E [ X 2 ] − ( E [ X ] ) 2 = E [ X Y ] − E [ X ] E [ Y ] E [ X ] Var ( aX + b ) ρ X , Y = ∫ x f X ( x ) d x = a 2 Var ( X ) = Var ( X ) Var ( Y ) Cov ( X , Y ) ∈ [ − 1 , 1 ] E [ a X + b Y ] = a E [ X ] + b E [ Y ] for any RVs X , Y and constants a , b \mathbb{E}[aX + bY] = a\mathbb{E}[X] + b\mathbb{E}[Y] \quad \text{for any RVs } X, Y \text{ and constants } a, b E [ a X + bY ] = a E [ X ] + b E [ Y ] for any RVs X , Y and constants a , b Var ( a X ) = a 2 Var ( X ) Var ( X + Y ) = Var ( X ) + Var ( Y ) + 2 Cov ( X , Y ) Var ( X + c ) = Var ( X ) for constant c \begin{align*}
\operatorname{Var}(aX) &= a^2 \operatorname{Var}(X) \\
\operatorname{Var}(X + Y) &= \operatorname{Var}(X) + \operatorname{Var}(Y) + 2\operatorname{Cov}(X, Y) \\
\operatorname{Var}(X + c) &= \operatorname{Var}(X) \quad \text{for constant } c
\end{align*} Var ( a X ) Var ( X + Y ) Var ( X + c ) = a 2 Var ( X ) = Var ( X ) + Var ( Y ) + 2 Cov ( X , Y ) = Var ( X ) for constant c Cov ( X , X ) = Var ( X ) Cov ( X , Y ) = Cov ( Y , X ) Cov ( a X + b , c Y + d ) = a c Cov ( X , Y ) Cov ( X + Y , Z ) = Cov ( X , Z ) + Cov ( Y , Z ) Cov ( X , Y + Z ) = Cov ( X , Y ) + Cov ( X , Z ) \begin{align*}
\operatorname{Cov}(X,X) &= \operatorname{Var}(X) \\
\operatorname{Cov}(X,Y) &= \operatorname{Cov}(Y,X) \\
\operatorname{Cov}(aX + b, cY + d) &= ac \operatorname{Cov}(X,Y) \\
\operatorname{Cov}(X + Y, Z) &= \operatorname{Cov}(X,Z) + \operatorname{Cov}(Y,Z) \\
\operatorname{Cov}(X, Y + Z) &= \operatorname{Cov}(X,Y) + \operatorname{Cov}(X,Z)
\end{align*} Cov ( X , X ) Cov ( X , Y ) Cov ( a X + b , c Y + d ) Cov ( X + Y , Z ) Cov ( X , Y + Z ) = Var ( X ) = Cov ( Y , X ) = a c Cov ( X , Y ) = Cov ( X , Z ) + Cov ( Y , Z ) = Cov ( X , Y ) + Cov ( X , Z ) Moment Generating Function ¶ Let X X X be a random variable with density function
f X ( x ) = { e − 2 x + 1 2 e − x if x > 0 0 otherwise f_X(x) =
\begin{cases}
e^{-2x} + \frac{1}{2}e^{-x} & \text{if } x > 0 \\
0 & \text{otherwise}
\end{cases} f X ( x ) = { e − 2 x + 2 1 e − x 0 if x > 0 otherwise ϕ X ( t ) = E [ e t X ] = ∫ 0 ∞ e t x ( e − 2 x + 1 2 e − x ) d x = ∫ 0 ∞ ( e ( t − 2 ) x + 1 2 e ( t − 1 ) x ) d x \phi_X(t) = \mathbb{E}\left[e^{tX}\right] = \int_0^\infty e^{tx} \left(e^{-2x} + \frac{1}{2}e^{-x}\right) dx = \int_0^\infty \left(e^{(t-2)x} + \frac{1}{2}e^{(t-1)x}\right) dx ϕ X ( t ) = E [ e tX ] = ∫ 0 ∞ e t x ( e − 2 x + 2 1 e − x ) d x = ∫ 0 ∞ ( e ( t − 2 ) x + 2 1 e ( t − 1 ) x ) d x The moment generating function must have a finite integral to exist.
For this integral to converge at x → ∞ x \to \infty x → ∞ , both exponential terms must decay.
The stricter condition is t < 1 t < 1 t < 1 , so the MGF is only defined for t < 1 t < 1 t < 1 .
Joint Distributions ¶ Joint Distribution : F X , Y ( x , y ) = P ( X ≤ x , Y ≤ y ) F_{X,Y}(x,y) = P(X \leq x, Y \leq y) F X , Y ( x , y ) = P ( X ≤ x , Y ≤ y )
Marginal Distribution : F X ( x ) = lim y → ∞ F X , Y ( x , y ) F_X(x) = \lim_{y\to\infty} F_{X,Y}(x,y) F X ( x ) = lim y → ∞ F X , Y ( x , y )
Joint PMF : p X , Y ( x , y ) = P ( X = x , Y = y ) p_{X,Y}(x,y) = P(X = x, Y = y) p X , Y ( x , y ) = P ( X = x , Y = y ) , Joint PDF : f X , Y ( x , y ) f_{X,Y}(x,y) f X , Y ( x , y )
Marginal PDF : f X ( x ) = ∫ − ∞ ∞ f X , Y ( x , y ) d y f_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x,y) \, dy f X ( x ) = ∫ − ∞ ∞ f X , Y ( x , y ) d y
Conditional Distributions & Expectation ¶ Discrete Continous P X ∣ Y ( x ∣ y ) = P ( X = x ∣ Y = y ) = P ( X = x , Y = y ) P ( Y = y ) f X ∣ Y ( x ∣ y ) = f X , Y ( x , y ) f Y ( y ) E [ X ∣ Y = y ] = ∑ x x P X ∣ Y ( x ∣ y ) E [ X ∣ Y = y ] = ∫ − ∞ ∞ x f X ∣ Y ( x ∣ y ) d x \begin{align*}
\textbf{Discrete} & & & \textbf{Continous} \\
P_{X|Y}(x|y) &= P(X = x | Y = y) = \frac{P(X = x, Y = y)}{P(Y = y)} & f_{X|Y}(x|y) &= \frac{f_{X,Y}(x,y)}{f_Y(y)} \\
\mathbb{E}[X|Y = y] &= \sum_x x P_{X|Y}(x|y) & \mathbb{E}[X|Y = y] &= \int_{-\infty}^{\infty} x f_{X|Y}(x|y) \, dx
\end{align*} Discrete P X ∣ Y ( x ∣ y ) E [ X ∣ Y = y ] = P ( X = x ∣ Y = y ) = P ( Y = y ) P ( X = x , Y = y ) = x ∑ x P X ∣ Y ( x ∣ y ) f X ∣ Y ( x ∣ y ) E [ X ∣ Y = y ] Continous = f Y ( y ) f X , Y ( x , y ) = ∫ − ∞ ∞ x f X ∣ Y ( x ∣ y ) d x Important : E [ X ∣ Y ] \mathbb{E}[X|Y] E [ X ∣ Y ] is itself a random variable (function of Y Y Y )
For a continuous RV X X X with density f X ( x ) f_X(x) f X ( x ) and a differentiable, strictly monotone function g g g for y y y in the range of g g g ; f Y ( y ) = 0 f_Y(y) = 0 f Y ( y ) = 0 outside:
Y = g ( X ) ⟹ f Y ( y ) = f X ( g − 1 ( y ) ) ∣ g ′ ( g − 1 ( y ) ) ∣ Y = g(X) \implies f_Y(y) = \frac{f_X(g^{-1}(y))}{|g'(g^{-1}(y))|} Y = g ( X ) ⟹ f Y ( y ) = ∣ g ′ ( g − 1 ( y )) ∣ f X ( g − 1 ( y )) Example: Joint Density of X X X and Y Y Y ¶ Joint density function: f X , Y ( x , y ) = { 10 x 2 y , if 0 ≤ y ≤ x ≤ 1 , 0 , otherwise f_{X,Y}(x,y) = \begin{cases} 10x^2 y, & \text{if } 0 \leq y \leq x \leq 1, \\ 0, & \text{otherwise} \end{cases} f X , Y ( x , y ) = { 10 x 2 y , 0 , if 0 ≤ y ≤ x ≤ 1 , otherwise
Marginal of X X X : f X ( x ) = ∫ 0 x 10 x 2 y d y = 5 x 4 , for 0 ≤ x ≤ 1 f_X(x) = \int_0^x 10x^2 y \, dy = 5x^4, \quad \text{for } 0 \leq x \leq 1 f X ( x ) = ∫ 0 x 10 x 2 y d y = 5 x 4 , for 0 ≤ x ≤ 1
Marginal of Y Y Y : f Y ( y ) = ∫ y 1 10 x 2 y d x = 10 y 3 ( 1 − y 3 ) , for 0 ≤ y ≤ 1 f_Y(y) = \int_y^1 10x^2 y \, dx = \frac{10y}{3}(1 - y^3), \quad \text{for } 0 \leq y \leq 1 f Y ( y ) = ∫ y 1 10 x 2 y d x = 3 10 y ( 1 − y 3 ) , for 0 ≤ y ≤ 1
Independence Check: f X ( x ) ⋅ f Y ( y ) = 5 x 4 ⋅ 10 y 3 ( 1 − y 3 ) ≠ 10 x 2 y = f X , Y ( x , y ) f_X(x) \cdot f_Y(y) = 5x^4 \cdot \frac{10y}{3}(1 - y^3) \neq 10x^2 y = f_{X,Y}(x,y) f X ( x ) ⋅ f Y ( y ) = 5 x 4 ⋅ 3 10 y ( 1 − y 3 ) = 10 x 2 y = f X , Y ( x , y )
X X X and Y Y Y are not independent
Distribution Function: F X ( x ) = ∫ 0 x 5 t 4 d t = x 5 , for 0 ≤ x ≤ 1 F_X(x) = \int_0^x 5t^4 \, dt = x^5, \quad \text{for } 0 \leq x \leq 1 F X ( x ) = ∫ 0 x 5 t 4 d t = x 5 , for 0 ≤ x ≤ 1
Expectation: E [ X ] = ∫ 0 1 x ⋅ 5 x 4 d x = 5 ∫ 0 1 x 5 d x = 5 6 \mathbb{E}[X] = \int_0^1 x \cdot 5x^4 \, dx = 5 \int_0^1 x^5 \, dx = \boxed{\dfrac{5}{6}} E [ X ] = ∫ 0 1 x ⋅ 5 x 4 d x = 5 ∫ 0 1 x 5 d x = 6 5
Conditional Density: f Y ∣ X ( y ∣ x ) = f X , Y ( x , y ) f X ( x ) = 10 x 2 y 5 x 4 = 2 y x 2 , for 0 ≤ y ≤ x f_{Y|X}(y|x) = \dfrac{f_{X,Y}(x,y)}{f_X(x)} = \dfrac{10x^2 y}{5x^4} = \boxed{\dfrac{2y}{x^2}}, \quad \text{for } 0 \leq y \leq x f Y ∣ X ( y ∣ x ) = f X ( x ) f X , Y ( x , y ) = 5 x 4 10 x 2 y = x 2 2 y , for 0 ≤ y ≤ x
P ( Y ≤ X / 2 ) = ∫ 0 1 ∫ 0 x / 2 10 x 2 y d y d x = 1 4 \mathbb{P}(Y \leq X/2) = \int_0^1 \int_0^{x/2} 10x^2 y \, dy \, dx = \boxed{\dfrac{1}{4}} P ( Y ≤ X /2 ) = ∫ 0 1 ∫ 0 x /2 10 x 2 y d y d x = 4 1
Law of Total Expectation ¶ E [ X ] = E [ E [ X ∣ Y ] ] \mathbb{E}[X] = \mathbb{E}[\mathbb{E}[X|Y]] E [ X ] = E [ E [ X ∣ Y ]] Discrete Y Y Y : E [ X ] = ∑ y E [ X ∣ Y = y ] P ( Y = y ) \mathbb{E}[X] = \sum_y \mathbb{E}[X|Y = y] P(Y = y) E [ X ] = ∑ y E [ X ∣ Y = y ] P ( Y = y )
Continuous Y Y Y : E [ X ] = ∫ − ∞ ∞ E [ X ∣ Y = y ] f Y ( y ) d y \mathbb{E}[X] = \int_{-\infty}^{\infty} \mathbb{E}[X|Y = y] f_Y(y) \, dy E [ X ] = ∫ − ∞ ∞ E [ X ∣ Y = y ] f Y ( y ) d y
Conditional Variance ¶ Var ( X ∣ Y = y ) = E [ X 2 ∣ Y = y ] − ( E [ X ∣ Y = y ] ) 2 \operatorname{Var}(X|Y = y) = \mathbb{E}[X^2|Y = y] - (\mathbb{E}[X|Y = y])^2 Var ( X ∣ Y = y ) = E [ X 2 ∣ Y = y ] − ( E [ X ∣ Y = y ] ) 2 Law of Total Variance
Var ( X ) = E [ Var ( X ∣ Y ) ] + Var ( E [ X ∣ Y ] ) \operatorname{Var}(X) = \mathbb{E}[\operatorname{Var}(X|Y)] + \operatorname{Var}(\mathbb{E}[X|Y]) Var ( X ) = E [ Var ( X ∣ Y )] + Var ( E [ X ∣ Y ]) Distributions ¶ PMF P ( X = k ) P(X=k) P ( X = k ) Support E [ X ] \boldsymbol{\mathbb{E}[X]} E [ X ] Var ( X ) \boldsymbol{\operatorname{Var}(X)} Var ( X ) MGF Uniform ( a , b ) , n = b − a + 1 (a, b), n = b - a + 1 ( a , b ) , n = b − a + 1 1 n \frac{1}{n} n 1 k ∈ { 1 , … , n } k \in \{1,\dots,n\} k ∈ { 1 , … , n } a + b 2 \frac{a+b}{2} 2 a + b n 2 − 1 12 \frac{n^2-1}{12} 12 n 2 − 1 e a t − e ( b + 1 ) t n ( 1 − e t ) \frac{e^{at} - e^{(b+1)t}}{n(1 - e^t)} n ( 1 − e t ) e a t − e ( b + 1 ) t Bernoulli ( p ) (p) ( p ) p k ( 1 − p ) 1 − k p^k(1-p)^{1-k} p k ( 1 − p ) 1 − k k ∈ { 0 , 1 } k \in \{0,1\} k ∈ { 0 , 1 } p p p p ( 1 − p ) p(1-p) p ( 1 − p ) p e t + ( 1 − p ) pe^t + (1-p) p e t + ( 1 − p ) Binomial ( n , p ) (n, p) ( n , p ) ( n k ) p k ( 1 − p ) n − k \binom{n}{k}p^k(1-p)^{n-k} ( k n ) p k ( 1 − p ) n − k k ∈ { 0 , … , n } k \in \{0,\dots,n\} k ∈ { 0 , … , n } n p np n p n p ( 1 − p ) np(1-p) n p ( 1 − p ) ( p e t + 1 − p ) n (pe^t + 1-p)^n ( p e t + 1 − p ) n Geometric ( p ) (p) ( p ) ( 1 − p ) k − 1 p (1-p)^{k-1}p ( 1 − p ) k − 1 p k ∈ N k \in \mathbb{N} k ∈ N 1 p \frac{1}{p} p 1 1 − p p 2 \frac{1-p}{p^2} p 2 1 − p p e t 1 − ( 1 − p ) e t \frac{pe^t}{1-(1-p)e^t} 1 − ( 1 − p ) e t p e t Poisson ( λ ) (\lambda) ( λ ) λ k e − λ k ! \frac{\lambda^k e^{-\lambda}}{k!} k ! λ k e − λ k ∈ N 0 k \in \mathbb{N}_0 k ∈ N 0 λ \lambda λ λ \lambda λ e λ ( e t − 1 ) e^{\lambda(e^t-1)} e λ ( e t − 1 )
PDF f X ( x ) f_X(x) f X ( x ) Support E [ X ] \boldsymbol{\mathbb{E}[X]} E [ X ] Var ( X ) \boldsymbol{\operatorname{Var}(X)} Var ( X ) MGF Uniform ( a , b ) (a, b) ( a , b ) 1 b − a \frac{1}{b-a} b − a 1 x ∈ [ a , b ] x \in [a,b] x ∈ [ a , b ] a + b 2 \frac{a+b}{2} 2 a + b ( b − a ) 2 12 \frac{(b-a)^2}{12} 12 ( b − a ) 2 { e t b − e t a t ( b − a ) for t ≠ 0 1 for t = 0 \begin{cases}\frac{e^{tb} - e^{ta}}{t(b-a)} & \text{for } t \neq 0 \\ 1 & \text{for } t = 0 \end{cases} { t ( b − a ) e t b − e t a 1 for t = 0 for t = 0 Exponential ( λ ) (\lambda) ( λ ) λ e − λ x \lambda e^{-\lambda x} λ e − λ x x ≥ 0 x \geq 0 x ≥ 0 1 λ \frac{1}{\lambda} λ 1 1 λ 2 \frac{1}{\lambda^2} λ 2 1 λ λ − t \frac{\lambda}{\lambda - t} λ − t λ Gamma ( k , λ ) (k, \lambda) ( k , λ ) λ k Γ ( k ) x k − 1 e − λ x \frac{\lambda^k}{\Gamma(k)} x^{k-1} e^{-\lambda x} Γ ( k ) λ k x k − 1 e − λ x , for Γ ( n ) = ( n − 1 ) ! \Gamma(n) = (n-1)! Γ ( n ) = ( n − 1 )! x ≥ 0 x \geq 0 x ≥ 0 k λ \frac{k}{\lambda} λ k k λ 2 \frac{k}{\lambda^2} λ 2 k ( λ λ − t ) k \left(\frac{\lambda}{\lambda - t}\right)^k ( λ − t λ ) k Normal ( μ , σ 2 ) (\mu, \sigma^2) ( μ , σ 2 ) 1 2 π σ 2 e − ( x − μ ) 2 2 σ 2 \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x-\mu)^2}{2\sigma^2}} 2 π σ 2 1 e − 2 σ 2 ( x − μ ) 2 x ∈ R x \in \mathbb{R} x ∈ R μ \mu μ σ 2 \sigma^2 σ 2 e t μ + 1 2 t 2 σ 2 e^{t\mu + \frac{1}{2}t^2\sigma^2} e t μ + 2 1 t 2 σ 2
Normal Distribution
Standard Normal : Z ∼ N ( 0 , 1 ) Z \sim N(0,1) Z ∼ N ( 0 , 1 ) with standard normal CDF F X ( z ) = Φ ( z ) = 1 2 π ∫ − ∞ z e − t 2 / 2 d t F_X(z) = \Phi(z) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^z e^{-t^2/2} \, dt F X ( z ) = Φ ( z ) = 2 π 1 ∫ − ∞ z e − t 2 /2 d t
Standardization : If X ∼ N ( μ , σ 2 ) X \sim N(\mu, \sigma^2) X ∼ N ( μ , σ 2 ) , then Z = X − μ σ ∼ N ( 0 , 1 ) Z = \frac{X - \mu}{\sigma} \sim N(0,1) Z = σ X − μ ∼ N ( 0 , 1 )
Probability Calculation : P ( X ≤ t ) = Φ ( t − μ σ ) P(X \leq t) = \Phi\left(\frac{t - \mu}{\sigma}\right) P ( X ≤ t ) = Φ ( σ t − μ )
Symmetric Properties : Φ ( − z ) = 1 − Φ ( z ) and Φ ( 0 ) = 0.5 \Phi(-z) = 1 - \Phi(z) \quad \text{and} \quad \Phi(0) = 0.5 Φ ( − z ) = 1 − Φ ( z ) and Φ ( 0 ) = 0.5
Limit Theorems ¶ Given: X i X_i X i : i.i.d. RV with E [ X i ] = μ \mathbb{E}[X_i] = \mu E [ X i ] = μ , Var ( X i ) = σ 2 \text{Var}(X_i) = \sigma^2 Var ( X i ) = σ 2 , then:
Law of Large Numbers : P\left(\left \frac{S_n}{n} - \mu\right| > \varepsilon\right) \xrightarrow{n \to \infty} 0 for any ε > 0 \varepsilon > 0 ε > 0
(convergence to μ \mu μ in the limit) Weak Law of Large Numbers , as n → ∞ n \to \infty n → ∞ : S n n → P μ \frac{S_n}{n} \xrightarrow{\mathbb{P}} \mu n S n P μ (i.e. μ = p = 1 3 ) \mu = p = \frac{1}{3}) μ = p = 3 1 )
Central Limit Theorem : P ( Z = S n − μ σ ≤ ε ) → n → ∞ P ( N ( 0 , 1 ) ≤ ε ) P\left(Z = \frac{S_n - \mu}{\sigma} \leq \varepsilon \right) \xrightarrow{n \to \infty} P(\mathcal{N}(0,1) \leq \varepsilon) P ( Z = σ S n − μ ≤ ε ) n → ∞ P ( N ( 0 , 1 ) ≤ ε ) for any ε ∈ R \varepsilon \in \mathbb{R} ε ∈ R
(convergence in distribution, fluctuations of S n S_n S n around its mean (see above))
Example: Law of Large Numbers ¶ Precise statement: lim n → ∞ P ( ∣ S n n − 1 3 ∣ ≥ ϵ ) = 0 ∀ ϵ > 0 \lim_{n \to \infty} \mathbb{P}\left(\left|\frac{S_n}{n} - \frac{1}{3}\right| \geq \epsilon\right) = 0 \quad \forall \epsilon > 0 lim n → ∞ P ( ∣ ∣ n S n − 3 1 ∣ ∣ ≥ ϵ ) = 0 ∀ ϵ > 0
Weak Law of Large Numbers , as n → ∞ n \to \infty n → ∞ : S n n → P p = 1 3 \frac{S_n}{n} \xrightarrow{\mathbb{P}} p = \frac{1}{3} n S n P p = 3 1
Example: Central Limit Theorem Approximation ¶ Given: S ∼ Binomial ( n = 16 0 ′ 000 , p = 0.5 ) S \sim \text{Binomial}(n=160'000, p=0.5) S ∼ Binomial ( n = 16 0 ′ 000 , p = 0.5 ) .
E [ S ] = 8 0 ′ 000 \mathbb{E}[S] = 80'000 E [ S ] = 8 0 ′ 000 , Var ( S ) = 4 0 ′ 000 \text{Var}(S) = 40'000 Var ( S ) = 4 0 ′ 000 , σ = ′ t e x t V a r ( S ) = 200 \sigma = \sqrt{'text{Var}(S)} = 200 σ = ′ t e x t Va r ( S ) = 200
P ( S ≤ 80 , 200 ) ≈ P ( Z ≤ 80 , 200.5 − 80 , 000 200 ) = P ( Z ≤ 1.0025 ) ≈ Φ ( 1 ) ≈ 0.841 . \mathbb{P}(S \leq 80{,}200) \approx \mathbb{P}\left(Z \leq \frac{80{,}200.5 - 80{,}000}{200}\right) = \mathbb{P}(Z \leq 1.0025) \approx \Phi(1) \approx \boxed{0.841}. P ( S ≤ 80 , 200 ) ≈ P ( Z ≤ 200 80 , 200.5 − 80 , 000 ) = P ( Z ≤ 1.0025 ) ≈ Φ ( 1 ) ≈ 0.841 . Chebyshev’s Inequality ¶ P ( ∣ X − μ ∣ ≥ ε ) ≤ σ 2 ε 2 \begin{align*}
P(|X-\mu| \geq \varepsilon) &\leq \frac{\sigma^2}{\varepsilon^2}
\end{align*} P ( ∣ X − μ ∣ ≥ ε ) ≤ ε 2 σ 2 Example: Chebyshev’s Inequality for S 900 S_{900} S 900 ¶ Given: S 900 ∼ Binomial ( n = 900 , p = 1 / 3 ) S_{900} \sim \text{Binomial}(n=900, p=1/3) S 900 ∼ Binomial ( n = 900 , p = 1/3 ) .
E [ S 900 ] = 300 \mathbb{E}[S_{900}] = 300 E [ S 900 ] = 300 , Var ( S 900 ) = 900 ⋅ 1 3 ⋅ 2 3 = 200 \text{Var}(S_{900}) = 900 \cdot \frac{1}{3} \cdot \frac{2}{3} = 200 Var ( S 900 ) = 900 ⋅ 3 1 ⋅ 3 2 = 200
P ( ∣ S 900 − 300 ∣ ≤ 20 ) ≥ 1 − Var ( S 900 ) 2 0 2 = 1 − 200 400 = 1 2 . \mathbb{P}(|S_{900} - 300| \leq 20) \geq 1 - \frac{\text{Var}(S_{900})}{20^2} = 1 - \frac{200}{400} = \frac{1}{2}. P ( ∣ S 900 − 300∣ ≤ 20 ) ≥ 1 − 2 0 2 Var ( S 900 ) = 1 − 400 200 = 2 1 . The probability is greater than or equal to 1 2 \frac{1}{2} 2 1
Markov’s Inequality ¶ For any non-negative random variable X X X (i.e., X ≥ 0 X \geq 0 X ≥ 0 ) and any a > 0 a \gt 0 a > 0 , the following is always true:
P ( X ≥ a ) ≤ E [ X ] a P(X \geq a) \leq \frac{\mathbb{E}[X]}{a} P ( X ≥ a ) ≤ a E [ X ] Markov Chains ¶ Markov Property: P ( X n + 1 ∣ X n , … , X 0 ) = P ( X n + 1 ∣ X n ) Chapman-Kolmogorov: p i j ( m + n ) = ∑ k p i k ( m ) p k j ( n ) Stationary: π ⃗ = π ⃗ P Convergence: ν ⃗ P n → π ⃗ \begin{align*}
\textbf{Markov Property: } P(X_{n+1}|X_n, \ldots, X_0) &= P(X_{n+1}|X_n) & \textbf{Chapman-Kolmogorov: } p_{ij}^{(m+n)} &= \sum_k p_{ik}^{(m)} p_{kj}^{(n)} \\
\textbf{Stationary: } \vec{\pi} &= \vec{\pi} P & \textbf{Convergence: } \vec{\nu} P^n &\to \vec{\pi}
\end{align*} Markov Property: P ( X n + 1 ∣ X n , … , X 0 ) Stationary: π = P ( X n + 1 ∣ X n ) = π P Chapman-Kolmogorov: p ij ( m + n ) Convergence: ν P n = k ∑ p ik ( m ) p kj ( n ) → π Transition Matrix ¶ One-step transition probabilities p i j = P ( X n + 1 = j ∣ X n = i ) p_{ij} = P(X_{n+1} = j \mid X_n = i) p ij = P ( X n + 1 = j ∣ X n = i ) form the transition matrix :
P = ( p 11 p 12 ⋯ p 1 k p 21 p 22 ⋯ p 2 k ⋮ ⋮ ⋱ ⋮ p k 1 p k 2 ⋯ p k k ) ∈ R k × k P = \begin{pmatrix}
p_{11} & p_{12} & \cdots & p_{1k} \\
p_{21} & p_{22} & \cdots & p_{2k} \\
\vdots & \vdots & \ddots & \vdots \\
p_{k1} & p_{k2} & \cdots & p_{kk} \\
\end{pmatrix} \in \mathbb{R}^{k \times k} P = ⎝ ⎛ p 11 p 21 ⋮ p k 1 p 12 p 22 ⋮ p k 2 ⋯ ⋯ ⋱ ⋯ p 1 k p 2 k ⋮ p kk ⎠ ⎞ ∈ R k × k p i j ∈ [ 0 , 1 ] p_{ij} \in [0,1] p ij ∈ [ 0 , 1 ]
∑ j = 1 k p i j = 1 \sum_{j=1}^k p_{ij} = 1 ∑ j = 1 k p ij = 1 for all i i i (stochastic matrix)
Irreducibility ¶ p i j ( n ) > 0 p_{ij}^{(n)} > 0 p ij ( n ) > 0 Every state can be reached from every other state in a finite number of steps. The state space cannot be partitioned into disjoint subsets that the chain never leaves.
Aperiodicity ¶ A Markov chain is aperiodic if all its states are aperiodic. The period of state i i i is defined as:
d ( i ) = gcd { n ≥ 1 : p i i ( n ) > 0 } d(i) = \gcd\{n \geq 1: p_{ii}^{(n)} > 0\} d ( i ) = g cd{ n ≥ 1 : p ii ( n ) > 0 } If d ( i ) = 1 d(i) = 1 d ( i ) = 1 , state i i i is aperiodic
If d ( i ) > 1 d(i) > 1 d ( i ) > 1 , state i i i is periodic with period d ( i ) d(i) d ( i )
An aperiodic chain can return to any state at irregular intervals, not just multiples of a fixed period.
Irreducibility & Aperiodicity Combined ¶ If a finite-state Markov chain is both irreducible and aperiodic , then:
It has a unique stationary distribution π ⃗ \vec{\pi} π
For any initial distribution: π ⃗ ( n ) → π ⃗ \vec{\pi}(n) \to \vec{\pi} π ( n ) → π as n → ∞ n \to \infty n → ∞
All rows of P n P^n P n converge to π ⃗ \vec{\pi} π as n → ∞ n \to \infty n → ∞
Example: Californian Weather Model ¶ Time-homogeneous Markov chain { X n : n ∈ N } \{X_n: n \in \mathbb{N}\} { X n : n ∈ N } with initial distribution π ⃗ ( 0 ) : = ( 1 6 , 5 6 ) \vec{\pi}(0) := \left(\frac{1}{6}, \frac{5}{6}\right) π ( 0 ) := ( 6 1 , 6 5 ) and transition matrix
P = ( 0.5 0.5 0.1 0.9 ) \mathbf{P} = \begin{pmatrix}
0.5 & 0.5 \\
0.1 & 0.9
\end{pmatrix} P = ( 0.5 0.1 0.5 0.9 ) Show for any n ∈ N n \in \mathbb{N} n ∈ N : π ⃗ ( n ) = π ⃗ ( 0 ) \vec{\pi}(n) = \vec{\pi}(0) π ( n ) = π ( 0 )
π ⃗ ( n + 1 ) = π ⃗ ( n ) P = ( 1 6 , 5 6 ) ( 0.5 0.5 0.1 0.9 ) = ( 1 6 ⋅ 0.5 + 5 6 ⋅ 0.1 , 1 6 ⋅ 0.5 + 5 6 ⋅ 0.9 ) = ( 1 6 , 5 6 ) \vec{\pi}(n+1) = \vec{\pi}(n) \mathbf{P} = \left(\frac{1}{6}, \frac{5}{6}\right) \begin{pmatrix} 0.5 & 0.5 \\ 0.1 & 0.9 \end{pmatrix} = \left(\frac{1}{6} \cdot 0.5 + \frac{5}{6} \cdot 0.1, \frac{1}{6} \cdot 0.5 + \frac{5}{6} \cdot 0.9\right) = \left(\frac{1}{6}, \frac{5}{6}\right) π ( n + 1 ) = π ( n ) P = ( 6 1 , 6 5 ) ( 0.5 0.1 0.5 0.9 ) = ( 6 1 ⋅ 0.5 + 6 5 ⋅ 0.1 , 6 1 ⋅ 0.5 + 6 5 ⋅ 0.9 ) = ( 6 1 , 6 5 ) Interpretation : The initial distribution ( 1 6 , 5 6 ) \left(\frac{1}{6}, \frac{5}{6}\right) ( 6 1 , 6 5 ) is stationary for this chain.
Stochastic Processes ¶ Mean: m X ( t ) = E [ X t ] Variance: Var ( X t ) = E [ X t 2 ] − ( E [ X t ] ) 2 Covariance: C X ( t 1 , t 2 ) = R X ( t 1 , t 2 ) − m X ( t 1 ) m X ( t 2 ) Correlation: R X ( t 1 , t 2 ) = E [ X t 1 X t 2 ] \begin{align*}
\textbf{Mean: } m_X(t) &= \mathbb{E}[X_t] &
\textbf{Variance: } \text{Var}(X_t) &= \mathbb{E}[X_t^2] - (\mathbb{E}[X_t])^2 \\
\textbf{Covariance: } C_X(t_1,t_2) &= R_X(t_1,t_2) - m_X(t_1)m_X(t_2) &
\textbf{Correlation: } R_X(t_1, t_2) &= \mathbb{E}[X_{t_1} X_{t_2}]
\end{align*} Mean: m X ( t ) Covariance: C X ( t 1 , t 2 ) = E [ X t ] = R X ( t 1 , t 2 ) − m X ( t 1 ) m X ( t 2 ) Variance: Var ( X t ) Correlation: R X ( t 1 , t 2 ) = E [ X t 2 ] − ( E [ X t ] ) 2 = E [ X t 1 X t 2 ] zero-mean processes: R X ( t 1 , t 2 ) = Cov ( X t 1 , X t 2 ) R_X(t_1, t_2) = \operatorname{Cov}(X_{t_1}, X_{t_2}) R X ( t 1 , t 2 ) = Cov ( X t 1 , X t 2 )
Description m X ( t ) \boldsymbol{m_X(t)} m X ( t ) V a r ( X t ) \boldsymbol{Var(X_t)} Var ( X t ) R X ( t 1 , t 2 ) \boldsymbol{R_X(t_1, t_2)} R X ( t 1 , t 2 ) Bernoulli X n X_n X n i.i.d. ± 1 \pm 1 ± 1 valued2 p − 1 2p-1 2 p − 1 4 p ( 1 − p ) 4p(1-p) 4 p ( 1 − p ) ( 2 p − 1 ) 2 (2p-1)^2 ( 2 p − 1 ) 2 for t 1 ≠ t 2 t_1\neq t_2 t 1 = t 2 Random Walk X n = ∑ i = 1 n B i X_n = \sum_{i=1}^n B_i X n = ∑ i = 1 n B i 0 (if p = 1 / 2 p=1/2 p = 1/2 ) n n n min ( t 1 , t 2 ) \min(t_1, t_2) min ( t 1 , t 2 ) Brownian Motion Continuous limit of RW 0 t t t min ( t 1 , t 2 ) \min(t_1, t_2) min ( t 1 , t 2 ) Poisson Counts events in time λ t \lambda t λ t λ t \lambda t λ t λ min ( t 1 , t 2 ) \lambda \min(t_1, t_2) λ min ( t 1 , t 2 ) White Noise X t ∼ i.i.d. ( 0 , σ 2 ) X_t \sim \text{i.i.d.}(0, \sigma^2) X t ∼ i.i.d. ( 0 , σ 2 ) σ 2 δ t 1 , t 2 \sigma^2 \delta_{t_1,t_2} σ 2 δ t 1 , t 2 for δ t 1 , t 2 \delta_{t_1,t_2} δ t 1 , t 2 := if (t 1 = t 2 t_1 = t_2 t 1 = t 2 ) 1 else 0Wiener Process W t ∼ N ( 0 , t ) W_t \sim \mathcal{N}(0, t) W t ∼ N ( 0 , t ) min ( t 1 , t 2 ) \min(t_1, t_2) min ( t 1 , t 2 )
Wide-Sense Stationary (WSS) :
Constant mean: m X ( t ) = m m_X(t) = m m X ( t ) = m for all t t t
Correlation depends only on time difference: R X ( t 1 , t 2 ) = R X ( ∣ t 2 − t 1 ∣ ) R_X(t_1, t_2) = R_X(|t_2 - t_1|) R X ( t 1 , t 2 ) = R X ( ∣ t 2 − t 1 ∣ )
Example: Stochastic Process Y n = 1 2 ( X n + X n − 1 ) Y_n = \frac{1}{2}(X_n + X_{n-1}) Y n = 2 1 ( X n + X n − 1 ) ¶ Given: X n X_n X n i.i.d., E [ X n ] = 2 \mathbb{E}[X_n] = 2 E [ X n ] = 2 , Var ( X n ) = 3 \text{Var}(X_n) = 3 Var ( X n ) = 3
Moments of Y n Y_n Y n E [ Y n ] = 1 2 ( E [ X n ] + E [ X n − 1 ] ) = 2 \mathbb{E}[Y_n] = \frac{1}{2}(\mathbb{E}[X_n] + \mathbb{E}[X_{n-1}]) = \boxed{2} E [ Y n ] = 2 1 ( E [ X n ] + E [ X n − 1 ]) = 2 Var ( Y n ) = 1 4 ( Var ( X n ) + Var ( X n − 1 ) ) = 3 2 \text{Var}(Y_n) = \frac{1}{4}(\text{Var}(X_n) + \text{Var}(X_{n-1})) = \boxed{\dfrac{3}{2}} Var ( Y n ) = 4 1 ( Var ( X n ) + Var ( X n − 1 )) = 2 3 E [ Y n 2 ] = Var ( Y n ) + ( E [ Y n ] ) 2 = 3 2 + 4 = 11 2 \mathbb{E}[Y_n^2] = \text{Var}(Y_n) + (\mathbb{E}[Y_n])^2 = \frac{3}{2} + 4 = \boxed{\dfrac{11}{2}} E [ Y n 2 ] = Var ( Y n ) + ( E [ Y n ] ) 2 = 2 3 + 4 = 2 11
Correlation Function: If X m X_m X m and X n X_n X n i.i.d. : R X ( m , n ) = E [ X m ] ⋅ E [ X n ] = { 7 = E [ X n 2 ] if m = n 4 if m ≠ n R_X(m,n) = \mathbb{E}[X_m] \cdot \mathbb{E}[X_n] = \begin{cases} 7 = \mathbb{E}[X_n^2] & \text{if } m = n \\ 4 & \text{if } m \neq n \end{cases} R X ( m , n ) = E [ X m ] ⋅ E [ X n ] = { 7 = E [ X n 2 ] 4 if m = n if m = n else if X m X_m X m and X n X_n X n dependent : R Y ( m , n ) = E [ Y m Y n ] = E [ ( X m + X m − 1 2 ) ( X n + X n − 1 2 ) ] = { 11 2 , if m = n , 19 4 , if ∣ m − n ∣ = 1 , 4 , if ∣ m − n ∣ ≥ 2. R_Y(m,n) = \mathbb{E}[Y_m Y_n] = \mathbb{E}\left[\left(\frac{X_m + X_{m-1}}{2}\right) \left(\frac{X_n + X_{n-1}}{2}\right)\right]= \begin{cases} \dfrac{11}{2}, & \text{if } m = n, \\ \dfrac{19}{4}, & \text{if } |m - n| = 1, \\ 4, & \text{if } |m - n| \geq 2. \end{cases} R Y ( m , n ) = E [ Y m Y n ] = E [ ( 2 X m + X m − 1 ) ( 2 X n + X n − 1 ) ] = ⎩ ⎨ ⎧ 2 11 , 4 19 , 4 , if m = n , if ∣ m − n ∣ = 1 , if ∣ m − n ∣ ≥ 2. Expand the product inside the expectation Use linearity of expectation to split into sums of expectations Evaluate each term using:
Process Properties: Identically Distributed: Yes Independent: No Wide-Sense Stationary: Yes
Poisson Process ¶ Models the number of events with { N ( t ) : t ≥ 0 } \{N(t) : t \geq 0\} { N ( t ) : t ≥ 0 } . It satisfies the following properties:
Independent Increments: The number of events in non-overlapping intervals are independent.
Memoryless Property: P ( T i > s + t ∣ T i > s ) = P ( T i > t ) \mathbb{P}(T_i > s + t \mid T_i > s) = \mathbb{P}(T_i > t) P ( T i > s + t ∣ T i > s ) = P ( T i > t ) .
Stationary Increments: The number of events in an interval depends only on the length of the interval, not its starting point.
Rare Events: The probability of more than one event in a very small interval is negligible.
Rate Parameter (λ \lambda λ ): Average number of events per unit time.
Counting Process: N ( t ) N(t) N ( t ) counts the number of events in the interval [ 0 , t ] [0, t] [ 0 , t ] .
Inter-arrival Times: The time between consecutive events follows an exponential distribution with rate λ \lambda λ .
The number of events N ( t ) N(t) N ( t ) in an interval of length t t t follows a Poisson distribution :
P ( N ( t ) = k ) = ( λ t ) k e − λ t k ! , k = 0 , 1 , 2 , … \mathbb{P}(N(t) = k) = \frac{(\lambda t)^k e^{-\lambda t}}{k!}, \quad k = 0, 1, 2, \dots P ( N ( t ) = k ) = k ! ( λ t ) k e − λ t , k = 0 , 1 , 2 , … For N ( t ) ∼ Poisson ( λ t ) N(t) \sim \text{Poisson}(\lambda t) N ( t ) ∼ Poisson ( λ t ) :
Mean: E [ N ( t ) ] = λ t \mathbb{E}[N(t)] = \lambda t E [ N ( t )] = λ t
Variance: Var ( N ( t ) ) = λ t \text{Var}(N(t)) = \lambda t Var ( N ( t )) = λ t
The time between consecutive events , T i = S i − S i − 1 T_i = S_i - S_{i-1} T i = S i − S i − 1 (where S i S_i S i is the time of the i i i -th event), follows an exponential distribution : f T i ( t ) = λ e − λ t , t ≥ 0 f_{T_i}(t) = \lambda e^{-\lambda t}, \quad t \geq 0 f T i ( t ) = λ e − λ t , t ≥ 0
Probability of k k k Events in Time t t t : P ( N ( t ) = k ) = ( λ t ) k e − λ t k ! \mathbb{P}(N(t) = k) = \frac{(\lambda t)^k e^{-\lambda t}}{k!} P ( N ( t ) = k ) = k ! ( λ t ) k e − λ t
Probability of at Most k k k Events in Time t t t : P ( N ( t ) ≤ k ) = e − λ t ∑ i = 0 k ( λ t ) i i ! \mathbb{P}(N(t) \leq k) = e^{-\lambda t} \sum_{i=0}^k \frac{(\lambda t)^i}{i!} P ( N ( t ) ≤ k ) = e − λ t ∑ i = 0 k i ! ( λ t ) i
Expected Time Until the k k k -th Event : E [ S k ] = k λ \mathbb{E}[S_k] = \frac{k}{\lambda} E [ S k ] = λ k
Probability of No Events in Time t t t : P ( N ( t ) = 0 ) = e − λ t \mathbb{P}(N(t) = 0) = e^{-\lambda t} P ( N ( t ) = 0 ) = e − λ t
Example: Poisson Process (Rate λ = 2 \lambda = 2 λ = 2 per month) ¶ P ( at most 4 failures in first month ) \boldsymbol{\mathbb{P}(\text{at most 4 failures in first month})} P ( at most 4 failures in first month ) : N ( 1 ) ∼ Poisson ( 2 ) , P ( N ( 1 ) ≤ 4 ) = e − 2 ∑ k = 0 4 2 k k ! = 7 e − 2 N(1) \sim \text{Poisson}(2), \quad \mathbb{P}(N(1) \leq 4) = e^{-2} \sum_{k=0}^4 \frac{2^k}{k!} = \boxed{7e^{-2}} N ( 1 ) ∼ Poisson ( 2 ) , P ( N ( 1 ) ≤ 4 ) = e − 2 ∑ k = 0 4 k ! 2 k = 7 e − 2
P ( 3 in first month AND 2 in next two months ) \boldsymbol{\mathbb{P}(\text{3 in first month AND 2 in next two months})} P ( 3 in first month AND 2 in next two months ) : P ( N ( 1 ) = 3 ) = 4 3 e − 2 , P ( N ( 3 ) − N ( 1 ) = 2 ) ⟹ N ( 3 ) − N ( 1 ) ∼ Poisson ( λ ⋅ length ) = Poisson ( 2 ⋅ 2 ) ⟹ 8 e − 4 \mathbb{P}(N(1) = 3) = \frac{4}{3} e^{-2}, \quad \mathbb{P}(N(3) - N(1) = 2) \implies N(3) - N(1) \sim \text{Poisson}(\lambda \cdot \text{length}) = \text{Poisson}(2 \cdot 2) \implies 8 e^{-4} P ( N ( 1 ) = 3 ) = 3 4 e − 2 , P ( N ( 3 ) − N ( 1 ) = 2 ) ⟹ N ( 3 ) − N ( 1 ) ∼ Poisson ( λ ⋅ length ) = Poisson ( 2 ⋅ 2 ) ⟹ 8 e − 4 Joint probability: 32 3 e − 6 \boxed{\dfrac{32}{3} e^{-6}} 3 32 e − 6
P ( 3 in first month ∣ 4 in first two months ) \boldsymbol{\mathbb{P}(\text{3 in first month} \mid \text{4 in first two months})} P ( 3 in first month ∣ 4 in first two months ) : P ( N ( 1 ) = 3 ∣ N ( 2 ) = 4 ) = P ( N ( 1 ) = 3 and N ( 2 ) − N ( 1 ) = 1 ) P ( N ( 2 ) = 4 ) = 1 4 \mathbb{P}(N(1) = 3 \mid N(2) = 4) = \frac{\mathbb{P}(N(1) = 3 \text{ and } N(2) - N(1) = 1)}{\mathbb{P}(N(2) = 4)} = \boxed{\dfrac{1}{4}} P ( N ( 1 ) = 3 ∣ N ( 2 ) = 4 ) = P ( N ( 2 ) = 4 ) P ( N ( 1 ) = 3 and N ( 2 ) − N ( 1 ) = 1 ) = 4 1
Expected Time Until 10th Failure: For a Poisson process, the time of the k k k -th arrival is Gamma ( k , λ ) \text{Gamma}(k, \lambda) Gamma ( k , λ ) Mean time: 5 months \boxed{5 \text{ months}} 5 months (since E [ T 10 ] = 10 λ = 5 \mathbb{E}[T_{10}] = \frac{10}{\lambda} = 5 E [ T 10 ] = λ 10 = 5 )