SlideShare a Scribd company logo
Data mining for
causal inference
AMIT SHARMA
Postdoctoral Researcher, Microsoft Research
(Joint work with JAKE HOFMAN and DUNCAN
WATTS, Microsoft Research)
http://www.amitsharma.in
@amt_shrma
1
My research
Analyzing the effect of online systems
◦ Recommender systems [WWW ’13, EC ’15, CSCW ‘15]
◦ Social news feeds [CSCW ‘16]
◦ Web search
Methodological
◦ Threats to large-scale observational studies [WWW ’16b]
◦ Mining for natural experiments [EC ‘15]
◦ New identification strategies suited for fine-grained data
◦ Testing assumptions for validity of an instrumental variable
◦ Gaps between prediction and understanding [WWW ’16a, ICWSM ‘16]
2
Data mining for causal inference: Effect of recommendations on Amazon.com
How much do they
change user behavior?
4
Naively, up to 30% of traffic
comes from recommendations
5
Naively, up to 30% of traffic
comes from recommendations
“Burton Snowboard, a sports retailer, reported
that personalized product recommendations
have driven nearly 25% of total sales since it
began offering them in 2008. Prior to this,
Burton’s customer recommendations consisted
of items from its list of top-selling products.”
6
Data mining for causal inference: Effect of recommendations on Amazon.com
Example: product browsing on
Amazon.com
Example: product browsing on
Amazon.com
Example: product browsing on
Amazon.com
Counterfactual browsing: no
recommendations
Counterfactual browsing: no
recommendations
Problem: Correlated demand may
drive page visits, even without
recommendations
The problem of correlated
demand
Demand
for winter
accessories
Visits to
winter hat
Rec. visits
to winter
gloves
14
Goal: Estimate the causal
effect
Causal
Convenience
OBSERVED CLICK-THROUGHS WITHOUT RECOMMENDER
Convenience
?
15
Ideal experiment: A/B Test
Treatment (A) Control (B)
But, experiments:
may be costly
hamper user experience
require full access to the system
16
Data mining for causal inference: Effect of recommendations on Amazon.com
Using natural variations to
simulate an experiment
18
Studying sudden spikes,
“shocks” to demand for a book
[Carmi et al. 2012]
19
The same author’s recommended
book may also have a shock
20
Past work
Uses statistical models to control for confounds
Carmi et al. [2012], Oestreicher and Sundararajan [2012] and Lin [2013]
construct “complementary sets” of similar, non-recommended
products.
Garfinkel et. al. [2006] and Broder et al. [2015] compare to model-
predicted clicks without recommendations.
But,
1. These assumptions are hard to verify.
2. Finding examples of valid shocks requires ingenuity
and restricts researchers to very specific categories
21
This talk: Using data mining for
natural experiments
I. Data-driven instrumental variables
“Shock-IV” method: Mining for sudden spikes (“shocks”) in data
II. General data-driven identification strategy for
time series data
“Split-door” criterion: Generalizing the idea of shocks
Throughout, we will use Amazon’s recommendation system as an
example.
22
I. Shock-IV: Mining
for valid natural
experiments
23
Distinguishing between
recommendation and direct traffic
All visits to a
product
Recommender
visits
Direct visits
Search visits
Direct
browsing
Proxy for unobserved demand
24
The Shock-IV strategy:
Searching for valid shocks
? ?
25
The Shock-IV strategy: Filtering
out invalid shocks
26
Data mining for causal inference: Effect of recommendations on Amazon.com
Why does it work? Shock as an
instrumental variable
Demand
Focal
visits (X)
Rec.
visits (Y)
Sudden
Shock
Direct
visits (Y)
Computing the causal
estimate
Increase in
recommendation
clicks ( )
Causal CTR (
*Same as Wald estimator
for instrumental variables
Increase in
visits to focal
product ( )
Application to Amazon.com,
using Bing toolbar logs
•
•
•
Sept 2013-May 2014
Recreating sequence of page
visits by a user
Recreating sequence of page
visits by a user
Timestamp URL
2014-01-20
09:04:10
http://www.amazon.com/s/ref=nb_sb_nos
s_1?field-keywords=George%20saunders
2014-01-20
09:04:15
http://www.amazon.com/dp/0812984250/
ref=sr_1_1
2014-01-20
09:05:01
http://www.amazon.com/dp/1573225797/
ref=pd_sim_b_2
Recreating sequence of page
visits by a user
Timestamp URL
2014-01-20
09:04:10
http://www.amazon.com/s/ref=nb_sb_no
ss_1?field-keywords=George%20saunders
2014-01-20
09:04:15
http://www.amazon.com/dp/0812984250/
ref=sr_1_1
2014-01-20
09:05:01
http://www.amazon.com/dp/1573225797/
ref=pd_sim_b_2
User searches for
George Saunders
User clicks on the first
search result
User clicks on the
second recommendation
I. Weekly and seasonal patterns in
traffic, nearly tripling in holidays
II. 30% of all pageviews come
through recommendations
III. Books and eBooks are the
most popular categories by far
IV. Apparel and shoes see a
substantially higher fraction of
visits through recommendations
Shock-IV: Finding shocks in
user visit data
We look for focal products with large and sudden
increases in views relative to typical traffic.
Size of shock exceeds:
◦ 5 times median traffic
◦ Shock exceeds 5 times the previous day's traffic and 5 times the
mean of the last 7 days.
Shocked product has:
◦ Visits from at least 10 unique users during the shock
◦ Non-zero visits for at least five out of seven days before and after
the shock
38
Shock-IV: Ensuring exclusion
restriction
Recommended product (Y) should have constant
direct visits during the time of the shock.
(1-β): Ratio of maximum 14-day variation in visits to a
recommended product to the size of the shock for the focal
product.
Direct traffic to Y is
stable relative to
the shock to the
focal product.
β = 1 Direct traffic to Y is
no less varying
than the shock to
focal product.
β = 0
39
How to choose 𝛽?
Accept
RejectSelect 𝛽 = 0.7
Using the method, obtain
>4000 natural experiments!
Estimating the causal
clickthrough rate (𝜌)
Causal click-through rate by
product category
Data mining for causal inference: Effect of recommendations on Amazon.com
Estimating fraction of observed
click-throughs that are causal
Compare the number of estimated causal clicks to
all observed recommendation clicks (non-shock
period).
45
Only a quarter of the observed
click-throughs are causal
At β = 0.7, only 25% of
recommendation traffic is
caused by the recommender.
Generalization?
Shocks may be due to
discounts or sales
Lower CTR may be due to
the holiday season
47
Local average treatment effect
(LATE), not fully generalizable
Shocked products are not a representative sample of
all products, nor are the users who participate in them.
• Fortunately, Shock-IV method covers roughly one-fifth of
all products with at least 10 visits on any single day.
• Causal estimates are consistent with experimental
findings (e.g., Belluf et. al. [2012])
48
Summary: Shock-IV method
I. Mining for instruments allows us to study a much larger
sample of natural experiments.
II. Fine-grained data allowed us to test for exclusion
restriction directly.
A simple, scalable method for causal inference.
◦ Can used for improving recommender systems through causal metrics.
◦ Can be applied to other domains, such as online ads.
◦ Can be used for finding potential instruments.
49
II. Generalizing Shock-IV:
“Split-door” criterion
50
Data mining for causal inference: Effect of recommendations on Amazon.com
Let’s have a look at the model
again
Demand
Focal
visits (X)
Rec.
visits (Y)
Sudden
Shock
Direct
visits (Y)
Data mining for causal inference: Effect of recommendations on Amazon.com
Focal Product Recommended Product
Accept
Accept
54
The split-door criterion
Instead of searching for shocks,
Check whether direct traffic for Y is
independent of visits to X.
Demand
Focal
visits (X)
Rec.
visits (Y)
Direct
Visits
(YD)
55
More formal: Why does it
work?
Demand
Focal
visits (X)
Rec.
visits (Y)
Direct
Visits
(YD)
Two possibilities, both remove
the effect of common demand
Demand
Focal
visits (X)
Rec.
visits (Y)
Dir. visits
(YD)
Demand
Focal
visits (X)
Rec.
visits (Y)
Dir. visits
(YD)
Sidenote: Split-door criterion
generalizes Shock-IV
By capturing shocks, we were essentially capturing
notion of independence between X and 𝑌𝐷
Split-door will admit all valid shocks, as also other
variations.
58
Applying to logs from Amazon
recommendations
1.
2.
Data mining for causal inference: Effect of recommendations on Amazon.com
Summary: A general
identification criterion
Split-door criterion admits a broader sample of
natural experiments than shocks.
Automatically tests for valid identification. Can be
used whenever 𝑌𝑑 is separable.
Applications: Evaluate the relationship between
any two timeseries: e.g. social media and news, ads
and search.
61
Conclusion
Majority of traffic from recommendations may be
not causal, simply convenience.
Two data-driven methods:
• Shock-IV: An IV-based method for mining
exclusion-valid instruments from observational
data
• Split-door: A general identification strategy for
time series data.
62
More generally, data mining can
augment causal inference
methods
Hypothesize about a
natural variation
Argue why it resembles a
randomized experiment
Compute causal effect
Develop tests for
validity of natural
variation
Mine for such valid
variations in
observational data
Compute causal
effect
63
Thank you!
AMIT SHARMA
MICROSOFT RESEARCH
@amt_shrma http://www.amitsharma.in
Hypothesize about a
natural variation
Argue why it resembles a
randomized experiment
Compute causal effect
Develop tests for validity of
natural variation
Mine for such valid variations
in observational data
Compute causal effect
Sharma, A., Hofman, J. M., & Watts, D. J. (2015). Estimating the causal impact of
recommendation systems from observational data. In Proceedings of the Sixteenth ACM
Conference on Economics and Computation.
64

More Related Content

PPTX
Estimating the causal impact of recommender systems
PPTX
Causal data mining: Identifying causal effects at scale
PPTX
Measuring effectiveness of machine learning systems
PPTX
Causal inference in practice
PPTX
DoWhy Python library for causal inference: An End-to-End tool
PPTX
The Impact of Computing Systems | Causal inference in practice
PPTX
Predictability of popularity on online social media: Gaps between prediction ...
PPTX
Alleviating Privacy Attacks Using Causal Models
Estimating the causal impact of recommender systems
Causal data mining: Identifying causal effects at scale
Measuring effectiveness of machine learning systems
Causal inference in practice
DoWhy Python library for causal inference: An End-to-End tool
The Impact of Computing Systems | Causal inference in practice
Predictability of popularity on online social media: Gaps between prediction ...
Alleviating Privacy Attacks Using Causal Models

What's hot (20)

PDF
IRJET- Predicting Review Ratings for Product Marketing
PPTX
Hypothesis Testing: Central Tendency – Non-Normal (Compare 1:Standard)
PDF
1325 keynote kohavi
PPTX
Hypothesis Testing: Central Tendency – Non-Normal (Nonparametric Overview)
PPTX
Hypothesis Testing: Spread (Compare 2+ Factors)
PPTX
Hypothesis Testing: Overview
PPTX
Hypothesis Testing: Central Tendency – Non-Normal (Compare 2+ Factors)
PPTX
Hypothesis Testing: Proportions (Compare 1:Standard)
PPTX
Hypothesis Testing: Proportions (Compare 2+ Factors)
PPTX
Hypothesis Testing: Relationships (Overview)
PPTX
Hypothesis Testing: Finding the Right Statistical Test
PPTX
Hypothesis Testing: Relationships (Compare 1:1)
PPTX
Hypothesis Testing: Proportions (Compare 1:1)
PPT
Learn how to do a conjoint analysis project in 1 hr
PPTX
Into AB experiments
PPTX
Hypothesis Testing: Statistical Laws and Confidence Intervals
PPTX
Statistical Modeling in 3D: Describing, Explaining and Predicting
PPTX
Hypothesis Testing: Central Tendency – Non-Normal (Compare 1:1)
PDF
Building a Predictive Model
PPTX
Hypothesis Testing: Spread (Compare 1:1)
IRJET- Predicting Review Ratings for Product Marketing
Hypothesis Testing: Central Tendency – Non-Normal (Compare 1:Standard)
1325 keynote kohavi
Hypothesis Testing: Central Tendency – Non-Normal (Nonparametric Overview)
Hypothesis Testing: Spread (Compare 2+ Factors)
Hypothesis Testing: Overview
Hypothesis Testing: Central Tendency – Non-Normal (Compare 2+ Factors)
Hypothesis Testing: Proportions (Compare 1:Standard)
Hypothesis Testing: Proportions (Compare 2+ Factors)
Hypothesis Testing: Relationships (Overview)
Hypothesis Testing: Finding the Right Statistical Test
Hypothesis Testing: Relationships (Compare 1:1)
Hypothesis Testing: Proportions (Compare 1:1)
Learn how to do a conjoint analysis project in 1 hr
Into AB experiments
Hypothesis Testing: Statistical Laws and Confidence Intervals
Statistical Modeling in 3D: Describing, Explaining and Predicting
Hypothesis Testing: Central Tendency – Non-Normal (Compare 1:1)
Building a Predictive Model
Hypothesis Testing: Spread (Compare 1:1)
Ad

Viewers also liked (15)

PPTX
Causal inference in online systems: Methods, pitfalls and best practices
PPTX
From prediction to causation: Causal inference in online systems
PPTX
Causal inference in data science
PPTX
Estimating influence of online activity feeds on people's actions
PPTX
基于Storm分布式流计算的实时路况系统
PPTX
Fernando
PPTX
Causal inference in practice: Here, there, causality is everywhere
PDF
RSWEB 2013: A research platform for social recommendation
DOCX
Identidad y cultura nacional
PDF
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
PPTX
Auditing search engines for differential satisfaction across demographics
PDF
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
PPTX
5.3.5 causal inference in research
 
PDF
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
PDF
20170227 파이썬으로 챗봇_만들기
Causal inference in online systems: Methods, pitfalls and best practices
From prediction to causation: Causal inference in online systems
Causal inference in data science
Estimating influence of online activity feeds on people's actions
基于Storm分布式流计算的实时路况系统
Fernando
Causal inference in practice: Here, there, causality is everywhere
RSWEB 2013: A research platform for social recommendation
Identidad y cultura nacional
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
Auditing search engines for differential satisfaction across demographics
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
5.3.5 causal inference in research
 
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
20170227 파이썬으로 챗봇_만들기
Ad

Similar to Data mining for causal inference: Effect of recommendations on Amazon.com (20)

PDF
Is Crowd Testing (relevant) for Software Engineers?
PDF
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
PDF
How to predict the future of shopping - Ulrich Kerzel @ PAPIs Connect
KEY
Lean Startup Metrics & Analytics
PDF
Competitive Intelligence Analysis
PPTX
Where Flow Charts Don’t Go -- Website Security Statistics Report (2015)
PDF
In a World of Biased Search Engines
PPTX
230286802015PPT.pptx
PDF
Conversion Whitepaper
PDF
Avcomparatives Survey 2011
PDF
Implementing Crowdsourced Testing
PDF
IAB Rising Stars Study - January 30th 2015 - Topline Report
PDF
When in doubt, go live
PDF
Digital analytics: Optimization (Lecture 10)
PPS
eyeDemand "Demystifying RTB: Keys to a Successful Campaign"
PDF
CrikeyCon 2017 - Rumours of our Demise Have Been Greatly Exaggerated
PPTX
7 Bug Bounty Myths, BUSTED
PPTX
Big-O(Q) VLDB 2015 Keynote: Social Network Analytics: Beyond the Obvious
PPTX
Big-O(Q) Social Network Analytics
PPTX
The Conversion Optimization System: A 12-step Process to Create Repeatable, S...
Is Crowd Testing (relevant) for Software Engineers?
XPLODIV: An Exploitation-Exploration Aware Diversification Approach for Recom...
How to predict the future of shopping - Ulrich Kerzel @ PAPIs Connect
Lean Startup Metrics & Analytics
Competitive Intelligence Analysis
Where Flow Charts Don’t Go -- Website Security Statistics Report (2015)
In a World of Biased Search Engines
230286802015PPT.pptx
Conversion Whitepaper
Avcomparatives Survey 2011
Implementing Crowdsourced Testing
IAB Rising Stars Study - January 30th 2015 - Topline Report
When in doubt, go live
Digital analytics: Optimization (Lecture 10)
eyeDemand "Demystifying RTB: Keys to a Successful Campaign"
CrikeyCon 2017 - Rumours of our Demise Have Been Greatly Exaggerated
7 Bug Bounty Myths, BUSTED
Big-O(Q) VLDB 2015 Keynote: Social Network Analytics: Beyond the Obvious
Big-O(Q) Social Network Analytics
The Conversion Optimization System: A 12-step Process to Create Repeatable, S...

More from Amit Sharma (6)

PPTX
Dowhy: An end-to-end library for causal inference
PPTX
Artificial Intelligence for Societal Impact
PPTX
Equivalence causal frameworks: SEMs, Graphical models and Potential Outcomes
PPTX
The interplay of personal preference and social influence in sharing networks...
PDF
The role of social connections in shaping our preferences
PDF
[RecSys '13]Pairwise Learning: Experiments with Community Recommendation on L...
Dowhy: An end-to-end library for causal inference
Artificial Intelligence for Societal Impact
Equivalence causal frameworks: SEMs, Graphical models and Potential Outcomes
The interplay of personal preference and social influence in sharing networks...
The role of social connections in shaping our preferences
[RecSys '13]Pairwise Learning: Experiments with Community Recommendation on L...

Recently uploaded (20)

PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
Computer network topology notes for revision
PDF
Introduction to Data Science and Data Analysis
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
Database Infoormation System (DBIS).pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PDF
Mega Projects Data Mega Projects Data
PDF
Introduction to the R Programming Language
PDF
[EN] Industrial Machine Downtime Prediction
Galatica Smart Energy Infrastructure Startup Pitch Deck
Computer network topology notes for revision
Introduction to Data Science and Data Analysis
ISS -ESG Data flows What is ESG and HowHow
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Introduction to Knowledge Engineering Part 1
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Database Infoormation System (DBIS).pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
IBA_Chapter_11_Slides_Final_Accessible.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Business Ppt On Nestle.pptx huunnnhhgfvu
1_Introduction to advance data techniques.pptx
Qualitative Qantitative and Mixed Methods.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Introduction-to-Cloud-ComputingFinal.pptx
Mega Projects Data Mega Projects Data
Introduction to the R Programming Language
[EN] Industrial Machine Downtime Prediction

Data mining for causal inference: Effect of recommendations on Amazon.com

  • 1. Data mining for causal inference AMIT SHARMA Postdoctoral Researcher, Microsoft Research (Joint work with JAKE HOFMAN and DUNCAN WATTS, Microsoft Research) http://www.amitsharma.in @amt_shrma 1
  • 2. My research Analyzing the effect of online systems ◦ Recommender systems [WWW ’13, EC ’15, CSCW ‘15] ◦ Social news feeds [CSCW ‘16] ◦ Web search Methodological ◦ Threats to large-scale observational studies [WWW ’16b] ◦ Mining for natural experiments [EC ‘15] ◦ New identification strategies suited for fine-grained data ◦ Testing assumptions for validity of an instrumental variable ◦ Gaps between prediction and understanding [WWW ’16a, ICWSM ‘16] 2
  • 4. How much do they change user behavior? 4
  • 5. Naively, up to 30% of traffic comes from recommendations 5
  • 6. Naively, up to 30% of traffic comes from recommendations “Burton Snowboard, a sports retailer, reported that personalized product recommendations have driven nearly 25% of total sales since it began offering them in 2008. Prior to this, Burton’s customer recommendations consisted of items from its list of top-selling products.” 6
  • 10. Example: product browsing on Amazon.com
  • 13. Problem: Correlated demand may drive page visits, even without recommendations
  • 14. The problem of correlated demand Demand for winter accessories Visits to winter hat Rec. visits to winter gloves 14
  • 15. Goal: Estimate the causal effect Causal Convenience OBSERVED CLICK-THROUGHS WITHOUT RECOMMENDER Convenience ? 15
  • 16. Ideal experiment: A/B Test Treatment (A) Control (B) But, experiments: may be costly hamper user experience require full access to the system 16
  • 18. Using natural variations to simulate an experiment 18
  • 19. Studying sudden spikes, “shocks” to demand for a book [Carmi et al. 2012] 19
  • 20. The same author’s recommended book may also have a shock 20
  • 21. Past work Uses statistical models to control for confounds Carmi et al. [2012], Oestreicher and Sundararajan [2012] and Lin [2013] construct “complementary sets” of similar, non-recommended products. Garfinkel et. al. [2006] and Broder et al. [2015] compare to model- predicted clicks without recommendations. But, 1. These assumptions are hard to verify. 2. Finding examples of valid shocks requires ingenuity and restricts researchers to very specific categories 21
  • 22. This talk: Using data mining for natural experiments I. Data-driven instrumental variables “Shock-IV” method: Mining for sudden spikes (“shocks”) in data II. General data-driven identification strategy for time series data “Split-door” criterion: Generalizing the idea of shocks Throughout, we will use Amazon’s recommendation system as an example. 22
  • 23. I. Shock-IV: Mining for valid natural experiments 23
  • 24. Distinguishing between recommendation and direct traffic All visits to a product Recommender visits Direct visits Search visits Direct browsing Proxy for unobserved demand 24
  • 25. The Shock-IV strategy: Searching for valid shocks ? ? 25
  • 26. The Shock-IV strategy: Filtering out invalid shocks 26
  • 28. Why does it work? Shock as an instrumental variable Demand Focal visits (X) Rec. visits (Y) Sudden Shock Direct visits (Y)
  • 29. Computing the causal estimate Increase in recommendation clicks ( ) Causal CTR ( *Same as Wald estimator for instrumental variables Increase in visits to focal product ( )
  • 30. Application to Amazon.com, using Bing toolbar logs • • • Sept 2013-May 2014
  • 31. Recreating sequence of page visits by a user
  • 32. Recreating sequence of page visits by a user Timestamp URL 2014-01-20 09:04:10 http://www.amazon.com/s/ref=nb_sb_nos s_1?field-keywords=George%20saunders 2014-01-20 09:04:15 http://www.amazon.com/dp/0812984250/ ref=sr_1_1 2014-01-20 09:05:01 http://www.amazon.com/dp/1573225797/ ref=pd_sim_b_2
  • 33. Recreating sequence of page visits by a user Timestamp URL 2014-01-20 09:04:10 http://www.amazon.com/s/ref=nb_sb_no ss_1?field-keywords=George%20saunders 2014-01-20 09:04:15 http://www.amazon.com/dp/0812984250/ ref=sr_1_1 2014-01-20 09:05:01 http://www.amazon.com/dp/1573225797/ ref=pd_sim_b_2 User searches for George Saunders User clicks on the first search result User clicks on the second recommendation
  • 34. I. Weekly and seasonal patterns in traffic, nearly tripling in holidays
  • 35. II. 30% of all pageviews come through recommendations
  • 36. III. Books and eBooks are the most popular categories by far
  • 37. IV. Apparel and shoes see a substantially higher fraction of visits through recommendations
  • 38. Shock-IV: Finding shocks in user visit data We look for focal products with large and sudden increases in views relative to typical traffic. Size of shock exceeds: ◦ 5 times median traffic ◦ Shock exceeds 5 times the previous day's traffic and 5 times the mean of the last 7 days. Shocked product has: ◦ Visits from at least 10 unique users during the shock ◦ Non-zero visits for at least five out of seven days before and after the shock 38
  • 39. Shock-IV: Ensuring exclusion restriction Recommended product (Y) should have constant direct visits during the time of the shock. (1-β): Ratio of maximum 14-day variation in visits to a recommended product to the size of the shock for the focal product. Direct traffic to Y is stable relative to the shock to the focal product. β = 1 Direct traffic to Y is no less varying than the shock to focal product. β = 0 39
  • 40. How to choose 𝛽? Accept RejectSelect 𝛽 = 0.7
  • 41. Using the method, obtain >4000 natural experiments!
  • 43. Causal click-through rate by product category
  • 45. Estimating fraction of observed click-throughs that are causal Compare the number of estimated causal clicks to all observed recommendation clicks (non-shock period). 45
  • 46. Only a quarter of the observed click-throughs are causal At β = 0.7, only 25% of recommendation traffic is caused by the recommender.
  • 47. Generalization? Shocks may be due to discounts or sales Lower CTR may be due to the holiday season 47
  • 48. Local average treatment effect (LATE), not fully generalizable Shocked products are not a representative sample of all products, nor are the users who participate in them. • Fortunately, Shock-IV method covers roughly one-fifth of all products with at least 10 visits on any single day. • Causal estimates are consistent with experimental findings (e.g., Belluf et. al. [2012]) 48
  • 49. Summary: Shock-IV method I. Mining for instruments allows us to study a much larger sample of natural experiments. II. Fine-grained data allowed us to test for exclusion restriction directly. A simple, scalable method for causal inference. ◦ Can used for improving recommender systems through causal metrics. ◦ Can be applied to other domains, such as online ads. ◦ Can be used for finding potential instruments. 49
  • 52. Let’s have a look at the model again Demand Focal visits (X) Rec. visits (Y) Sudden Shock Direct visits (Y)
  • 54. Focal Product Recommended Product Accept Accept 54
  • 55. The split-door criterion Instead of searching for shocks, Check whether direct traffic for Y is independent of visits to X. Demand Focal visits (X) Rec. visits (Y) Direct Visits (YD) 55
  • 56. More formal: Why does it work? Demand Focal visits (X) Rec. visits (Y) Direct Visits (YD)
  • 57. Two possibilities, both remove the effect of common demand Demand Focal visits (X) Rec. visits (Y) Dir. visits (YD) Demand Focal visits (X) Rec. visits (Y) Dir. visits (YD)
  • 58. Sidenote: Split-door criterion generalizes Shock-IV By capturing shocks, we were essentially capturing notion of independence between X and 𝑌𝐷 Split-door will admit all valid shocks, as also other variations. 58
  • 59. Applying to logs from Amazon recommendations 1. 2.
  • 61. Summary: A general identification criterion Split-door criterion admits a broader sample of natural experiments than shocks. Automatically tests for valid identification. Can be used whenever 𝑌𝑑 is separable. Applications: Evaluate the relationship between any two timeseries: e.g. social media and news, ads and search. 61
  • 62. Conclusion Majority of traffic from recommendations may be not causal, simply convenience. Two data-driven methods: • Shock-IV: An IV-based method for mining exclusion-valid instruments from observational data • Split-door: A general identification strategy for time series data. 62
  • 63. More generally, data mining can augment causal inference methods Hypothesize about a natural variation Argue why it resembles a randomized experiment Compute causal effect Develop tests for validity of natural variation Mine for such valid variations in observational data Compute causal effect 63
  • 64. Thank you! AMIT SHARMA MICROSOFT RESEARCH @amt_shrma http://www.amitsharma.in Hypothesize about a natural variation Argue why it resembles a randomized experiment Compute causal effect Develop tests for validity of natural variation Mine for such valid variations in observational data Compute causal effect Sharma, A., Hofman, J. M., & Watts, D. J. (2015). Estimating the causal impact of recommendation systems from observational data. In Proceedings of the Sixteenth ACM Conference on Economics and Computation. 64