57
1 Claudia Perlich Chief Scientist @claudia_perlich Predictability and other Predicament

Claudia Perlich, Chief Scientist, Dstillery

  • Upload
    mlconf

  • View
    151

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Claudia Perlich, Chief Scientist, Dstillery

1

Claudia Perlich Chief Scientist

@claudia_perlich

PredictabilityandotherPredicament

Page 2: Claudia Perlich, Chief Scientist, Dstillery

2

Certainty Vortex ©2013FosterProvost

“Models tend to go where the signal is”

Page 3: Claudia Perlich, Chief Scientist, Dstillery

3

How ‘predictable’ is a predictive modeling task? (given the data)

Random Deterministic

Sexual Orientation

Pizza for Dinner?

Page 4: Claudia Perlich, Chief Scientist, Dstillery

44

For now let’s try to predict who is male …

Page 5: Claudia Perlich, Chief Scientist, Dstillery

55

Predicting Probability (Male) in Facebook

Data: Facebook public dataset with 200K anonymized users, their demographics and their likes

Methodology: Logistic regression on sparse representation

00000d41ed774823fca142945ec915c0,1,,,,,,,,,,,en_GB,,00000dee02d70cf8c0d79f96b6d1c59d,0,,,,,,,,,,,en_US,,00000f232abfe25a80156fe069395460,0,1992,20,2,2,,,,,,,,19,-500000f4ba0cff946b1c0e3b051287ede,0,1993,19,2,,,,,,,,en_US,310,80000130571654e3afaa62f4e9d2e4f63,0,,,2,2,,,,,,,en_US,193,700001544469ae9b408869a463a1dd77a,1,1984,28,2,,,,,,,,en_US,,-4

00001544469ae9b408869a463a1dd77a 10019844338091700001544469ae9b408869a463a1dd77a 10024861369500001544469ae9b408869a463a1dd77a 1005072626700001544469ae9b408869a463a1dd77a 10102124840900001544469ae9b408869a463a1dd77a 10105423660244600001544469ae9b408869a463a1dd77a 10142533323255100001544469ae9b408869a463a1dd77a 1014819946600001544469ae9b408869a463a1dd77a 1015015409543555300001544469ae9b408869a463a1dd77a 1016153966700001544469ae9b408869a463a1dd77a 10184459310800001544469ae9b408869a463a1dd77a 10193607984539200001544469ae9b408869a463a1dd77a 10198730181600001544469ae9b408869a463a1dd77a 10203856701800001544469ae9b408869a463a1dd77a 10204002323088400001544469ae9b408869a463a1dd77a 1021259526300001544469ae9b408869a463a1dd77a 10216821982441200001544469ae9b408869a463a1dd77a 1022548733

40% Men

Page 6: Claudia Perlich, Chief Scientist, Dstillery

66

Take 1: Predict Gender Based on age …

Page 7: Claudia Perlich, Chief Scientist, Dstillery

77

Gender based on age: very little signal …

Overall Accuracy: 60% AUC: 58%

p(male|age)

Page 8: Claudia Perlich, Chief Scientist, Dstillery

88

Gender based on age: very little signal …

Overall Accuracy: 60% AUC: 58%

Target the 1% with highest probability: Accuracy: 75%

p(male|age)

Page 9: Claudia Perlich, Chief Scientist, Dstillery

99

From small to bigger data …

Page 10: Claudia Perlich, Chief Scientist, Dstillery

1010

Take 2: Gender based all your likes

Page 11: Claudia Perlich, Chief Scientist, Dstillery

1111

Predict gender base on all likes: a lot of signal …

Overall Accuracy: 83%

Target top 1% Accuracy: 100%

p(male|likes)

Page 12: Claudia Perlich, Chief Scientist, Dstillery

1212

Progression: from age to all ‘likes’

75% 86% 100%

100% 100% 100%

Age

Page 13: Claudia Perlich, Chief Scientist, Dstillery

13

But what happens if your problem is a mixture of both?

Random Deterministic

Page 14: Claudia Perlich, Chief Scientist, Dstillery

1414

Witness a spike in human predictability ..

2 weeks in 2012

Med

ian

5% L

ift

2x Death of free will?

Page 15: Claudia Perlich, Chief Scientist, Dstillery

1515

buzzfeed.com3/20/16

amazon.com 4/11/16

nytimes.com 2/15/16

