Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marginalizing across spike histories #13

Open
agbondy opened this issue Sep 4, 2019 · 2 comments
Open

marginalizing across spike histories #13

agbondy opened this issue Sep 4, 2019 · 2 comments

Comments

@agbondy
Copy link

agbondy commented Sep 4, 2019

--- This is a question, not an issue ---

For evaluating the goodness-of-fit of the model, it is useful to generate predictions that MARGINALIZE over all possible spike histories. That is, having fit the model to an observed spike train, one wants to evaluate how well it can explain the data without using the observed spike train as the spike history of the model. Otherwise, things become a bit circular. Anyone written code for this? Thanks!

@jpillow
Copy link
Member

jpillow commented Sep 4, 2019

The simplest way is to just simulate repeated responses to the same stimulus, and calculate the mean (i.e. PSTH). That represents a prediction of spike rate conditioned on stimulus (with spike history marginalized out); this is what we did in eg Pillow et al 2008.

@agbondy
Copy link
Author

agbondy commented Sep 4, 2019

Thanks for the quick reply, Jonathan! Yes, this is basically what I was imagining doing but hoping not to have to write the code myself ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants