Skip to main content

Predicting the Outcome of Spanish General Elections 2016 Using Twitter as a Tool

  • Conference paper
  • First Online:
Advanced Informatics for Computing Research (ICAICR 2017)

Abstract

In recent years, twitter has become a popular micro blogging tool among the people world over. These persons post small messages depicting their likes and dislike towards a certain entity e.g. election results. These messages can be used to predict their opinion towards a political party in general or an individual candidate in particular. This paper takes into consideration numerous tweets related data towards the context of 2016 Spanish General Elections. Next, we have tried to establish a relationship between the tweets gathered during the campaigning period and actual vote share that various political parties received in 2016 Spanish General Elections. We have developed a tool in ASP.Net and collected 90154 tweets from 6th June to 26th June 2016 and computed our results based on these tweets. Finally, we compared our computations to establish a close co-relation with the actual results. The factors those may have caused small variance, are minutely investigated upon to give us better insight so as elucidate even closer predictions for future events.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Statisticbrain Twitter Facts. http://www.statisticbrain.com/Twitter-statistics/

  2. Liu, B.: Sentiment analysis and opinion mining. Synth. Lect. Hum. Lang. Technol. 5(1), 1–167 (2012). doi:10.2200/S00416ED1V01Y201204HLT016

    Article  MathSciNet  Google Scholar 

  3. Spanish General Elections Results December (2015). http://www.infoelectoral.mir.es/min/busquedaAvanzadaAction.html

  4. IMF Report. http://www.imf.org/external/pubs/ft/weo/2015/01/weodata/groups.htm

  5. CIA literacy Rate Report. https://www.cia.gov/library/publications/resources/the-world-factbook/fields/2103.html

  6. CIA Internet User Report. https://www.cia.gov/library/publications/resources/the-world-factbook/rankorder/2153rank.html

  7. Tumasjan, A., Sprenger, T.O., Sandner, P.G., Welpe, I.M.: Predicting elections with twitter: what 140 characters reveal about political sentiment. In: ICWSM 10, pp. 178–185 (2010)

    Google Scholar 

  8. Choy, M., Cheong, M.L.F., Laik, M.N., Shung, K.P.: A sentiment analysis of Singapore Presidential Election 2011 using Twitter data with census correction. arXiv preprint arXiv:1108.5520 (2011)

  9. Nooralahzadeh, F., Arunachalam, V., Chiru, C.: 2012 presidential elections on Twitter–an analysis of how the US and French Election were reflected in tweets. In: 2013 19th International Conference on Control Systems and Computer Science (CSCS), pp. 240–246. IEEE (2013). doi:10.1109/CSCS.2013.72

  10. Prasetyo, N.D., Hauff, C.: Twitter-based Election Prediction in the developing world. In: Proceedings of the 26th ACM Conference on Hypertext & Social Media, pp. 149–158. ACM (2015)

    Google Scholar 

  11. Khatua, A., Khatua, A., Ghosh, K., Chaki, N.: Can# Twitter_Trends predict election results? Evidence from 2014 Indian General Election. In: 2015 48th Hawaii International Conference on System Sciences (HICSS), pp. 1676–1685. IEEE (2015) doi:10.1109/HICSS.2015.202

  12. Burnap, P., Gibson, R., Sloan, L., Southern, R., Williams, M.: 140 characters to victory?: using Twitter to predict the UK 2015 General Election. Electoral Stud. (2015). doi:10.1016/j.electstud.2015.11.017

  13. Srivastava, R., Kumar, H., Bhatia, M.P. Jain, S.: Analyzing Delhi Assembly Election 2015 using textual content of social network. In: Proceedings of the Sixth International Conference on Computer and Communication Technology 2015, pp. 78–85. ACM (2015). doi:10.1145/2818567.2818582

  14. Visual Studio 2012. https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx

  15. Tweetinvi API. https://www.nuget.org/packages/TweetinviAPI/

  16. Spanish General Election Results, June 2016. http://www.infoelectoral.mir.es/min/busquedaAvanzadaAction.html

  17. Gaurav, M., Srivastava, A., Kumar, A., Miller, S.: Leveraging candidate popularity on Twitter to predict election outcome. In: Proceedings of the 7th Workshop on Social Network Mining and Analysis, p. 7. ACM (2013). doi:10.1145/2501025.2501038

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Prabhsimran Singh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer Nature Singapore Pte Ltd.

About this paper

Cite this paper

Singh, P., Sawhney, R.S., Kahlon, K.S. (2017). Predicting the Outcome of Spanish General Elections 2016 Using Twitter as a Tool. In: Singh, D., Raman, B., Luhach, A., Lingras, P. (eds) Advanced Informatics for Computing Research. ICAICR 2017. Communications in Computer and Information Science, vol 712. Springer, Singapore. https://doi.org/10.1007/978-981-10-5780-9_7

Download citation

  • DOI: https://doi.org/10.1007/978-981-10-5780-9_7

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-10-5779-3

  • Online ISBN: 978-981-10-5780-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics