SlideShare a Scribd company logo
1 of 52
Download to read offline
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Driving your marketing
automation with multi-armed
bandits in real time
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Agenda
● Dot.Com business case
● The modern A/B testing
● The architecture
● Numbers (!)
● Key takeaways
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Dot.Com business case
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Dot.Com is a unicorn that
wants to start making a
revenue from real customers
not the investors.
Copyright © WLOG Solutions & TouK
They pivoted from dating portal and
created a NoHotel service.
Copyright © WLOG Solutions & TouK
They pivoted from dating portal and
created a NoHotel service.
Uniqueness was that there was no
hotel but you could still rent a room
and pay with bitcoin.
Copyright © WLOG Solutions & TouK
Which type of room do you want to book?
Villager Parisian Poles on vacation
Book now Book now Book now
only 100Ƀ day only 150Ƀ day only 50Ƀ day
Copyright © WLOG Solutions & TouK
After first year of investing rounds...
Copyright © WLOG Solutions & TouK
After first year of investing rounds...
Real revenue has reached
astonishing value of 0Ƀ.
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
They needed to pump up an
income before the next
investment round.
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
They needed to pump up an
income before the next
investment round.
They had a week to do it.
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
They hired consultants from
A/B consulting company.
Consultants after an audit
recommended to use A/B testing to
pump up the revenue.
Copyright © WLOG Solutions & TouK
http://www.dilbert.com/strips/comic/2014-03-15/
Copyright © WLOG Solutions & TouK
Which type of room do you want to book?
Villager Parisian Poles on vacation
Book now Book now Book now
only 100Ƀ day only 150Ƀ day only 50Ƀ day
Created three different types of questions:
- Which type of room do you want to book?
- With whom do you want to spend a night
today?
- What extent does the African swallow
reach?
Copyright © WLOG Solutions & TouK
Which type of room do you want to book?
Villager Parisian Poles on vacation
Book now Book now Book now
only 100Ƀ day only 150Ƀ day only 50Ƀ day
Generated 3! (eng. six) versions of the page with
shuffled types of rooms.
Copyright © WLOG Solutions & TouK
Which type of room do you want to book?
Villager
Book now Book now
only 100Ƀ day only 150Ƀ day only 50Ƀ day
Parisian Poles on vacation
Book now
Generated 3! (6) versions of the pricing boxes.
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
In total NoHotel webpage had 108
versions (=3*6*6).
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
They had to choose...
How in a week generate max income from
those versions?
Which version is the most profitable (best)?
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
The modern A/B testing
Copyright © WLOG Solutions & TouK
Classical A/B testing
1. Split stream of customers landing on a webpage onto
all alternatives randomly.
2. Gather results after testing N customers for each
alternative.
3. Select the best one (?)
4. Use the best one to earn money.
Copyright © WLOG Solutions & TouK
Classical A/B testing
A 1
A 2
A 108
....
100/N
115/N
110/N
....
A 1
A 2
A 108
....
100/N
115/N
110/N
....
Explore in a random way. Exploit the best
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Classical A/B testing
Positive positives
- easy to implement
- unbiased
Negative positives
- technical parameters
- burned time for
selecting the best
parameter
- problem agnostic
- The best is not the most
profitable to exploit.
Copyright © WLOG Solutions & TouK
Modern A/B testing (bandits)
- Epsilon greedy
- …
- and variants
Copyright © WLOG Solutions & TouK
Modern A/B testing (bandits)
A 1
A 2
A 108
....
100/N
115/N
110/N
....
A 1
A 2
A 108
....
100/N
115/N
110/N
....
Explore
Start with all alternatives equal and
learn in an online mode.
Exploit the best with some
randomisation.
Copyright © WLOG Solutions & TouK
Context?
(context, arms)
You do not control this.
(e.g. visit hour, season, ...)
You do control this.
(e.g. price, order, img, ...)
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Modern A/B testing (bandits)
Positive positives
- easy to implement
- more effective
exploration
Negative positives
- technical parameters
- burned time for
selecting the best
parameter
- problem agnostic
- The best is not the most
profitable to exploit.
Copyright © WLOG Solutions & TouK
Optimal learning - a unified theory
- Offline
- We want to optimise probability to find the best option.
- On-line
- We want to optimise sum of revenues of our actions.
- Some keywords
- knowledge gradient, Gittins indices, Bayes,
exploration-exploitation
Sophisticated but a must if you perform a large
number of experiments.
Copyright © WLOG Solutions & TouK
What is the secret “sauce”?
time
Ƀ
Event Payoff
Delayed payoff
What to do when waiting for
the payoff?
Exploiting only the best is the
inferior policy.
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Architecture
Copyright © WLOG Solutions & TouK
Just code it?
- Bandit algorithms are simple to code
- But how to:
- Understand
- Tune
- Control
- Monitor
Copyright © WLOG Solutions & TouK
Model in R - dev and deployment
DevProduction
.zip
Continuous
integration
Version
control
Local CRAN
MRAN
REST API
Plumber REST API
Copyright © WLOG Solutions & TouK
Streaming with Flink
- Scaling
- Efficient state processing
- Windows and aggregates
Copyright © WLOG Solutions & TouK
Flink - state for bandits
Copyright © WLOG Solutions & TouK
Business rules
- Quick promotions
- Dynamic thresholds
- Expert rules
- All by analysts/business?
?
Copyright © WLOG Solutions & TouK
Flink - state for bandits
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK 36
Copyright © WLOG Solutions & TouK
Business rules with Nussknacker
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
80% with UI
20% with code
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Recommendation
state
Stats
preaggregation
Copyright © WLOG Solutions & TouK
Further scaling?
What if invoking R
via REST interface is
not fast enough?
Copyright © WLOG Solutions & TouK
Further scaling?
Multiplicate R
with
Kubernetes
Copyright © WLOG Solutions & TouK
Further Further scaling?
Portable
Format
for
Analytics?
FastR
on
GraalVM?
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Results aka numbers
Copyright © WLOG Solutions & TouK
Results
● Expected conversion ratio
○ e-greedy: 750
○ Optimal learning: 883
○ Improvement: 15%
● Probability to identify best
alternative:
○ e-greedy: 81%
○ Optimal learning: 91%
Advanced Maths added value
Scenario for A/B tests
● 6 alternatives with the
following conversion ratios: 5%,
6%, 7%, 8%, 9% i 10%
● Sample size: 10000 users
Copyright © WLOG Solutions & TouK
Results
● Expected conversion ratio
○ e-greedy: 750
○ Optimal learning: 883
○ Improvement: 15%
● Probability to identify best
alternative:
○ e-greedy: 81%
○ Optimal learning: 91%
Advanced Maths added value
Scenario for A/B tests
● 6 alternatives with the
following conversion ratios: 5%,
6%, 7%, 8%, 9% i 10%
● Sample size: 10000 users
With mathematics you can make algorithm
parameterless and more effective!
Copyright © WLOG Solutions & TouK
Reacting to change
Copyright © WLOG Solutions & TouK
Reacting to change
Could converge even faster with drift detection or
memory weighting.
Copyright © WLOG Solutions & TouK
~20k/s on node for
experiment
Performance?
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
Key takeaways
Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
● Business parameters are good, technical are bad.
● It pays off to use mathematics for A/B testing.
● Automated deployment is crucial when you go on
production.
● Flink and Nussnacker give performance and configuration
capabilities.
● R Suite makes R ready for production.
Copyright © WLOG Solutions & TouK
Wit Jakuczun
CEO
wit.Jakuczun@wlogsolutions.com
+48 601820620
http://www.wlogsolutions.com
Maciek Próchniak
mpr@touk.pl
@mpproch
http://touk.pl
52

