SlideShare a Scribd company logo
1 of 23
Download to read offline
2019
2019
EARL London | 10-12 September, 2019
“Hard Talks”: Talking Bayes to Business
A marketing spend use-case
Yizhar (Izzy) Toren
2019
About me
! Adopted R at 2003 & introduced it to my university
! Bayesian by belief - Frequentist by practice
! I call myself a “Data Scientist” because I know math, stats & just
enough programming to be dangerous
! Currently focused on forecasting & causality (for elasticity,
optimisation, etc.) and NLP for recommendations & search
Find me on @BigEndianB  Linkedin  github.com/ytoren
2019
Agenda
! Motivation: Is my ad campaign working?
! Why Bayes?
! Use Case: Measuring impact without a test
○ Toolkits: CausalImpact
○ A workflow example
2019
Meet Nadia
Nadia is a marketing director.
Nadia is smart.
She wants to know if a new video ad campaign will
be effective.
She talks to you about impact, tracking & KPIs before
planning the campaign.
BE LIKE NADIA
🙋
2019
💁
Meet Nadia
Nadia is a marketing director.
Nadia is smart responsible.
She wants to know if a new video ad campaign will
be effective.
She talks to you about impact, tracking & KPIs before
planning releasing the campaign.
BE LIKE NADIA, but be better next time
2019
Meet Nadia
Nadia is a marketing director.
Nadia is smart responsible.
She wants to know if a new video ad campaign will
be effective.
She talks to you about impact, tracking & KPIs before
planning after releasing the campaign.
BE LIKE NADIA, but be better next time
🙎
2019
In a perfect the real world
! We have a model of population & causality

(e.g. more ads ➡ more signups)
! We have well defined KPIs (daily signups) and
understanding of effect size
! Sufficient volume for significance & power
! Sufficient velocity for timely answer
! Good randomisation & user tracking infra for
A/B tests
💁

harder than 

you’d think

2019
Is it working?
Good news! We pass
the IOTT (Intra-Ocular
Trauma Test)
Test group
after
before
95% CI: [102.2,130.9]

P-value < 2e-15
2019
Is it still working?
Life is noisy and complicated ➡ Let’s test!
- Nadia: “Can we say the ad campaign worked?”
- You: “Well… we saw X% increase daily visits, with p < 0.005”
- Nadia: “So… 99.5% its working?”
- You: “ , also not necessarily”
And without a testing? 😳
Test group
2019
So Why Bayes?
! Get the answers you want (p-values = hard talk)
! A healthy conversation with stakeholders (priors)
! Problems first not solutions backwards
! Sometimes you just can’t test
! Because you have nifty tools in *
* And some of them only in R, so you now have a great excuse to introduce R into your org toolset!
2019
Use Case
! On 09/12 we implemented a new ad-spend policy on a
content website (“ThyPipe”), where we can’t run tests
! Nadia asks: “Is the new policy better than the old one?”
! Translation: what would have happened if we did not
change anything? (a.k.a “The Counterfactual”)
2019
Data
! User signups from different sources (ours is source1)
! Queries from a search engine (rhymes with “Doodle”)
! Calendar: Holidays, seasonality, feature releases, etc.
2019
Possible Approaches
! A/B testing
! Compare “Before” / “After” ❌
! Difference in differences 🔎🦄
! Multivariate regression + 🔎📦

time series + GLM + …
! Bayesian Time Series ✔

We “got lucky”: CausalImpact 🎯
2019
CausalImpact
Step 1: Fit the best model you can
on “before” data (out-of-the box or
customized via BSTS)
Step 2: Compare actual “after” data
to the model simulation of the
same period: This is the effect!
“We see 4% increase but it’s probably
noise: 45% chance we’re below the min
3% uplift required”
Before After
2019
Workflow example
Model
(BSTS)
Simulations
Actual
DB signals
(historical data, regressors)
Calendar
Git signals
Manual Signals
CausalImpact
Work inProgress!
2019
Summary
! A/B testing is great, when testing is feasible and the
answers are meaningful
! If you can’t test - simulate!
! Think problem first, not solution backwards
! Priors are an opportunity to engage with stakeholders
! Use powerful tools, but with care 🕸
! More details on github.com/ytoren/presentation-bsts
2019
Questions?
2019
Thank you!
We’re Hiring!

