(A) General linear model (GLM) of behavior-related responses. Example of GLM fit for one neuron of calcium responses against touch, licking, and whisking as behavior events. Single-trial calcium responses are plotted along with model fit as well as touch periods with onset indicated, individual licks with onset indicated, whisking envelope amplitude, and decision. (B) GLM coefficients (B) for example neuron shown in [A] for regressors for touch onset, whisking envelope amplitude, and licking onset across different delays. Delays are aligned to the onset of each behavioral event. (C) Cumulative probability distribution (cpd) of overall GLM fit across cell types. (D) GLM coefficients for different cell types for regressors for touch onset (left), whisking envelope amplitude (middle), and licking onset (right) across different delays. Grey line indicates average GLM coefficient for neurons with non-significant coefficients at that time point. (E) Fraction of active neurons able to discriminate Hit vs. CR, FA vs. CR, and P280 vs. P1200 trials above chance determined by single-cell ROC analysis. (shaded area: s.e.m. error bars: s.d. from bootstrap test; n = 44 S1S2, 161 S1ND, 59 S2S1, 198 S2ND neurons).