(hopefully no major mistakes in this one; get PDF here)
The Poisson GLM for spiking data
Generalized Linear Models (GLMs) are similar to linear regression, but account for nonlinearities and non-uniform noise in the observations. In neuroscience, it is common to predict a sequence of spikes
These models are fit by minimizing the negative log-likelihood of the observations, given the vector of regression weights
Such models are usually optimized via gradient descent, or iterated re-weighted least squares. The gradient
This is convex, and the optimum occurs at an inflection point where the gradient is zero, i.e.:
For simplicity, assume that
Linear models are often fine
What happens if we expand our likelihood at first order, and solve for a zero of the gradient? We start by expanding around the point
Substituting this approximation in to the identity for the optimal coefficients:
If we have chosen
Which is to say: to a first approximation, the coefficients
Intuitively, this means if you're just trying to demonstrate some basic correlation between a variable and neuronal spiking, linear methods like the spike-triggered-average are fine. Moving to a GLM might give you more accuracy, since it has a better model of the observation process, but it often doesn't tell you much more, qualitatively.
For Gaussian covariates, GLMs capture how noise and nonlinearity interact to influence firing rate
Let's see if we can get further intuition if
If
where
This integral can be solved by completing the square:
This is a Gaussian integral. It evaluates to:
At the optimum, we therefore have the condition that the optimal decoding weights
Solving similarly for
This further supports the idea that the spike-triggered average is an fast, adequate approach to statistics on spike trains. In some cases, it may be unnecessary to train a GLM.
Of course, Poisson GLMs can be fit almost as quickly as linear regressions or spike-triggered averages, using iteratively re-weighted least squares. They can also gracefully and automatically handle cases where the covariates
No comments:
Post a Comment