An experiment was designed to investigate the relationship between the dosage of a certain migraine medication and the reduction in pain experienced by patients. Which of the following would be the most appropriate variable to measure in this experiment?
a) The age of the patients
b) The gender of the patients
c) The duration of each migraine episode
d) The amount of pain reduction experienced by each patient