Rest periods decreased the likelihood of choosing to gamble in the first 4 trials after rest ended. Top: mean ± standard error mood ratings across participants in their first block of (positive closed-loop) gambling preceded by different rest period durations. Middle: fraction of participants in each group that chose to gamble on each trial of this first gambling block (mean ± 95 percent confidence intervals derived from a binomial distribution). Bottom: bars show mean across participants of the fraction of the first 4 trials of this first gambling block that participants chose to gamble. Histogram shows the distribution of choices (i.e., to gamble on 0, 1, 2, 3, or 4 trials) within each group. Stars indicate that a pair of groups was significantly different (2-sided Wilcoxon rank-sum test, no-rest vs. short-rest: W469 = 4.85, p < 0.001; no-rest vs long-rest: W344 = 4.79, p < 0.001; both < 0.05/3 controlling for multiple comparisons). Sample sizes are: No rest group: n = 93 participants, 350–450 s rest group: n = 378 participants, 500–700 s rest group: n = 253 participants).