a, Hierarchical clustering of the entire dataset (time-event for eight parameters during three baseline and four punished sessions). Each column corresponds to a mouse. Heat maps for delays between the active lever presses, the number of laser stimulation events, the time of the last laser stimulation, the time remaining in a trial and the number of inactive lever press in one mouse are plotted. Two clusters are found in the resulting dendrogram (green, renouncer; pink, perseverer). Vertical dashed lines separate renouncing from persevering mice. Heat map (greyscale) represents the perseverance (measured as the oDASS rate during punished sessions 3 and 4, normalized to the baseline sessions) of each mouse as a function of the clustering. b, Before clustering, we applied a nonlinear dimension reduction to project the high-dimensional dataset into a two-dimensional representation (left). Mapping the perseverance onto this map (right) shows that this variable can be used to categorize the mice as renouncing and persevering mice.