In psychological research, what is something that affects the relationship between two variables?

Published on March 1, 2021 by Pritha Bhandari. Revised on July 21, 2022.

A mediating variable (or mediator) explains the process through which two variables are related, while a moderating variable (or moderator) affects the strength and direction of that relationship.

Including mediators and moderators in your research helps you go beyond studying a simple relationship between two variables for a fuller picture of the real world. These variables are important to consider when studying complex correlational or causal relationships between variables.

What’s the difference?

You can think of a mediator as a go-between for two variables. For example, sleep quality (an independent variable) can affect academic achievement (a dependent variable) through the mediator of alertness. In a mediation relationship, you can draw an arrow from an independent variable to a mediator and then from the mediator to the dependent variable.

In contrast, a moderator is something that acts upon the relationship between two variables and changes its direction or strength. For example, mental health status may moderate the relationship between sleep quality and academic achievement: the relationship might be stronger for people without diagnosed mental health conditions than for people with them.

In a moderation relationship, you can draw an arrow from the moderator to the relationship between an independent and dependent variable.

In psychological research, what is something that affects the relationship between two variables?

A mediator is a way in which an independent variable impacts a dependent variable. It’s part of the causal pathway of an effect, and it tells you how or why an effect takes place.

If something is a mediator:

  1. It’s caused by the independent variable.
  2. It influences the dependent variable
  3. When it’s taken into account, the statistical correlation between the independent and dependent variables is higher than when it isn’t considered.

Mediation analysis is a way of statistically testing whether a variable is a mediator using linear regression analyses or ANOVAs.

In full mediation, a mediator fully explains the relationship between the independent and dependent variable: without the mediator in the model, there is no relationship.

In partial mediation, there is still a statistical relationship between the independent and dependent variable even when the mediator is taken out of a model: the mediator only partially explains the relationship.

Example: Mediator variablesIn a study on socioeconomic status and reading ability in children, you hypothesize that parental education level is a mediator. This means that socioeconomic status affects reading ability mainly through its influence on parental education levels.

In psychological research, what is something that affects the relationship between two variables?

You use a descriptive research design for this study. After collecting data on each of these variables, you perform statistical analysis to check whether:

  1. Socioeconomic status predicts parental education levels,
  2. Parental education levels predicts child reading ability,
  3. The correlation between socioeconomic status and child reading ability is greater when parental education levels are taken into account in your model.

Moderating variables

A moderator influences the level, direction, or presence of a relationship between variables. It shows you for whom, when, or under what circumstances a relationship will hold.

Moderators usually help you judge the external validity of your study by identifying the limitations of when the relationship between variables holds. For example, while social media use can predict levels of loneliness, this relationship may be stronger for adolescents than for older adults. Age is a moderator here.

Moderators can be:

  • Categorical variables such as ethnicity, race, religion, favorite colors, health status, or stimulus type,
  • Quantitative variables such as age, weight, height, income, or visual stimulus size.
Example: Moderator variablesIn a study on work experience and salary, you hypothesize that:
  • years of work experience predicts salary, when controlling for relevant variables,
  • gender identity moderates the relationship between work experience and salary.

This means that the relationship between years of experience and salary would differ between men, women, and those who do not identify as men or women.

In psychological research, what is something that affects the relationship between two variables?

To test this statistically, you perform a multiple regression analysis for the data on work experience and salary, with gender identity added in the model. You compare the statistical significance of the model with and without gender identity included to determine whether it moderates the relationship between work experience and salary.

Why should you include mediators and moderators in a study?

Including mediators and moderators in your research helps you go beyond studying a simple relationship between two variables for a fuller picture of the real world. They are important to consider when studying complex correlational or causal relationships.

Mediators are part of the causal pathway of an effect, and they tell you how or why an effect takes place. Moderators usually help you judge the external validity of your study by identifying the limitations of when the relationship between variables holds.

Sources in this article

We strongly encourage students to use sources in their work. You can cite our article (APA Style) or take a deep dive into the articles below.

This Scribbr article

Bhandari, P. (July 21, 2022). Mediator vs. Moderator Variables | Differences & Examples. Scribbr. Retrieved October 10, 2022, from https://www.scribbr.com/methodology/mediator-vs-moderator/

Is this article helpful?

You have already voted. Thanks :-) Your vote is saved :-) Processing your vote...

When a psychologist simply records the relationship between two variables without manipulating them?

Correlational research involves measuring two variables and assessing the relationship between them, with no manipulation of an independent variable.

What are the two key features to an experiment?

The experimental method involves the manipulation of variables to establish cause and effect relationships. The key features are controlled methods and the random allocation of participants into controlled and experimental groups.

What is the only research method that can establish a cause

The only way to establish a cause-and-effect relationship between two variables is to conduct a case study. In an experiment, the dependent variable is controlled by the experimenter.

Which of the following would be an example of an illusory correlation?

Some examples of illusory correlation include: A man holds the belief that people in urban environments tend to be rude. Therefore, when he meets someone who is rude he assumes that the person lives in a city, rather than a rural area. A woman believes that pit bulls are inherently dangerous.

Which of the following are reasons that researchers might use correlational research?

What are the following reasons that researchers might use correlational research? To use one variable to predict the value of another variable. to investigate real-world events. To conduct research in situations where it would not be ethical to carry out an experiment in another way.