85  A GLM connecting neuronal activity and movement

Open in Google Colab | Download notebook

This problem is inspired by and uses data from Chapter 9 of Kramer and Eden’s Case Studies in Neural Data Analysis.

Data set download


Consider an experiment where a rat moves back and forth along a linear maze. A spike train is recorded from a neuron in the hippocampus, as well as the rat’s position along the maze. Your task is to develop a GLM that connects the position of the rat in the maze to the spiking rate. Perform inference to get posterior distributions and/or MAP estimates of the parameters.