<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">TI</journal-id><journal-title-group><journal-title>Technology and Investment</journal-title></journal-title-group><issn pub-type="epub">2150-4059</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ti.2018.91005</article-id><article-id pub-id-type="publisher-id">TI-82654</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Business&amp;Economics</subject></subj-group></article-categories><title-group><article-title>
 
 
  The Weighting Factors to Improve Predictability on Twitter
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Jorge</surname><given-names>Arroba Rimassa</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rafael</surname><given-names>Muñoz Guillena</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fernando</surname><given-names>Llopis</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Facultad de Ingeniería Ciencias Físicas y Matemáticas, Universidad Central del Ecuador, Quito, Ecuador</addr-line></aff><aff id="aff2"><addr-line>Departamento de Lenguajes y Sistemas Informáticos, Universidad de Alicante, Alicante, Espa&amp;amp;ntilde;a</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>jarroba@uce.edu.ec(JAR)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>26</day><month>01</month><year>2018</year></pub-date><volume>09</volume><issue>01</issue><fpage>68</fpage><lpage>79</lpage><history><date date-type="received"><day>12,</day>	<month>December</month>	<year>2017</year></date><date date-type="rev-recd"><day>24,</day>	<month>February</month>	<year>2018</year>	</date><date date-type="accepted"><day>27,</day>	<month>February</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  The result of the analysis of a thematic in a social network is to find a measure that allows the principal actors to know their performance, that is, they can define or maintain strategies and courses of action in order to optimize their communication. It is necessary to formally define the principles of analysis in Social Networks in order to use their characteristics better and to be able to contextualize the concept and use of weighting factors to improve their predictability. When Social Networks are going to be used as a mechanism to predict social behavior, for example, to predict the outcome of a political election, weighting factors must be introduced to try to match the data collected from the Social Network with those of a sample. In this article we have defined the methodology to incorporate the geographic weighting factors and several formulas have been created that allow reprocessing the data downloaded from Twitter in which its polarity has been determined by classical NLP methods to increase the predictive power.
 
