Positive affect (PA) is often defined as the experience of pleasurable emotions such as happiness, excitement, and contentment (Lyubomirsky et al., 2005). A large body of evidence suggests that PA has unique benefits for health (Pressman et al., 2019), with higher trait PA being linked to lower inflammation (Steptoe et al., 2005), reduced risk of cardiovascular disease (Boehm & Kubzansky, 2012), and lower mortality risk (Chida & Steptoe, 2008). Sleep has been increasingly recognized as a key factor influencing both emotional functioning and health (Kahn et al., 2013; Zohar et al., 2005). Although several dozen studies have linked better sleep to higher PA (Ong et al., 2017), the role of variability and level of sleep in PA dynamics is unknown. Given that fluctuations in PA and sleep have separately been linked to worse health outcomes (Bei et al., 2016; Ong & Steptoe, 2020), and that technological advances and modern social/work demands have increased the prevalence of irregular sleep (Gradisar et al., 2013), it is important to further investigate the relationship between intraindividual variability in sleep and PA. The current study examined variability in sleep as a predictor of mean levels and variability in PA during the COVID-19 pandemic, a period with heightened stress (Zheng et al., 2021) and changes in sleep patterns (Rezaei & Grandner, 2021).

Variability in Sleep and PA

Intraindividual variability in affect represents the extent to which affect fluctuates within an individual over a specific period of time (most commonly quantified by intraindividual standard deviation [iSD]; Ong & Ram, 2017). Researchers have speculated that rapid fluctuations between extreme highs and lows in affect across a short period of time can be maladaptive for physical and mental health (Gruber et al., 2013). These fluctuations might reflect environmental demands that evoke rapid shifts in affect or possibly poorer affect regulation skills (Ong & Ram, 2017). Indeed, multiple cross-sectional studies have shown that people with greater variability in PA tend to have higher inflammation (Jones et al., 2020), less-favorable cortisol profiles (Human et al., 2015), worse immune response (Jenkins et al., 2018), more chronic health conditions (Chan et al., 2016), and more psychological distress (Gruber et al., 2013; Hardy & Segerstrom, 2017). Recently, data from the English Longitudinal Study of Aging showed that instability in PA (measured as the mean of squared successive differences) predicted all-cause mortality across 12 years, independent of mean levels of PA (Ong & Steptoe, 2020).

The existing literature on sleep–wake patterns has focused largely on average levels of sleep indices (such as quality, duration, and efficiency) rather than night-to-night fluctuations (Bei et al., 2016). However, given that individuals might experience short, fragmented sleep one night, and consequently sleep longer and more soundly the next night (Mezick et al., 2009), intraindividual variability in sleep may reveal information that is not captured by between-person comparisons of averages alone. Indeed, Mezick et al. (2009) found that individuals who experienced more stressors over the course of 9 days had greater variability in actigraphy-measured sleep duration and fragmentation, independent of person-means for sleep parameters. In a population-representative adult sample and in nurses, those with greater variability in self-reported or actigraphic sleep duration had higher risks for inflammation, pain, depression, and medical conditions (Slavish et al., 2019; Slavish et al., 2020, 2021). In their systematic review, Bei et al. (2016) observed that people who had greater variability in one or more sleep–wake parameters (e.g., duration, sleep onset latency, bedtime, or rise-time) also reported more stress, worse physical health, depressive symptoms, and overall poorer sleep.

The Relationship Between Sleep and PA

