Quantitative Neurobiology

Notes, assignments, and code for NEUROBIO 735 (Spring 2018).

Class details:

1/10 – 2/8:
Wednesday, Thursday
3:00 – 4:30
DIBS conference room

Exercises

Quizzes

GitHub

Debugging Practicum

Once again, we’ll be spending time debugging example code. In this case, we’re performing a statistical power analysis by simulating data from idealized experiments. You are given two functions:

  1. calc_power: calculates the power of a function that simulates an experiment and performs a statistical test on the resulting data.
  2. firing_rate_expt: an example of one such experimental function.

In this case, because no data are provided, it is up to you to choose parameters that will help you debug the functions.

Model

Our idealized experiment works as follows: assume

Then, given observed spike counts generated from Poisson distributions based on these rates and observation durations, we calculate (empirical) firing rates for the stimulus \(\hat{\lambda}_i\) and baseline \(\hat{\lambda}_{0i}\) for each trial and perform a paired t-test of the hypothesis that they are the same.

  1. Fix the code. Two strategies I recommend:
    1. Pick (multiple sets of) input values with obvious correct answers and use these for testing.
    2. Use the debugger to step into the code and plot the calculated quantities at each stage of the code. Do they make sense?

Solutions