For all experiments, a courtship index (CI) was calculated as the percent of time spent performing courtship behaviors in three different time periods: the ten minutes at the beginning of training (CIbegin), the ten minutes at the end of training (CIend), and the ten minute test period (CItest). In this example, the CIs for each of these three periods are plotted for wild-type DL flies tested at 25C. To generate the learning index (LI), we subtract CIbegin−CIend. A significantly positive LI indicates that learning occurred. To generate the memory index (MI), we subtract CIend−CItest. An MI close to zero indicates that memory occurred, and a significantly negative MI indicates a lack of memory. In these flies, significant learning occurred, but there was not a significant change between the CIend and the CItest, indicating memory also occurred. Significance is determined using a one-sided Wilcoxon signed rank test; learning significance is a comparison between CIbegin and CIend, and memory significance is a comparison between CIend and CItest. ****, p < .0001. Error bars are SEM, n = 48.