The current study focused on sleep as a predictor of PA mean and variability. Although the relationship between sleep and PA is often conceptualized as bidirectional, ambulatory studies that directly test both directions of association have found more consistent support for sleep as a predictor of next-day affect than vice versa (e.g., Bouwmans et al., 2017; Sin et al., 2017, 2020). Neurobiological research has found that rapid eye movement (REM) sleep may be particularly important for promoting appropriate emotional reactivity (Goldstein & Walker, 2014). Regarding emotion dynamics, our study draws on the conceptual framework proposed by Palmer and Alfano (2017), which utilizes the process model of emotion regulation (Gross, 1998) to understand the influence of sleep on emotion regulatory processes. According to this model, the neurobiological and behavioral effects of inadequate sleep can impact multiple aspects of emotion generation and regulation, including situation selection, situation modification, attentional deployment, appraisals, and response modulation (Palmer & Alfano, 2017). For instance, Palmer and Alfano (2017) explain that poor sleep can diminish motivation to seek out or fully engage in rewarding activities (e.g., social interactions) that would otherwise promote PA. In addition to shaping one’s environment, disrupted sleep can impair attentional strategies normally used to regulate one’s affective responses (Palmer & Alfano, 2017). For example, sleep deprivation reduces accuracy in recognizing positive but not negative facial expressions (Maccari et al., 2014). Thus, we expect that more variable sleep (reflecting poorer or disrupted sleep patterns) will be associated with lower mean PA and greater PA variability, perhaps reflecting diminished situational selection or emotion regulation.

Previous research has shown that sleep is related to next-day affect and vice versa. For example, in a sample of 1,025 community-based adults using the same dataset as the current study, we found that nights of better, longer, or more efficient sleep—compared to one’s usual level of sleep—predicted better affective well-being, fewer physical symptoms, and lower odds of stressor occurrence on the following day (Wen et al., in press). However, separate from within-person processes, a growing body of research has shown that between-person differences in affect variability are related to sleep dimensions. For instance, above and beyond trait-like levels of PA, Ong et al. (2013) found that individuals with greater PA fluctuations in response to daily events had lower actigraphic sleep efficiency, compared to those with less event-related affect. In addition, people with greater variability in momentary PA also had shorter self-reported sleep duration and greater morning tiredness (Leger et al., 2019). Of note, Leger et al. (2019) also observed associations between iSD in negative affect (NA) and average sleep quality and morning tiredness, but these associations were no longer significant after controlling for mean NA. Additional experimental evidence has demonstrated that a single night of sleep continuity disruption attenuates next-day state PA, inhibition of pain by PA, and attentional bias to positive stimuli (Finan et al., 2017). Considering ambulatory, experimental, and longitudinal research demonstrating the unique associations of sleep indices with PA (Ong et al., 2017), the current study focused on PA, while controlling for NA.

Current Study

The objective of the current study was to examine the relationship between variability in sleep and PA. Two samples, community-dwelling adults (N = 911) and university students (N = 322), reported their previous night’s sleep and current-day affect in twice-daily surveys for 1 week during the COVID-19 pandemic. We examined characteristics of sleep that have been most clearly associated with better mental and physical well-being, based on Buysse’s SATED (satisfaction, alertness, timing, efficiency, and duration) model of sleep health (Buysse, 2014). Specifically, we examined self-reported sleep quality as an indicator of satisfaction, bedtime and rise-time for timing, wake after sleep onset (WASO) for efficiency, and sleep duration; unfortunately, the current study did not capture alertness/sleepiness. Based on previous evidence that variable sleep patterns are associated with poorer psychological health outcomes (Bei et al., 2016), we hypothesized that greater intraindividual variability in sleep quality, bedtime, rise-time, WASO, and sleep duration would be associated with lower mean PA, as well as greater day-to-day variability in PA. A better understanding of the role of sleep variability in PA dynamics could help guide efforts to improve both sleep and well-being. This has important public health significance given the prevalence of societal-level changes in sleep patterns (Rezaei & Grandner, 2021) and declines in psychological well-being during the COVID-19 pandemic (Prati & Mancini, 2021; Robinson et al., 2021; Zheng et al., 2021).

Methods

Design and Participants

The data used were collected from the online “Coping with the COVID-19 Outbreak” study from March to August 2020. Data, code, and materials are available on the Open Science Framework website at https://osf.io/wq5xh/?view_only=062ae85dafcf4fafb16658128a1a5191. For seven consecutive days, participants completed morning surveys about their prior night’s sleep and evening surveys about current-day affect. Participants were emailed links to the Qualtrics surveys at 7 A.M. and 7 P.M. local time.

