Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7....

21
Algorithmic attribution modelling Using game theory to improve the measurability of omni-channel marketing Ola Ottosson Sebastian Ånerud

Transcript of Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7....

Page 1: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Algorithmic attribution modellingUsing game theory to improve the

measurability of omni-channel marketing

Ola OttossonSebastian Ånerud

Page 2: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

01 Attribution modelling intro

02 Standard approaches

03 Game theory: Shapley values

04 Modelling approach

05 Questions

Page 3: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

What is attribution modelling?

Channels and touchpoints Success factor

An attribution model measures the impact of different touchpoints on the success factor

Page 4: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Shapley values

Attribution modelling

Markov chains

Predictive modelling

Linear

First clickTime decay

Position based

Last click

The attribution modelling landscape

Rule-based Algorithmic approach

Page 5: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

What are Shapley values?

To each cooperative game it assigns a unique distribution (among the players) of a total surplus generated by the coalition of all players.

Or in plain text...

Give fair credit to each player.

A B

C

Page 6: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

What are Shapley values?

A B

CC

A B A B

C

A B

C

A B

C

A B

C

A B

C

A B

C

Page 7: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

A B

CC

A B A B

C

A B

C

A B

C

A B

C

A B

C

A B

C

All possible combination of players

0 4 6

7 15 9 19

7

Page 8: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Marginal value with consideration to entry order

A BC A B C AB C

AB C A BC ABC

7 8 4 7 0 12 4 5 10

4 3 12 6 9 4 6 3 10

Page 9: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

(7+7+10+3+9+10) / 6 = 7.67

A

Page 10: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

(7+7+10+3+9+10) / 6 = 7.67

B

C

A

3,17

8,17

19

Page 11: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Shapley Additive Explanations (SHAP) applied to

Machine Learning modelling

Page 12: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Why SHAP on ML models?

Complex attribution problem● The number of channels are large● You also want to model the order of the touchpoints● You want to take continuous variables into account

→● Computationally heavy, exact shapley values cannot be

computed and needs to be approximated in some way

Page 13: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Why SHAP on ML models?

Marketing mix model● You already have, or are building, a ML model for

simulating effects of marketing investments (marketing mix model)

● You want to understand the importance and effect of features for each individual observation

● You want a more fair feature attribution than standard implementations

● →● SHAP package in python: github.com/slundberg/shap

Page 14: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Marketing mix modelling

Problem● Understand how redirecting spend in different

channels will affect conversion ratesSolution● Given historical leads, their point of contacts and if

they converted or not, try to model the relationship between touchpoints and conversion.

Page 15: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Standard feature importance approach

Features● Offered price● Contact with an affiliate● Contact with the different online/offline channels● Contact with the different sales agents

Target label● Converted or not

Model● XGBoost (Gradient boosting)● 100 Trees● 0.1 learning rate

Page 16: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

SHAP approach

Features● Offered price● Contact with an affiliate● Contact with the different online/offline channels● Contact with the different sales agents

Target label● Converted or not

Model● XGBoost (Gradient boosting)● 100 Trees● 0.1 learning rate

Page 17: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

SHAP approach (“backwards compatible”)

Features● Offered price● Contact with an affiliate● Contact with the different online/offline channels● Contact with the different sales agents

Target label● Converted or not

Model● XGBoost (Gradient boosting)● 100 Trees● 0.1 learning rate

Page 18: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Feature values● online_u = 1● offline_g = 1● price = 45● sls_agent_w = 1● ….

SHAP● For each lead, how much did each feature moved

the prediction up or down?

SHAP on an observation level

Page 19: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

SHAP interactions

Feature interactions● price● sls_agent_c

Interpretation● Sales agent c is not as good at

selling at a low price as on higher prices

Page 20: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Feature interactions● price● sls_agent_q

Interpretation● Sales agent q is not as good at

selling at a high price as on lower prices

SHAP interactions

Page 21: Algorithmic attribution modelling - Data Innovation Summit · 2019. 4. 16. · 7 15 9 19 7. Marginal value with consideration to entry order A C B A B C B C A B A C C A B C B A 7

Thank you!

Ola Ottosson [email protected] Ånerud [email protected]