<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Relating Political Party Mentions on Twitter with Polls and Election Results</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Eric Sanders</string-name>
          <email>e.sanders@let.ru.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antal van den Bosch</string-name>
          <email>a.vandenbosch@let.ru.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CLS, Radboud University Nijmegen</institution>
          ,
          <addr-line>Erasmusplein 1, 6525 HT Nijmegen, +31 24 3611647</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>CLS/CLST, Radboud University Nijmegen</institution>
          ,
          <addr-line>Erasmusplein 1, 6525 HT Nijmegen, +31 24 3616087</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>In each of the last ten days preceding the parliamentary elections of 2012 in the Netherlands at least one election poll was published. Throughout the same period close to 170 thousand Dutch microtext messages with references to political parties were posted on Twitter, the microblogging platform. In this study we investigate whether these tweets can serve as an addition to, or even an alternative for the traditional polls as predictors of the election outcomes. We show that counts of mentions of political party names are strongly correlated with the polls and the election results. While polls remain more accurate as a predictor of the outcome (a mean absolute error of 1.1% and a correlation of about 0.98 with the actual percentage of votes cast for all parties), the Twitter statistics show a mean absolute error of 1.9% when aggregated over a number of days, and display a high correlation with elections and polls (in both cases, r≈0.95). We conclude that tweet mention counts form a good complementary basis for predicting election results.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Categories and Subject Descriptors</title>
      <sec id="sec-1-1">
        <title>H.3.3 [Information Storage and Retrieval]: Information Search</title>
        <p>and Retrieval</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>General Terms</title>
    </sec>
    <sec id="sec-3">
      <title>1. INTRODUCTION</title>
      <p>With a current average of about a half billion messages posted
daily, Twitter hosts a massive amount of accessible messages,
which in turn harbor vast amounts of information. Tweets are
often related to personal affairs, but may also refer to popular
events. One of the interesting uses of the information in tweets is
to try to determine people‟s opinions about certain matters.
Politics is an attractive subject to try to get opinions about from
tweets. In terms of events, political elections typically evoke the
posting of tweets containing political views.</p>
      <p>A conventional way of assessing average opinions about politics
during election periods is polling. The standard polling method is
to ask a small but representative part of the population what party
or person one is planning to vote for. On Twitter people give this
information without being prompted. It would be an interesting
addition to (or even alternative to) polls if we could extract this
information from tweets. The most challenging part of it is to
gather a balanced representation from the tweets of the people
participating in the elections. In essence this is impossible; while
the legal voting age in the Netherlands is 18, many users on
Twitter have not reached that age, but demographic information
regarding individual users is not available in any trustworthy way
on Twitter. The sheer magnitude of data available on Twitter may
compensate for this partly unrepresentative information.</p>
    </sec>
    <sec id="sec-4">
      <title>2. RELATED WORK</title>
      <p>O‟Connor et al [3] compare the sentiment ratio of tweets
containing „obama‟ with presidential job approval polls in 2009
and presidential election polls in 2008. The ratio correlates well
with the first poll but does not with the latter. Marchetti-Bowick
and Chambers [4] build on the work of O‟Connor et al. and use
distant supervision for both topic identification and sentiment
analysis. The comparison of the results with Obama‟s job
approval poll gives better correlation than earlier work.
Tjong Kim Sang and Bos [5] compare tweet mentions and
election results for the Dutch senate elections of 2011. Beyond
raw counts of tweets they test and compare the predictive power
of four alternative counting methods, but they do not find large
improvements with these methods.</p>
      <p>The novelty of the work described in this paper is that it is based
on a relatively large number of consecutive polls on each of the
ten days before the elections.</p>
      <p>Gayo-Avello [6] pinpoints a couple of problems with predicting
elections based on tweets and gives some suggestions. Apart from
those addressed in this paper, he indicates that only good results
are published and analyzing afterwards is not predicting.</p>
      <sec id="sec-4-1">
        <title>Party</title>
        <p>VVD
PVDA
SP
PVV
CDA</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>3. DATA</title>
      <p>The Twitter data used in the experiments is taken from a
substantial archive of Dutch tweets collected within the TwiNL
project (ifarm.nl/erikt/twinl). The FAQ of the related search
website twiqs.nl states that an estimated 40% of all Dutch tweets
are collected since December 16, 2010. The present study makes
use of all tweets gathered between September 2 to September 12,
2012, for which between 2.0 and 2.4 million tweets per day have
been archived.</p>
      <p>The poll data is taken from the website Alle Politieke Peilingen
