Mini-homework 1 – Can Twitter predict election results?
Appearances of candidates’ names on Twitter can help predict election results
The promise of using data science to predict election results has been received a lot of attention over the last decade. A lot of attention has focused on using polls to create models and predict results, such as what Nate Silver does over at fivethirtyeight.com. Besides polls, other kinds of data have been focused on for making predictions about elections. Consider the following 2013 study by a group of researchers at Indiana University. They wanted to see if the appearances of candidates’ names on Twitter can help predict election results.
The Washington Post picked this up in an editorial, written by one of the study’s authors:
New research in computer science, sociology and political science shows that data extracted from social media platforms yield accurate measurements of public opinion. It turns out that what people say on Twitter or Facebook is a very good indicator of how they will vote.
How good? […] co-authors Joseph DiGrazia, Karissa McKelvey, Johan Bollen and I show that Twitter discussions are an unusually good pre- dictor of U.S. House elections. Using a massive archive of billions of randomly sampled tweets stored at Indiana University, we extracted 542,969 tweets that mention a Democratic or Republican candidate for Congress in 2010. For each congressional district, we computed the percentage of tweets that mentioned these candidates. We found a strong correlation between a candidate’s tweet share and the final two-party vote share, especially when we account for a district’s economic, racial and gender profile. In the 2010 data, our Twitter data predicted the winner in 404 out of 406 competitive races.
Data science
This is a true data science research project, in that:
The data being analyzed was scraped from the Internet, not collected from a controlled, randomized trial. Typical statistical assumptions about random sampling, etc. do not apply!
The research question is addressed by combining domain knowledge (i.e. knowledge of how Congressional races work) with a data source (Twitter) that has no obvious relevance.
A large amount of data (500 million tweets!) was collected. [Note: only 500,000 tweets were analyzed.] In this case, the data was big enough that the Center for Complex Networks and Systems Research had to get involved!
The project was undertaken by a team of researchers from different fields (i.e. sociology, computing) working in different departments, and bringing different skills to the table.
Read the article like a scientist
Spend a few minutes reading the Rojas editorial and skimming the actual paper. Be sure to consider Figure 1 and Table 1 carefully, and then, within your group, answer the questions below.
Write your responses in word processing software and export your submission to the PDF format before uploading it to the Blackboard submission link. Your responses should be written using full sentences and proper spelling and grammar.
Write a sentence summarizing the findings of the paper.
Think critically about the data visualization shown in Figure 1 and write what you observe about it. What is the figure’s purpose? What does it convey? If you were to create it, what would you do differently?
Now discuss the differences between the Bivariate model and the Full Model. Which one do you think does a better job of predicting the outcome of an election? Which one do you think best addresses the influence of tweets on an election?
Why do you suppose that the coefficient of RepublicanTweetShare is so much larger in the Bivariate model? How does this reflect on the influence of tweets in an election?
Do you think the study holds water? Why or why not? What are the shortcomings of this study?
Credits
This module exercise is a derivative of Can Twitter predict election results? by Mine Çetinkaya-Rundel used under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Credit for the dataset example belongs to Ben Baumer. Adapted by James Glasbrenner and licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.