The latest research, among 98 people, published in the American Journal of Medicine, found that those who had three caffeinated drinks had a 27% chance of a migraine on that day. For people who had none there was a 23% chance.