Chidi is fifty-one, sleeps badly about two nights in five, and has been told by three different articles that the cause is coffee, that coffee makes no difference, and that it depends on his genes.

All three are probably right about someone. Caffeine is broken down by a liver enzyme whose activity varies several-fold between people, partly for genetic reasons. For a fast metabolizer, an espresso after lunch is gone by evening. For a slow one, a good share of it is still circulating at midnight.

The average of those two people tells neither of them anything. So Chidi decided to find out which he was.

The idea

A study with a single participant has a respectable history in medicine, where it is called an n-of-1 trial. Doctors have used it since the 1980s for conditions in which patients respond very differently to the same treatment. The patient takes the drug for a period, then a placebo, then the drug again, and the two sets of periods are compared.

It answers the question people actually have, which is what works for them. And the logic can be borrowed for everyday habits with nothing more than a notebook.

Step one: one question

The commonest way to spoil a personal experiment is to change several things together. New year, new regime: no coffee, earlier bedtime, a walk each morning, no screens after nine. Sleep improves. Which change did it? There is no telling, and in March, when the regime has collapsed, there is nothing to keep.

Chidi wrote down a single question: does coffee after midday make my sleep worse? Everything else was to stay as it was.

Step two: one measure

He needed a number for each night. He chose two, both recorded within five minutes of waking, before looking at anything else:

  • roughly how long it took to fall asleep
  • a rating of the night from 1 to 5

He owns a watch that scores his sleep, and he recorded that as well, but he treated his own rating as the main result. How he felt was, after all, the thing he cared about.

Fixing the measure in advance matters. If you decide afterwards what to look at, you will find something that moved, because among a dozen possible measures one always does.

Step three: alternate

The design is called ABAB. A is the usual habit and B is the change.

  • Weeks 1 and 2: coffee as normal, including the cup at about three o'clock.
  • Weeks 3 and 4: no caffeine after midday.
  • Weeks 5 and 6: as normal again.
  • Weeks 7 and 8: none after midday.

Why go back and forth, when four weeks of each would be simpler? Because life changes on its own. Suppose a stressful project ended in week three. Sleep would have improved whatever he drank. With alternation, an effect that is real should appear, disappear, and appear again in step with the change. A coincidence is unlikely to manage that twice.

Two weeks per period is a compromise. Sleep varies a lot from night to night, so a few days would show nothing but noise. Much longer and he would have lost patience.

Step four: record without peeking

He kept a sheet on the fridge: the date, A or B, the two numbers and a short note for anything unusual, such as illness, a late dinner or a night away.

He also made a rule not to add anything up until the eight weeks were over. Looking early tempts you to stop the moment the numbers favour what you hoped.

The result

At the end he had 56 rows. He averaged each period.

Period Minutes to fall asleep Rating (1 to 5)
A: afternoon coffee 34 2.9
B: none after midday 19 3.6
A: afternoon coffee 31 3.0
B: none after midday 21 3.7

The pattern reversed and came back. Both coffee periods were worse than both periods without, by a similar margin. He removed the six nights marked as unusual and the picture held.

It might have gone the other way. A friend who ran the same experiment found no difference at all between her periods and has gone back, with a clear conscience, to her four o'clock espresso. Her result was as useful to her as his was to him.

The weakness, admitted

Chidi knew which weeks were which, and he half expected coffee to be the culprit. Expectation alone can change how a night feels, and certainly how it is rated.

Proper trials deal with this by blinding: the participant does not know which treatment they are getting. For coffee that is possible at home. Someone else can fill two identical jars, one with decaffeinated beans, and keep the key. For most habits, such as a walk or an earlier bedtime, it is not.

There are partial defences. A measure that does not depend on judgement, such as the time it takes to fall asleep or a device's reading, is less open to wishful thinking than a rating. A large effect that repeats is more convincing than a small one. And it helps to be honest about how much one wanted a particular answer.

There is a further limit. This kind of experiment suits habits whose effects come and go quickly. It cannot test something whose results take months to show or that cannot be undone.

Other questions worth eight weeks

The same design works for a good many everyday uncertainties.

  • Does a twenty-minute walk before work change my mood by mid-afternoon?
  • Does eating earlier in the evening affect my sleep?
  • Do I concentrate better with the phone in another room?
  • Does a glass of wine with dinner change how I feel the next morning?
  • Does reading before bed, in place of a screen, shorten the time I take to fall asleep?

In each case: one change, one measure decided beforehand, alternating periods, and a note of every day.

What the method gives

The answer about coffee was useful to Chidi. He says the larger benefit was a change in how he reads advice.

He used to feel obliged to act on every well-argued article about habits, and guilty when he did not. Now he treats such articles as suggestions for what to test. Most of what they recommend is true on average and may or may not be true of him, and eight weeks will tell.

He has stopped drinking coffee after noon. His sleep is still poor about one night in five, which suggests that something else is at work as well. He has a guess about what, and he started a new sheet for it on the first of the month.