Giter VIP home page Giter VIP logo

cryptocurrency_trend_regression's Introduction

Bitcoin / Cryptocurrency Market - Trend Regression

Simple trend regressions on bitcoin price data + total cryptocurrency and altcoin market capitalizations.

Latest Readme Update: 21 Jan. 2018

Bitcoin Price Data

Exponential Regression

source("config/Config.R")

Sys.setenv(tz="UTC")
btc.price <- FetchBTCInfo(param           = "market-price",   
                          data.identifier = "btc.close", 
                          date.start      = "2011-01-01")

par(mfrow=c(1, 1))
SimpleLogTrendRegression(data = btc.price, 
                         data.identifier = "BTC-price",
                         regression.type = "exponential",
                         nr.future=120, plot.2sd.log = TRUE, plot.2sd.levels = FALSE)

Loess Regression

SimpleLogTrendRegression(data = btc.price, 
                         data.identifier = "BTC-price",
                         regression.type = "loess",
                         nr.future=120, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Logarithmic Regression (on log data)

SimpleLogTrendRegression(data            = btc.price,
                         data.identifier = "BTC-price",
                         regression.type = "logarithmic",
                         nr.future=120, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Cryptocurrency Market Capitalization (Total)

Note: The analysis below uses weekly historical data that was scraped from coinmarketcap.com and only goes back to 2013-04-28. Suggestions for better data sources are appreciated..

Exponential Regression

cryptocurrency.market.cap <- FetchCryptocurrencyMarketCapitalizations()
SimpleLogTrendRegression(data = cryptocurrency.market.cap$total,
                         data.identifier = "Total Cap", data.frequency = "weekly",
                         regression.type = "exponential",
                         nr.future       = 12, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Loess Regression

SimpleLogTrendRegression(data = cryptocurrency.market.cap$total,
                         data.identifier = "Total Cap", data.frequency = "weekly",
                         regression.type = "loess",
                         nr.future       = 12, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Logarithmic Regression (on log data)

SimpleLogTrendRegression(data = cryptocurrency.market.cap$total,
                         data.identifier = "Total Cap", data.frequency = "weekly",
                         regression.type = "logarithmic",
                         nr.future       = 12, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Cryptocurrency Market Capitalization (Altcoins)

Exponential Regression

SimpleLogTrendRegression(data = cryptocurrency.market.cap$alts,
                         data.identifier = "Alt Cap", data.frequency = "weekly",
                         regression.type = "exponential",
                         nr.future       = 12, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Loess Regression

SimpleLogTrendRegression(data = cryptocurrency.market.cap$alts,
                         data.identifier = "Alt Cap", data.frequency = "weekly",
                         regression.type = "loess",
                         nr.future       = 12, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Logarithmic Regression (on log data)

SimpleLogTrendRegression(data = cryptocurrency.market.cap$alts,
                         data.identifier = "Alt cap", data.frequency = "weekly",
                         regression.type = "logarithmic",
                         nr.future       = 12, plot.2sd.log = TRUE, plot.2sd.levels = TRUE)

Donations

If you find this software useful and/or you would like to see additional extensions, feel free to donate some crypto:

  • BTC: 1QHtZLZ15Cmj4FPr5h5exDjYciBDhh7mzA
  • LTC: LhKf6MQ7LY1k8YMaAq9z3APz8kVyFX3L2M
  • ETH: 0x8E44D7C96896f2e0Cd5a6CC1A2e6a3716B85B479
  • DASH: Xvicgp3ga3sczHtLqt3ekt7fQ62G9KaKNB

Licensing

Copyright 2017 Essential Data Science Consulting ltd. (EssentialQuant.com / [email protected]). This software is copyrighted under the MIT license: View added LICENSE file.

cryptocurrency_trend_regression's People

Contributors

vermeirjellen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.