Two samples were recruited for this study, and they were examined separately in parallel sets of analyses. The first was a sample of community-dwelling adults aged 18–91 (N = 1,135) living in Canada and the USA. They were recruited without monetary incentives via advertisements in various news outlets, community organizations, and on social media. To ensure that each participant had enough days of observation to capture day-to-day variability in affect and sleep, we excluded participants (n = 182) who completed fewer than 4 of 7 survey days. On average, participants from the community sample completed 4.96 (SD = 1.49) of 7 study days. An additional 42 participants were excluded for missing key variables: age (n = 2), sex (n = 12), education (n = 1), race (n = 26), and sleep duration variability (unable to calculate due to participant reporting error; n = 1). The final analytic size for the community sample was 911 participants.

The second sample consisted of undergraduate students (N = 386) at a large Canadian university. They received psychology course credit for their participation in the study, which was available to students during March and April 2020. Of these, 55 participants were excluded for completing fewer than 4 of 7 survey days, and an additional 9 participants were excluded for missing key variables: sex (n = 1), race (n = 5), negative affect variability (n = 2), and sleep duration variability (n = 1). On average, student participants completed 5.04 (SD = 1.38) of 7 survey days. The final analytic size for the student sample was 322 participants. All participants in both samples provided written informed consent, and procedures were approved by the university research ethics review board.

Measures

Daily Affect

Daily affect was assessed in the evening survey with items adapted from the National Study of Daily Experiences (Sin et al., 2020). Based on previous research on the intraindividual factor structure of emotions in daily life (Charles et al., 2019), we used items that tapped into core components of PA that vary day-to-day, namely emotional experiences representing cheerfulness (happy), contentment (calm, satisfied), agency (confident, proud, enthusiastic, full of life), and interpersonally-oriented states (like you belong, close to others). Of note, the pattern of findings was similar with or without the two interpersonally-oriented PA items.

Every evening, participants reported the extent to which they had experienced 9 positively-valenced emotions for PA (enthusiastic, happy, satisfied, confident, calm, like you belong, close to others, proud, full of life) and 7 negatively-valenced emotions for NA that day (anxious, sad, angry, frustrated, disgusted, lonely, ashamed; Sin, Klaiber, Wen, et al., 2021; Sin, Rush, et al., 2021). Ratings were made using a visual analogue scale that ranged from 0 (not at all) to 100 (extremely). We calculated between-person reliability (RKF) and within-person reliability (RC) using methods described by Cranford et al. (2006). The affect scales had good reliability between-persons (RKF = 0.98 for NA, 0.99 for PA) and within-persons (RC = 0.74 for NA, 0.85 for PA).

Sleep Measures

Participants completed the Consensus Sleep Diary in the morning survey (Carney et al., 2012). In line with Buysse’s (2014) multidimensional model of sleep health, we examined five sleep measures: bedtime, rise-time, WASO reported in minutes, subjective sleep quality assessed on a visual analogue scale (0 = very poor, 100 = very good), and sleep duration calculated by subtracting the time spent awake in bed (WASO plus sleep onset latency) from the total time in bed (interval between bedtime and rise-time).

Data Analysis

Data analyses were conducted in R, version 4.0.2 (R Core Team, 2020). Following previous research (Eid & Diener, 1999), we calculated intraindividual variability as the iSD for each participant’s reports of affect and sleep across all their days of observation. Intraindividual or within-person standard deviation is the most widely used measure of variability for both PA (Houben et al., 2015; Ong & Ram, 2017) and sleep (Bei et al., 2016). Due to extreme outliers, WASO variability was winsorized to a maximum of 2 standard deviations above the mean. We analyzed the community and student samples separately. For each sample, we first conducted bivariate correlations among sleep and affect variables. Next, linear regression models were used to evaluate each sleep variability index (bedtime, rise-time, sleep duration, WASO, sleep quality) as predictors of mean PA and PA variability.

