Thursday, August 1, 2019

Coffee Experiment

I was having some semi-regular trouble sleeping, with some suspicion that it might be related to the amount of coffee I was drinking.  And because I am exactly that nerdz0r, I performed I pseudo-double-blind experiment on myself to see if it really was the coffee.

Method:

Bought two batches of beans from the same roaster, one decaf and one normal.  Put them in identical containers, with a label (A or B) on the back of each.  Got Coz to secretly record which was the decaf and which the real.  Every day when I'd have a coffee, I'd mix the two containers around and pick one for the beans, all without being able to see the labels (so I wouldn't prejudice myself against A or B...)  I blindly took a picture of the label to record which I'd used (mostly) without knowing (I'd occasionally catch a glimpse, but not often enough that I ended up with any consistent view of which was A and which B.)  I'd also record when I'd been to bed the night before, when I'd woken up, and how well I'd slept.

Note1: I'm crap at remembering to note this stuff down, so there were a number of days where I recorded my sleep data the next day (less reliable) or couldn't remember anything at all.

Note2: I proceeded to have almost none of the sorts of nights that caused me to do the experiment in the first place (bed at 12, up at 4am and unable to get back to sleep at all.)

Then I tried to characterize the sleep for a night as disturbed or not purely from the descriptions: any mention of waking in the night - even if I got back to sleep easily - staying up particularly late, or waking particularly early counted, and the day before that night marked with a *.

Then I went back through the photos and filled in A and B for which beans I used on each day.  Miraculously, only one of the blind photos completely missed the label.

Analysis:

trouble sleeping after A: 4
trouble sleeping after B: 3
slept soundly after A: 7
slept soundly after B: 8
trouble sleeping after unknown: 1
slept soundly after unknown: 1
trouble sleeping after knowingly drinking real coffee: 2
slept soundly after knowingly drinking real coffee: 1

Conclusions:

Not enough data for anything truly statistically significant, but damn but that looks pretty even.  Doesn't look like caffeine had much effect.

Raw Data:

*July 3: Slept well, woke 11 am.  coffee B @ 4.  bed 12:45 am.  read 20 mins or so
July 4: Woke twice in the night, but back to sleep fine both times.  Woke 11 am.  coffee A @ 2.  bed 12:15, read ~20 mins.
*July 5: Woke once for maybe 5 mins.  Woke 8ish when Coz got up.  coffee ? @ 1:30.  bed 12:15.  Fell asleep playing phone games within 10...
July 6: Woke ~6am and distracted myself awake putting the phone games (still running!) away.  Never did go back to sleep.  coffee A @ 11:30.  bed 12:15.  read til 1.
July 7: Slept well, woke 9.  coffee B @ 1:45.  bed 11:30.
July 8: Slept well, woke 9.  coffee A @ 2.  bed 12:30.
*July 9: Slept well, woke 6:30.  coffee A @ 1. read in bed til 3:30 ish
July 10: Woke 11.  coffee B @ 2:45.  bed 11:30.
July 11: Slept well - woke a couple of times but always straight back to sleep.  Woke 10:30.  coffee A @ 2:45.  bed 1.
*July 12: Slept well, woke 9.  coffee A @ 3:30.  bed 12:30
*July 13: Slept well, woke 9:30.  1 real espresso @ 11.  bed 12ish
July 14: woke 4:30 and stayed awake playing silly games.  Nodded off and slept again for an hour and a bit?  1 coffee ? @ 1.
*July 15: Slept well; can't remember when I got up.  coffee A @ 3:15.  Bed 1ish. 
July 16: Woke 6, read til 9, slept til noon.  coffee B @ 3:30. Bed 11:30; read til at least 12.
July 17: Slept well; woke once but straight back to sleep.  Woke 9.  coffee B @ 1:30. bed 12:15.
*July 18: Slept well.  Woke 9.  coffee B @ 3:30.  bed 12:30; read til at least 1.
July 19: Slept well til 6, woke and read / played til 9, back asleep and woke at 1pm.  1 coffee A @ 3.
July 20: coffee A @ 1.
*July 21: 2 real coffees @ 1 and 2.  Bed 12:30 but up late reading.
July 22: Awake @ 8:30 playing on the tablet.  coffee B @ 1.
July 23: coffee B @ 3.
*July 24: Slept well.  Woke 9ish.  coffee B @ 3.  Bed 1.
July 25: Woke a couple of times in the night but straight back to sleep.  coffee B @ 2:30.  Bed 12:30-ish.
July 26: Slept like a stone.  Woke 8:30, fell back asleep reading woke again 10:30.  coffee B @ 2:30.  Bed 1.
July 27: Slept fine.  Woke 9-ish.  no coffee?  Bed 1:30.
July 28: Slept fine.  Woke 9.  coffee B @ 2:15.  Bed 12:30.
*July 29: Woke 9.  coffee A @ 2:45.  2nd decaf an hour later.  Bed 11:30.
July 30: Woke 4:30 briefly, then again at 7:30 and read.  coffee A @ 1.
July 31: ?  Up 9.  one of each coffee @ 2ish (couldn't tell them apart.)  Bed 12:30.
Aug 1: real coffee @ 7pm.  Bed 1.