do google trends data contain more predictability than price ......do google trends data contain...

35
Do Google Trends data contain more predictability than price returns? D. Challet 1,2 A. Bel Hadj Ayed 1 1 École Centrale Paris 2 Encelade Capital SA 25th November 2014 D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Upload: others

Post on 19-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Do Google Trends data containmore predictability than price returns?

D. Challet1,2 A. Bel Hadj Ayed 1

1 École Centrale Paris 2 Encelade Capital SA

25th November 2014

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 2: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Google Hedge Fund

In “Googled: The End of the World As We Know It”, Ken Auletta

Sergey Brin: "We should run a hedge fund."

Eric Schmidt: "Sergey, among your many ideas, this is the worst"

Sergey Brin: "No, we can do it because we have so muchinformation."

Eric Schmidt: “[...] legal complications [...] NO!”

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 3: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Prevailing wisdom about the crowds

No one in this world, so far as I know, has ever lostmoney by underestimating the intelligence of the greatmasses of the plain people.

The crowd [...] average intelligence is very low; it isinflammatory, vicious, idiotic, almost simian

H. L. Mencken (essayist, satirist)

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 4: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Wisdom of the crowds

Why the Many Are Smarter Than the Few

and How Collective Wisdom Shapes

Business, Economies, Societies

and Nations

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 5: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Galton 1906

Guess the weight of a fat ox, after slaughter and dressing

787 tickets

Mathematical wisdommedian/average of estimatesbetter than best estimate

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 6: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Wisdom of the crowds: success and dangers

Good

one-shot

simultaneous choices

no communication

Bad

asynchronous choices + communication

repeated game

Prediction markets?

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 7: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

More than 787 votes?

Active users

Google . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1×109

Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1×109

Google+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0.5×109

Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0.2×109

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 8: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Publicly available data

Google . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . aggregate

Facebook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ?

Google+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . posts

Twitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . posts (?)

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 9: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

What to do with this data

NowcastingUsers create data

Activity correlated with some quantity

Social data←→ macroscopic variable

Choi and Variant (2009): Predicting the Present with Google Trends

ForecastingUsers create social data

(some) Users trade

Social data←→ future price changes

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 10: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Google Trends: Search Volume Index

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 11: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

GT: example

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 12: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Nice features of GT data

The good

Many users

Aggregate

Clean

Download csv file

Any keyword

The bad

Anonymous

Irrelevant information

Coarse

?

Too much choice

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 13: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

GT and predictability: claims

Keywords: ticker, company namesBordino et al. 2011,

increase in SVI→ increase of traded volumeDa et al 2013, [2004-2008]

increase in SVI→ higher stock prices in the next 2 weeksJoseph et al 2011 [2005-2008],

increase in SVI→ higher stock prices in the next weekTakeda et al. 2013 [2008-2011]:

weak for future returns, strong for future volumeKristoufek 2013 [2004-2013]:

portfolio weight ∼ SVI−α

Preis et al 2013 [2004-2011]:fancy keywords;relative increase in SVI→ lower DJIA the next week

↑meaning of GT invariant among stocks AND time?

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 14: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Meaning of GT invariant among stocks

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 15: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Meaning of GT invariant across time

Forecasting: Da et al. (2013)

Google Trends: demand of information

returnt ~F[

Demandt−Supplyt

λt

]Supplyt and λt !!!

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 16: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

A practitioner point of view

1 Trading strategies2 Backtest period3 Assets4 Keywords5 Download GT data6 Timescale of returns7 Parameters8 Input GT data only,9 Input past returns only

10 Input both11 Compare.

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 17: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

1. Trading strategies

Linear methods

Conditional predictability

Ensemble learning methods (SupportVector Machines, trees, etc)

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 18: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

2+3 Backtest period, assets

2. Backtest periodAll previous papers: Whole period

Sliding in/out-of-sample periods

3. Choice of assets

Index components: S&P100

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 19: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

4. Keywords

Recipe for disaster:

1 Think of finance-related keywords

finance, debt, CDS, bonds, crisis

2 Use Google Sets:

finance → marketing, real estate, insurance, accounting,

debt consolidation, investing,

[...]

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 20: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

4. Keywords: example

Preis et al. (2013): moving averages (k weeks)

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 21: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

4. Keywords: null hypothesis?