More Related Content

What's hot

DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...
DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...
DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...
Gene Kim
 
Experiencing Agility From Requirements to Planning
Experiencing Agility From Requirements to PlanningExperiencing Agility From Requirements to Planning
Experiencing Agility From Requirements to Planning
Mike Cohn
 
The Lean Startup fbFund Edition
The Lean Startup fbFund EditionThe Lean Startup fbFund Edition
The Lean Startup fbFund Edition
Eric Ries
 

What's hot (20)

Test Design for Fully Automated Build Architecture
Test Design for Fully Automated Build ArchitectureTest Design for Fully Automated Build Architecture
Test Design for Fully Automated Build Architecture
 
20170511 the continuous culture sdd
20170511   the continuous culture sdd20170511   the continuous culture sdd
20170511 the continuous culture sdd
 
Никита Галкин "Technical backlog: инструкция к применению"
Никита Галкин "Technical backlog: инструкция к применению"Никита Галкин "Technical backlog: инструкция к применению"
Никита Галкин "Technical backlog: инструкция к применению"
 
Redefining the unit
Redefining the unitRedefining the unit
Redefining the unit
 
DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...
DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...
DOES15 - Heather Mickman & Ross Clanton - (Re)building an Engineering Culture...
 
Experiencing Agility From Requirements to Planning
Experiencing Agility From Requirements to PlanningExperiencing Agility From Requirements to Planning
Experiencing Agility From Requirements to Planning
 
