AP® Psychology · Science Practices: Research Methods and Data

2.B Independent, Dependent, and Confounding Variables

The independent variable is what the researcher manipulates, the dependent variable is what gets measured, and a confounding variable is an uncontrolled factor that changes alongside the independent variable and could be the real cause of the result.

A study is built to answer one question: does changing X change Y? The independent variable is X, the thing the researcher deliberately manipulates, like assigning people to sleep eight hours or four. The dependent variable is Y, the outcome the researcher measures afterward, like memory test scores. Plot a result and the independent variable sits on the x-axis as the groups being compared, while the dependent variable sits on the y-axis as the thing that moves. A study can run every procedure flawlessly, randomize people correctly, measure precisely, and still get the causal story wrong.

That happens when a confounding variable sneaks in. A confound is some other factor that happens to vary along with the independent variable, so it travels alongside the treatment, and when the dependent variable shifts, nobody can tell whether the independent variable caused it or the confound did. In a sleep study, if the low-sleep group also drank far more coffee, caffeine is riding shotgun with sleep deprivation. The memory scores might be a caffeine effect wearing a sleep deprivation costume. In a music-and-studying study, independent variable is music versus silence, dependent variable is test score, and if the music group happened to study in a quieter room, room noise is the confound stealing credit.

The fix is not to ignore the confound but to catch it. Once a factor like room noise or caffeine intake is identified, measuring it and statistically controlling for it pulls it out of the running, so whatever effect remains on the dependent variable can be attributed to the independent variable with far more confidence. This is exactly why random assignment, covered alongside this idea, matters: it spreads unknown confounds evenly across groups before they ever get the chance to ride along.

Key terms

Independent variable
The factor a researcher deliberately manipulates or assigns to compare groups.
Dependent variable
The outcome measured to see whether it changed because of the independent variable.
Confounding variable
An uncontrolled factor that varies along with the independent variable and offers an alternative explanation for the result.
Control
Measuring or holding a variable constant so it cannot distort the relationship between independent and dependent variables.

Watch it explained

  1. How it worksHow do the independent and dependent variable sit on the two axes of the result?
  2. How it worksWalk me through a confounding variable riding along with the treatment and stealing the credit.
  3. Worked exampleFind the independent, dependent, and confounding variables in a study of music and test scores.
  4. Going furtherWhat changes when the confound is measured and controlled for instead of ignored?

Check yourself

Your turn1 of 2
A researcher carefully manipulates the amount of sleep participants get and precisely measures their performance on a memory test the next day, following excellent procedural controls throughout. However, participants in the low-sleep group also happened to consume much more caffeine than the well-rested group, a factor the researcher never tracked or controlled. What does this scenario best illustrate?

End of topic.