Generalized Linear Models (GLMs)
Statistical modeling and analysis of neural data NEU 560, Spring 2018 Lecture 9 Jonathan Pillow
1
Generalized Linear Models (GLMs) Jonathan Pillow 1 Example 3: - - PowerPoint PPT Presentation
Statistical modeling and analysis of neural data NEU 560, Spring 2018 Lecture 9 Generalized Linear Models (GLMs) Jonathan Pillow 1 Example 3: unknown neuron 100 75 (spike count) 50 25 0 -25 0 25 (contrast) Be the computational
1
25 25 50 75 100 (contrast) (spike count)
2
25 25 50 75 100 (contrast) (spike count)
3
Answer: stimulus likelihood function - useful for ML stimulus decoding!
spikes stimulus parameters
Answer: encoding distribution - probability distribution over spike counts Answer: likelihood function - the probability of the data given model params
4
20 40 20 40 60
(contrast) (spike count)
5
20 40 20 40 60
(contrast)
20 40 60
(spike count)
6
(Nelder 1972)
7
Senn, (2003). Statistical Science
8
9
“Dimensionality Reduction”
(exponential family)
10
(exponential family)
11
(exponential family)
12
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
13
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
walk through the data
14
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
walk through the data
15
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
walk through the data
16
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
walk through the data
17
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
walk through the data
18
1 1 0 0 0 0 1 1 01 0 0 00 0 0 0
walk through the data
19
…
20
stimulus covariance spike-triggered avg (STA)
…
21
1 √ 2πσ2 e− (yt−~
xt·~ k)2 22
T
t=1
(independence across time bins)
2 exp(− PT
t=1 (yt−~ xt·~ k)2 22
Guassian noise with variance σ2
t=1 (yt−~ xt·~ k)2 22
log-likelihood
22
…
iid Gaussian noise vector
1 |2πσ2I|
T 2 exp
1 2σ2 (Y − X~
Take log, differentiate and set to zero.
23
…
probability of spike at bin t
(coin flipping model, y = 0 or 1)
nonlinearity
L = PT
t=1
⇣ yt log f(~ xt · ~ k) + (1 − yt) log(1 − f(~ xt · ~ k)) ⌘
24
logistic function
…
probability of spike at bin t
(coin flipping model, y = 0 or 1)
nonlinearity
25
firing rate
(integer y≥0 ) nonlinearity
time bin size
<latexit sha1_base64="jbjLJotpTeHkZkaMEURNb7zEwW8=">ACaXicbVBNb9NAEN2YAm34SsF0ctChJRKEDlcgANSBRw4Va1EaKU4tcbrcbvK7traHYdExv+KPwPXcuyP6Dr1gaMtKOn97M7r6kUNJRGP7uBHc27t67v7nVfDw0eMnve2d7y4vrcCxyFVuTxJwqKTBMUlSeFJYBJ0oPE5mnxv9eI7Wydx8o2WBUw1nRmZSAHkq7h0Ug2VMP6P5IqbX0Xy2xz/yKLMgqkH0BRUBj5TflkJMe6eVt9Z101/UHE+rN+uWOu71w2G4Kn4bjFrQZ20dxtudjSjNRanRkFDg3GQUFjStwJIUCutuVDosQMzgDCceGtDoptXq4zV/5ZmUZ7n1xBfsf9OVKCdW+rEOzXQuVvXGvJ/2qSk7P20kqYoCY24vigrFaecNynyVFoUpJYegLDSv5WLc/Cxkc+6240M/hC51mDSyoda+4aCz+o1YdEKiya30XpKt8H47fDMDwK+/uf2gA32S57yQZsxN6xfaVHbIxE+wX+8Mu2N/OZbATPAueX1uDTjvzlN2oH8FWym8YQ=</latexit>26
27