Find me on @BigEndianB  Linkedin  github.com/ytoren
2019
Appendix
2019
The answers you want
P(“it works”) P(data|“it works”)

P(data)
P(“it works”|data) =
The answer
Nadia wants
Prior Likelihood
Might be Hard
to Compute
p-value = P(data|”it’s not working”)
You are already having a “hard talk”...
2019
Priors: The “Hard Talk”
• Choice of priors: subjective 🙀, but there are guidelines
• New discussions with stakeholders:
• Internally: “if you had to guess”, surveys, games, ...
• Externally: industry benchmarks
• Some obvious defaults (mean=0, “natural” limits, ...)
• Defaults from your tools (when in doubt - )
Your new job: Translate business insights into a distribution
2019
Time to

Solve
Problem

Scope







Time to

Solve
Problem

Scope
Thinking & Framing






Tools

Scope








Tool

Scope
Frequentist: “Solution Backwards” Bayesian: “Problem First”
! Frequentist: phrase the problem to fit the tools
! Bayes: find a model that fits the problem (but in a finite time…)
Solutions
Solutions
2019
Some More Toolkits
! Stan
○ Fully flexible & powerful
○ New syntax
○ Cross platform
○ Multiple R wrappers (BRMS, stanARM, …)
! Prophet:
○ Stan wrapper
○ R & python bindings
○ (log) additive Gaussian only
○ Time series trend oriented
! BSTS:
○ R library (with R syntax)
○ (log) additive Gaussian / Poisson(sometimes)
○ Regression/causality oriented
○ CausalImpact is a wrapper
Easy Hard
Flexible
Specific
BSTS

More Related Content

Similar to Measuring the Impact of a Video Ad Campaign Using Bayesian Time Series Analysis

Building new products sundar rajan - framing (part 2)
Building new products   sundar rajan - framing (part 2)Building new products   sundar rajan - framing (part 2)
Building new products sundar rajan - framing (part 2)Sundar Rajan
 
Love your design problems. Not your solutions.
Love your design problems. Not your solutions. Love your design problems. Not your solutions.
Love your design problems. Not your solutions. David J. Neff
 
Building new products - sundar rajan - discovery process (part 3)
Building new products  - sundar rajan - discovery process (part 3)Building new products  - sundar rajan - discovery process (part 3)
Building new products - sundar rajan - discovery process (part 3)Sundar Rajan
 
TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...
TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...
TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...Trivadis
 
Tie marketing to revenue with Bizible by Marketo
Tie marketing to revenue with Bizible by MarketoTie marketing to revenue with Bizible by Marketo
Tie marketing to revenue with Bizible by MarketoMarketo
 
Product management for data science - Product Tank Meetup
Product management for data science - Product Tank MeetupProduct management for data science - Product Tank Meetup
Product management for data science - Product Tank MeetupJulia Kastner
 
Growth Hacking Conference '17 - Antwerp
Growth Hacking Conference '17 - AntwerpGrowth Hacking Conference '17 - Antwerp
Growth Hacking Conference '17 - AntwerpThibault Imbert
 
Unleash your inner Public Relations geek
Unleash your inner Public Relations geekUnleash your inner Public Relations geek
Unleash your inner Public Relations geekPrezly
 
How to get buy-in for your people analytics from the boardroom and beyond.
How to get buy-in for your people analytics from the boardroom and beyond.How to get buy-in for your people analytics from the boardroom and beyond.
How to get buy-in for your people analytics from the boardroom and beyond.The Happiness Index
 
