I feel relatively confident of my n=1 experimentation in the realm of sleep, not food, although I am painfully aware that correlation does not imply causation. I also try not to overinterpret my results.
I have some confidence about my sleep experiments only because I have a data-capable CPAP machine and cross-platform software that I can use to read scarily comprehensive data about every breath I take at night. Not only can I see the flow rate, and monitor my apneic events, I can track changes in minute ventilation, respiration rate, inspiration time, expiration time, as well as the more ordinary bedtime, waking time, and total hours sleeping. I wouldn't be anal-retentive enough to chart all this stuff manually; thank heavens for the software.
The software has a place for notes, so I started tracking pertinent information some time ago, including notes on my experiments and observations.
It was the data from my software that made me give up caffeine, to my sorrow but to the betterment of my sleep.