Mlb.com 3/15/16

Etrade.com 4/25/16

Predicting digital events based on browsing histories

azure.microsoft.com 6/10/16

Page 16: Claudia Perlich, Chief Scientist, Dstillery

16

Logistic Regression Stochastic gradient descent

Hashing Streaming

L1 & L2 Penalties

Page 17: Claudia Perlich, Chief Scientist, Dstillery

17

Oddly predictive websites?

Page 18: Claudia Perlich, Chief Scientist, Dstillery

1818

URL’s that are very predictive for more than 10 brands

www.womenshealthbase.com www.filmannex.com www.ffog.net www.drugsnews.org www.menshealthbase.com www.dailyfreshies.com www.hark.com www.gossipcenter.com www.articletrunk.com www.411answers.com www.dailyrx.com www.all-allergies.com www.knowvehicles.com www.chinaflix.com www.parentingnewsstories.com www.wrestlingnewz.com www.gourmandia.com

Page 19: Claudia Perlich, Chief Scientist, Dstillery

19

Traffic Patterns Are ‘Non - Human’

website1 website250%

Traffic overlap of cookies from Bid Request

Page 20: Claudia Perlich, Chief Scientist, Dstillery
Page 21: Claudia Perlich, Chief Scientist, Dstillery

Boston Herald

Page 22: Claudia Perlich, Chief Scientist, Dstillery
Page 23: Claudia Perlich, Chief Scientist, Dstillery

23

Page 24: Claudia Perlich, Chief Scientist, Dstillery

24

Page 25: Claudia Perlich, Chief Scientist, Dstillery

2525

Witness a spike in human predictability ..

2 weeks in 2012

Pre

dict

ion

Per

form

ance

2x Death of free will?

Page 26: Claudia Perlich, Chief Scientist, Dstillery

2626

Meet ‘Non-Human traffic’

6%

2011

36%

2015

Page 27: Claudia Perlich, Chief Scientist, Dstillery

2727

Bots are executing conversion events

• ‘Cookie Stuffing’ increases the value of the ad for retargeting • Messing up Web analytics … • Messes up my models because a bot is easier to predict than a human

Page 28: Claudia Perlich, Chief Scientist, Dstillery

2828

Percent bot traffic on conversion metrics

Page 29: Claudia Perlich, Chief Scientist, Dstillery

2929

Two populations surfing the we: Bot vs. Human

36%

2015

Page 30: Claudia Perlich, Chief Scientist, Dstillery

30

Random Deterministic

Page 31: Claudia Perlich, Chief Scientist, Dstillery

3131

Bot activity has more signal – higher predictions

Page 32: Claudia Perlich, Chief Scientist, Dstillery

3232

Eliminate labels generated by bots ….

32

3 more weeks in spring 2012

Perf

orm

an

ce

Ind

ex

Page 33: Claudia Perlich, Chief Scientist, Dstillery

3333

What about Clicks?

“Measure of consumers interest in the product’

Page 34: Claudia Perlich, Chief Scientist, Dstillery

3434

Page 35: Claudia Perlich, Chief Scientist, Dstillery

3535

Accidental clicks are more predictable than intentional

Model learns to predict the accidental much more easily than the intentional ones …

I will only target clicks that are likely to happen accidentally but not randomly …

accidental

intentional

Page 36: Claudia Perlich, Chief Scientist, Dstillery

3636

Accidents: People fumbling in the dark …

Page 37: Claudia Perlich, Chief Scientist, Dstillery

3737

Old days of the Click Metric …

Strategy 1: target women

Strategy 2: target men

accidental

intentional

<

Page 38: Claudia Perlich, Chief Scientist, Dstillery

3838

Finding good audiences for luxury cars? Predict dealership visits?

Page 39: Claudia Perlich, Chief Scientist, Dstillery

3939

buzzfeed.com3/20/16

amazon.com 4/11/16

nytimes.com 2/15/16

50.240.135.41

166. 216.165.92

207.246.152.60

108.49.133.218

38.104.253.134

208.76.113.13

Mlb.com 3/15/16

Etrade.com 4/25/16

Potterybarn.com 4/10/16

Zip 4 10023-4592

04/15/16

Zip 4 10023-6924

04/20/16

Zip 4 10016-2324

03/10/16 03/14/16

Web App

Phone/Tablet

Desktop

Phone/Tablet

