Independent and dependent variables

Analytika TeamLast reviewed 5 min read

Almost every research question links two kinds of variable: something you think makes a difference, and the thing it makes a difference to. Naming them clearly is the first step in designing a study and choosing its analysis.

Definitions

  • Independent variable (IV): the variable you think explains or influences the outcome. Also called the predictor, explanatory variable, factor or (in experiments) the treatment.
  • Dependent variable (DV): the outcome you measure to see whether it changes with the IV. Also called the outcome, response or criterion variable.

A quick test: put them into the sentence “Does [IV] affect [DV]?” If it reads naturally, you have them the right way round. “Does teaching method affect exam score?” works. “Does exam score affect teaching method?” doesn’t.

Examples

Research questionIndependent variableDependent variable
Does a new drug lower blood pressure?Drug vs placeboBlood pressure
Do longer revision hours go with higher grades?Hours of revisionExam grade
Does vitamin C dose affect tooth growth in guinea pigs?Dose (0.5, 1 or 2 mg)Tooth growth
Does job satisfaction differ by contract type?Full-time vs part-timeJob satisfaction score

Experiments vs observational studies

In an experiment, the researcher sets the IV, ideally by randomly assigning participants to conditions. Random assignment balances every other variable across groups on average, so a difference in the DV can be attributed to the IV.

In an observational study, the IV is just measured (age, income, smoking status). People who differ on the IV usually differ on other things too, so a relationship with the DV is an association, not proof of cause. See correlation vs causation.

Other variables to know

  • Control variables: held constant or measured and adjusted for, because they might affect the DV.
  • Confounding variables: related to both the IV and the DV, so they can create a misleading association. In a study of coffee and heart disease, smoking is a classic confounder.
  • Moderators: change the strength or direction of the IV–DV relationship (the drug works for one age group but not another). See moderation and interactions.
  • Mediators: explain how the IV affects the DV, sitting on the pathway between them.

From variables to a statistical test

The test depends on the type of each variable, not just its role. A categorical IV with a continuous DV calls for a t-test or ANOVA. A continuous IV with a continuous DV calls for correlation or regression. A categorical DV calls for chi-square or logistic regression. The types of variables lesson has the full table.

Common mistakes

  • Calling a measured variable “independent” and then claiming it caused the outcome. “Independent variable” describes its role in the model, not proof that it causes anything.
  • Having several DVs but analysing them as if they were one. Each outcome needs its own analysis, or a multivariate method.
  • Confusing levels with variables. “Drug” and “placebo” are two levels of one IV (treatment), not two separate variables.

Planning an experiment? Our free random assignment generator allocates participants to conditions fairly.

More in Foundations

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free