How I analyzed #Muslimban Twitter sentiment

16

October

2018

No ratings yet.

You probably heard about Donald Trump’s last year’s Muslim ban. Officially, this executive order was called Protecting the Nation from Foreign Terrorist Entry into the United States. It limited the number of refugees accepted in the USA from 110 000 to 50 000 and banned the entry of all refugees and immigrants from 7 Muslim countries: Syria, Iran, Iraq, Libya, Somalia, Sudan and Yemen. The order prompted broad international criticism. Justin Trudeau, Angela Merkel, Francois Holland, 40 Nobel laureates and many other officials, academics, religious leaders condemned the ban. A myriad of public protests and demonstrations were organized.

The overall response to the ban was negative, at least the public one. But is there a way to confirm and quantify that analytically?

Well, there is – thanks to Twitter. Over 16 million tweets about the travel ban, containing hashtags such as: #MuslimBan, #NoBanNoWall, #NoMuslimBan, #JFKTerminal4, #RefugeesWelcome, #ImmigrationBan, #TravelBan,  were published between January 30, 2017 and April 20, 2017. The majority of them are retweets, reposts, duplicates, but even when those are eradicated, there are still over 500 000 original tweets left, and over 400 000 of them are in English.

This is how many tweets were published daily during January 30 and March 31:

Untitled

Thanks to natural language processing tools there is a way to extract sentiment from the data and classify it – it’s called sentiment analysis. In majority of cases, sentiment analysis is used for marketing purposes, e.g. to improve customer experience. I was really curious if I can get valid results from analyzing tweets about politics because there aren’t many papers about this topic. Using two models: dictionary-based algorithm and penalized logistic regression (machine learning based) model I analyzed the tweets and classified them as positive, negative and neutral.

The dictionary-based model is rather straightforward: the algorithm relies on lists with positive and negative words and scores each post according to the number of such words: that is, it adds one point for each “good” word and deducts one for each “bad word”. The sum of this scoring equals a final sentiment score. The machine learning model is much more complex and time-consuming as it requires an already classified training data set to learn, but the final result is more accurate and has a lower classification error (accuracy was equal to 76% vs 69% for dictionary based model):

The aggregated result of the logistic regression model classification looks as following:

Untitled2

which confirms that the reaction to the ban was, in majority, negative.

Sentiment analysis also allows for a deeper text mining, e.g. extracting the most popular words in the dataset:

Untitled3

 

This is just a short summary of my results, but it may give you a background to think about the following:

Do you think officials / politicians should analyze Twitter data? Should they draw conclusions from how many negative or positive tweets are published on the topic and adjust their strategy accordingly? Or should they disregard this data and focus on other information sources (e.g. newspapers, polls) instead?

Please rate this

Innovative use of auctions: Stock Exchange Bar

10

October

2018

No ratings yet.

Auctions’ history reaches 500 B.C. when, according to Herodotus, auctions with women for marriage were held annualy in Babylon. The auction began with the women considered as the most beautiful and progressed to the least.

In 21st century, auctions have become so known and common that it’s difficult to find an innovative use of them. At least, that was my opinion until I heard about Reserve Bar stock exchange.

This stock exchange themed bar opened in London, UK in 2015. Its main idea is based on drink prices swinging up and down according to the clients’ demand. The bar operates “beer market”, “spirits market” and an “alternative market”. Clients can observe price changes on real time exchange screens. When the prices climb too rapidly, they trigger a market crash, which is announced by bells and rings. As a result, the exchange market plunges between 35% and 40%, lowering the drink prices far below their usual levels. There is also a secondary market for clients who succeeded in buying very low and want to sell the drinks with a profit. What also seems interesting is that the bar offers an application for clients to reserve drink prices ahead of time. The idea behind it is to lock the price before it gets higher e.g. during the weekend.

The question here is:

Is this idea profitable for the bar? Does it pay off for clients? And would you like to go there?

 

Sources:

https://www.marketwatch.com/story/when-this-market-crashes-traders-get-trashed-2015-07-17

Krishna, Vijay (2002), Auction Theory, San Diego, USA: Academic Press

Please rate this

How much do our phones really know about us?

11

September

2018

No ratings yet.

During the lecture we have talked about how mobile phone companies determine whether the mobile phone user is a female or a male by tracking the temperature of the phone. What else can our phones tell about us? I discovered that the gender determination is just a tip of the iceberg.
As the mobile technology advances, we are getting more and more dependent on our phones. In 2015, the daily usage of mobile phones outpaced the one of computers (on the average, 2.8 hours versus 2.4 hours). As a result, with each generation the mobile phones are more innovative, work even more seamlessly and have enhanced features. They have a myriad of sensors the majority of people are not even aware of: accelerometers, gyroscopes, magnetometers, proximity sensors. In their basic function, these sensors facilitate the functioning of the phone. However, if misused, usually by third-party applications, they unearth the phone user’s private information without his knowledge. For example, the sensors allow the applications to track the phone owner’s location, record his voice, keep information on who he is calling and how long the call lasted, or even read the PIN number or subscribe the user to the premium paid services without his agreement. Not only do these applications gather this information, they are also considered as notorious in selling the data to other companies who are interested in a more detailed targeting of the consumers. Moreover, the newest devices also have a fingerprint scanner or heartbeat and pulse detector built in. This may be even more profitable, as it is invaluable for companies such as e.g. health insurance firms.
How can we protect ourselves from data leakage? The first step would be to uninstall the applications we do not use and adjust privacy settings of the rest of them. We should also always question whether a third party application owners have ulterior motives of accessing our data. However, even after all the precautions, we should still remain aware that the advancements in our phones are inevitably connected with giving up on some of our privacy.

Sources:
https://www.theguardian.com/media-network/2015/sep/29/how-secure-is-your-smartphone
https://www.techradar.com/news/phone-and-communications/mobile-phones/sensory-overload-how-your-smartphone-is-becoming-part-of-you-1210244

Please rate this