Planning Your Hadoop NoSQL Projects For 2011
Planning Your Hadoop NoSQL Projects For 2011Planning Your Hadoop NoSQL Projects For 2011
Planning Your Hadoop NoSQL Projects For 2011
 
Emergent Design: History, Concepts, and Principles
Emergent Design: History, Concepts, and PrinciplesEmergent Design: History, Concepts, and Principles
Emergent Design: History, Concepts, and Principles
 
Just in-time decision making
Just in-time decision makingJust in-time decision making
Just in-time decision making
 
Colin Robb - SOA - Agile or Fragile?
Colin Robb - SOA - Agile or Fragile?Colin Robb - SOA - Agile or Fragile?
Colin Robb - SOA - Agile or Fragile?
 
Agile Embedded Software
Agile Embedded SoftwareAgile Embedded Software
Agile Embedded Software
 
Learn fast to build fast, Le Monde case study by Ismaël Hery - Lean IT Summit...
Learn fast to build fast, Le Monde case study by Ismaël Hery - Lean IT Summit...Learn fast to build fast, Le Monde case study by Ismaël Hery - Lean IT Summit...
Learn fast to build fast, Le Monde case study by Ismaël Hery - Lean IT Summit...
 
WEBINAR: Using Scrum for Hardware Development
WEBINAR: Using Scrum for Hardware DevelopmentWEBINAR: Using Scrum for Hardware Development
WEBINAR: Using Scrum for Hardware Development
 
Technical debt strategy
Technical debt strategyTechnical debt strategy
Technical debt strategy
 
Continuous Testing: Preparing for DevOps
Continuous Testing: Preparing for DevOpsContinuous Testing: Preparing for DevOps
Continuous Testing: Preparing for DevOps
 
Sww 2007 Lets Get Ready To Automate
Sww 2007   Lets Get Ready To AutomateSww 2007   Lets Get Ready To Automate
Sww 2007 Lets Get Ready To Automate
 
Odoo Implementation Methodology
Odoo Implementation MethodologyOdoo Implementation Methodology
Odoo Implementation Methodology
 
Shift Left Testing: Going Beyond Agile
Shift Left Testing: Going Beyond AgileShift Left Testing: Going Beyond Agile
Shift Left Testing: Going Beyond Agile
 
The Lean Startup fbFund Edition
The Lean Startup fbFund EditionThe Lean Startup fbFund Edition
The Lean Startup fbFund Edition
 
Round Table Lean SAP Delivery introducing the concept
Round Table Lean SAP Delivery   introducing the conceptRound Table Lean SAP Delivery   introducing the concept
Round Table Lean SAP Delivery introducing the concept
 

Similar to Driving your marketing automation with multi-armed bandits in real time

Case study presentation final
Case study presentation   finalCase study presentation   final
Case study presentation final
Jordon Rose
 