Top 25 Big Data Interview Questions and Answers
Top 25 Big Data Interview Questions and Answers Top 25 Big Data Interview Questions and Answers
Top 25 Big Data Interview Questions and Answers Whizlabs
 
KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...
KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...
KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...Annabel Hodges
 
Roundtable session 2 Takeaways
Roundtable session 2 TakeawaysRoundtable session 2 Takeaways
Roundtable session 2 TakeawaysMartha Herdendorf
 
Foursis E- corner - 19th Edition - 7th January,2018
Foursis   E- corner - 19th Edition - 7th January,2018Foursis   E- corner - 19th Edition - 7th January,2018
Foursis E- corner - 19th Edition - 7th January,2018Foursis Technical Solutions
 
UX Metrics for Enterprise
UX Metrics for EnterpriseUX Metrics for Enterprise
UX Metrics for EnterpriseNoemie PRIN
 
Pivotal Tech Talk - Using data to inform product decisions (22.10.14)
Pivotal Tech Talk - Using data to inform product decisions (22.10.14)Pivotal Tech Talk - Using data to inform product decisions (22.10.14)
Pivotal Tech Talk - Using data to inform product decisions (22.10.14)Marc Abraham
 
Real-life Data Visualization - guest lecture for McGill INSY-442
Real-life Data Visualization - guest lecture for McGill INSY-442Real-life Data Visualization - guest lecture for McGill INSY-442
Real-life Data Visualization - guest lecture for McGill INSY-442Mike Deutsch
 
Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...
Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...
Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...Aggregage
 
Quiz by parkhouse (1)
Quiz by parkhouse (1)Quiz by parkhouse (1)
Quiz by parkhouse (1)KatieFox28
 

Similar to Measuring the Impact of a Video Ad Campaign Using Bayesian Time Series Analysis (20)

Building new products sundar rajan - framing (part 2)
Building new products   sundar rajan - framing (part 2)Building new products   sundar rajan - framing (part 2)
Building new products sundar rajan - framing (part 2)
 
Love your design problems. Not your solutions.
Love your design problems. Not your solutions. Love your design problems. Not your solutions.
Love your design problems. Not your solutions.
 
Building new products - sundar rajan - discovery process (part 3)
Building new products  - sundar rajan - discovery process (part 3)Building new products  - sundar rajan - discovery process (part 3)
Building new products - sundar rajan - discovery process (part 3)
 
TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...
TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...
TechEvent 2019: Intelligent use of data - Why, how, what; Adrian Hummel - Tri...
 
Tie marketing to revenue with Bizible by Marketo
Tie marketing to revenue with Bizible by MarketoTie marketing to revenue with Bizible by Marketo
Tie marketing to revenue with Bizible by Marketo
 
Data Driven Design
Data Driven Design  Data Driven Design
Data Driven Design
 
Product management for data science - Product Tank Meetup
Product management for data science - Product Tank MeetupProduct management for data science - Product Tank Meetup
Product management for data science - Product Tank Meetup
 
Growth Hacking Conference '17 - Antwerp
Growth Hacking Conference '17 - AntwerpGrowth Hacking Conference '17 - Antwerp
Growth Hacking Conference '17 - Antwerp
 
Unleash your inner Public Relations geek
Unleash your inner Public Relations geekUnleash your inner Public Relations geek
Unleash your inner Public Relations geek
 
How to get buy-in for your people analytics from the boardroom and beyond.
How to get buy-in for your people analytics from the boardroom and beyond.How to get buy-in for your people analytics from the boardroom and beyond.
How to get buy-in for your people analytics from the boardroom and beyond.
 
Top 25 Big Data Interview Questions and Answers
Top 25 Big Data Interview Questions and Answers Top 25 Big Data Interview Questions and Answers
Top 25 Big Data Interview Questions and Answers
 
KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...
KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...
KPI’s, Data, Reporting and Communication. Stop Pandering to Clients, Start Ma...
 
Silver Brook Newsletter - February
Silver Brook Newsletter - February Silver Brook Newsletter - February
Silver Brook Newsletter - February
 
Roundtable session 2 Takeaways
Roundtable session 2 TakeawaysRoundtable session 2 Takeaways
Roundtable session 2 Takeaways
 
Foursis E- corner - 19th Edition - 7th January,2018
Foursis   E- corner - 19th Edition - 7th January,2018Foursis   E- corner - 19th Edition - 7th January,2018
Foursis E- corner - 19th Edition - 7th January,2018
 
UX Metrics for Enterprise
UX Metrics for EnterpriseUX Metrics for Enterprise
UX Metrics for Enterprise
 
Pivotal Tech Talk - Using data to inform product decisions (22.10.14)
Pivotal Tech Talk - Using data to inform product decisions (22.10.14)Pivotal Tech Talk - Using data to inform product decisions (22.10.14)
Pivotal Tech Talk - Using data to inform product decisions (22.10.14)
 
Real-life Data Visualization - guest lecture for McGill INSY-442
Real-life Data Visualization - guest lecture for McGill INSY-442Real-life Data Visualization - guest lecture for McGill INSY-442
Real-life Data Visualization - guest lecture for McGill INSY-442
 
Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...
Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...
Talent Lifecycle Management: Using AI to Enhance the Candidate and Employee E...
 
Quiz by parkhouse (1)
Quiz by parkhouse (1)Quiz by parkhouse (1)
Quiz by parkhouse (1)
 

Recently uploaded

Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
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.pdfMarinCaroMartnezBerg
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
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
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 

