IDEAS home Printed from https://ideas.repec.org/a/eee/teinso/v77y2024ics0160791x24000253.html
   My bibliography  Save this article

DIY google trends indicators in social sciences: A methodological note

Author

Listed:
  • Lolić, Ivana
  • Matošec, Marina
  • Sorić, Petar

Abstract

Various branches of the social sciences often require high-frequency measures of collective behavior. Examining peoples' Google search patterns enables uncovering otherwise hard-to-measure social trends or constructing different leading indicators. Google Trends (GT) data presents a unique and rich dataset that enables a deeper look at the popularity of peoples’ search interests. This paper delves into the main empirical approaches of constructing GT indicators, conducts a thorough methodological review, and elucidates the nuances and potentials of GT data. Specifically, the paper furnishes a step-by-step methodological guide for constructing GT indicators: from data pre-treatment to composite estimation using an array of machine learning techniques (principal component analysis, XGBoost, and dynamic factor models). We scrutinize the prevalent construction strategies of GT indicators, compare the use of keyword-based vs. category-based estimations, single indicators vs. composite indicators, and evaluate the significance of various data transformations. Illustrating the utility of our methodological framework through a case study, we create GT indicators for US retail trade and examine their forecasting accuracy in comparison to a benchmark autoregressive model. Our findings reveal that XGBoost yields the optimal test sample fit among composite indicators, while category-specific indicators like Shopping and Retail Trade exhibit worse predictive accuracy. As an additional contribution, we provide a detailed and user-friendly R code for replicating our analysis.

