nSTAT Python Paper Examples

This page mirrors the MATLAB paper-example index for the standalone Python port.

Canonical source files:

  • examples/paper/*.py

  • nstat/paper_examples_full.py

Run Everything

python tools/paper_examples/build_gallery.py

Outputs:

  • Figure metadata: docs/figures/manifest.json

  • Gallery page: docs/paper_examples.md

  • Figures: docs/figures/example01/docs/figures/example05/

Example Index

ID

Thumbnail

Standalone source

Question

Run command

Figure gallery

example01

Example 01

example01_mepsc_poisson.py

Do mEPSCs follow constant vs piecewise Poisson firing under Mg2+ washout?

python examples/paper/example01_mepsc_poisson.py

gallery page

example02

Example 02

example02_whisker_stimulus_thalamus.py

How do explicit whisker stimulus and spike history improve thalamic GLM fits?

python examples/paper/example02_whisker_stimulus_thalamus.py

gallery page

example03

Example 03

example03_psth_and_ssglm.py

How do PSTH and SSGLM capture within-trial and across-trial dynamics?

python examples/paper/example03_psth_and_ssglm.py

gallery page

example04

Example 04

example04_place_cells_continuous_stimulus.py

Which receptive-field basis (Gaussian vs Zernike) better fits place cells?

python examples/paper/example04_place_cells_continuous_stimulus.py

gallery page

example05

Example 05

example05_decoding_ppaf_pphf.py

How well do adaptive/hybrid point-process filters decode stimulus and reach state?

python examples/paper/example05_decoding_ppaf_pphf.py

gallery page

example06

Example 06

example06_place_fields_glm_basis.py

How does a tensor-product B-spline Poisson GLM recover a known 2-D place field, and how do its rate and second-order diagnostics compare to an LGCP?

python examples/paper/example06_place_fields_glm_basis.py

gallery page

example07

Example 07

example07_spatiotemporal_hawkes_waves.py

Can the Bartlett spectrum and wave-peak detector recover the speed and direction of a known planar wave embedded in a multivariate Hawkes triggering matrix?

python examples/paper/example07_spatiotemporal_hawkes_waves.py

gallery page

example08

Example 08

example08_real_place_cells.py

Does a B-spline Poisson GLM trained on real hippocampal place cells produce a held-out spatial pair-correlation inside the inhomogeneous global-rank envelope, and a population rescaled-time ACF inside the Bartlett band?

python examples/paper/example08_real_place_cells.py

gallery page