All models included the following covariates: age, sex (male vs. female), education level (less than 4-year college degree vs. 4-year college degree and above), self-reported chronic illness status (“I have a chronic medical condition such as heart disease, lung disease, or diabetes”), and proportion of weekend days (calculated as the number of surveys completed on the weekend divided by the total number of surveys completed). Based on differences in the racial composition of the two samples (see Table 1), we controlled for white versus non-white race in the community sample, whereas race was coded as white, Asian, or other race in the student sample. To determine whether the relationship between sleep variability and PA held above and beyond person-mean values, we controlled for person-means of the sleep measures. We also controlled for NA person-mean and variability to determine whether the relationship between sleep and PA was unique from NA. In the models predicting PA variability, we further controlled for mean PA, while in the models predicting mean PA, we further controlled for PA variability. All continuous predictors and covariates were centered at the grand mean.

Table 1 Descriptive characteristics

Results

Descriptives and Correlations

Participant characteristics for the community and student samples are shown in Table 1. Both samples were predominantly female. The community sample was largely white (89.0%), whereas over half of the student sample was Asian (52.8%). As expected, the student sample was younger and most did not yet hold a 4-year college degree. On average, the student sample had later and more variable bed- and rise-times, as well as longer and more variable sleep duration. The community sample had greater and more variable WASO. Both samples were similar in their average levels and variability for PA, NA, and sleep quality.

Bivariate between-person correlations among sleep and affect variables in the community sample are shown in Supplementary Table S1. People with higher mean PA tended to have less variability in PA, bedtime, rise-time, WASO, and sleep duration. Higher mean PA was also correlated with means levels of sleep: earlier bedtime and rise-time, lower WASO, longer duration, and higher quality. Greater PA variability was significantly correlated with greater variability in sleep duration and in sleep quality, as well as later mean bedtime. Most sleep variability measures were significantly correlated with one another, except there were no correlations between variability in rise-time and in sleep quality nor between variability in bedtime and in WASO.

Bivariate between-person correlations among sleep and affect variables in the student sample are shown in Supplementary Table S2. In students, mean PA was generally not correlated with the sleep measures, although higher mean PA was correlated with higher mean sleep quality. Furthermore, there was no correlation between mean PA and PA variability in the student sample. Greater PA variability was correlated with higher mean and larger variability in sleep quality, but no other sleep measures. Finally, similar to the community sample, most sleep variability measures were correlated with one another, except there was no correlation between rise-time variability and sleep quality variability, nor bedtime variability and WASO variability.

Multiple Regression Analyses

In all regression models in the community sample (Tables 2 and 3, Supplementary Tables S3, S4, and S5), there was an inverse relationship between mean PA and mean NA, and between mean PA and NA variability. Additionally, people with lower mean NA and greater NA variability both reported more variable PA. Similar relationships were observed in the student sample, except mean NA was no longer a significant predictor of mean PA after controlling for NA variability. In the community sample only, older age was associated with higher mean PA.

Table 2 Regression models for sleep quality variability as a predictor of mean PA and PA variability in the community and student sample
Table 3 Regression models for sleep duration variability as a predictor of mean PA and PA variability in the community and student sample

Sleep Quality Variability

Table 2 summarizes the results from models that examined the relationship between sleep quality and PA. In both samples, people who had higher mean sleep quality across the week also reported higher mean PA. People who had higher mean sleep quality also reported greater PA variability, but in the student sample only. In both samples, people with more variable sleep quality exhibited greater fluctuations in PA throughout the week (Fig. 1). Contrary to our expectations, more variable sleep quality was also associated with higher mean PA across both samples (Supplementary Figure S1).

Fig. 1
figure 1

Sleep quality variability and PA variability in the community and student samples. The positive linear association between sleep quality variability and PA variability was significant in both the community (left panel) and student (right panel) samples, even after controlling for mean PA, mean sleep quality, IIV and mean NA, and demographic factors. Sleep quality variability was centered on the grand mean (mean = 18.51, SD = 8.46 for the community sample; mean = 17.37, SD = 9.12 for the student sample)

Sleep Duration Variability

Table 3 and Supplementary Figure S2 summarize the results from models that examined the relationship between sleep duration and PA. In the community sample only, people with longer mean sleep duration tended to have higher mean PA, whereas more variable sleep duration was associated with lower mean PA. Additionally, participants from the community sample who had greater variability in sleep duration also exhibited more fluctuations in PA across the week. However, there were no significant relationships between sleep duration and PA in the student sample.

Variability in Sleep Timing and WASO

Supplementary Tables S3, S4, and S5 summarize the results from models that examined the associations of variability in bedtime, rise-time, and WASO with PA, respectively. After controlling for NA variability, there were no significant relationships between bedtime and PA in either sample (Table S3). In the community sample only, people who had earlier rise-times on average also had higher mean PA (Table S4). However, rise-time variability was not associated with mean PA nor PA variability in either sample. There were no significant relationships between WASO and PA in either sample (Table S5).

Discussion

This study examined the associations of intraindividual variability in sleep dimensions with mean PA and PA variability in two adult samples. We hypothesized that people with more variable night-to-night sleep would be at risk for lower and more variable daily PA across a week. Our hypothesis was partially supported, such that greater variability in sleep quality was associated with greater fluctuations in PA throughout the week in both samples. Additionally, individuals with more variable sleep duration also had more variable and lower PA in the community sample. Contrary to our expectations, in both samples, people with more variable sleep quality had higher levels of PA on average, and there were no significant associations between variability in sleep timing nor WASO with PA.

Sleep Variability, PA Mean, and PA Variability

Although several studies have shown that people with more variable PA tend to have shorter and less efficient sleep on average (e.g., Leger et al., 2019; Ong et al., 2013), existing research on sleep variability and mental health has predominantly focused on linkages with psychological distress (e.g., perceived stress, depressive symptoms; Bei et al., 2016; Veeramachaneni et al., 2019). Our study builds on and extends this literature on sleep variability by focusing on positive aspects of well-being, namely PA in daily life. People who have more sleep disturbances might subsequently have worse emotional functioning through REM sleep-related mechanisms, which help unlink emotion from prior affective experiences and recalibrate salience signalling in the brain (Goldstein & Walker, 2014). Based on the framework described by Palmer and Alfano (2017), patterns of inconsistent sleep may influence various stages of the emotion generation and regulation process. For example, individuals with more variable sleep quality may be more likely to select themselves into situations (via impaired decision-making and impulse control; Womack et al., 2013) that then result in greater fluctuations in PA, or perhaps have greater affective reactivity to emotion-eliciting events (Sin et al., 2020). It is also possible that inconsistent sleep across consecutive nights disrupts one’s circadian rhythm, which could then influence PA given previous research which indicates that daily variation in PA is partially regulated by endogenous mechanisms (Murray et al., 2002). However, we cannot rule out the possibility of a third variable (e.g., substance use or post-traumatic stress disorder, for which we did not have data) that could be linked to both sleep variability and PA dynamics.

Although there are several possible explanations as to why greater sleep quality variability was, unexpectedly, associated with higher mean PA, the exact mechanisms are unclear. On the one hand, it may be that variability in sleep quality reflects responsiveness to the environment, such that individuals with greater variability in sleep experience more social interactions or positive events, compared to individuals with less variable sleep quality. Indeed, the measure of PA used in this study includes items (“close to others” and “like you belong”) that reflect feelings of social connection and possibly interpersonal interactions that may have occurred that day. Another possibility is that people with greater variability in sleep quality have more responsibilities that could impair their sleep, yet promote PA. For instance, people with more daily stressors tend to have better psychological well-being because they are more likely to be educated, employed, engaged in volunteering, and have family responsibilities (Almeida, 2005). However, although we have conceptualized sleep variability as a driver of affective dynamics, it is also possible that people who are happier tend to experience more positive events and/or are more emotionally responsive to their environments, which may then result in irregular sleep patterns.

Community Sample Versus Student Sample

