This is a coding tutorial on estimating parameters in the linear-nonlinear-Poisson model using spike-triggered average or spike-triggered covariance.