com.mlb.atbat 04/20/16

com.rovio.angry 02/26/16

com.myfitnesspal.android 3/25/16 4/18/16

IDFA 31AB-26FC-94AE-756B

My actual data: 100 Billion daily events across devices …

?

?

Page 40: Claudia Perlich, Chief Scientist, Dstillery

4040

Potentially three populations in the location prediction

•  People who are indeed at dealership and their history

•  People who are somewhere close

•  People who hacked into your WIFI

Page 41: Claudia Perlich, Chief Scientist, Dstillery

4141

Identify people who will go to Mercedes dealerships

Page 42: Claudia Perlich, Chief Scientist, Dstillery

4242

‘In the market’ signal

Page 43: Claudia Perlich, Chief Scientist, Dstillery

4343

Real Estate

Page 44: Claudia Perlich, Chief Scientist, Dstillery

4444

Fitness …

Page 45: Claudia Perlich, Chief Scientist, Dstillery

4545

How much randomness can a model absorb?

We will randomly switch the gender value for increasing percentages

00000d41ed774823fca142945ec915c0,1,,,,,,,,,,,en_GB,,00000dee02d70cf8c0d79f96b6d1c59d,0,,,,,,,,,,,en_US,,00000f232abfe25a80156fe069395460,0,1992,20,2,2,,,,,,,,19,-500000f4ba0cff946b1c0e3b051287ede,0,1993,19,2,,,,,,,,en_US,310,80000130571654e3afaa62f4e9d2e4f63,0,,,2,2,,,,,,,en_US,193,700001544469ae9b408869a463a1dd77a,1,1984,28,2,,,,,,,,en_US,,-4

00000d41ed774823fca142945ec915c0,0,,,,,,,,,,,en_GB,,00000dee02d70cf8c0d79f96b6d1c59d,0,,,,,,,,,,,en_US,,00000f232abfe25a80156fe069395460,1,1992,20,2,2,,,,,,,,19,-500000f4ba0cff946b1c0e3b051287ede,0,1993,19,2,,,,,,,,en_US,310,80000130571654e3afaa62f4e9d2e4f63,1,,,2,2,,,,,,,en_US,193,700001544469ae9b408869a463a1dd77a,1,1984,28,2,,,,,,,,en_US,,-4

Page 46: Claudia Perlich, Chief Scientist, Dstillery

4646

Performance is surprisingly stable even under random noise

Percentoriginallabels

60.00%

65.00%

70.00%

75.00%

80.00%

85.00%

90.00%

95.00%

100.00%

100% 75% 50% 25%

PercentMenintop1%50%originallabels

25%originallabels

Page 47: Claudia Perlich, Chief Scientist, Dstillery

4747

Identify people who will go to Mercedes dealerships?

My predictions might be better than my ‘ground truth’

Page 48: Claudia Perlich, Chief Scientist, Dstillery

4848

Where do we find frequent traveler?

Page 49: Claudia Perlich, Chief Scientist, Dstillery

4949

What do you think indicates people going to JFK?

URL Logis)cParameterwww.iglesiaelfaroinc.org 2.38www.jumpseatnews.com 2.25www.bluelineprop.com 2.21www.ktxdtv.com 2.14www.southjefffootball.org 2.1www.unitedafa.org 2.09www.parliamenthouse.com 2.07www.yunghova.com 2.06www.interlinetravel.com 2.03www.aclin.org 2.03www.swissport.com 2.03www.gcsanc.com 2.01www.swacu.org 2.01www.airlinepilotcentral.com 1.97www.homotrophy.com 1.97www.beggsfuneralhome.net 1.94www.tvathleFcs.org 1.92www.2shopper.com 1.91www.nextmagazine.com 1.91www.dailyjocks.com 1.87www.pullzone.com 1.87www.diamondoffshore.com 1.86www.myerspolaris.com 1.86www.ryandeyer.com 1.86www.okllo.com 1.84www.ifihadtochoose.com 1.83www.ivoirmixdj.com 1.83

Page 50: Claudia Perlich, Chief Scientist, Dstillery

5050

