Reddit/XRP Correlation

Joseph C. Fritch
Posted on Feb 17, 2019

Blockchain technology and cryptocurrency have gained popularity through social media platforms such as Reddit. This project explores if a correlation exists between discussions on Reddit's r/Ripple sub-reddit and XRP price during the time period July 30th, 2018 and February 1, 2019. The project seeks to answer the following questions:

  1. Do the number of sub-reddit posts correlate with future price change?
  2. Does post sentiment have any correlation with future price change?
  3. Are particular words more prevalent prior to future price change?

Data

Data is scraped from the r/Ripple sub-reddit using Selenium in Python.  Only daily discussion threads with the title format "Daily Ripple/XRP Discussion Thread ##/##/## [Questions and Price Predictions]" are scraped.  All post text and responses are harvested including author name and date-time stamp.  Historical XRP price data are gathered from coinmarketcap.com.

Analysis

Exploratory data analysis revealed some similar trending between the number of sub-reddit posts and price. A specific example is illustrated during September 2018. On September 17th, the number of sub-reddit posts increased dramatically after a rumor stating that Ripple's new product, xRapid, may be going live shortly. This is followed by a major price change on September 19th.

To explore this relationship further, daily price change in percent is plotted against previous day's number of Reddit posts and average daily sentiment of posts. Sentiment analysis is performed using NLTK and TextBlob packages in Python. A correlation matrix is constructed and associated Pearson correlation values are calculated.

A similar procedure is conducted for weekly price change and previous week's number of posts and average weekly sentiment.

Results

With a Pearson Correlation of .16, daily price change has a weak positive correlation with the prior day's number of posts. The result is statistically significant with a p-value of .03. Sentiment polarity and subjectivity has weakly negative Pearson correlations but are not statistically significant enough to reject the null hypothesis (i.e. no correlation exists between feature and price change). The most commonly used words the day prior to a daily price gain and price loss are shown in the word clouds below. The most frequent words used in both scenarios are similar (i.e. awesome, time, buy and XRP).

Pearson correlation values for prior week's number of posts, average sentiment polarity and subjectivity are -.18, -.32, and .19 respectively. However none of the correlations are statistically significant. The most commonly used words the week prior to a weekly price gain and price loss are shown in the word clouds below. The most frequent words used in both scenarios are similar (i.e. month, around, XRP and Bitcoin).

Future Work

Future work may include looking at the relationship between distinct user posts and price change.  A deeper dive into the next most used words prior to positive and negative price change are worth attention.  The data is temporal and may project underlying trends in time instead of true correlation between variables.  Further exploration into removing these trends will be investigated.

About Author

Joseph C. Fritch

Joseph C. Fritch

Data Scientist and Control Systems Engineer with 5 years experience in the energy analysis and building automation space. Interests include machine learning and its applications in controlling dynamic systems.
View all posts by Joseph C. Fritch >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp