Amount of caffeine consumed, Test scores
Test scores, Amount of caffeine consumed
Number of subjects in each condition, Test scores
Test scores, Number of subjects in each condition
The independent variable is the variable that you as a researcher are manipulating. In this example, you are manipulating the amount of caffeine consumed. The dependent variable is the variable that you are measuring (test scores).