This individual's Sleep Quality is generally highest after a daily total of 2 serving of Coffee - Brewed From Grounds consumption over the previous 7 days.
Join This Study
Go To Interactive Study
Blue represents the sum of Coffee - Brewed From Grounds consumption over the previous 7 days
An increase in 7 days cumulative Coffee - Brewed From Grounds consumption is usually followed by an decrease in Sleep Quality. (R = -0.291)
Typical values for Sleep Quality following a given amount of Coffee - Brewed From Grounds consumption over the previous 7 days.
Typical Coffee - Brewed From Grounds consumption seen over the previous 7 days preceding the given Sleep Quality value.
Correlation between outcome and aggregated predictor measurements over given number of days
Peak correlation suggests the delay between predictor and observable outcome
This chart shows how Coffee - Brewed From Grounds changes over time.
Each column represents the number of days this value occurred.
This chart shows the typical value recorded for Coffee - Brewed From Grounds on each day of the week.
This chart shows the typical value recorded for Coffee - Brewed From Grounds for each month of the year.
This chart shows how Sleep Quality changes over time.
Each column represents the number of days this value occurred.
This chart shows the typical value recorded for Sleep Quality on each day of the week.
This chart shows the typical value recorded for Sleep Quality for each month of the year.

Abstract

This individual's Sleep Quality is generally 4.09% higher than normal after a total of 2 serving Coffee - Brewed From Grounds consumption over the previous 7 days. This individual's data suggests with a high degree of confidence (p=5.6772997952206E-7, 95% CI -0.451 to -0.131) that Coffee - Brewed From Grounds has a weakly negative predictive relationship (R=-0.29) with Sleep Quality. The highest quartile of Sleep Quality measurements were observed following an average 2.28 serving Coffee - Brewed From Grounds per day. The lowest quartile of Sleep Quality measurements were observed following an average 6.75 serving Coffee - Brewed From Grounds per day.Sleep Quality is generally 10.95% lower than normal after a total of 6.75 serving of Coffee - Brewed From Grounds consumption over the previous 7 days. Sleep Quality is generally 4.09% higher after a total of 2.28 serving of Coffee - Brewed From Grounds consumption over the previous 7 days.

Objective

The objective of this study is to determine the nature of the relationship (if any) between Coffee and Sleep Quality. Additionally, we attempt to determine the Coffee - Brewed From Grounds values most likely to produce optimal Sleep Quality values.

Participant Instructions

Record your Coffee - Brewed From Grounds daily in the reminder inbox or using the interactive web or mobile notifications.
Record your Sleep Quality daily in the reminder inbox or using the interactive web or mobile notifications.

Design

This study is based on data donated by one participant. Thus, the study design is consistent with an n=1 observational natural experiment.

Data Analysis

Coffee - Brewed From Grounds Pre-Processing
Coffee - Brewed From Grounds measurement values below 0 serving were assumed erroneous and removed. Coffee - Brewed From Grounds measurement values above 30 serving were assumed erroneous and removed. It was assumed that any gaps in Coffee - Brewed From Grounds data were unrecorded 0 serving measurement values.
Coffee - Brewed From Grounds Analysis Settings

Sleep Quality Pre-Processing
Sleep Quality measurement values below 1 out of 5 were assumed erroneous and removed. Sleep Quality measurement values above 5 out of 5 were assumed erroneous and removed. No missing data filling value was defined for Sleep Quality so any gaps in data were just not analyzed instead of assuming zero values for those times.
Sleep Quality Analysis Settings

Predictive Analytics
It was assumed that 0.5 hours would pass before a change in Coffee - Brewed From Grounds would produce an observable change in Sleep Quality. It was assumed that Coffee - Brewed From Grounds could produce an observable change in Sleep Quality for as much as 7 days after the stimulus event.
Predictive Analysis Settings

Data Quantity
104 raw Coffee - Brewed From Grounds measurements with 562 changes spanning 2353 days from 2013-01-19 to 2019-06-30 were used in this analysis. 641 raw Sleep Quality measurements with 312 changes spanning 2531 days from 2012-05-06 to 2019-04-12 were used in this analysis.

Data Sources

Coffee - Brewed From Grounds data was primarily collected using QuantiModo. QuantiModo allows you to easily track mood, symptoms, or any outcome you want to optimize in a fraction of a second. You can also import your data from over 30 other apps and devices. QuantiModo then analyzes your data to identify which hidden factors are most likely to be influencing your mood or symptoms.

Sleep Quality data was primarily collected using QuantiModo. QuantiModo allows you to easily track mood, symptoms, or any outcome you want to optimize in a fraction of a second. You can also import your data from over 30 other apps and devices. QuantiModo then analyzes your data to identify which hidden factors are most likely to be influencing your mood or symptoms.

Limitations

As with any human experiment, it was impossible to control for all potentially confounding variables. Correlation does not necessarily imply causation. We can never know for sure if one factor is definitely the cause of an outcome. However, lack of correlation definitely implies the lack of a causal relationship. Hence, we can with great confidence rule out non-existent relationships. For instance, if we discover no relationship between mood and an antidepressant this information is just as or even more valuable than the discovery that there is a relationship.
We can also take advantage of several characteristics of time series data from many subjects to infer the likelihood of a causal relationship if we do find a correlational relationship. The criteria for causation are a group of minimal conditions necessary to provide adequate evidence of a causal relationship between an incidence and a possible consequence.

