In an experiment, the independent variable is the variable that is varied or manipulated by the researcher.
The dependent variable is the response that is measured.
For example:
In a study of how different doses of a drug affect the severity of symptoms, a researcher could compare the frequency and intensity of symptoms when different doses are administered.
Here the independent variable is the dose and the dependent variable is the frequency/intensity of symptoms.