Suggested Citation

  • Lolić, Ivana & Matošec, Marina & Sorić, Petar, 2024. "DIY google trends indicators in social sciences: A methodological note," Technology in Society, Elsevier, vol. 77(C).
  • Handle: RePEc:eee:teinso:v:77:y:2024:i:c:s0160791x24000253
    DOI: 10.1016/j.techsoc.2024.102477
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0160791X24000253
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.techsoc.2024.102477?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Hyunyoung Choi & Hal Varian, 2012. "Predicting the Present with Google Trends," The Economic Record, The Economic Society of Australia, vol. 88(s1), pages 2-9, June.
    2. Aslanidis, Nektarios & Bariviera, Aurelio F. & López, Óscar G., 2022. "The link between cryptocurrencies and Google Trends attention," Finance Research Letters, Elsevier, vol. 47(PA).
    3. Robert M. de Jong & Neslihan Sakarya, 2016. "The Econometrics of the Hodrick-Prescott Filter," The Review of Economics and Statistics, MIT Press, vol. 98(2), pages 310-317, May.
    4. Vera Z. Eichenauer & Ronald Indergand & Isabel Z. Martínez & Christoph Sax, 2022. "Obtaining consistent time series from Google Trends," Economic Inquiry, Western Economic Association International, vol. 60(2), pages 694-705, April.
    5. Laurent Ferrara & Anna Simoni, 2023. "When are Google Data Useful to Nowcast GDP? An Approach via Preselection and Shrinkage," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 41(4), pages 1188-1202, October.
    6. Castelnuovo, Efrem & Tran, Trung Duc, 2017. "Google It Up! A Google Trends-based Uncertainty index for the United States and Australia," Economics Letters, Elsevier, vol. 161(C), pages 149-153.
    7. Peter C. B. Phillips & Sainan Jin, 2021. "Business Cycles, Trend Elimination, And The Hp Filter," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 62(2), pages 469-520, May.
    8. Nicolas Woloszko, 2020. "Tracking activity in real time with Google Trends," OECD Economics Department Working Papers 1634, OECD Publishing.
    9. Yu, Lean & Zhao, Yaqing & Tang, Ling & Yang, Zebin, 2019. "Online big data-driven oil consumption forecasting with Google trends," International Journal of Forecasting, Elsevier, vol. 35(1), pages 213-223.
    10. Götz, Thomas B. & Knetsch, Thomas A., 2019. "Google data in bridge equation models for German GDP," International Journal of Forecasting, Elsevier, vol. 35(1), pages 45-66.
    11. Mr. Futoshi Narita & Rujun Yin, 2018. "In Search of Information: Use of Google Trends’ Data to Narrow Information Gaps for Low-income Developing Countries," IMF Working Papers 2018/286, International Monetary Fund.
    12. Naccarato, Alessia & Falorsi, Stefano & Loriga, Silvia & Pierini, Andrea, 2018. "Combining official and Google Trends data to forecast the Italian youth unemployment rate," Technological Forecasting and Social Change, Elsevier, vol. 130(C), pages 114-122.
    13. Maryam Dilmaghani, 2019. "Workopolis or The Pirate Bay: what does Google Trends say about the unemployment rate?," Journal of Economic Studies, Emerald Group Publishing Limited, vol. 46(2), pages 422-445, March.
    14. D’Amuri, Francesco & Marcucci, Juri, 2017. "The predictive power of Google searches in forecasting US unemployment," International Journal of Forecasting, Elsevier, vol. 33(4), pages 801-816.
    15. Jaemin Woo & Ann L. Owen, 2019. "Forecasting private consumption with Google Trends data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(2), pages 81-91, March.
    16. Jun, Seung-Pyo & Yoo, Hyoung Sun & Choi, San, 2018. "Ten years of research change using Google Trends: From the perspective of big data utilizations and applications," Technological Forecasting and Social Change, Elsevier, vol. 130(C), pages 69-87.
    17. Wang, Zongrun & Zhou, Ling & Mi, Yunlong & Shi, Yong, 2022. "Measuring dynamic pandemic-related policy effects: A time-varying parameter multi-level dynamic factor model approach," Journal of Economic Dynamics and Control, Elsevier, vol. 139(C).
    18. Steven L. Scott & Hal R. Varian, 2015. "Bayesian Variable Selection for Nowcasting Economic Time Series," NBER Chapters, in: Economic Analysis of the Digital Economy, pages 119-135, National Bureau of Economic Research, Inc.
    19. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    20. David Kohns & Arnab Bhattacharjee, 2020. "Nowcasting Growth using Google Trends Data: A Bayesian Structural Time Series Model," Papers 2011.00938, arXiv.org, revised May 2022.
    21. Pesaran, M Hashem & Timmermann, Allan, 1992. "A Simple Nonparametric Test of Predictive Performance," Journal of Business & Economic Statistics, American Statistical Association, vol. 10(4), pages 561-565, October.
    22. Hodrick, Robert J & Prescott, Edward C, 1997. "Postwar U.S. Business Cycles: An Empirical Investigation," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 29(1), pages 1-16, February.
    23. Marcelo C. Medeiros & Henrique F. Pires, 2021. "The Proper Use of Google Trends in Forecasting Models," Papers 2104.03065, arXiv.org, revised Apr 2021.
    24. Elizaveta Golovanova & Andrey Zubarev, 2021. "Forecasting Aggregate Retail Sales with Google Trends," Russian Journal of Money and Finance, Bank of Russia, vol. 80(4), pages 50-73, December.
    25. Kim, Neri & Lučivjanská, Katarína & Molnár, Peter & Villa, Roviel, 2019. "Google searches and stock market activity: Evidence from Norway," Finance Research Letters, Elsevier, vol. 28(C), pages 208-220.
    26. Bitetto, Alessandro & Cerchiello, Paola & Mertzanis, Charilaos, 2023. "On the efficient synthesis of short financial time series: A Dynamic Factor Model approach," Finance Research Letters, Elsevier, vol. 53(C).
    27. Park, Sungjun & Kim, Jinsoo, 2018. "The effect of interest in renewable energy on US household electricity consumption: An analysis using Google Trends data," Renewable Energy, Elsevier, vol. 127(C), pages 1004-1010.
    28. Daniel Borup & Erik Christian Montes Schütte, 2022. "In Search of a Job: Forecasting Employment Growth Using Google Trends," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 40(1), pages 186-200, January.
    29. Jeremy Ginsberg & Matthew H. Mohebbi & Rajan S. Patel & Lynnette Brammer & Mark S. Smolinski & Larry Brilliant, 2009. "Detecting influenza epidemics using search engine query data," Nature, Nature, vol. 457(7232), pages 1012-1014, February.
    30. Tonya Boone & Ram Ganeshan & Robert L. Hicks & Nada R. Sanders, 2018. "Can Google Trends Improve Your Sales Forecast?," Production and Operations Management, Production and Operations Management Society, vol. 27(10), pages 1770-1774, October.
    31. Mr. Paul A Austin & Mr. Marco Marini & Alberto Sanchez & Chima Simpson-Bell & James Tebrake, 2021. "Using the Google Places API and Google Trends Data to Develop High Frequency Indicators of Economic Activity," IMF Working Papers 2021/295, International Monetary Fund.
    32. Zhi Da & Joseph Engelberg & Pengjie Gao, 2011. "In Search of Attention," Journal of Finance, American Finance Association, vol. 66(5), pages 1461-1499, October.
    33. Yunlu Yin & Zhongqiang (Tak) Huang, 2022. "Social-Jetlagged Consumers and Decreased Conspicuous Consumption [Circadian Typology: A Comprehensive Review]," Journal of Consumer Research, Journal of Consumer Research Inc., vol. 49(4), pages 616-633.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Cebrián, Eduardo & Domenech, Josep, 2024. "Addressing Google Trends inconsistencies," Technological Forecasting and Social Change, Elsevier, vol. 202(C).
    2. David Kohns & Arnab Bhattacharjee, 2020. "Nowcasting Growth using Google Trends Data: A Bayesian Structural Time Series Model," Papers 2011.00938, arXiv.org, revised May 2022.
    3. Zhongchen Song & Tom Coupé, 2023. "Predicting Chinese consumption series with Baidu," Journal of Chinese Economic and Business Studies, Taylor & Francis Journals, vol. 21(3), pages 429-463, July.
    4. Vera Z. Eichenauer & Ronald Indergand & Isabel Z. Martínez & Christoph Sax, 2022. "Obtaining consistent time series from Google Trends," Economic Inquiry, Western Economic Association International, vol. 60(2), pages 694-705, April.
    5. Kohns, David & Bhattacharjee, Arnab, 2023. "Nowcasting growth using Google Trends data: A Bayesian Structural Time Series model," International Journal of Forecasting, Elsevier, vol. 39(3), pages 1384-1412.
    6. van der Wielen, Wouter & Barrios, Salvador, 2021. "Economic sentiment during the COVID pandemic: Evidence from search behaviour in the EU," Journal of Economics and Business, Elsevier, vol. 115(C).
    7. Laurent Ferrara & Anna Simoni, 2023. "When are Google Data Useful to Nowcast GDP? An Approach via Preselection and Shrinkage," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 41(4), pages 1188-1202, October.
    8. Bantis, Evripidis & Clements, Michael P. & Urquhart, Andrew, 2023. "Forecasting GDP growth rates in the United States and Brazil using Google Trends," International Journal of Forecasting, Elsevier, vol. 39(4), pages 1909-1924.
    9. Aaronson, Daniel & Brave, Scott A. & Butters, R. Andrew & Fogarty, Michael & Sacks, Daniel W. & Seo, Boyoung, 2022. "Forecasting unemployment insurance claims in realtime with Google Trends," International Journal of Forecasting, Elsevier, vol. 38(2), pages 567-581.
    10. David Coble & Pablo Pincheira, 2021. "Forecasting building permits with Google Trends," Empirical Economics, Springer, vol. 61(6), pages 3315-3345, December.
    11. Atin Aboutorabi & Ga'etan de Rassenfosse, 2024. "Nowcasting R&D Expenditures: A Machine Learning Approach," Papers 2407.11765, arXiv.org.
    12. Rodrigo Mulero & Alfredo García-Hiernaux, 2021. "Forecasting Spanish unemployment with Google Trends and dimension reduction techniques," SERIEs: Journal of the Spanish Economic Association, Springer;Spanish Economic Association, vol. 12(3), pages 329-349, September.
    13. Götz, Thomas B. & Knetsch, Thomas A., 2019. "Google data in bridge equation models for German GDP," International Journal of Forecasting, Elsevier, vol. 35(1), pages 45-66.
    14. Abay,Kibrom A. & Hirfrfot,Kibrom Tafere & Woldemichael,Andinet, 2020. "Winners and Losers from COVID-19 : Global Evidence from Google Search," Policy Research Working Paper Series 9268, The World Bank.
    15. Stig Vinther Møller & Thomas Pedersen & Erik Christian Montes Schütte & Allan Timmermann, 2024. "Search and Predictability of Prices in the Housing Market," Management Science, INFORMS, vol. 70(1), pages 415-438, January.
    16. Rodrigo Mulero & Alfredo Garcia-Hiernaux, 2023. "Forecasting unemployment with Google Trends: age, gender and digital divide," Empirical Economics, Springer, vol. 65(2), pages 587-605, August.
    17. Serhan Cevik, 2022. "Where should we go? Internet searches and tourist arrivals," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(4), pages 4048-4057, October.
    18. Schaer, Oliver & Kourentzes, Nikolaos & Fildes, Robert, 2019. "Demand forecasting with user-generated online information," International Journal of Forecasting, Elsevier, vol. 35(1), pages 197-212.
    19. Omid Zamani & Thomas Bittmann & Jens‐Peter Loy, 2024. "Does the internet bring food prices closer together? Exploring search engine query data in Iran," Journal of Agricultural Economics, Wiley Blackwell, vol. 75(2), pages 688-715, June.
    20. Daniel Borup & Erik Christian Montes Schütte, 2022. "In Search of a Job: Forecasting Employment Growth Using Google Trends," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 40(1), pages 186-200, January.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:teinso:v:77:y:2024:i:c:s0160791x24000253. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: https://www.journals.elsevier.com/technology-in-society .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.