Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-06T16:19:52.756Z Has data issue: false hasContentIssue false

Spikes and Variance: Using Google Trends to Detect and Forecast Protests

Published online by Cambridge University Press:  08 April 2021

Joan C. Timoneda*
Affiliation:
Department of Political Science, Purdue University, 2230 Beering Hall, 100 North University Street, West Lafayette, IN 47907, USA. Email: timoneda@purdue.edu
Erik Wibbels
Affiliation:
Department of Political Science, Duke University, 280 Gross Hall, 140 Science Drive, Durham, NC 27708, USA
*
Corresponding author Joan C. Timoneda
Rights & Permissions [Opens in a new window]

Abstract

Google search is ubiquitous, and Google Trends (GT) is a potentially useful access point for big data on many topics the world over. We propose a new ‘variance-in-time’ method for forecasting events using GT. By collecting multiple and overlapping samples of GT data over time, our algorithm leverages variation both in the mean and the variance of a search term in order to accommodate some idiosyncracies in the GT platform. To elucidate our approach, we use it to forecast protests in the United States. We use data from the Crowd Counting Consortium between 2017 and 2019 to build a sample of true protest events as well as a synthetic control group where no protests occurred. The model’s out-of-sample forecasts predict protests with higher accuracy than extant work using structural predictors, high frequency event data, or other sources of big data such as Twitter. Our results provide new insights into work specifically on political protests, while providing a general approach to GT that should be useful to researchers of many important, if rare, phenomena.

Information

Type
Article
Copyright
© The Author(s) 2021. Published by Cambridge University Press on behalf of the Society for Political Methodology
Figure 0

Figure 1 Hourly Google Trends scores for “protest” (April 20–27, 2015—Baltimore metro area).

Figure 1

Figure 2 Hourly Google Trends scores for one protest over three different search periods (April 2015, Baltimore metro).

Figure 2

Figure 3 Means and variance over time in Baltimore, March 1–May 31, 2015.

Figure 3

Figure 4 Evolution of the coefficient of the variation in Baltimore, March 1–May 31, 2015.

Figure 4

Figure 5 Effect of the coefficient of the variation in Google Trends scores on protest.

Figure 5

Figure 6 ROC curve (Model 1).

Figure 6

Figure 7 ROC curve (Model 2).

Supplementary material: PDF

Timoneda and Wibbels supplementary material

Appendix

Download Timoneda and Wibbels supplementary material(PDF)
PDF 100.1 KB
Supplementary material: Link

Timoneda and Wibbels Dataset

Link