Chapter 3 of 7

Interaction Terms

When the effect of salary depends on position

The additive model forces both groups to have the same slope. But is that a reasonable assumption?

4681012Annual Salary (M€)01020304050Market Value (M€)GoalkeeperOutfield

Right now the model assumes that an extra €1M in salary has the same effect on market value for both goalkeepers and outfield players.

But what if the salary effect is different for each group? Maybe an extra €1M matters more for outfield players than for goalkeepers. The additive model can't capture that — we need a way to let the slope vary by group.


An interaction term lets the slope differ between groups. We multiply salary × position.

We add a new variable: salary × outfield. This is zero for all goalkeepers, and equals the salary for outfield players.

y^=b0+b1×salary+b2×outfield+b3×(salary×outfield)\hat{y} = b_0 + b_1 \times \text{salary} + b_2 \times \text{outfield} + b_3 \times (\text{salary} \times \text{outfield})
SalaryOutfieldSalary × Outfield
500
515
1000
10110

For goalkeepers (outfield = 0), the interaction term is always zero — it vanishes from the equation. For outfield players, it adds an extra salary effect on top of b₁.


Now each group gets its own slope and intercept.

4681012Annual Salary (M€)01020304050Market Value (M€)GoalkeeperOutfield
Estimated regression equation
y^=5.2+1.93×salary+0.2×outfield+1.66×(salary×outfield)\hat{y} = 5.2 + 1.93 \times \text{salary} + 0.2 \times \text{outfield} + 1.66 \times (\text{salary} \times \text{outfield})
Goalkeeper (outfield = 0)
y^=5.2+1.93×salary\hat{y} = 5.2 + 1.93 \times \text{salary}
Outfield (outfield = 1)
y^=5.4+3.59×salary\hat{y} = 5.4 + 3.59 \times \text{salary}
b₀ 5.2
b₁ (salary) 1.93
b₂ (outfield) 0.2
b₃ (interaction) 1.66

b₃ tells us how much steeper the salary effect is for outfield players compared to goalkeepers.

4681012Annual Salary (M€)01020304050Market Value (M€)GoalkeeperOutfield1.933.59
GK slope = b₁ = 1.93 | Outfield slope = b₁ + b₃ = 3.59
Difference = b₃ +0.00

For each extra €1M in salary, outfield players gain 1.66 M€ more in market value than goalkeepers.


Compare: parallel vs non-parallel.

4681012Annual Salary (M€)01020304050Market Value (M€)GoalkeeperOutfield
Additive Same slope for both
Interaction Different slopes

© 2026 Mohammad Iman