1 100 classic cars2 100 classic arcade video games3 200 classic illnesses/ailments

keyword t-stat keyword t-stat keyword t-stat

multiple sclerosis -2.1 Chevrolet Impala -1.9 Moon Buggy -2.1

muscle cramps -1.9 Triumph 2000 -1.9 Bubbles -2.0

premenstrual syndrome -1.8 Jaguar E-type -1.7 Rampage -1.7

alopecia 2.2 Iso Grifo 1.7 Street Fighter 2.3

gout 2.2 Alfa Romeo Spider 1.7 Crystal Castles 2.4

bone cancer 2.4 Shelby GT 500 2.4 Moon Patrol 2.7

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 22: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

4. Keywords

0 50 100 150 200

−1

01

23

k

t−st

at

debtMoon Patrol

IN SAMPLED. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 23: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

4. Which keywords?

KISS:

Symbols

Company names

Key products

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 24: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

5. GT data

1 Weekly2 Starts in 20043 Data not available before 2008-08

4 File format change in 2012-01

beforeNov 27 2005, 1.14, 5%

Dec 4 2005, 1.00, 5%

after2005-11-27 - 2005-12-03,31

2005-12-04 - 2005-12-10,28

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 25: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

5. GT daily data

2040

6080

100

2040

6080

100

Jan Mar May

2040

6080

100

AAPL 20081201−20090430

Jan Mar May20

4060

8010

0

AAPL 20081201−20090430

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 26: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

5. GT daily data: delay

(downloaded 2014-01-20, 09:02:00 UTC)

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 27: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Backtest: Support Vector Machines

6 months in-sample

1 week out-of-sample

Predictors: GT orreturns, or both

2006 2008 2010 2012

1.0

1.2

1.4

1.6

1.8

cum

ulat

ed p

erfo

rman

ce

GT + returnsreturnsGT

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 28: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Backtest: GT + returns

Six-month in-sample, ensemble learning+a few tricks

1.0

1.5

2.0

perf

orm

ance

−1.

00.

01.

0

net e

xpos

ure

01

23

45

gros

s ex

posu

re

2006 2008 2010 2012

040

80

# st

ocks

GT data + price returns

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 29: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Prediction: GT data only

1.0

1.5

2.0

perf

orm

ance

−1.

00.

01.

0

net e

xpos

ure

01

23

45

gros

s ex

posu

re

2006 2008 2010 2012

040

80

# st

ocks

GT data

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 30: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Prediction: returns only

1.0

1.5

2.0

perf

orm

ance

−1.

00.

01.

0

net e

xpos

ure

01

23

45

gros

s ex

posu

re

2006 2008 2010 2012

040

80

# st

ocks

Price returns

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 31: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Prediction: comparison

1.0

1.5

2.0

perf

orm

ance

−1.

00.

01.

0

net e

xpos

ure

01

23

45

gros

s ex

posu

re

2006 2008 2010 2012

040

80

# st

ocks

GT data

1.0

1.5

2.0

perf

orm

ance

−1.

00.

01.

0

net e

xpos

ure

01

23

45

gros

s ex

posu

re

2006 2008 2010 2012

040

80

# st

ocks

Price returns

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 32: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Bug?

same backtest system, same parameters, binary inputs

2006 2008 2010 2012 2014

1.0

1.2

1.4

1.6

1.8

2.0

cum

ulat

ed p

erfo

rman

ceGT+returnsGTreturns

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 33: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Therefore

GT data ≡ price returnsLarge price returns −→ large GT change

Noisy returns (2%)≡ noisy GT data (5%)

Aggregate quantities

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 34: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

GT! Why, oh why?

1 Weekly data, lagged daily data2 Keywords: ambiguous3 ALL users, not only traders4 Meaning of more searches varies

1 pre-2008: more SVI, higher price2 2008: less SVI, smaller price3 post-2008 ?

5 Google Trends: demand for information

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?

Page 35: Do Google Trends data contain more predictability than price ......Do Google Trends data contain more predictability than price returns? D. Challet1;2 A. Bel Hadj Ayed 1 1 École Centrale

Next?

We wantBig data without the mess

Precise queries

Fine time resolution (< 1 day)

Wikimedia hourly dumps (20140120 at 12:09 UTC)

D. Challet, A. Bel Hadj Ayed Do Google Trends data contain more predictability than price returns?