Ultimately it is up to the scientist.
You could say “I want to study what time it is based on how bright the outdoors is”, or you could say “I want to study how bright it is outside based on what time it is”.
In the first example, brightness is the independent variable and time is the dependent, and vice versa.
Typically independent variables are what *you* change, and dependent variables are what you measure.
Latest Answers