(www.allepeilingen.com) that has saved the poll results from 2000
onwards of the six most cited polling institutes in the Netherlands.
These are: peil.nl, TNS NIPO, de politieke barometer, buzzpeil.nl,
de Stemming and NOS Peilingwijzer. All these polls try to predict
the result of the elections (if the elections were held on the day of
the poll).</p>
    </sec>
    <sec id="sec-6">
      <title>4. EXPERIMENT</title>
      <p>For the eleven parties that won one or more seats in parliament we
counted how often the party name was mentioned in a tweet in the
ten days before the elections and on election day, 12 September
2012. This was done with a basic pattern match. First it was
investigated by which names parties are mentioned in the tweets.
Most parties are almost exclusively mentioned by their
abbreviation and rarely by their full name. Most full names are
therefore ignored. For instance, the acronym of the VVD occurs
over thousand times more often than its full name, „Volkspartij
voor Vrijheid en Democratie‟. However, two parties are often
mentioned by their full name: GroenLinks and ChristenUnie.
Their respective abbreviations can also have other meanings: GL
being a typical English shorthand for „good luck‟ and CU for „see
you‟, but a manual inspection revealed that these abbreviations are
rarely used in these meanings.</p>
      <p>
        We needed to generate several specific pattern-matching
expressions. Three parties have „van de‟ („of the‟) or „voor de‟
(„for the‟) in their full name which can be expressed in many
ways, e.g. „vd‟, „v.d.‟, „v/d‟, „van de‟, „v d‟, which are all
represented in the search pattern that was used. Matching is
caseinsensitive, so „SGP‟, „sgp‟, „Sgp‟ etc. are all recognised. No
effort was made to find misspelled party names. The party names
can be preceded by „@‟ (Twitter account names) or „#‟ (Twitter
hashtags) and preceded or followed by punctuation.
During the period of ten days before the election, for each day and
each party, the percentage of tweets in which a party is mentioned
is compared to the result of the average of all polls that came out
that day. This was done to investigate how much the percentage of
party mentions in tweets resembles the polls. Subsequently, the
results of the averaged polls on the day before the election and the
election results are compared to each other and to the tweet
mentions of (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) election day, (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) the day before election day, (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
an aggregate of all tweets during the 10-day period before the
elections, and (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) an aggregate over a 5-day period before the
elections.
An average of 0.7% of all daily tweets posted throughout the last
ten days before the election mentions at least one political party.
Table 2 shows that these nearly 170 thousand tweets are not
uniformly divided over the eleven days; about one third of all
tweets is posted on election day, and more tweets are posted
closer to election day.
      </p>
    </sec>
    <sec id="sec-7">
      <title>5. RESULTS</title>
      <p>First, comparisons are shown in three figures (Figures 1, 2, and 3)
between daily percentages of Twitter mentions and daily poll
results of selections of two or three parties during the ten days
before the elections.</p>
      <p>The daily percentage of Twitter mentions for a particular party is
computed as follows:
Perc = 100 * #mentionsp / ∑p#mentionsp
where #mentionsp is the number of mentions of a particular party,
and ∑p#mentionsp is the total number of mentions of all eleven
parties. The counts thus represent mentions, not tweets: if in a
tweet two parties are mentioned, the tweet is counted twice.
The percentages of poll results are computed from the predicted
number of parliament seats, which is the statistic by which they
are reported and stored. As there are 150 seats in the Dutch
parliament, each seat stands for 0.67%. The percentage used here
is the mean percentage of the predicted number of seats of all
polling institutes that released a prediction that day. For some
days there is a poll of only one institute. The predictions of the
polling institutes differ slightly. The largest difference between
two predictions from poll estimates for the same party on the
same day is 4.7%. On the day before the elections, 11 September,
all polling institutes published results.</p>
    </sec>
    <sec id="sec-8">
      <title>5.1 Twitter vs Polls Correlation</title>
      <p>As an aside, the figure also shows a relatively high peak in the
Twitter mentions of the PVV five days before the elections. This
may be explained by the news that day that the PVV had falsely
declared money from the European Union, while their campaign
was outspokenly anti-Europe.</p>
    </sec>
    <sec id="sec-9">
      <title>5.3 Twitter vs Polls Trend</title>
    </sec>
    <sec id="sec-10">
      <title>5.2 Twitter vs Polls Outliers</title>
      <p>This trend is typical for all but one party, GroenLinks (GL), as
shown in Figure 2. For comparison, the GroenLinks estimates are
compared against the predictions for the PVV. The figure displays
an unexpected difference between the Twitter mentions and poll
results for GroenLinks. This party is well known for its
aboveaverage use of and presence on social media in their campaign [7].</p>
    </sec>
    <sec id="sec-11">
      <title>5.4 Twitter vs Polls vs Election</title>
      <p>
        Table 3 shows for all parties the difference between the election
results on 12 September, the mean result of all polls on the day
before the elections, and the relative percentage of tweets the
party was mentioned on (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) election day, (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) the day before, (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
during all ten days and (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) during five days before the elections.
The fourth and second rows from below list the mean absolute
error (MAE) of the column with the election results (2nd column)
and with the polls of the pre-election day (3rd column). The third
last and final row show the correlation and the 95% confidence
interval with the election and poll results.
      </p>
      <p>The MAE of the polls with the election results is smaller than the
MAE of the tweet mentions with the election results in all cases,
meaning that polls are a better predictor of the election results
than raw counts of party names in tweets. The table also shows
that tweet mentions of a time span of several days (five or ten)
before the elections are closer to the election results than the tweet
mentions on one specific day (election day or the day before).
Tweet mentions gathered during five days before the elections are
closer to the election results than all tweet mentions from ten days
before the election results. Finally, the correlation coefficient and
the confidence interval show the same trend as the MAE, and are
very high in all cases; 0.93 or higher.
SP
D66
CU
GL
50PLUS
MAE
elections</p>
      <sec id="sec-11-1">
        <title>Corr elections</title>
      </sec>
      <sec id="sec-11-2">
        <title>MAE poll</title>
      </sec>
      <sec id="sec-11-3">
        <title>Corr poll</title>
        <p>Election
12 Sep
26.8
25.1
10.2
9.8
8.6
8.1
3.2
2.4
2.1
2.0
1.9
1.1
0.98
(0.931.0)</p>
        <sec id="sec-11-3-1">
          <title>Polls</title>
          <p>11
Sep
23.7
23.4
11.6
13.9
8.3
7.9
3.7
2.7
1.7
1.8
1.7
1.1
0.98
(0.93
-1.0)</p>
        </sec>
        <sec id="sec-11-3-2">
          <title>Tweet 12 Sep</title>
          <p>24.6
18.5
13.6
8.7
6.0
9.8
2.6
7.0
3.2
3.6
2.4
2.4
0.95
(0.820.99)
2.4
0.93
(0.760.98)</p>
        </sec>
        <sec id="sec-11-3-3">
          <title>Tweet 11 Sep</title>
          <p>18.9
21.7
11.5
9.7
7.5
9.7
2.9
8.9
4.4
3.5
1.3
2.4
0.94
(0.780.98)
2.3
0.94
(0.780.98)</p>
        </sec>
        <sec id="sec-11-3-4">
          <title>Tweet 2-11 Sep</title>
          <p>20.7
20.2
10.7
12.0
8.6
9.0
3.0
8.6
2.9
3.2
1.1
2.2
0.95
(0.830.99)
2.0
0.96
(0.870.99)</p>
        </sec>
        <sec id="sec-11-3-5">
          <title>Tweet 7-11 Sep</title>
          <p>20.6
22.2
11.4
10.3
8.6
8.5
2.7
8.8
2.8
3.2
1.1
1.9
0.96
(0.840.99)
1.7
0.96
(0.830.99)</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-12">
      <title>6. DISCUSSION</title>
      <p>The results of our comparative study on the 2012 Dutch
parliament elections provide case-based evidence that tweets are a
good basis for predicting election results. Purely on the basis of
raw counts of party name mentions (with flexible pattern
matching rules), without further domain knowledge, a strong
correlation with the poll results can be observed (around 0.95). In
a number of cases the difference between the Twitter mentions
and the polls is larger than 5%, but the difference between the
various polls is also almost 5% in a few cases. Although the polls
more accurately predict the election outcome, the correlation
between tweet-based estimates and the outcome is observed to be
as high as 0.96, with a mean absolute error of only 1.9% (the polls
attain 1.1%), provided that the tweet counts are aggregated over a
number of days.</p>
      <p>As Gayo-Avello rightly points out in his paper [6] our kind of
approach lacks information that could improve the prediction of
election outcomes or poll results based on Twitter. First, who is
tweeting? If the Twitter account is from a party member or
official the tweet could be filtered out as it may be used to steer
social media opinions or even statistics. However, it is hard to
ascertain whether a Twitter account is from a party member.
Automatic profiling based on machine learning and text
classification may help in this respect. Second, is the tweet polar
or neutral? A Twitter user who will vote for a party is likely to
compose positive tweets about that party. Automatic sentiment
analysis (perhaps trained on political opinions to capture
domainspecific sentiment markers) might be used to reweight counts.
Negation and hedging may be a third factor that could partially be
determined automatically and improve estimates. A tweet such „I
will not vote for partyX‟ could then be left out of the count for
partyX. This is a very challenging task, though. Morante and
Daelemans [8] provide pointers on how this may be addressed.
Fourth, can we account for factors that cause an increase in the
number of tweets of a certain party? The detection of other events
involving entities that also play a role in the focus event (such as
the PVV scandal mentioned in the discussion of Figure 2) may be
used to discount tweets about this event.</p>
      <p>Finally, we observed that estimates based on counts aggregated
over several days better approximated the election results than the
counts on a specific day; five days seem to represent a reasonable
aggregation window. A further study could be carried out to see
whether an optimal time window can be found for events similar
to the single case studied here.</p>
      <p>We do not share Gayo-Avello‟s conclusion that elections cannot
be predicted with Twitter, but acknowledge that further research
has to be carried out before we say Yes we can! (predict elections
with Twitter).</p>
    </sec>
    <sec id="sec-13">
      <title>7. ACKNOWLEDGMENTS</title>
      <p>We thank Ruut Brandsma from www.allepeilingen.com for
providing the data from the polling institutes.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Tumasjan</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sprenger</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sander</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Welpe</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>Predicting Elections with Twitter: What 140 Characters Reveal about Political Sentiment</article-title>
          .
          <source>Proceedings of the fourth International AAAI Conference on Weblogs and Social Media</source>
          , Washington D.C., USA,
          <year>2010</year>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Jungherr</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jürgens</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schoen</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          (
          <year>2012</year>
          ).
          <article-title>Why the Pirate Party Won the German Election of 2009 or The Trouble With Predictions: A Response to Tumasjan, A</article-title>
          .,
          <string-name>
            <surname>Sprenger</surname>
            ,
            <given-names>T.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sander</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Welpe</surname>
            ,
            <given-names>I.M.</given-names>
          </string-name>
          “
          <article-title>Predicting Elections with Twitter: What 140 Characters Reveal about Political Sentiment”</article-title>
          , Social Science Computer Review
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>O</given-names>
            <surname>‟Connor</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Balasubramanyan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Routledge</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Smith</surname>
          </string-name>
          ,
          <string-name>
            <surname>N.</surname>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>From Tweets to Polls: Linking Text Sentiment to Public Opinion Time Series</article-title>
          .
          <source>Proceedings of the fourth International AAAI Conference on Weblogs and Social Media</source>
          , Washington D.C., USA,
          <year>2010</year>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Marchetti-Bowick</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chambers</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          (
          <year>2012</year>
          ).
          <article-title>Learning for Microblogs with Distant Supervision: Political Forecasting with Twitter</article-title>
          .
          <source>Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics</source>
          , Avignon, France,
          <year>2012</year>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Tjong</given-names>
            <surname>Kim Sang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            and
            <surname>Bos</surname>
          </string-name>
          . J. (
          <year>2012</year>
          ).
          <article-title>Predicting the 2011 Dutch Senate Election Results with Twitter</article-title>
          ,
          <source>Proceedings of SASN</source>
          <year>2012</year>
          ,
          <source>the EACL 2012 Workshop on Semantic Analysis in Social Networks</source>
          , Avignon, France,
          <year>2012</year>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Gayo-Avello</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          (
          <year>2012</year>
          ). No,
          <article-title>You Cannot Predict Elections with Twitter</article-title>
          ,
          <source>IEEE Internet Computing</source>
          , vol.
          <volume>16</volume>
          , no 6. pp.
          <fpage>91</fpage>
          -
          <lpage>94</lpage>
          ,
          <string-name>
            <surname>Nov</surname>
          </string-name>
          .-Dec.
          <year>2012</year>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7] http://www.sax.nu/Portals/615/docs/Rapport_Saxion_Social_ Media_Politiek_
          <year>2012</year>
          .pdf
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Morante</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Daelemans</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>A metalearning approach to processing the scope of negation</article-title>
          .
          <source>Proceedings of the Thirteenth Conference on Computational Natural Language Learning</source>
          , pp.
          <fpage>21</fpage>
          -
          <lpage>2</lpage>
          ),
          <fpage>2009</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>