Monday, April 15, 2013

Who's searching for Kobe Bryant?




Unless you live on another planet without any WiFi connection to Facebook or Twitter, it was pretty hard to miss out on Kobe Bryant's injury in a crucial game against the Golden State Warriors last week. A torn Achilles has just ended his season (although to be fair I am not sure he will be missing that many games, even if Lakers do make the Playoffs...).

But this got me thinking: how many people searched for "Kobe Bryant" on the day and next of his injury? Could a huge spike be seen in Google Trends?




The above chart is at the monthly level so we only have partial April data. Nonetheless, Google Trends predicts that April 2013 will be Kobe's all star spike in searches, his MVP (most valuable peak) if you will.

But we also seem to notice some older spikes in the data, and a closer look reveals that these tend to regularly occur in June. What type of seasonal pattern lurks in the data?

In order to investigate seasonality, and also to tease out the underlying trend in searches for Kobe, I processed the data using R's stl() function (seasonal decomposition of a time series with loess) to split a time series into its trend, seasonal component and residuals.

Here's what I obtained:



We can't see the April spike yet because the downloaded data doesn't have Google Trends' estimates for the month, but we can predict a big spike given that halfway through April we already have almost as many queries as in a full month.

Going back to the figure, the top panel has the raw monthly data since 2004.

The next panel displays the smoothed loess trend. After a dip throughout 2004, Kobe has slowly but surely gained momentum since.

The next panel shows the seasonal component. We easily identify a strong pattern with a low volume in the off-season, an uplift when the season starts which remains quite constant during the regular season, another uplift during the playoffs with the maximum attained in June as we had observed previously.
It's also interesting to see how the seasonality's amplitude has steadily increased over the years.

Finally, the last panel shows the residuals, what cannot be explained by the trend and the seasonality. The cluster of yellow bars in the summer of 2004 could be due to the fact that Shaquille O'Neal was traded away from Los Angeles and there were many rumors around Kobe's future with the Lakers.

But how big the spike will be in April 2013 is anybody's guess!




No comments:

Post a Comment