Growth Hacking for Lean Startups: How to Get, Keep and Grow Customers
Growth Hacking for Lean Startups:  How to Get, Keep and Grow CustomersGrowth Hacking for Lean Startups:  How to Get, Keep and Grow Customers
Growth Hacking for Lean Startups: How to Get, Keep and Grow Customers
Chicago Lean Startup
 
The 7 habits of data effective companies.pdf
The 7 habits of data effective companies.pdfThe 7 habits of data effective companies.pdf
The 7 habits of data effective companies.pdf
Lars Albertsson
 

Similar to Driving your marketing automation with multi-armed bandits in real time (20)

Steve Anavi - Smokio presentation Manufacturing meetup April 22, 2015
Steve Anavi - Smokio presentation Manufacturing meetup April 22, 2015Steve Anavi - Smokio presentation Manufacturing meetup April 22, 2015
Steve Anavi - Smokio presentation Manufacturing meetup April 22, 2015
 
Case study presentation final
Case study presentation   finalCase study presentation   final
Case study presentation final
 
Sequencing work for maximum economic benefit using the Scaled Agile Framework...
Sequencing work for maximum economic benefit using the Scaled Agile Framework...Sequencing work for maximum economic benefit using the Scaled Agile Framework...
Sequencing work for maximum economic benefit using the Scaled Agile Framework...
 
StAP: Smalltalk Applications Playground
StAP: Smalltalk Applications PlaygroundStAP: Smalltalk Applications Playground
StAP: Smalltalk Applications Playground
 
Blockchain for Media & Entertainment - Buzz or Real? (MAE315) - AWS re:Invent...
Blockchain for Media & Entertainment - Buzz or Real? (MAE315) - AWS re:Invent...Blockchain for Media & Entertainment - Buzz or Real? (MAE315) - AWS re:Invent...
Blockchain for Media & Entertainment - Buzz or Real? (MAE315) - AWS re:Invent...
 
The Coupa Organic Platform from A to Z: Maximizing the Value
The Coupa Organic Platform from A to Z: Maximizing the ValueThe Coupa Organic Platform from A to Z: Maximizing the Value
The Coupa Organic Platform from A to Z: Maximizing the Value
 
eMetrics Stockholm - What the F*** is wrong with my conversion?
eMetrics Stockholm - What the F*** is wrong with my conversion?eMetrics Stockholm - What the F*** is wrong with my conversion?
eMetrics Stockholm - What the F*** is wrong with my conversion?
 
Charles sonigo - Demuxed 2018 - How to be data-driven when you aren't Netflix...
Charles sonigo - Demuxed 2018 - How to be data-driven when you aren't Netflix...Charles sonigo - Demuxed 2018 - How to be data-driven when you aren't Netflix...
Charles sonigo - Demuxed 2018 - How to be data-driven when you aren't Netflix...
 
Introduciendo Wombat 2.0`
Introduciendo Wombat 2.0`Introduciendo Wombat 2.0`
Introduciendo Wombat 2.0`
 
Growth Hacking for Lean Startups: How to Get, Keep and Grow Customers
Growth Hacking for Lean Startups:  How to Get, Keep and Grow CustomersGrowth Hacking for Lean Startups:  How to Get, Keep and Grow Customers
Growth Hacking for Lean Startups: How to Get, Keep and Grow Customers
 
The 7 habits of data effective companies.pdf
The 7 habits of data effective companies.pdfThe 7 habits of data effective companies.pdf
The 7 habits of data effective companies.pdf
 
Sitecore & Microsoft Breakfast: Building a business case for transformation
Sitecore & Microsoft Breakfast: Building a business case for transformationSitecore & Microsoft Breakfast: Building a business case for transformation
Sitecore & Microsoft Breakfast: Building a business case for transformation
 
Natural born conversion killers - Conversion Jam
Natural born conversion killers - Conversion JamNatural born conversion killers - Conversion Jam
Natural born conversion killers - Conversion Jam
 
Smart Combinatorial Testing
Smart Combinatorial TestingSmart Combinatorial Testing
Smart Combinatorial Testing
 
Globalize Software Products with Zero Investment
Globalize Software Products with Zero InvestmentGlobalize Software Products with Zero Investment
Globalize Software Products with Zero Investment
 
