A) The organization of trials for the decoding analysis is shown. To assess neuronal sensitivity to changes in stimulus-reward contingency, firing rates on the last 30 trials before the switch were compared to the first 30 trials after the switch (SW− vs. SW+). The first trial after the switch was defined as the first presentation of SW+ following an S−. To control for non-specific effects over the experimental sessions, we compared neuronal activity from the first 30 SW+ trials to activity from the next 30 SW+ trials. B) The fractions of neurons that significantly discriminated between trials types are shown by area. The middle columns demonstrate that significantly more medial neurons were sensitive to a switch in the stimulus-reward contingency than ventral neurons (40/154 medial, dark gray bar, vs. 15/107 ventral, light gray bar, Proportions test: Chi square = 4.73, p<0.03). For the medial, but not ventral, neurons this was significantly greater than changes observed in the control period (40 vs 13 medial neurons; Chi square: 15.4057, df=1, p<10−3; 15 vs 8 ventral neurons; Chi square: 1.7537, p>0.15). Ventral neurons could, however, significantly decode stimulus-reward contingencies for the tone stimuli, which had fixed reward values throughout training. Roughly equal proportions of neurons in the medial and ventral striatum decoded these stimuli (ventral: S+ vs. S−: 25 of 107, >23.4%, compared to SW− vs. SW+ as above; Chi square: 3.87, df=1, p < 0.05). These results, together, suggest that changes in action selection to a stimulus with flexible reward value are represented by neurons in the medial, but not the ventral, striatum.