Interaction Variable (Effect)
Definition
An interaction variable (or interaction term) captures how the effect of one independent variable on the dependent variable depends on the level of another variable.
Purpose
Used when the relationship between and changes depending on .
Formulation
For two predictors and :
- : the interaction coefficient
- : the interaction term
Interpretation
- If , the effect of on depends on .
- The marginal effect of is:
The slope of changes with .
Example
Given:
- = Hours studied
- = Tutoring (1=yes, 0=no)
- : interaction between study hours and tutoring
Interpretation:
The effect of study hours on grades is different for students with tutoring than for those without.
Visualization Tip
Plot vs for different fixed values of . Non-parallel lines interaction.