Enabling End-to-End Mobile Customer Journey
Enabling End-to-End Mobile Customer JourneyEnabling End-to-End Mobile Customer Journey
Enabling End-to-End Mobile Customer Journey
 
JVMCON Java in the 21st Century: are you thinking far enough ahead?
JVMCON Java in the 21st Century: are you thinking far enough ahead?JVMCON Java in the 21st Century: are you thinking far enough ahead?
JVMCON Java in the 21st Century: are you thinking far enough ahead?
 
TXGX 2019_Colin_Account and Transaction Model in Klaytn
TXGX 2019_Colin_Account and Transaction Model in KlaytnTXGX 2019_Colin_Account and Transaction Model in Klaytn
TXGX 2019_Colin_Account and Transaction Model in Klaytn
 
Gojek Clone App UK
Gojek Clone App UKGojek Clone App UK
Gojek Clone App UK
 
Criteo TektosData Meetup
Criteo TektosData MeetupCriteo TektosData Meetup
Criteo TektosData Meetup
 

More from Wit Jakuczun

More from Wit Jakuczun (12)

Know your R usage workflow to handle reproducibility challenges
Know your R usage workflow to handle reproducibility challengesKnow your R usage workflow to handle reproducibility challenges
Know your R usage workflow to handle reproducibility challenges
 
Large scale machine learning projects with r suite
Large scale machine learning projects with r suiteLarge scale machine learning projects with r suite
Large scale machine learning projects with r suite
 
Managing large (and small) R based solutions with R Suite
Managing large (and small) R based solutions with R SuiteManaging large (and small) R based solutions with R Suite
Managing large (and small) R based solutions with R Suite
 
20170928 why r_r jako główna platforma do zaawansowanej analityki w enterprise
20170928 why r_r jako główna platforma do zaawansowanej analityki w enterprise20170928 why r_r jako główna platforma do zaawansowanej analityki w enterprise
20170928 why r_r jako główna platforma do zaawansowanej analityki w enterprise
 
Wit jakuczun dss_conf_2017_jak_wdrazac_r_w_enterprise
Wit jakuczun dss_conf_2017_jak_wdrazac_r_w_enterpriseWit jakuczun dss_conf_2017_jak_wdrazac_r_w_enterprise
Wit jakuczun dss_conf_2017_jak_wdrazac_r_w_enterprise
 
Case Studies in advanced analytics with R
Case Studies in advanced analytics with RCase Studies in advanced analytics with R
Case Studies in advanced analytics with R
 
Bringing the Power of LocalSolver to R: a Real-Life Case-Study
Bringing the Power of LocalSolver to R: a Real-Life Case-StudyBringing the Power of LocalSolver to R: a Real-Life Case-Study
Bringing the Power of LocalSolver to R: a Real-Life Case-Study
 
ANALYTICS WITHOUT LOSS OF GENERALITY
ANALYTICS WITHOUT LOSS OF GENERALITYANALYTICS WITHOUT LOSS OF GENERALITY
ANALYTICS WITHOUT LOSS OF GENERALITY
 
Showcase: on segmentation importance for marketing campaign in retail using R...
Showcase: on segmentation importance for marketing campaign in retail using R...Showcase: on segmentation importance for marketing campaign in retail using R...
Showcase: on segmentation importance for marketing campaign in retail using R...
 
20150521 ser protecto_r_final
20150521 ser protecto_r_final20150521 ser protecto_r_final
20150521 ser protecto_r_final
 
Rozwiązywanie problemów optymalizacyjnych (z przykładem w R)
Rozwiązywanie problemów optymalizacyjnych (z przykładem w R)Rozwiązywanie problemów optymalizacyjnych (z przykładem w R)
Rozwiązywanie problemów optymalizacyjnych (z przykładem w R)
 
R+H2O - idealny tandem do analityki predykcyjnej?
R+H2O - idealny tandem do analityki predykcyjnej?R+H2O - idealny tandem do analityki predykcyjnej?
R+H2O - idealny tandem do analityki predykcyjnej?
 

