Maximum Likelihood Jonathan Pillow Mathematical Tools for - - PowerPoint PPT Presentation
Maximum Likelihood Jonathan Pillow Mathematical Tools for - - PowerPoint PPT Presentation
Maximum Likelihood Jonathan Pillow Mathematical Tools for Neuroscience (NEU 314) Spring, 2016 lecture 16 Estimation model measured dataset parameter (sample) An e stimator is a function often we will write or just
Estimation
parameter measured dataset
(“sample”)
An estimator is a function
model
- often we will write or just
Properties of an estimator
bias:
- “unbiased” if bias=0
variance:
- “consistent” if bias and variance both go
to zero asymptotically “expected” value (average over draws of m)
mean squared error (MSE)
Example 1: linear Poisson neuron
spike count spike rate encoding model: stimulus parameter
20 40 20 40 60
(contrast) (spike count)
20 40 60
conditional distribution
p(y|x)
20 40 20 40 60
(contrast) (spike count)
20 40 60
conditional distribution
p(y|x)
20 40 20 40 60
(contrast) (spike count)
20 40 60
conditional distribution
p(y|x)
20 40 20 40 60
(contrast) (spike count)
Maximum Likelihood Estimation:
- given observed data , find that maximizes
p(y|x)
20 40 20 40 60
(contrast) (spike count)
Maximum Likelihood Estimation:
- given observed data , find that maximizes
p(y|x)
20 40 20 40 60
(contrast) (spike count)
Maximum Likelihood Estimation:
- given observed data , find that maximizes
p(y|x)
likelihood
Likelihood function: as a function of
Because data are independent:
1 2
1 2
log-likelihood log
Likelihood function: as a function of
Because data are independent:
1 2
likelihood
- Closed-form solution (exists for “exponential family” models)
1 2
log-likelihood
Properties of the MLE (maximum likelihood estimator)
- consistent
(converges to true in limit of infinite data)
- efficient
(converges as quickly as possible, i.e., achieves minimum possible asymptotic error)
Example 2: linear Gaussian neuron
spike count spike rate encoding model: stimulus parameter
20 40 20 40 60
(contrast) (spike count)
20 40 60
All slices have same width encoding distribution
Log-Likelihood Differentiate and set to zero: Maximum-Likelihood Estimator:
(“Least squares regression” solution) (Recall that for Poisson, )
Example 3: unknown neuron
- 25
25 25 50 75 100 (contrast) (spike count)
What model would you use to fit this neuron?
Example 3: unknown neuron
More general setup:
- 25
25 25 50 75 100 (contrast) (spike count)