Skip to content

MACS 30200 Perspectives in Computational Research: Examining Opinions Change Towards Cryptocurrency When Cost of Living Rises

License

Notifications You must be signed in to change notification settings

mintaow/Computational-Social-Science-Research

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

Research: Examining Opinions Change Towards Cryptocurrency When Cost of Living Rises

Course: MACS 30200 Perspectives in Computational Research
Author: Mintao Wei (mintao@uchicago.edu)

Research Question

Do people become more favorable cryptocurrency when the cost of living rises?

Abstract

Cryptocurrency, with Bitcoin as the representative, has long been recognized as a controversial topic on social media and received divergent opinions among the public. Bitcoin firstly emerged in 2008, and began surging in price and kept hitting all-time heights over time since 2012, notably after 2017. Meanwhile, as the cost of living has been increasing everlastingly and leads to harsher economic conditions on daily living, the opinion polarity is enlarged. A portion of individuals tend to favor Bitcoins for their monetary return with the aspiration to "resist inflation" and "escape from poverty", while others still hold pessimistic perspectives for the unstable value and operational risk, and thus opt for safer investment projects. Examining 13 million Bitcoin-related tweets on Twitter, the research presents an empirical Granger Causality test and Vector Autoregressions (VAR) analysis of whether people have become more favorable of Bitcoin when the cost of living rises. The study shows that the Granger Causality effect of living cost on the opinion dynamics to adopt Bitcoin is statistically strong and unidirectional, which is quantitatively approximated by an interweaving of short-term suppression and long-term promotions. It is worth noting that when controlling longer lagged terms and including a wider historical time span in the regression, the one month lagged negative effect on the crypto opinion dynamics becomes trivial and the three months lagged influence dominates, meaning people might be first cautious, but have a stronger tendency to become susceptible to these digital currencies.

Cost of Living

The cost of living is measured by monthly Consumer Price Index (CPI-U) from U.S.Bureau of Labor Statistics

Opinions towards Cryptocurrency

Guided by Mooijman et al. (2018), I use the sentiment classification extracted from bitcoin related tweets (unfavorable/favorable) to measure the attitudes toward bitcoin. Specifically, I used a lexicon-based approach by employing the VADER (Valence Aware Dictionary and sEntiment Reasoner) toolkit to extract the sentiments toward bitcoin from 13.1 million bitcoin related tweets. Followed the approach in Lerman and Ghosh (2010), I will use the percentage of bitcoin-favored tweets from all the bitcoin-related tweets and the corresponding sentiment intensity scores as proxies for the opinion trend toward bitcoin on the Twitter network.

Hypotheses

Faced with rising living costs, driven by the aspiration to escape poverty, people tend to become more risk-taking and thus more favorable toward cryptocurrencies on social media platforms.

Model and Methods

1. Granger Causality I will examine the granger causality effect of past CPI monthly difference on future percentage of crypto-endorsed tweets using the method described in Mooijman et al. (2018).

2. Vector Autoregressive Models (VAR) Since depending solely on Granger causality has the potential to result in temporal gaps between rising costs of living and resulting opinion shifts. Furthermore, Granger causality analysis does not attempt to quantify the magnitude of effects, which is important in our context. I would first-order Vector Autoregressive (VAR) model, which has the lowest AIC, and another VAR model with lag order of 12 to observe the longer-term correlation. The VAR model is widely used to analyze the dependencies across time in such data and are already used extensively in applied research (Bringmann et al., 2013; Fisher et al., 2017; Groen et al., 2019; Pe et al., 2015; Snippe et al., 2017).

Findings

1. Cost of Living

Despite temporary sliding down in the second half of certain years (e.g. 2014, 2015, 2018), the cost of living generally rises up steadily from a long-term perspective.image

2. Cryptocurrency Market Trend & Sentiment

image The activeness of people participating in bitcoin related discussion on Twitter drastically climbed up after 2017, when the market prices rocket up since 2017.image This might imply a strong correlation of social discussion and market prices, which needs to be controlled when studying the time serial effect of living cost.

3. Relationship between Crypto Sentiments and Cost of Living

To explore the correlation between bitcoin sentiments and the cost of living, I visualized the dynamics of the two corresponding proxies: the percentage of Bitcoin favoring tweets and CPI in Figure 3(a). the month-over-month differences were also mapped to exclude the effect of intrinsic time serial trends. As demonstrated in Figure 3(a), in spite of the volatility in the percentage of positive sentiments, we can observe a persistent upward growing trend after 2017 if evaluating from the long-term perspective. This resembles the steadily rising momentum in CPI and suggests a latent positive correlation between the two variables over a longer period. This is reiterated by the evidence in the shaded band of Figure 3(b), where the movement in the positive sentiments correspond to the CPI fluctuations in the past 3 months. Therefore, we hypothesize that there exists a positive correlation at a time lag of around 3 months. Meanwhile, due to the high volatility, we might also expect a negative correlation implied by the direct impact of CPI variations in a short time window. image Figure 3: Relationship between Cryptocurrency Sentiments and Cost of Living. (a) the relationship between percentage of BTC-favoring tweets and CPI in raw values. (b) the relationship between the two variables in month-over-month difference form.

Furthermore, the p-value for the granger causality test of the CPI Month-over-Month Diff (X) on the Percentage of BTC Favoring Tweets Month-over-Month Diff(Y) is 0.0001, while the reverse direction is not statistically significant. We are confident to reject the null hypothesis and conclude that historical values of the CPI month-over-month differences exert a statistically significant effect on the current Bitcoin-favoring sentiments.

The below two findings from VAR(1) and VAR(12) provide quantitative evidence that the influence of the cost of living on the public crypto-favoring sentiments is a mix of short-term suppression and long-term promotion, with the market price fluctuation controlled. The rising cost of living tends to first result in negative emotions such as “fear of loss”. People become even more concerned about falling into poverty that they choose to stay against risky projects. However, the ever-increasing living cost induces risk-taking impulses. Individuals have “nothing left to lose” and therefore aspire to escape from the poverty trap through risky moves such as adopting cryptocurrencies (Chivers, 2017).

image

Note

How to Replicate the Findings

To replicate the analysis and produce all of the figures as well as analyses, run the notebook in the code folder of this repository via the instructions in the file. The code was written in Python 3.7.13 on Google Colab. and all of its dependencies can be fulfilled by running the !pip install code lines embedded. You can also refer to the requirements.txt file in this repository for details.

It is worth noting that due to Github's hard limit on the file size, only a sample snapshot of the Bitcoin-related Twitter was uploaded. To abide by the Twitter developer policy, I removed the user name attributes and tweet IDs. The complete dataset can be found here.

If you use this repository for a scientific publication, it would be appreciated if you cited the Zenodo DOI (to be updated) or the following reference format:

Wei, Mintao, Changing Opinions Towards Cryptocurrency Under Rising Cost of Living, (2022), GitHub repository, https://github.com/macs30200-s22/replication-materials-mintaow/

About

MACS 30200 Perspectives in Computational Research: Examining Opinions Change Towards Cryptocurrency When Cost of Living Rises

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%