Docsity

Statistical Methods Formula Cheat Sheet , Cheat Sheet of Mathematical Statistics

Toggle sidebar
bg1
Statistical methods, Formula sheet for final exam
Combinatorics
•Number of ways to choose kout of nobjects:
n
k!=n(n−1) ···(n−k+ 1)
k!=n!
(n−k)!k!
Basic probability
Always true:
•P(Ac) = 1 −P(A)
•P(A∪B) = P(A) + P(B)−P(A∩B)
•P(A∩B) = P(A)P(B|A)
•P(Ac) = 1 −P(A)
•A, B mutually exclusive: P(A∪B) = P(A) + P(B)
•A, B independent: P(A∩B) = P(A)P(B)
•Conditional probability of Agiven B:
P(A|B) = P(A∩B)
P(B)
LTP and Bayes’ theorem
P(A) = P(A|B)P(B) + P(A|Bc)P(Bc)
P(B|A) = P(A|B)P(B)
P(A|B)P(B) + P(A|Bc)P(Bc)
pf3
pf4
pf5

Partial preview of the text

Download Statistical Methods Formula Cheat Sheet and more Cheat Sheet Mathematical Statistics in PDF only on Docsity!

Statistical methods, Formula sheet for final exam

Combinatorics

  • Number of ways to choose k out of n objects:

(

n

k

)

n(n − 1) · · · (n − k + 1)

k!

n!

(n − k)!k!

Basic probability

Always true:

• P (A

c

) = 1 − P (A)

• P (A ∪ B) = P (A) + P (B) − P (A ∩ B)

• P (A ∩ B) = P (A)P (B|A)

• P (A

c ) = 1 − P (A)

  • A, B mutually exclusive: P (A ∪ B) = P (A) + P (B)
  • A, B independent: P (A ∩ B) = P (A)P (B)
  • Conditional probability of A given B:

P (A|B) =

P (A ∩ B)

P (B)

LTP and Bayes’ theorem

P (A) = P (A|B)P (B) + P (A|B

c

)P (B

c

)

P (B|A) =

P (A|B)P (B)

P (A|B)P (B) + P (A|B

c )P (B

c )

Discrete random variables

  • Pmf: p(x) = P (X = x)

Special distributions:

  • X ∼ bin(n, p): p(k) =

(

n

k

)

p

k

(1 − p)

n−k

, k = 0, 1 , ..., n (# of successes)

E[X] = np

  • X ∼ geom(p): p(k) = (1 − p)

k− 1

p, k = 1, 2 , ... (wait for first success)

E[X] =

p

Continuous random variables

  • Pdf: f (x) = F

′

(x), x ∈ R

  • Cdf: F (x) =

∫ x

−∞

f (t)dt, x ∈ R

Special distributions:

  • X ∼ unif [a, b]: f (x) =

b − a

, a ≤ x ≤ b (choose “randomly”)

E[X] =

a + b

  • X ∼ exp(λ): f (x) = λe

−λx

, x ≥ 0 (memoryless)

E[X] =

λ

  • X ∼ N (0, 1): ϕ(x) =

2 π

e

−x

2 / 2

, x ∈ R

  • X ∼ N (μ, σ

2 ) : Z =

X − μ

σ

∼ N (0, 1)

  • We want Var[

̂ θ] to be as small as possible

  • Sample mean

X, unbiased for mean μ, Var[

X] = σ

2

/n

  • Sample variance s

2

n − 1

(

n ∑

k=

X

2

k

− n

X

2

)

, unbiased for variance σ

2

  • Standard error:

√

Var[

̂ θ]

Confidence intervals

  • For μ in N (μ, σ

2 ) where σ

2 is known:

μ =

X ± z

σ

n

(q)

Use standard normal distribution, Φ(z) = (1 + q)/2.

  • For μ in N (μ, σ

2

) where σ

2

is unknown:

μ =

X ± t

s

n

(q)

Use t distribution, α = 1 − (1 + q)/2, ν = n − 1.

  • For unknown proportion p:

p = p̂ ± z

√̂

p(1 − p̂)

n

(q)

  • For two unknown proportions p 1

and p 2

p 1 − p 2 = p̂ 1 − p̂ 2 ± z

√̂

p 1 (1 − p̂ 1 )

n 1

̂ p 2 (1 − p̂ 2 )

n 2

(q)

In both cases, z is such that Φ(z) = (1 + q)/2.

Estimation methods

  1. The maximum likliehood estimator (MLE)

̂ θ maximizes the likelihood

function:

L(θ) =

n ∏

k=

f θ

(X

k

To find maximum, (i) take logarithm, (ii) differentiate w.r.t. θ and set = 0.

  1. The rth moment and rth sample moment are:

μ r

= E[X

r

] and μ̂ r

n

X

r

The method of moments estimator (MOME) expresses the parameter as a

function of moments, θ = g(μ 1 , ..., μr) and estimates it with the same funtion

of the sample moments,

̂ θ = g(μ̂ 1

, ..., μ̂ r

). Start with the first moment, if it

is not enough, go on to the second, and so on.

Linear regression

  • Model: Y = a + bx + ε, ε ∼ N (0, σ

2

)

  • Observations: (x 1 , Y 1 ), ..., (xn, Yn) where Yk ∼ N (a + bxk, σ

2

)

  • Notation:

S

x

n ∑

k=

x k

, S

Y

n ∑

k=

Y

k

S

xx

n ∑

k=

x

2

k

, S

xY

n ∑

k=

x k

Y

k

  • Estimators:

̂ b =

nS xY

− S

x

S

Y

nS xx

− S

2

x

â =

Y −

̂ bx¯

Estimated regression line: y = ̂a +

̂ bx