Although we did not have any hypotheses regarding differences between the community versus student populations, our findings were not altogether consistent between the two samples. The between-person association of sleep duration variability with lower mean PA, and of sleep duration variability with greater PA variability, was observed only in the community sample and not in the university student sample. To our knowledge, this is the first study examining sleep and PA in student as well as non-student samples, but the pattern we observed in the students (i.e., mean and variability in sleep quality, but not duration, were related to PA) was in line with previous literature on the sleep-PA relationship in university students. For example, Kalmbach et al. (2014) found that only higher sleep quality, but not total sleep time nor sleep onset latency, predicted higher next-day PA in women university students. Similarly, Pressman et al. (2017) found that trait PA was related to higher sleep quality and efficiency, but not duration, during the week of a major exam. This is particularly relevant given that our data were collected when students were preparing for final exams amid the transition to remote learning during the pandemic. A possible explanation for the less robust relationship between sleep duration and PA in our university student sample versus community sample is that external factors may be more important for students’ sleep duration. As Pressman et al. (2017) point out, students frequently sacrifice sleep for school, work, or social commitments. Furthermore, younger adults may be more resilient to poorer quality sleep and as such, sleep may not be as closely tied to affect in students. Indeed, only sleep quality was correlated with PA in students, in contrast to many sleep measures in the community sample.

Limitations and Future Directions

Limitations of the current study should be considered when interpreting its findings. First, we conceptualized variability in sleep as the driver of PA experiences, but we are unable to draw conclusions about directionality or causation due to the cross-sectional and correlational study design. Second, because data were collected entirely online, this study relied on self-reported sleep and affect. Studies examining the relationship between sleep and affect or stress using self-report (diary), inferred (actigraphy), and/or objective (electroencephalography) measures have sometimes found differential associations depending on the measure used (Slavish et al., 2020; McCrae et al., 2008; Messman et al., 2021). These different measures reflect partially distinct domains of sleep, which perhaps explains why subjective sleep quality, which captures one’s holistic appraisal of sleep and can only be measured via self-report, had the most consistent associations with PA in our study. However, other research has reported fairly consistent links between daytime stress and sleep using both self-reported and actigraphic sleep assessments (Yap et al., 2020). Thus, the use of subjective versus objective sleep measurement when studying affect is far from fully understood and future research should take a multimethod approach for sleep assessment when possible (Slavish et al., 2020). Third, this study was conducted during the COVID-19 pandemic, and the patterns of night-to-night sleep and daily affect may not generalize to periods of lower stress. However, this was a unique opportunity to examine sleep and PA during a time of heightened disruption in daily life. Because this was a period of high stress and uncertainty, it is possible that people who were coping relatively well were more likely to participate in a daily diary study. Therefore, this dataset may not have captured individuals with the most disrupted sleep and affect. Finally, the community sample was recruited online and was primarily white, female, and well-educated. These factors related to the context and the samples could limit the generalizability of findings.

Future work could extend the current findings by investigating outstanding questions about the nature of variability in sleep and PA. First, it is possible that more variable sleep is associated with affective lability in general (i.e., both PA and NA variability). Much remains unknown about whether people with greater night-to-night variability in sleep might be unable to sustain their PA in particular or perhaps swing between positive and negative emotions. Further work is also needed to better contextualize variability in sleep and PA within one’s environment and to determine when variability might reflect adaptive versus maladaptive responses to external events or when variability reflects intrinsic fluctuations that are not entirely due to external circumstances (e.g., Liu et al., 2018). For some individuals, fluctuations in sleep and affect may primarily indicate adaptive responsiveness to environmental demands, whereas variability may reflect oversensitivity to the environment or poorer self-regulation for others. Answering these questions may help identify individuals who are more emotionally vulnerable to poorer or shorter sleep and at greater risk for developing future health conditions (Sin et al., 2021; Vigoureux et al., 2020).

Conclusion

To our knowledge, this study was among the first to investigate the relationship between intraindividual variability in multiple indicators of sleep health (quality, duration, WASO, bedtime, and rise-time) with mean level and variability in PA. Based on parallel analyses in community-based adults and university students, our findings suggest that inconsistency in sleep patterns is linked to both better and worse psychological well-being. Specifically, people with more variable sleep quality had more variable and higher mean PA than those with less-variable sleep quality, whereas individual differences in sleep duration variability predicted more variable and lower mean PA. Future work should investigate potential mechanisms—such as neurobiological pathways and responsiveness to environmental contexts—that underlie the links between patterns of inconsistent sleep and affective dynamics.