The list of the criteria is as follows:
Strength (A.K.A. Effect Size)
A small association does not mean that there is not a causal effect, though the larger the association, the more likely that it is causal. There is a weakly negative relationship between Coffee - Brewed From Grounds consumption and Sleep Quality

Consistency (A.K.A. Reproducibility)
Consistent findings observed by different persons in different places with different samples strengthens the likelihood of an effect. Furthermore, in accordance with the law of large numbers (LLN), the predictive power and accuracy of these results will continually grow over time. 298 paired data points were used in this analysis. Assuming that the relationship is merely coincidental, as the participant independently modifies their Coffee - Brewed From Grounds consumption values, the observed strength of the relationship will decline until it is below the threshold of significance. To it another way, in the case that we do find a spurious correlation, suggesting that banana intake improves mood for instance, one will likely increase their banana intake. Due to the fact that this correlation is spurious, it is unlikely that you will see a continued and persistent corresponding increase in mood. So over time, the spurious correlation will naturally dissipate.

Specificity
Causation is likely if a very specific population at a specific site and disease with no other likely explanation. The more specific an association between a factor and an effect is, the bigger the probability of a causal relationship.

Temporality
The effect has to occur after the cause (and if there is an expected delay between the cause and expected effect, then the effect must occur after that delay). The confidence in a causal relationship is bolstered by the fact that time-precedence was taken into account in all calculations.

Biological Gradient
Greater exposure should generally lead to greater incidence of the effect. However, in some cases, the mere presence of the factor can trigger the effect. In other cases, an inverse proportion is observed: greater exposure leads to lower incidence.

Plausibility
A plausible bio-chemical mechanism between cause and effect is critical. This is where human brains excel. Based on our responses so far, 1 humans feel that there is a plausible mechanism of action and 0 feel that any relationship observed between Coffee - Brewed From Grounds consumption and Sleep Quality is coincidental.

Coherence
Coherence between epidemiological and laboratory findings increases the likelihood of an effect. It will be very enlightening to aggregate this data with the data from other participants with similar genetic, diseasomic, environmentomic, and demographic profiles.

Experiment
All of human life can be considered a natural experiment. Occasionally, it is possible to appeal to experimental evidence.

Analogy
The effect of similar factors may be considered.

Relationship Statistics

Property Value
Cause Variable Name Coffee - Brewed From Grounds consumption
Effect Variable Name Sleep Quality
Sinn Predictive Coefficient 0.2986
Confidence Level high
Confidence Interval 0.16028227916149
Forward Pearson Correlation Coefficient -0.291
Critical T Value 1.646
Total Coffee - Brewed From Grounds consumption Over Previous 7 days Before ABOVE Average Sleep Quality 2.28 serving
Total Coffee - Brewed From Grounds consumption Over Previous 7 days Before BELOW Average Sleep Quality 6.75 serving
Duration of Action 7 days
Effect Size weakly negative
Number of Paired Measurements 298
Optimal Pearson Product 0.15799945399386
P Value 5.6772997952206E-7
Statistical Significance 0.97603963735577
Strength of Relationship 0.16028227916149
Study Type individual
Analysis Performed At 2019-07-02

Coffee - Brewed From Grounds Statistics

Property Value
Variable Name Coffee - Brewed From Grounds
Aggregation Method SUM
Analysis Performed At 2019-07-02
Duration of Action 7 days
Kurtosis 280.51532970492
Maximum Allowed Value 30 serving
Mean 1.5264 serving
Median 0 serving
Minimum Allowed Value 0 serving
Number of Changes 562
Number of Correlations 111
Number of Measurements 104
Onset Delay 30 minutes
Standard Deviation 2.7518424302266
Unit Serving
UPC 039517182893
Variable ID 1653
Variance 7.5726367607952

Sleep Quality Statistics

Property Value
Variable Name Sleep Quality
Aggregation Method MEAN
Analysis Performed At 2019-05-26
Duration of Action 7 days
Kurtosis 2.7819199718877
Maximum Allowed Value 5 out of 5
Mean 3.3303 out of 5
Median 3.2325582504272 out of 5
Minimum Allowed Value 1 out of 5
Number of Changes 312
Number of Correlations 924
Number of Measurements 641
Onset Delay 0 seconds
Standard Deviation 0.83531375879634
Unit 1 to 5 Rating
UPC 754185214911
Variable ID 1448
Variance 0.69774907563447

Tracking Coffee - Brewed From Grounds

Record your Coffee - Brewed From Grounds daily in the reminder inbox or using the interactive web or mobile notifications.

Tracking Sleep Quality

Record your Sleep Quality daily in the reminder inbox or using the interactive web or mobile notifications.
Join This Study

https://lh6.googleusercontent.com/-BHr4hyUWqZU/AAAAAAAAAAI/AAAAAAAIG28/2Lv0en738II/photo.jpg Principal Investigator - Mike Sinn