Recently uploaded

Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 

Driving your marketing automation with multi-armed bandits in real time

  • 1. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Driving your marketing automation with multi-armed bandits in real time
  • 2. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Agenda ● Dot.Com business case ● The modern A/B testing ● The architecture ● Numbers (!) ● Key takeaways
  • 3. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Dot.Com business case
  • 4. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Dot.Com is a unicorn that wants to start making a revenue from real customers not the investors.
  • 5. Copyright © WLOG Solutions & TouK They pivoted from dating portal and created a NoHotel service.
  • 6. Copyright © WLOG Solutions & TouK They pivoted from dating portal and created a NoHotel service. Uniqueness was that there was no hotel but you could still rent a room and pay with bitcoin.
  • 7. Copyright © WLOG Solutions & TouK Which type of room do you want to book? Villager Parisian Poles on vacation Book now Book now Book now only 100Ƀ day only 150Ƀ day only 50Ƀ day
  • 8. Copyright © WLOG Solutions & TouK After first year of investing rounds...
  • 9. Copyright © WLOG Solutions & TouK After first year of investing rounds... Real revenue has reached astonishing value of 0Ƀ.
  • 10. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK They needed to pump up an income before the next investment round.
  • 11. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK They needed to pump up an income before the next investment round. They had a week to do it.
  • 12. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK They hired consultants from A/B consulting company. Consultants after an audit recommended to use A/B testing to pump up the revenue.
  • 13. Copyright © WLOG Solutions & TouK http://www.dilbert.com/strips/comic/2014-03-15/
  • 14. Copyright © WLOG Solutions & TouK Which type of room do you want to book? Villager Parisian Poles on vacation Book now Book now Book now only 100Ƀ day only 150Ƀ day only 50Ƀ day Created three different types of questions: - Which type of room do you want to book? - With whom do you want to spend a night today? - What extent does the African swallow reach?
  • 15. Copyright © WLOG Solutions & TouK Which type of room do you want to book? Villager Parisian Poles on vacation Book now Book now Book now only 100Ƀ day only 150Ƀ day only 50Ƀ day Generated 3! (eng. six) versions of the page with shuffled types of rooms.
  • 16. Copyright © WLOG Solutions & TouK Which type of room do you want to book? Villager Book now Book now only 100Ƀ day only 150Ƀ day only 50Ƀ day Parisian Poles on vacation Book now Generated 3! (6) versions of the pricing boxes.
  • 17. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK In total NoHotel webpage had 108 versions (=3*6*6).
  • 18. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK They had to choose... How in a week generate max income from those versions? Which version is the most profitable (best)?
  • 19. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK The modern A/B testing
  • 20. Copyright © WLOG Solutions & TouK Classical A/B testing 1. Split stream of customers landing on a webpage onto all alternatives randomly. 2. Gather results after testing N customers for each alternative. 3. Select the best one (?) 4. Use the best one to earn money.
  • 21. Copyright © WLOG Solutions & TouK Classical A/B testing A 1 A 2 A 108 .... 100/N 115/N 110/N .... A 1 A 2 A 108 .... 100/N 115/N 110/N .... Explore in a random way. Exploit the best
  • 22. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Classical A/B testing Positive positives - easy to implement - unbiased Negative positives - technical parameters - burned time for selecting the best parameter - problem agnostic - The best is not the most profitable to exploit.
  • 23. Copyright © WLOG Solutions & TouK Modern A/B testing (bandits) - Epsilon greedy - … - and variants
  • 24. Copyright © WLOG Solutions & TouK Modern A/B testing (bandits) A 1 A 2 A 108 .... 100/N 115/N 110/N .... A 1 A 2 A 108 .... 100/N 115/N 110/N .... Explore Start with all alternatives equal and learn in an online mode. Exploit the best with some randomisation.
  • 25. Copyright © WLOG Solutions & TouK Context? (context, arms) You do not control this. (e.g. visit hour, season, ...) You do control this. (e.g. price, order, img, ...)
  • 26. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Modern A/B testing (bandits) Positive positives - easy to implement - more effective exploration Negative positives - technical parameters - burned time for selecting the best parameter - problem agnostic - The best is not the most profitable to exploit.
  • 27. Copyright © WLOG Solutions & TouK Optimal learning - a unified theory - Offline - We want to optimise probability to find the best option. - On-line - We want to optimise sum of revenues of our actions. - Some keywords - knowledge gradient, Gittins indices, Bayes, exploration-exploitation Sophisticated but a must if you perform a large number of experiments.
  • 28. Copyright © WLOG Solutions & TouK What is the secret “sauce”? time Ƀ Event Payoff Delayed payoff What to do when waiting for the payoff? Exploiting only the best is the inferior policy.
  • 29. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Architecture
  • 30. Copyright © WLOG Solutions & TouK Just code it? - Bandit algorithms are simple to code - But how to: - Understand - Tune - Control - Monitor
  • 31. Copyright © WLOG Solutions & TouK Model in R - dev and deployment DevProduction .zip Continuous integration Version control Local CRAN MRAN REST API Plumber REST API
  • 32. Copyright © WLOG Solutions & TouK Streaming with Flink - Scaling - Efficient state processing - Windows and aggregates
  • 33. Copyright © WLOG Solutions & TouK Flink - state for bandits
  • 34. Copyright © WLOG Solutions & TouK Business rules - Quick promotions - Dynamic thresholds - Expert rules - All by analysts/business? ?
  • 35. Copyright © WLOG Solutions & TouK Flink - state for bandits
  • 36. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK 36
  • 37. Copyright © WLOG Solutions & TouK Business rules with Nussknacker
  • 38. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK 80% with UI 20% with code
  • 39. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK
  • 40. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Recommendation state Stats preaggregation
  • 41. Copyright © WLOG Solutions & TouK Further scaling? What if invoking R via REST interface is not fast enough?
  • 42. Copyright © WLOG Solutions & TouK Further scaling? Multiplicate R with Kubernetes
  • 43. Copyright © WLOG Solutions & TouK Further Further scaling? Portable Format for Analytics? FastR on GraalVM?
  • 44. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Results aka numbers
  • 45. Copyright © WLOG Solutions & TouK Results ● Expected conversion ratio ○ e-greedy: 750 ○ Optimal learning: 883 ○ Improvement: 15% ● Probability to identify best alternative: ○ e-greedy: 81% ○ Optimal learning: 91% Advanced Maths added value Scenario for A/B tests ● 6 alternatives with the following conversion ratios: 5%, 6%, 7%, 8%, 9% i 10% ● Sample size: 10000 users
  • 46. Copyright © WLOG Solutions & TouK Results ● Expected conversion ratio ○ e-greedy: 750 ○ Optimal learning: 883 ○ Improvement: 15% ● Probability to identify best alternative: ○ e-greedy: 81% ○ Optimal learning: 91% Advanced Maths added value Scenario for A/B tests ● 6 alternatives with the following conversion ratios: 5%, 6%, 7%, 8%, 9% i 10% ● Sample size: 10000 users With mathematics you can make algorithm parameterless and more effective!
  • 47. Copyright © WLOG Solutions & TouK Reacting to change
  • 48. Copyright © WLOG Solutions & TouK Reacting to change Could converge even faster with drift detection or memory weighting.
  • 49. Copyright © WLOG Solutions & TouK ~20k/s on node for experiment Performance?
  • 50. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK Key takeaways
  • 51. Copyright © WLOG Solutions & TouKCopyright © WLOG Solutions & TouK ● Business parameters are good, technical are bad. ● It pays off to use mathematics for A/B testing. ● Automated deployment is crucial when you go on production. ● Flink and Nussnacker give performance and configuration capabilities. ● R Suite makes R ready for production.
  • 52. Copyright © WLOG Solutions & TouK Wit Jakuczun CEO wit.Jakuczun@wlogsolutions.com +48 601820620 http://www.wlogsolutions.com Maciek Próchniak mpr@touk.pl @mpproch http://touk.pl 52