basics of statistical estimation

23
Basics of Statistical Estimation

Upload: natan

Post on 25-Feb-2016

63 views

Category:

Documents


1 download

DESCRIPTION

Basics of Statistical Estimation. tails. heads. Learning Probabilities: Classical Approach. Simplest case: Flipping a thumbtack. True probability q is unknown. Given iid data, estimate q using an estimator with good properties: low bias, low variance, consistent - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Basics of Statistical Estimation

Basics of Statistical Estimation

Page 2: Basics of Statistical Estimation

Learning Probabilities:Classical Approach

Simplest case: Flipping a thumbtack

tailsheads

True probability is unknown

Given iid data, estimate using an estimator with good properties: low bias, low variance, consistent (e.g., maximum likelihood estimate)

Page 3: Basics of Statistical Estimation

Maximum Likelihood Principle

Choose the parameters that maximizethe probability of the observed data

Page 4: Basics of Statistical Estimation

Maximum Likelihood Estimation

)|tails( p

)|heads( p

)1(

thttthhhthp ## )1()|...(

(Number of heads is binomial distribution)

Page 5: Basics of Statistical Estimation

Computing the ML Estimate

• Use log-likelihood• Differentiate with respect to parameter(s)• Equate to zero and solve• Solution:

thh

###

Page 6: Basics of Statistical Estimation

Sufficient Statistics

(#h,#t) are sufficient statistics

thttthhhthp ## )1()|...(

Page 7: Basics of Statistical Estimation

Bayesian Estimation

tailsheads

True probability is unknown

Bayesian probability density for

p()

0 1

Page 8: Basics of Statistical Estimation

Use of Bayes’ Theorem

dpp

ppp)|heads()()|heads()()heads|(

prior likelihoodposterior

)|heads()( pp

Page 9: Basics of Statistical Estimation

Example: Application to Observation of Single “Heads"

p(|heads)

0 1

p()

0 1

p(heads|)=

0 1

prior likelihood posterior

Page 10: Basics of Statistical Estimation

Probability of Heads on Next Toss

)()|(

)|()|()| is th toss1(

)|(

1

d

d

dd

p

N

Edp

dphXphnp

Page 11: Basics of Statistical Estimation

MAP Estimation• Approximation:

– Instead of averaging over all parameter values– Consider only the most probable value

(i.e., value with highest posterior probability)• Usually a very good approximation,

and much simpler• MAP value ≠ Expected value• MAP → ML for infinite data

(as long as prior ≠ 0 everywhere)

Page 12: Basics of Statistical Estimation

Prior Distributions for

• Direct assessment• Parametric distributions

–Conjugate distributions(for convenience)

–Mixtures of conjugate distributions

Page 13: Basics of Statistical Estimation

Conjugate Family of Distributions

0,1)1(1 ),Beta()( thth

thp

1#)1(1# tails),heads |( th ththp

Beta distribution:

Resulting posterior distribution:

Page 14: Basics of Statistical Estimation

Estimates Compared

• Prior prediction:

• Posterior prediction:

• MAP estimate:

• ML estimate:

th

h

t+hhE

# #

# )(

th

hE

+

)(

1 # +1#1#

th

h

thh

thh

# +##

Page 15: Basics of Statistical Estimation

Intuition

• The hyperparameters h and t can be

thought of as imaginary counts from our prior experience, starting from "pure ignorance"

• Equivalent sample size = h + t

• The larger the equivalent sample size, the more confident we are about the true probability

Page 16: Basics of Statistical Estimation

Beta Distributions

Beta(3, 2 )Beta(1, 1 ) Beta(19, 39 )Beta(0.5, 0.5 )

Page 17: Basics of Statistical Estimation

Assessment of aBeta Distribution

Method 1: Equivalent sample- assess h and t

- assess h+t and h/(h+t)

Method 2: Imagined future samples

4,15.0)heads 3|heads( and 2.0)heads( thpp

check: .2 = 11+ 4

0 0 5 1 31 3 4

, .

Page 18: Basics of Statistical Estimation

Generalization to m Outcomes(Multinomial Distribution)

1 ),,Dirichlet()(1

11

ii

m

imm,θ,θp

m

i

Nim

iiN,Np1

11 ),|(

Dirichlet distribution:

m

ii

iiE

1

)(

Properties:

011

i

m

i

Page 19: Basics of Statistical Estimation

Other DistributionsLikelihoods from the exponential family• Binomial• Multinomial• Poisson• Gamma• Normal

Page 20: Basics of Statistical Estimation
Page 21: Basics of Statistical Estimation
Page 22: Basics of Statistical Estimation
Page 23: Basics of Statistical Estimation