Repository logo

Hashtag politics: a Twitter sentiment analysis of the 2015 Canadian federal election

Faculty Advisor




split plot design, confidence interval, ANOVA, sentiment analysis

Abstract (summary)

We developed a split plot design model for analysis of sentiment toward federal political parties on the social media platform Twitter in the weeks prior to the 2015 Canadian Federal Election. Data was collected from Twitter’s Application Programming Interface (API) via statistical program R. We scored the sentiment of each Twitter message referring to the parties and tested using ANOVA. Our results suggested that the Liberal Party and New Democratic Party had more positive sentiment than the Conservative Party. Actual seat wins coincide with our results for the Liberal Party (which won 148 new seats) and the Conservative Party (which lost 60 seats), but positive sentiment for the New Democratic Party did not correspond to seat wins.

Publication Information

Mullins, A., & Epp, A. (2020). Hashtag Politics: A Twitter Sentiment Analysis of the 2015 Canadian Federal Election. MacEwan University Student EJournal (MUSe), 4(1).


Item Type

Student Article




Attribution-NonCommercial (CC BY-NC)