74  An Inverse Gaussian model for spiking: Prior predictive checks

Open in Google Colab | Download notebook


In Chapter 25, we considered a simple experiment wherein we measure the interspike intervals (ISIs) of a retinal ganglion cell exposed to constant light. Your task in this problem is to develop a Bayesian model where the ISIs are all independent and Inverse Gaussian distributed. You should perform prior predictive checks to help you hone your priors. It will help you to read the section on the Inverse Gaussian distribution in the Distribution Explorer to see how to sample out of the distribution with Numpy and with Stan. When you do your prior predictive checks, assume you observe 200 spikes.