XRP & Reddit Cryptocurrency Blockchain Correlation

Posted on Feb 17, 2019

Project GitHub | LinkedIn:   Niki   Moritz   Hao-Wei   Matthew   Oren

The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

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

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 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans 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 boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis 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 seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI