Docsity

Formulas For Probability Theory, Cheat Sheet of Probability and Stochastic Processes

Toggle sidebar
bg1
Formulas for probability theory SF2940 (23
pages)
These pages (+ Appendix 2 of Gut)
are permitted as assistance at the exam.
6 september 2011
•Selected formulae of probability
•Bivariate probability
•Conditional expectation w.r.t a Sigma field
•Transforms
•Multivariate normal distribution
•Stochastic processes
•Gaussian processes
•Poisson process
•Convergence
•Series Expansions and Integrals
1 Probability
1.1 Two inequalities
•A⊆B⇒P(A)≤P(B)
•P(A∪B)≤P(A) + P(B) (Boole’s inequality).
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Formulas For Probability Theory and more Cheat Sheet Probability and Stochastic Processes in PDF only on Docsity!

Formulas for probability theory SF2940 (

pages)

These pages (+ Appendix 2 of Gut)

are permitted as assistance at the exam.

6 september 2011

  • Selected formulae of probability
  • Bivariate probability
  • Conditional expectation w.r.t a Sigma field
  • Transforms
  • Multivariate normal distribution
  • Stochastic processes
  • Gaussian processes
  • Poisson process
  • Convergence
  • Series Expansions and Integrals

1 Probability

1.1 Two inequalities

• A ⊆ B ⇒ P (A) ≤ P (B)

  • P (A ∪ B) ≤ P (A) + P (B) (Boole’s inequality).

1.2 Change of variable in a probability density

Let X = (X 1 , X 2 ,... , Xm)T^ have the probability density fX (x 1 , x 2 ,... , xm). Define a new random vector Y = (Y 1 , Y 2 ,... , Ym)T^ by

Yi = gi (X 1 ,... , Xm) , i = 1, 2 ,... , m,

where gi are continuously differentiable and (g 1 , g 2 ,... , gm) is invertible (in a domain) with

Xi = hi (Y 1 ,... , Ym) , i = 1, 2 ,... , m,

where hi are continuously differentiable. Then the density of Y is (in the domain of invertibility)

fY (y 1 ,... , ym) = fX (h 1 (y 1 , y 2 ,... , ym) ,... , hm (y 1 , y 2 ,... , ym)) | J |,

where J is the Jacobian determinant

J =

∣∣ ∣∣ ∣∣ ∣∣ ∣∣ ∣

∂x 1 ∂y 1

∂x 1 ∂y 2...^

∂x 1 ∂x^ ∂ym ∂y^2 1

∂x 2 ∂y 2...^

∂x 2 ∂ym .. .

∂xm ∂y 1

∂xm ∂y 2...^

∂xm ∂ym

∣∣ ∣∣ ∣∣ ∣∣ ∣∣ ∣

Example 1.1 If X has the probability density fX (x), Y = AX + b, and A is invertible, then Y has the probability density

fY (y) =

| det A |

fX

( A−^1 (y − b)

)

2 Continuous bivariate distributions

2.1 Bivariate densities

2.1.1 Definitions

The bivariate vector (X, Y )T^ has a continuous joint distribution with density fX,Y (x, y) if

P (X ≤ x, Y ≤ y) =

∫ (^) x

−∞

∫ (^) y

−∞

fX,Y (u, v)dudv.

2.1.2 Independence

X and Y are independent iff

fX,Y (x, y) = fX (x) · fY (y) for every (x, y).

2.1.3 Conditional density of X given an event B

fX|B (x) =

{ (^) fX (x) P (B) x^ ∈^ B 0 elsewhere

2.1.4 Normal distribution

If X has the density f (x; μ, σ) defined by

fX (x; μ, σ) :=

√^1

2 πσ^2

e−^

(x−μ)^2 2 σ^2 ,

then X ∈ N (μ, σ^2 ). X ∈ N (0, 1) is standard normal with density

φ(x) = fX (x; 0, 1).

The cumulative distribution function of X ∈ N (0, 1) is for x > 0

Φ(x) =

∫ (^) x −∞

φ(t)dt =

∫ (^) x 0

φ(t)dt

and Φ(−x) = 1 − Φ(x).

2.1.5 Numerical computation of Φ(x)

Approximative values of the cumulative distribution function of X ∈ N (0, 1), Φ(x), can be calculated for x > 0 by

Φ(x) = 1 − Q(x), Q(x) =

∫ (^) ∞ x

φ(t)dt,

where we use the following approximation^1 :

Q(x) ≈

  (^) (^1 1 − (^) π^1

) x + (^1) π

x^2 + 2π

  (^) √^1 2 π

e−x^2 /^2.

(^1) P.O. B¨orjesson and C.E.W. Sundberg: Simple Approximations of the Error Function Q(x) for Communication Applications. IEEE Transactions on Communications, March 1979, pp. 639−643.

2.2 Mean and variance

The expectations or means E(X), E(Y ) are defined (if they exist) by

E(X) =

∫ (^) +∞

−∞

xfX (x)dx,

E(Y ) =

∫ (^) +∞

−∞

yfY (y)dy,

respectively. Variances Var(X), Var(Y ) are defined as

Var(X) =

∫ (^) +∞ −∞

(x − E(X))^2 fX (x)dx,

Var(Y ) =

∫ (^) +∞

−∞

(y − E(Y ))^2 fY (y)dy,

respectively. We have

Var(X) = E(X^2 ) − (E(X))^2.

The function of a random variable g(X), the law of the unconscious statistician,

E(g(X)) =

∫ (^) +∞

−∞

g(x)fX (x)dx.

2.3 Chebyshev,s inequality

P (| X − E(X) |> ε) ≤

Var(X) ε^2

2.4 Conditional expectations

The conditional expectations of X given Y = y is

E(X|Y = y) :=

∫ (^) +∞

−∞

xfX|Y =y(x)dx.

This can be seen as y 7 −→ E(X|Y = y), as a function of Y.

E(X) = E(E(X|Y )), Var(X) = Var(E(X|Y )) + E(Var(X|Y )). E

[ (Y − g(X))^2

] = E [Var [Y |X]] + E

[ (E [Y |X] − g(X))^2

] .

4 Conditional Expectation w.r.t to a Sigma-

Field

a and b are real numbers, E [| Y |] < ∞, E [| Z |] < ∞, E [| X |] < ∞ and H, G F are sigma fields, G ⊂ F, H ⊂ F.

  1. Linearity: E [aX + bY | G] = aE [X | G] + bE [Y | G]
  2. Double expectation :

E [E [Y | G]] = E [Y ]

  1. Taking out what is known: If Z is G -measurable, and E [| ZY |] < ∞ E [ZY | G] = ZE [Y | G]
  2. An independent condition drops out: If Y is independent of G,

E [Y | G] = E [Y ]

  1. Tower Property : If H ⊂ G,

E [E [Y | G] | H] = E [Y | H]

  1. Positivity: If Y ≥ 0, E [Y | G] ≥ 0.

5 Covariance matrix

5.1 Definition

Covariance matrix

CX := E

[ (X − μX) (X − μX)T^

]

where the entry in position (i, j)

CX(i, j) = E [(Xi − μi) (Xj − μj )]

is the covariance between Xi and Xj.

  • Covariance matrix is nonnegative definite, i.e., for all x 6 = 0 we have

xT^ CXx ≥ 0

Hence det CX ≥ 0.

  • The covariance matrix is symmetric

CX = C XT

5.2 2 × 2 Covariance Matrix

The covariance matrix of a bivariate random variable X = (X 1 , X 2 )T^.

CX =

( σ^21 ρσ 1 σ 2 ρσ 1 σ 2 σ 22

) ,

where ρ is the coefficient of correlation of X 1 and X 2 , and σ^21 = Var (X 1 ), σ^22 = Var (X 2 ). CX is invertible iff ρ^2 6 = 1, then the inverse is

C− X^1 =

σ 12 σ 12 (1 − ρ^2 )

( σ^22 −ρσ 1 σ 2 −ρσ 1 σ 2 σ 12

) .

6 Discrete Random Variables

X is a (discrete) random variable that assumes values in X and Y is a (discrete) random variable that assumes values in Y.

Remark 6.1 These are measurable maps X(ω), ω ∈ Ω, from a basic pro- bability space (Ω, F, P ) (= outcomes, a sigma field of of subsets of Ω and probability measure P on F), to X.

X and Y are two discrete state spaces, whose generic elements are called values or instantiations and denoted by xi and yj , respectively.

X = {x 1 , · · · , xL}, Y = {y 1 , · · · , yJ }.

| X | (:= the number of elements in X ) = L ≤ ∞, | Y |= J ≤ ∞. Unless otherwise stated the alphabets considered here are finite.

Next PX (A) :=

∑ xi∈A

p(xi) (6.6)

is the probability of the event that X assumes a value in A, a subset of X. From (6.6) one easily finds the complement rule

PX (Ac) = 1 − PX (A), (6.7)

where Ac^ is the complement of A, i.e., those outcomes which do not lie in A. Also PX (A ∪ B) = PX (A) + PX (B) − PX (A ∩ B), (6.8)

is immediate.

6.3 Conditional Probability Given an Event

The conditional probability for X = xi given X ∈ A is denoted by PX (xi | A) and given by

PX (xi | A) =

{ (^) PX (xi) PX (A) if^ xi^ ∈^ A 0 otherwise.

6.4 Independence

X and Y are independent random variables if and only if

p(xi, yj ) = p(xi) · p(yj ) (6.10)

for all pairs (xi, yj ) in X ×Y. In other words all events {X = xi} and {Y = yj } are to be independent. We say that X 1 , X 2 ,... , Xn are independent random variables if and only if the joint distribution

pX 1 ,X 2 ,...,Xn (xi 1 , xi 2... , xin ) = P (X 1 = xi 1 , X 2 = xi 2 ,... , Xn = xin ) (6.11)

equals

pX 1 ,X 2 ,...,Xn (xi 1 , xi 2... , xin ) = pX 1 (xi 1 ) · pX 2 (xi 2 ) · · · pXn (xin ) (6.12)

for every xi 1 , xi 2... , xin ∈ X n. We are here assuming for simplicity that X 1 , X 2 ,... , Xn take values in the same alphabet.

6.5 A Chain Rule

Let Z be a (discrete) random variable that assumes values in Z = {zk}Kk=1. If p(zk) > 0,

p(xi, yj | zk) =

p(xi, yj , zk) p(zk)

Then we obtain as an identity

p(xi, yj | zk) =

p(xi, yj , zk) p(yj , zk)

p(yj , zk) p(zk)

and again by definition of conditional probability the right hand side is equal to p(xi | yj , zk) · p(yj | zk).

In other words,

pX,Y |Z (xi, yj | zk) = p(xi | yj , zk) · p(yj | zk). (6.13)

6.6 Conditional Independence

The random variables X and Y are called conditionally independent given Z if p(xi, yj |zk) = p(xi|zk) · p(yj |zk) (6.14)

for all triples (zk, xi, yj ) ∈ Z × X × Y (cf. (6.13)).

7 Miscellaneous

7.1 A Marginalization Formula

Let Y be discrete and X be continuous, and let their joint distribution be

P (Y = k, X ≤ x) =

∫ (^) x

−∞

P (Y = k | X = u) fX (u)du.

Then

P (Y = k) =

∫ (^) ∞

−∞

∂u

P (Y = k, X ≤ u) du

∫ (^) ∞

−∞

P (Y = k | X = x) fX (x)dx.

μ[r] = E [X(X − 1) · · · (X − r + 1)] =

dr dtr^

gX (1)

Var[X] =

d^2 dt^2

gX (1) +

d dt

gX (1) −

( d dt

gX (1)

) 2

8.1.3 Prob. Gen. Fnct: Properties

Z = X + Y , X and Y non negative integer valued, independent,

  • gZ (t) = E

( tZ^

)

E

( tX+Y^

) = E

( tX^

) · E

( tY^

) = gX (t) · gY (t).

8.1.4 Prob. Gen. Fnct: Examples

  • X ∈ Be(p) gX (t) = 1 − p + pt.
  • Y ∈ Bin(n, p) gY (t) = (1 − p + pt)n
  • Z ∈ Po (λ) gZ (t) = eλ·(t−1)

8.1.5 Sum of a Random Number of Random Variables

Xi., i = 1,... , n I.I.D. non negative integer valued, and N non negative integer valued and independent of the Xis.

SN =

∑^ N i=

Xi.

Then the probability generating function of SN is

gSN (t) = gN (gX (t)).

8.2 Moment Generating Functions

8.2.1 Definition

Moment generating function, for some h > 0,

ψX (t) def = E

[ etX^

] , |t| < h.

ψX (t) =

{ (^) ∑ ∫ (^) ∞^ xi^ etxi^ fX^ (xi)^ X^ discrete −∞ etxfX^ (x)dx^ X^ continuous

8.2.2 Moment Gen. Fnctn: Properties

  • d dt

ψX (0) = E [X]

  • ψX (0) = 1 dk dtk^

ψX (0) = E

[ Xk

] .

Sn = X 1 + X 2 +... + Xn, Xi independent.

ψSn (t) = E

( etSn

)

E

( et(X^1 +X^2 +...+Xn)

) = E

( etX^1 etX^2 · · · etXn

)

E

( etX^1

) E

( etX^2

) · · · E

( etXn

) = ψX 1 (t) · ψX 2 (t) · · · ψXn (t)

Xi I.I.D., ψSn (s) = (ψX (t))n^.

8.2.3 Moment Gen. Fnctn: Examples

  • X ∈ N (μ, σ^2 ) ψX (t) = eμt+^

(^12) σ (^2) t 2

  • Y ∈ Exp (a) ψY (s) =

1 − at

, at < 1.

9.1 Four product rule

(X 1 , X 2 , X 3 , X 4 )T^ ∈ N (0, C).Then

E [X 1 X 2 X 3 X 4 ] = E [X 1 X 2 ]·E [X 3 X 4 ]+E [X 1 X 3 ]·E [X 2 X 4 ]+E [X 1 X 4 ]·E [X 2 X 3 ]

9.2 Conditional distributions for bivariate normal ran-

dom variables

(X, Y )T^ ∈ N

( μ, C

)

. The conditional distribution for Y given X = x is gaussian (normal)

N

( μY + ρ ·

σY σX

(x − μX ), σ^2 Y (1 − ρ^2 )

) ,

where μY = E(Y ), μX = E(X), σY =

√ Var(Y ), σX =

√ Var(Y ) and

ρ =

Cov(X, Y ) √ Var(X) · Var(Y )

Z 1 och Z 2 are independent N (0, 1).

μ =

( μ 1 μ 2

) , B =

( σ 1 0 ρσ 2 σ 2

1 − ρ^2

) .

If (^) ( X Y

) = μ + B

( Z 1 Z 2

) ,

then (^) ( X Y

) ∈ N

( μ, C

)

with

C =

( σ^21 ρσ 1 σ 2 ρσ 1 σ 2 σ^22

) .

10 Stochastic Processes

A stochastic process X = {X(t) | t ∈ T }. The mean function μX(t) of the process is μX(t) def = E(X(t))

and the autocorrelation function is

RX(t, s) def = E (X(t) · X(s)).

The autocovariance function is

CovX(t, s) def = E ((X(t) − μ(t)) · (X(s) − μ(s)))

and we have CovX(t, s)(t, s) = RX(t, s) − μX(t)μX(s). A stochastic process X = {X(t) | t ∈ T =] − ∞, ∞[} is called (weakly) stationary if

  1. The mean function μX(t) is a constant function of t, μX(t) = μ.
  2. The autocorrelation function RX(t, s) is a function of (t − s), so that

RX(t, s) = RX(h) = RX(−h), h = (t − s).

10.1 Mean Square Integrals

∑^ n i=

X(ti)(ti − ti− 1 ) →^2

∫ (^) b

a

X(t)dt, (10.4)

where a = t 0 < t 1 <... < tn− 1 < tn = b and maxi |ti − ti− 1 | → 0 as n → ∞. The mean square integral

∫ (^) b a X(t)dt^ of^ {X(t)|t^ ∈^ T^ }^ exists over [a, b]^ ⊆^ T if and only if the double integral

∫ (^) b

a

∫ (^) b

a

E [X(t)X(u)] dtdu

exists as an integral in Riemann’s sense. We have also

E

[∫ (^) b

a

X(t)dt

]

∫ (^) b

a

μX(t)dt (10.5)

E

[∫ (^) b

a

f (t)dW (t)

] = 0. (10.8)

  • Var

[∫ (^) b

a

f (t)dW (t)

]

∫ (^) b

a

f 2 (t)dt (10.9)

  • (^) ∫ b a

f (t)dW (t) ∈ N

( 0 ,

∫ (^) b a

f 2 (t)dt

)

. (10.10)

  • If

∫ (^) b a f^2 (t)dt <^ ∞^ and^

∫ (^) b a g^2 (t)dt <^ ∞,

E

[∫ (^) b

a

f (t)dW (t)

∫ (^) b

a

g(t)dW (t)

]

∫ (^) b

a

f (t)g(t)dt. (10.11)

  • Y (t) =

∫ (^) t 0

h(s)dW (s).

E [Y (t) · Y (s)] =

∫ (^) min(t,s)

0

h^2 (u)du. (10.12)

11 Poisson process

N (t) = number of occurrences of some event in in (0, t].

Definition 11.1 {N (t) | t ≥ 0 } is a Poisson process with parameter λ > 0, if

  1. N (0) = 0.

  2. The increments N (tk) − N (tk− 1 ) are independent stochastic variables 1 ≤ k ≤ n, 0 ≤ t 0 ≤ t 1 ≤ t 2 ≤... ≤ tn− 1 ≤ tn and all n.

  3. N (t) − N (s) ∈ Po(λ(t − s)), 0 ≤ s < t.

Tk = the time of occurrence of the kth event. T 0 = 0. We have

{Tk ≤ t} = {N (t) ≥ k} τk = Tk − Tk− 1 ,

is the kth interoccurrence time. τ 1 , τ 2... , τk... are independent and identi- cally distributed, τi ∈ Exp

( (^1) λ

) .

12 Convergence

12.1 Definitions

We say that Xn →P X, as n → ∞

if for all  > 0 P (| Xn − X |> ) → 0 , as n → ∞

We say that Xn →q X

if E |Xn − X|^2 → 0 , as n → ∞

We say that Xn →d X, as n → ∞

if FXn (x) → FX (x), as n → ∞

for all x, where FX (x) is continuous.

12.2 Relations between convergences

Xn →q X ⇒ Xn →P X Xn →P X ⇒ Xn →d X

as n → ∞. If c is a constant,

Xn →P c ⇔ Xn →d c

as n → ∞. If ϕXn (t) are the characteristic functions of Xn, then

Xn →d X ⇒ ϕXn (t) → ϕX (t)

If ϕX (t) is a characteristic function continuous at t = 0, then

ϕXn (t) → ϕX (t) ⇒ Xn →d X