</p></abstract><kwd-group><kwd>Twitter</kwd><kwd> Weighting Factors</kwd><kwd> Formalization of Social Networks</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Today, all with 280 characters we can say about everything; these opinions are added in a massive way to build a thematic analysis that is a theoretical construct on various aspects.</p><p>In this context, opinion leaders, product brands, thematic positions, official or private organizations, entities, etc. are considered as principal actors that interact with the different users who in turn express their opinion and take some position with respect to these actors.</p><p>The realization of an analysis of this information that flows in a bidirectional way, between principal and active actors, the users, is what gives more power to the Social Networks; because these are becoming a tool to “influence” the user. Then the analysis of a topic in a social network becomes a measure that allows in many cases to the principal actors to know their performance; if what they express is well positioned, their measure of acceptance; that is, we have the measure to define or maintain strategies and courses of action in order to optimize communication and performance.</p><p>All people have access to a social network, think, criticize, warn and they make value judgments on any topic and from social networks. One of those that has more followers and allows the download for further analysis is Twitter to use the messages as a tool to evaluate the performance of the principal actors. A conversion process must be carried out so that the opinion given in the twitters is equivalent to those of the general population, since Twitter users are a subset of these.</p><p>Before beginning the analysis of Social Networks, we must begin to contextualize their concept; we must formally define their principles in order to better exploit their characteristics.</p><p>We must also formalize the conversion process so that its use is more widespread and that the a-posteriori results are closer to reality and reflect the true feelings of the users.</p></sec><sec id="s2"><title>2. Methods and Procedures for Processing Information</title><p>Performing analysis in order to predict certain behaviors using social networks has positions. From the most extreme ones that state that it definitely does not make sense to make any attempt to analyze the information of social networks to those that tend to use and abuse to try to predict the different behaviors of the actors.</p><p>Different authors have used different techniques of polarity analysis and even more in electoral processes, which become a thermometer to the extent that their results can be contrasted with those issued by the predictions that are made, besides the simple counting of the mentions. <xref ref-type="table" rid="table1">Table 1</xref> shows a taxonomy of antinomic positions in terms of whether social networks can be used or not to</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Positions on the use of twitters for predictive analysis</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >If they predict</th><th align="center" valign="middle" >If they not predict</th></tr></thead><tr><td align="center" valign="middle"  rowspan="3"  >Do not perform polarity analysis</td><td align="center" valign="middle" >Tumasjan et al., 2010</td><td align="center" valign="middle"  rowspan="7"  >Gayo-Avello, Metaxas, and Mustafaraj, 2011</td></tr><tr><td align="center" valign="middle" >Fern&#225;ndez Crespo, 2013</td></tr><tr><td align="center" valign="middle" >Zarella, 2010</td></tr><tr><td align="center" valign="middle"  rowspan="4"  >Do perform polarity analysis</td><td align="center" valign="middle" >http://tweetminster.co.uk, 2010</td></tr><tr><td align="center" valign="middle" >Montesinos, 2013</td></tr><tr><td align="center" valign="middle" >Ramadhan, Nurhadryani, and Hermadi, 2014</td></tr><tr><td align="center" valign="middle" >Tsakalidis et al. 2014</td></tr></tbody></table></table-wrap><p>predict results and the use or not of methods to determine the polarity of messages; in which the main authors have been annotated in relation to political prediction.</p><p>In the first quadrant, those who state that the analysis of the twitters serves to predict results but without using methods to detect the polarity, that is, working with the total number of mentions that one or another principal actor can have. The works of [<xref ref-type="bibr" rid="scirp.82654-ref1">1</xref>] in the elections of Germany, [<xref ref-type="bibr" rid="scirp.82654-ref2">2</xref>] in the general elections of Spain and [<xref ref-type="bibr" rid="scirp.82654-ref3">3</xref>] in several legislative elections in the United States in the political field are iconic.</p><p>In the second quadrant, there are those that use and perform the analysis of the twitter to predict, but incorporate the procedures for determining the polarity of the messages. They then count the mentions of those who have positive polarity or acceptance to a certain principal actor. The analyzes published by tweet minster for elections in the United Kingdom, [<xref ref-type="bibr" rid="scirp.82654-ref4">4</xref>] in primary elections in Chile, [<xref ref-type="bibr" rid="scirp.82654-ref5">5</xref>] in the elections in Jakarta and [<xref ref-type="bibr" rid="scirp.82654-ref6">6</xref>] in various elections in Europe also in the political field, they are referents as much by the results as by the diverse in the geographic regions that apply them.</p><p>In the third quadrant, however, we mention [<xref ref-type="bibr" rid="scirp.82654-ref7">7</xref>] as an advocate of those who state that the twitter analysis cannot predict any result by the erratic results and values of the average absolute error, MAE, which are obtained high.</p></sec><sec id="s3"><title>3. Contextualization of the Analysis of Social Networks</title><p>We can consider that a message is a dimensional p + 1 vector:</p><p>t $ = ( v 1 , v 2 , ⋯ , v p , x )</p><p>where I saw them v<sub>i</sub> are variables that identify the user and also determine the context in which the message is made, x is the content that can be: text, photo, image, video, audio, etc.</p><p>Clearly an x can contain a text plus an image or the meeting of all them.</p><p>If we define the set:</p><p>R S = { t $ | itisamessage }</p><p>how the whole Social Network.</p><p>We affirm that a Social Network contains all the messages transmitted to the present.</p><p>The set A of all the users who send, receive or visualize messages in RS is called the set of Actors. The actors are those entities that emit any message, either to publicize a particular event, an opinion or simply wish to retransmit the content x of a message t$; there are also those who only observe in the social network. We must distinguish some types of actors: those we want to analyze will be the principal actors, here are the candidates, the brands, etc.; those who send and receive messages will be the active actors, in this group are all the users or the general public and those who only observe the activity in the social network, without participating will be the passive actors; since they do not interact with anyone, they cannot be followed or analyzed, so we will exclude them from the analysis. The active actors of the principal actor a ε A will be all the u that “interact with” a.</p><p>We can define in the Social Network, the relationship “interact with” as:</p><p>R : A &#215; A → { 0 , 1 }</p><p>( u , a ) ↦ R ( u , a )</p><p>where:</p><p>R ( u , a ) = { 1 if u followto a 0otherwise</p><p>The set of all the active actors of the principal actor a will be noted by U a = { u 1 , a , u 2 , a , ⋯ , u q , a } .</p><p>The set of all the messages of the set of actors A in the temporality T = [ t i , t f ] where t<sub>i</sub> and t<sub>f</sub> represent the time or the start and end date of reception of the messages; it will be noted by: RS<sub>A,T</sub> and we will call it the Thematic of actors A in temporality T in the social network RS.</p><p>The messages of the active actor u<sub>j,a</sub> &#206; U<sub>a</sub> will be: t $ j , 1 , a , t $ j , 2 , a , ⋯ , t $ j , k , a , ⋯ , t $ j , n j , a since an active actor can send n<sub>j</sub> messages to the principal actor a, the matrix representation of the messages for the principal actor a will be:</p><p>M t $ a = ( t $ 1 , 1 , a t $ 1 , 2 , a ⋮ t $ 1 , n 1 , a t $ 2 , 1 , a t $ 2 , 2 , a ⋮ t $ 2 , n 2 , a ⋮ ⋮ t $ q , 1 , a t $ q , 2 , a ⋮ t $ q , n q , a ) = ( v 1 , 1 , a , 1 v 1 , 1 , a , 2 ⋯ v 1 , 1 , a , p x 1 , 1 , a v 1 , 2 , a , 1 v 1 , 2 , a , 2 ⋯ v 1 , 2 , a , p x 1 , 2 , a ⋮ ⋮ ⋱ ⋮ ⋮ v 1 , n 1 , a , 1 v 1 , n 1 , a , 2 ⋯ v 1 , n 1 , a , p x 1 , n 1 , a v 2 , 1 , a , 1 v 2 , 1 , a , 2 ⋯ v 2 , 1 , a , p x 2 , 1 , a v 2 , 2 , a , 1 v 2 , 2 , a , 2 ⋯ v 2 , 2 , a , p x 2 , 2 , a ⋮ ⋮ ⋱ ⋮ ⋮ v 2 , n 2 , a , 1 v 2 , n 2 , a , 2 ⋯ v 2 , n 2 , a , p x 2 , n 2 , a ⋮ ⋮ ⋱ ⋮ ⋮ ⋮ ⋮ ⋱ ⋮ ⋮ v q , 1 , a , 1 v q , 1 , a , 2 ⋯ v q , 1 , a , p x q , 1 , a v q , 2 , a , 1 v q , 2 , a , 2 ⋯ v q , 2 , a , p x q , 2 , a ⋮ ⋮ ⋱ ⋮ ⋮ v q , n q , a , 1 v q , n q , a , 2 ⋯ v q , n q , a , p x q , n q , a )</p><p>Be the matrix Mt$<sub>a</sub> and Mt$<sub>b</sub>:</p><p>M t $ a = ( v 1 , 1 , a , 1 ⋯ v 1 , 1 , a , p x 1 , 1 , a ⋮ ⋱ ⋮ ⋮ v q , n q , a , 1 ⋯ v q , n q , a , p x q , n q , a ) , M t $ b = ( v 1 , 1 , b , 1 ⋯ v 1 , 1 , b , p x 1 , 1 , b ⋮ ⋱ ⋮ ⋮ v r , n r , b , 1 ⋯ v r , n r , b , p x r , n r , b )</p><p>The matrix operation ⊗ is defined as:</p><p>M t $ a ⊗ M t $ b = ( v 1 , 1 , a , 1 ⋯ v 1 , 1 , a , p x 1 , 1 , a ⋮ ⋱ ⋮ ⋮ v q , n q , a , 1 ⋯ v q , n q , a , p x q , n q , a v 1 , 1 , b , 1 ⋯ v 1 , 1 , b , p x 1 , 1 , b ⋮ ⋱ ⋮ ⋮ v r , n r , b , 1 ⋯ v r , n r , b , p x r , n r , b )</p><p>And we will have the matrix representation of the Thematic RS<sub>A,T</sub>:</p><p>M t $ = ⊗ a ∈ A M t $ a</p><p>Facebook, Twitter, Whatsapp, Linkedin, etc. they are examples of Social Networks, which contain messages from actors, and a theme is for example “an advertising campaign” launched a month ago; where the principal actors are those who want to “sell” the product and also those who want us not to “buy” it, surely their competitors, the active actors would be all the users who receive the messages from these principal actors that show us the virtues and defects of the product. Temporality will be the period from one month ago to the present.</p><p>Without loss of generality, to the extent that one knows and has perfectly defined which are the principal actors to be analyzed, while the active actors are rather unknown and that is sometimes one of the objectives of performing the analysis in a Social Network, is that the set of actors A, will be defined based on the principal actors.</p><p>And then what does it mean to perform an analysis of RS<sub>A,T</sub>?</p><p>It is to answer a series of questions that can be asked, basically, is to know certain performance measures. In the preceding example it can be: the percentage of users that will accept the “product”.</p><p>The present investigation wants to give a contribution so that the measures of performance are more reliable making use only of the RS<sub>A,T</sub> and we will be restricted in the social network Twitter treating only those textual contents of the messages.</p><p>The processes to be followed in the analysis procedures of an RS<sub>A,T</sub> theme are basically the same: defining the actors and temporality, extracting the data, debugging the data, measuring the polarity of the messages and obtaining the performance measures.</p><p>Be the principal actors A = { a 1 , a 2 , ⋯ , a r } , the determination of the active actors u of each principal actor a, that is to say U<sub>a</sub>, as mentioned is not fundamental. What we should observe in data cleansing is that some active actor are not “bots”, which today have become the biggest problem that social networks have since they distort the performance measures of any actor; often increasing its presence and temporality T = [t<sub>i</sub>, t<sub>f</sub>] where t<sub>i</sub> and t<sub>f</sub> represent the start and end date of reception of the messages. This is how the Thematic RS<sub>A,T</sub> of a certain determined investigation is defined.</p><p>Then we define a mechanism to download RS<sub>A,T</sub>, for twitter there are several free and commercial applications to obtain the matrices Mt$<sub>a</sub> for all the principal actors to which they were defined. The debugging of the data has to do basically to avoid the “bots” mentioned, being an elementary procedure to eliminate those messages t$<sub>j,i,a</sub> and t$<sub>j,k,a</sub> from an active actor that contain the same content x.</p><p>We also eliminate the spaces, external links and only keep the text that represents the topic of twitter.</p><p>The next step is to define the polarity of the content x of the messages t$. The goal of polarity is to define a measure of acceptance, rejection or neutrality of each content x made by the active actor u on the principal actor a. That is, we have to find a function f such that:</p><p>p u , a = f ( t $ ) = { 1               if   x   is   accepted 0             if   x   is   neutral − 1         if   x   is   rejected</p><p>This problem can be addressed by several methods, the most used:</p><sec id="s3_1"><title>3.1. Supervised Methods</title><p>It is required to “train” through an “agent”, depending on the subject of the analysis, the agent can be a function of discrimination, in other cases the agent must be a person.</p><p>The number of elements to train can be calculated by the size of a simple random sampling, SRS, predefining α and e (reliability and error). For small sizes, one third of the population of the x can be trained.</p><p>Independent of the algorithm, the values of the Confusion Matrix must be checked, specifically the CM trace will be added and divided by the trained size. The technique will be accepted if this value is greater than the value that the researcher has set as the admissible limit of acceptability; otherwise, you should look for another method to find the function f.</p></sec><sec id="s3_2"><title>3.2. Unsupervised Methods</title><p>Through, for example, the use of dictionaries. For which the x must be prepared. Each content x can be decomposed in a sequence 〈 x 〉 in which each element of the sequence is a “debugged” word, which is the one in which special reference characters, stopwords, lemmatizations, etc. have been eliminated.</p><p>Thus: if x = 〈 x 1 , x 2 , ⋯ , x β 〉 and we are using the dictionaries DP = {p/p is a positive word} and DN = {n/n is a negative word} using the counting method we would have the following polarity function:</p><p>p u , a = sgn ( ∑ i = 1 β ( | { x i } ∩ D P | − | { x i } ∩ D N | ) )</p><p>(The symbol | C | represents the cardinal of set C).</p><p>For applications where you want to have only two types of polarity, 1 if you are in favor and 0 otherwise we will use the following function that is evaluated by the Equation (1):</p><p>p u , a = sgn ( sgn ( ∑ i = 1 β ( | { x i } ∩ D P | − | { x i } ∩ D N | ) ) ) (1)</p><p>The following procedure, subject of the present investigation, is as follows.</p></sec></sec><sec id="s4"><title>4. The Weighting Factors and Their Application in the Analysis of Social Network</title><p>The weighting factors is the mechanism by which a conversion process should be carried out so that the opinion given in the twitters equals those of the general population, given that Twitter users are a subset of these.</p><p>As the processes of analysis of a thematic is carried out in a specific geographical location, it will be necessary to determine the administrative divisions of a lower level.</p><p>In view of the fact that the only “geographical” data available are those of the geo-coordinates, which is generally not available because most users prefer not to enable it, and the other is the locality from which the messages are made twitter, we will try to identify the location and parameterize it with the province of origin where the message was issued and for those that do not have a location in any of these categories will be defined as others.</p><p>Define the set of provinces and their locations as follows:</p><p>P = { P i | P i   itisaprovince , i = 1 , 2 , ⋯ , N }</p><p>P i = { l o c i , 1 , l o c i , 2 , ⋯ , l o c i , n i } ,   ∀ i ,   i = 1 , 2 , ⋯ , N</p><p>First we must determine, for each observation j the number of mentions (with positive polarity) in total that exist in the province of observation j. The only data we have is that of the loc<sub>j</sub> locality and it may be the case that it is not defined or is simply expressed through some colloquialism. In this case this locality will pass to the group of others or those not located. According to [<xref ref-type="bibr" rid="scirp.82654-ref8">8</xref>] getting a real place from these data is a very complex problem.</p><p>That is why in the P<sub>i</sub> set of localities of the province i, it should be the most extensive, in the sense of putting with the highest level of detail the localities or administrative areas of lower level. The number of mentions of province P<sub>i </sub>in the matrix will be determined by Equation (2):</p><p>N j = ( ( p o l j ∑ i = 1 N | { l o c j } ∩ P i | [ ∑ k = 1 N O B S | { l o c k } ∩ P i | p o l k ] − 1 ) | { l o c j } ∩ ∪ i = 1 N P i | p o l j + 1 ) (2)</p><p>where the variable NOBS is the total number of rows of the matrix Mt$, pol<sub>k</sub> is a polarity the message k, loc<sub>k</sub> is a location of each observation k.</p><p>Next we determine the total of localities that belong to any province of the considered ones. This value is calculated using the Equation (3):</p><p>D = ∑ k = 1 N O B S p o l k | { l o c k } ∩ ∪ i = 1 N P i | (3)</p><p>Then the sample proportion for observation j will be calculated using the Equation (4):</p><p>M j = N j D (4)</p><p>Similar process must be done to obtain the proportion of the universe, for each observation j, as for each P<sub>i</sub> we have the data of the Population (electoral) proportion pP<sub>i</sub>, but this percentage is not valid for those other category locations, so a reconversion must be carried out, by the Equation (5):</p><p>U j = p o l j ∑ i = 1 N | { l o c j } ∩ P i | p P i (5)</p><p>Then the weighting factor that will be applied to each observation j, both for those that have localities located, and other type localities will be estimated by the Equation (6):</p><p>f p j = ( ( U j M j − 1 ) | { l o c j } ∩ ∪ i = 1 N P i | + 1 ) p o l j (6)</p><p>In order to obtain the final assessment for each of the actors, we will evaluate their mentions with positive polarity, affecting it with the weighting factor.</p><p>Through the following example we will test the indicated methodology.</p><p>Let P = { P 1 , P 2 , P 3 } be a geographical entity with N = 3 provinces, where each of these have the following localities (municipalities, cantons, town, etc.):</p><p>P 1 = { t o w n 1 , t o w n 5 }</p><p>P 2 = { t o w n 2 , t o w n 3 , t o w n 4 }</p><p>P 3 = { t o w n 6 }</p><p>And the principal actors are: A = { a 1 , a 2 , a 3 , a 4 } .</p><p><xref ref-type="table" rid="table2">Table 2</xref> shows the Mt$ matrix representation of RS<sub>A,T</sub> (we assume that the temporality has been collected on the scheduled dates). As we mentioned, it does not matter to meet the principal actors.</p><p>The number of messages to be analyzed is NOBS = 16.</p><p>Let us also suppose that these messages are already debugged.</p><p>For the determination of polarity we will use the dictionary of positive and negative terms, being:</p><p>D P = { a , b , c }</p><p>D N = { r , s , t }</p><p>For purposes of the analysis that is required, we will use Equation (1) so that the polarity takes only two values: 1 if it is positive and 0 otherwise.</p><p>In this example, we determine the polarity determination, ceteris paribus, because what we want to demonstrate is the use of the weighting factors that should be used to improve predictability. The count of positive words in each content, as well as that of negative words has been evaluated for the contents x of each one of the observations considered in the matrix Mt$, in order to calculate the polarity, which we will notice by pol<sub>j</sub><sub> </sub>is shown in <xref ref-type="table" rid="table3">Table 3</xref>.</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Matrix representation of RS<sub>A,T</sub></title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Observation</th><th align="center" valign="middle" >Location</th><th align="center" valign="middle" >Active Actors</th><th align="center" valign="middle" >Principal Actors</th><th align="center" valign="middle" >Content</th></tr></thead><tr><td align="center" valign="middle" >obs</td><td align="center" valign="middle" >loc</td><td align="center" valign="middle" >u</td><td align="center" valign="middle" >act</td><td align="center" valign="middle" >x</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >town1</td><td align="center" valign="middle" >u1</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >a b c d e f</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >town1</td><td align="center" valign="middle" >u2</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >a c e g p q</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >town1</td><td align="center" valign="middle" >u3</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >a p r s t</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >town2</td><td align="center" valign="middle" >u4</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >c d</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >town3</td><td align="center" valign="middle" >u5</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >r s t</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >town3</td><td align="center" valign="middle" >u6</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >b p q</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >town4</td><td align="center" valign="middle" >u7</td><td align="center" valign="middle" >a2</td><td align="center" valign="middle" >c d c</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >town5</td><td align="center" valign="middle" >u8</td><td align="center" valign="middle" >a2</td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >town5</td><td align="center" valign="middle" >u9</td><td align="center" valign="middle" >a2</td><td align="center" valign="middle" >d e s</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >town6</td><td align="center" valign="middle" >u10</td><td align="center" valign="middle" >a3</td><td align="center" valign="middle" >a b e t</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >town1</td><td align="center" valign="middle" >u11</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >b t b</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >town1</td><td align="center" valign="middle" >u12</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >a r s</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >town3</td><td align="center" valign="middle" >u13</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >r s r</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >town7</td><td align="center" valign="middle" >u14</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >a b c s</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >town7</td><td align="center" valign="middle" >u15</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >d p t e s</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >town7</td><td align="center" valign="middle" >u16</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >r r r</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Polarity evaluation</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >obs</th><th align="center" valign="middle" >Positive count</th><th align="center" valign="middle" >Negative count</th><th align="center" valign="middle" >pol<sub>j</sub></th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0</td></tr></tbody></table></table-wrap><p>The next step is to evaluate the weighting factors for each of the messages. The population proportions of each province are shown in <xref ref-type="table" rid="table4">Table 4</xref>, with province P<sub>3</sub> being the one that concentrates the greatest amount of population, this concentrates 40% of the total population of the geographic entity considered.</p><p>Using the Equations (2)-(3) to evaluate the terms of N<sub>j</sub> and D, with these values we calculate, using the Equation (4) the sample proportion given by M<sub>j</sub>. The proportion of the terms of the population universe is evaluated using the Equation (5) and finally we have that the weighting fp<sub>j</sub> given by the Equation (6), for each observation are shown in <xref ref-type="table" rid="table5">Table 5</xref>.</p><p>Finally, it is necessary to calculate the valuation for each one of the actors, use the Equation (7).</p><p>V a = ∑ k = 1 N O B S p o l k f p k | { a } ∩ { a c t k } | . (7)</p><p>In <xref ref-type="table" rid="table6">Table 6</xref>, the second column shows the assessment made for each the actors</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Population proportion of the provinces</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Provinces</th><th align="center" valign="middle" >Population proportion pP<sub>i</sub></th></tr></thead><tr><td align="center" valign="middle" >P<sub>1</sub></td><td align="center" valign="middle" >0.35</td></tr><tr><td align="center" valign="middle" >P<sub>2</sub></td><td align="center" valign="middle" >0.25</td></tr><tr><td align="center" valign="middle" >P<sub>3</sub></td><td align="center" valign="middle" >0.40</td></tr><tr><td align="center" valign="middle" >Total</td><td align="center" valign="middle" >1.00</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Determination of the weighting factors</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >obs</th><th align="center" valign="middle" >N<sub>j</sub></th><th align="center" valign="middle" >D</th><th align="center" valign="middle" >M<sub>j</sub></th><th align="center" valign="middle" >U<sub>j</sub></th><th align="center" valign="middle" >fp<sub>j</sub></th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.70</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.70</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.33</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >0.75</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.33</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >0.75</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >2.40</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.70</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >1.00</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.17</td><td align="center" valign="middle" >0.00</td><td align="center" valign="middle" >0.00</td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Comparison of the valuation by three calculation methods</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Principal actor</th><th align="center" valign="middle" >Polarity and weighting factor</th><th align="center" valign="middle" >% polarity and weighting factor</th><th align="center" valign="middle" >Polarity</th><th align="center" valign="middle" >% polarity</th><th align="center" valign="middle" >mentions</th><th align="center" valign="middle" >% mentions</th></tr></thead><tr><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >2.15</td><td align="center" valign="middle" >30.7</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >42.9</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >37.5</td></tr><tr><td align="center" valign="middle" >a2</td><td align="center" valign="middle" >0.75</td><td align="center" valign="middle" >10.7</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >14.3</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >18.8</td></tr><tr><td align="center" valign="middle" >a3</td><td align="center" valign="middle" >2.40</td><td align="center" valign="middle" >34.3</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >14.3</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >6.3</td></tr><tr><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >1.70</td><td align="center" valign="middle" >24.3</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >28.6</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >37.5</td></tr><tr><td align="center" valign="middle" >total</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >100.0</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >100.0</td><td align="center" valign="middle" >16</td><td align="center" valign="middle" >100.0</td></tr></tbody></table></table-wrap><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Order of location for each one of the calculation methods</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="3"  >Method</th></tr></thead><tr><td align="center" valign="middle" >Polarity and weighting factor</td><td align="center" valign="middle" >Polarity</td><td align="center" valign="middle" >Mentions</td></tr><tr><td align="center" valign="middle" >a3</td><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >a1 - a4</td></tr><tr><td align="center" valign="middle" >a1</td><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >a2</td></tr><tr><td align="center" valign="middle" >a4</td><td align="center" valign="middle" >a2 - a3</td><td align="center" valign="middle" >a3</td></tr><tr><td align="center" valign="middle" >a2</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><p>using the Equation (7), this is the assessment using the procedure described in this article, in the third column is the percentage evaluation with the aim of normalizing this data; next, we have the assessment, as traditionally done, using only the polarity and without using weighting factors, which would correspond to the procedures described in quadrant two given in the state of the art and six column the valuation calculated only with the mentions of each actor, in which neither the calculation of the polarities or the calculation of the weighting factors, this method corresponds instead to the first quadrant described in the state of the art; for each of these, the percentage value is incorporated with respect to the total, for comparative purposes.</p><p>The results are contradictory. The best valued by our method, actor 3, a3 with 34.3% is the worst rated with the other two methods. It must be noted that the messages issued from province 3, P<sub>3</sub>, which concentrates the largest number of habitants, must be resized because we have to give this province its true proportion in the population universe of study.</p><p><xref ref-type="table" rid="table7">Table 7</xref> shows the order of assessment and the location of each actor according to each of the methods used. In this it is observed that the methods of polarity and the mentions almost give similar results.</p></sec><sec id="s5"><title>5. Conclusions</title><p>In the present article the aspects referring to the analysis of the Social Networks have been formalized and the formulas for the incorporation of the weighting factors have been developed in order to increase the efficiency in the assessment of the actors.</p><p>Through the comparative analysis, using an idealized data set, the variation of the results in the final assessment is demonstrated.</p><p>This methodology has already been put to the test in the presidential election of February 19, 2017 in the Republic of Ecuador; an MAE = 1.1 was obtained that demonstrated the effectiveness of this incorporation of the weighting factors in the analysis of a Thematic in a Social Network.</p></sec><sec id="s6"><title>Acknowledgements</title><p>The authors declare that no conflict of interest exists with the results and conclusions presented in this paper. Publication ethics have been observed.</p></sec><sec id="s7"><title>Cite this paper</title><p>Arroba Rimassa, J., Mu&#241;oz Guillena, R. and Llopis, F. (2018) The Weighting Factors to Improve Predictability on Twitter. Technology and Investment, 9, 68-79. https://doi.org/10.4236/ti.2018.91005</p></sec></body><back><ref-list><title>References</title><ref id="scirp.82654-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Tumasjan, A., Sprenger, T., Sandner, P. and Welpe, I. (2010) Predicting Elections with Twitter: What 140 Characters Reveal about Political Sentiment. Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media, Washington DC, 23-26 May 2010, 178-185.</mixed-citation></ref><ref id="scirp.82654-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Fernández Crespo, M. (2013) Predicción electoral mediante análisis de redes sociales. Ph.D. Dissertation, Universidad Complutense de Madrid, Madrid.</mixed-citation></ref><ref id="scirp.82654-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Zarrela, D. (2009) ReTweets Change Everything. https://www.asgroupinc.com/new-data-can-twitter-predict-elections/</mixed-citation></ref><ref id="scirp.82654-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Montesinos García, L. (2014) Análisis de sentimientos y predicción de eventos en twitter. Ing. Dissertation, Universidad de Chile, Santiago.</mixed-citation></ref><ref id="scirp.82654-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Ramadhan, D., Nurhadryani, Y. and Hermadi, I. (2014) Campaign 2.0: Analysis of Social Media Utilization in 2014 Jakarta Legislative Election. ICACSIS 2014, Jakarta, 18-19 October 2014, 102-107. https://doi.org/10.1109/ICACSIS.2014.7065881</mixed-citation></ref><ref id="scirp.82654-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Tsakalidis, A., Papadopoulos, S., Cristea, A. and Kompatsiaris, Y. (2015) Predicting Elections for Multiple Countries Using Twitter and Polls. Predictive Analytics. IEEE Intelligent Systems, 30, 10-17. https://doi.org/10.1109/MIS.2015.17</mixed-citation></ref><ref id="scirp.82654-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Gayo-Avello, D., Metaxas, P. and Mustafaraj, E. (2011) Limits of Electoral Predictions Using Twitter. Proceedings of the Fifth International AAAI Conference on Weblogs and Social, Barcelona, Catalonia, 17-21 July 2011, 490-493.</mixed-citation></ref><ref id="scirp.82654-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Peregrino, F.S., Tomás, D. and Llopis, F. (2013) Every Move You Make I’ll Be Watching You: Geographical Focus Detection on Twitter. Proceedings of the 7th Workshop on Geographic Information Retrieval ACM, Orlando, 5 November 2013, 1-8. https://doi.org/10.1145/2533888.2533928</mixed-citation></ref></ref-list></back></article>