Measuring the Impact of a Video Ad Campaign Using Bayesian Time Series Analysis

  • 1. 2019 2019 EARL London | 10-12 September, 2019 “Hard Talks”: Talking Bayes to Business A marketing spend use-case Yizhar (Izzy) Toren
  • 2. 2019 About me ! Adopted R at 2003 & introduced it to my university ! Bayesian by belief - Frequentist by practice ! I call myself a “Data Scientist” because I know math, stats & just enough programming to be dangerous ! Currently focused on forecasting & causality (for elasticity, optimisation, etc.) and NLP for recommendations & search Find me on @BigEndianB Linkedin github.com/ytoren
  • 3. 2019 Agenda ! Motivation: Is my ad campaign working? ! Why Bayes? ! Use Case: Measuring impact without a test ○ Toolkits: CausalImpact ○ A workflow example
  • 4. 2019 Meet Nadia Nadia is a marketing director. Nadia is smart. She wants to know if a new video ad campaign will be effective. She talks to you about impact, tracking & KPIs before planning the campaign. BE LIKE NADIA 🙋
  • 5. 2019 💁 Meet Nadia Nadia is a marketing director. Nadia is smart responsible. She wants to know if a new video ad campaign will be effective. She talks to you about impact, tracking & KPIs before planning releasing the campaign. BE LIKE NADIA, but be better next time
  • 6. 2019 Meet Nadia Nadia is a marketing director. Nadia is smart responsible. She wants to know if a new video ad campaign will be effective. She talks to you about impact, tracking & KPIs before planning after releasing the campaign. BE LIKE NADIA, but be better next time 🙎
  • 7. 2019 In a perfect the real world ! We have a model of population & causality
 (e.g. more ads ➡ more signups) ! We have well defined KPIs (daily signups) and understanding of effect size ! Sufficient volume for significance & power ! Sufficient velocity for timely answer ! Good randomisation & user tracking infra for A/B tests 💁
 harder than 
 you’d think

  • 8. 2019 Is it working? Good news! We pass the IOTT (Intra-Ocular Trauma Test) Test group after before 95% CI: [102.2,130.9]
 P-value < 2e-15
  • 9. 2019 Is it still working? Life is noisy and complicated ➡ Let’s test! - Nadia: “Can we say the ad campaign worked?” - You: “Well… we saw X% increase daily visits, with p < 0.005” - Nadia: “So… 99.5% its working?” - You: “ , also not necessarily” And without a testing? 😳 Test group
  • 10. 2019 So Why Bayes? ! Get the answers you want (p-values = hard talk) ! A healthy conversation with stakeholders (priors) ! Problems first not solutions backwards ! Sometimes you just can’t test ! Because you have nifty tools in * * And some of them only in R, so you now have a great excuse to introduce R into your org toolset!
  • 11. 2019 Use Case ! On 09/12 we implemented a new ad-spend policy on a content website (“ThyPipe”), where we can’t run tests ! Nadia asks: “Is the new policy better than the old one?” ! Translation: what would have happened if we did not change anything? (a.k.a “The Counterfactual”)
  • 12. 2019 Data ! User signups from different sources (ours is source1) ! Queries from a search engine (rhymes with “Doodle”) ! Calendar: Holidays, seasonality, feature releases, etc.
  • 13. 2019 Possible Approaches ! A/B testing ! Compare “Before” / “After” ❌ ! Difference in differences 🔎🦄 ! Multivariate regression + 🔎📦
 time series + GLM + … ! Bayesian Time Series ✔
 We “got lucky”: CausalImpact 🎯
  • 14. 2019 CausalImpact Step 1: Fit the best model you can on “before” data (out-of-the box or customized via BSTS) Step 2: Compare actual “after” data to the model simulation of the same period: This is the effect! “We see 4% increase but it’s probably noise: 45% chance we’re below the min 3% uplift required” Before After
  • 15. 2019 Workflow example Model (BSTS) Simulations Actual DB signals (historical data, regressors) Calendar Git signals Manual Signals CausalImpact Work inProgress!
  • 16. 2019 Summary ! A/B testing is great, when testing is feasible and the answers are meaningful ! If you can’t test - simulate! ! Think problem first, not solution backwards ! Priors are an opportunity to engage with stakeholders ! Use powerful tools, but with care 🕸 ! More details on github.com/ytoren/presentation-bsts
  • 18. 2019 Thank you! We’re Hiring!
 Find me on @BigEndianB Linkedin github.com/ytoren
  • 20. 2019 The answers you want P(“it works”) P(data|“it works”)
 P(data) P(“it works”|data) = The answer Nadia wants Prior Likelihood Might be Hard to Compute p-value = P(data|”it’s not working”) You are already having a “hard talk”...
  • 21. 2019 Priors: The “Hard Talk” • Choice of priors: subjective 🙀, but there are guidelines • New discussions with stakeholders: • Internally: “if you had to guess”, surveys, games, ... • Externally: industry benchmarks • Some obvious defaults (mean=0, “natural” limits, ...) • Defaults from your tools (when in doubt - ) Your new job: Translate business insights into a distribution
  • 22. 2019 Time to
 Solve Problem
 Scope
 
 
 
 Time to
 Solve Problem
 Scope Thinking & Framing 
 
 
 Tools
 Scope 
 
 
 
 Tool
 Scope Frequentist: “Solution Backwards” Bayesian: “Problem First” ! Frequentist: phrase the problem to fit the tools ! Bayes: find a model that fits the problem (but in a finite time…) Solutions Solutions
  • 23. 2019 Some More Toolkits ! Stan ○ Fully flexible & powerful ○ New syntax ○ Cross platform ○ Multiple R wrappers (BRMS, stanARM, …) ! Prophet: ○ Stan wrapper ○ R & python bindings ○ (log) additive Gaussian only ○ Time series trend oriented ! BSTS: ○ R library (with R syntax) ○ (log) additive Gaussian / Poisson(sometimes) ○ Regression/causality oriented ○ CausalImpact is a wrapper Easy Hard Flexible Specific BSTS