URL Logis)cParameterwww.iglesiaelfaroinc.org 2.38www.jumpseatnews.com 2.25www.bluelineprop.com 2.21www.ktxdtv.com 2.14www.southjefffootball.org 2.1www.unitedafa.org 2.09www.parliamenthouse.com 2.07www.yunghova.com 2.06www.interlinetravel.com 2.03www.aclin.org 2.03www.swissport.com 2.03www.gcsanc.com 2.01www.swacu.org 2.01www.airlinepilotcentral.com 1.97www.homotrophy.com 1.97www.beggsfuneralhome.net 1.94www.tvathleFcs.org 1.92www.2shopper.com 1.91www.nextmagazine.com 1.91www.dailyjocks.com 1.87www.pullzone.com 1.87www.diamondoffshore.com 1.86www.myerspolaris.com 1.86www.ryandeyer.com 1.86www.okllo.com 1.84www.ifihadtochoose.com 1.83www.ivoirmixdj.com 1.83

Page 51: Claudia Perlich, Chief Scientist, Dstillery

5151

URL Logis)cParameterwww.iglesiaelfaroinc.org 2.38www.jumpseatnews.com 2.25www.bluelineprop.com 2.21www.ktxdtv.com 2.14www.southjefffootball.org 2.1www.unitedafa.org 2.09www.parliamenthouse.com 2.07www.yunghova.com 2.06www.interlinetravel.com 2.03www.aclin.org 2.03www.swissport.com 2.03www.gcsanc.com 2.01www.swacu.org 2.01www.airlinepilotcentral.com 1.97www.homotrophy.com 1.97www.beggsfuneralhome.net 1.94www.tvathleFcs.org 1.92www.2shopper.com 1.91www.nextmagazine.com 1.91www.dailyjocks.com 1.87www.pullzone.com 1.87www.diamondoffshore.com 1.86www.myerspolaris.com 1.86www.ryandeyer.com 1.86www.okllo.com 1.84www.ifihadtochoose.com 1.83www.ivoirmixdj.com 1.83

Page 52: Claudia Perlich, Chief Scientist, Dstillery

5252

URL Logis)cParameterwww.iglesiaelfaroinc.org 2.38www.jumpseatnews.com 2.25www.bluelineprop.com 2.21www.ktxdtv.com 2.14www.southjefffootball.org 2.1www.unitedafa.org 2.09www.parliamenthouse.com 2.07www.yunghova.com 2.06www.interlinetravel.com 2.03www.aclin.org 2.03www.swissport.com 2.03www.gcsanc.com 2.01www.swacu.org 2.01www.airlinepilotcentral.com 1.97www.homotrophy.com 1.97www.beggsfuneralhome.net 1.94www.tvathleFcs.org 1.92www.2shopper.com 1.91www.nextmagazine.com 1.91www.dailyjocks.com 1.87www.pullzone.com 1.87www.diamondoffshore.com 1.86www.myerspolaris.com 1.86www.ryandeyer.com 1.86www.okllo.com 1.84www.ifihadtochoose.com 1.83www.ivoirmixdj.com 1.83

Page 53: Claudia Perlich, Chief Scientist, Dstillery

5353

URL Logis)cParameterwww.iglesiaelfaroinc.org 2.38www.jumpseatnews.com 2.25www.bluelineprop.com 2.21www.ktxdtv.com 2.14www.southjefffootball.org 2.1www.unitedafa.org 2.09www.parliamenthouse.com 2.07www.yunghova.com 2.06www.interlinetravel.com 2.03www.aclin.org 2.03www.swissport.com 2.03www.gcsanc.com 2.01www.swacu.org 2.01www.airlinepilotcentral.com 1.97www.homotrophy.com 1.97www.beggsfuneralhome.net 1.94www.tvathleFcs.org 1.92www.2shopper.com 1.91www.nextmagazine.com 1.91www.dailyjocks.com 1.87www.pullzone.com 1.87www.diamondoffshore.com 1.86www.myerspolaris.com 1.86www.ryandeyer.com 1.86www.okllo.com 1.84www.ifihadtochoose.com 1.83www.ivoirmixdj.com 1.83

Page 54: Claudia Perlich, Chief Scientist, Dstillery

54

Predict who goes to JFK?

Random Deterministic

People who work there …

Page 55: Claudia Perlich, Chief Scientist, Dstillery

5555

BigPicture?

Page 56: Claudia Perlich, Chief Scientist, Dstillery

5656

Beware of (unintentional) discrimination based on predictability

Page 57: Claudia Perlich, Chief Scientist, Dstillery

57

Thank You!

Claudia Perlich