Sub topic 5
Experiments: Manipulating a Variable to Test Cause and Effect
What makes a study an experiment?
This chapter assumes you know basic psychology terms, can read simple graphs and tables, and understand a mean (average).
An experiment is a study in which a researcher deliberately changes one variable and measures its effect on another variable. The changed variable is the independent variable. The measured outcome is the dependent variable.
For example, a researcher might ask whether background music affects memory. The researcher could assign participants to study either in silence or with music, then measure their test scores.
| Part of the experiment | Example |
|---|---|
| Independent variable | Study condition: silence or music |
| Dependent variable | Number of words recalled |
| Experimental group | Participants who study with music |
| Control group | Participants who study in silence |
The independent variable must have at least two conditions. A researcher compares the dependent-variable results across those conditions.
Testing cause and effect
Experiments can support causal conclusions because they combine two features:
- Manipulation: The researcher changes the independent variable.
- Control: The researcher reduces other explanations for the outcome.
If the music group recalls more words than the silence group, the difference may be caused by the study condition. However, the conclusion is trustworthy only if other important factors were kept similar. Participants should receive the same word list, study time, instructions, and memory test.
A confounding variable is an unwanted factor that changes along with the independent variable and could explain the result. For example, if the music group studies in a quiet laboratory but the silence group studies in a noisy classroom, location is a confound.
import random
participants = [f"P{i}" for i in range(1, 21)]
random.seed(42)
random.shuffle(participants)
treatment = participants[:10]
control = participants[10:]
print("Treatment:", treatment)
print("Control:", control)This code randomly assigns 20 participants to two groups. Random assignment helps distribute preexisting differences, such as prior knowledge or motivation, across the groups.
The basic experimental sequence
A strong experiment also uses consistent procedures. Researchers may use a placebo, an inactive treatment that looks like the real treatment, or blinding, keeping participants or researchers unaware of group assignments. These safeguards reduce expectancy effects.
Exercise
A researcher assigns people randomly to use either a meditation app or a neutral app for two weeks, then measures stress scores. Identify the independent and dependent variables.
Show answer
The independent variable is app condition. The dependent variable is the participants' stress scores.