Skip to main content
QUICK REVIEW

[Paper Review] Bayesian regression and Bitcoin

Devavrat Shah, Kang Zhang|arXiv (Cornell University)|Oct 6, 2014
Complex Systems and Time Series AnalysisEconomics, Econometrics and Finance7 references12 citations
TL;DR

This paper proposes a Bayesian regression approach using a latent source model to predict Bitcoin price movements, leveraging historical price data as empirical priors. The method achieves nearly double an initial investment in 50 days with a 2872-trade strategy yielding 89% return and a Sharpe ratio of 4.10, demonstrating strong performance in volatile markets.

ABSTRACT

In this paper, we discuss the method of Bayesian regression and its efficacy for predicting price variation of Bitcoin, a recently popularized virtual, cryptographic currency. Bayesian regression refers to utilizing empirical data as proxy to perform Bayesian inference. We utilize Bayesian regression for the so-called "latent source model". The Bayesian regression for "latent source model" was introduced and discussed by Chen, Nikolov and Shah (2013) and Bresler, Chen and Shah (2014) for the purpose of binary classification. They established theoretical as well as empirical efficacy of the method for the setting of binary classification. In this paper, instead we utilize it for predicting real-valued quantity, the price of Bitcoin. Based on this price prediction method, we devise a simple strategy for trading Bitcoin. The strategy is able to nearly double the investment in less than 60 day period when run against real data trace.

Motivation & Objective

  • To adapt Bayesian regression with a latent source model—previously used for binary classification—to real-valued price prediction in financial time series.
  • To develop a practical, data-driven trading strategy for Bitcoin based on latent source inference using empirical price data.
  • To evaluate the efficacy of this approach in predicting price variations and generating profitable trading signals in real-world market conditions.
  • To investigate whether identifiable technical patterns (e.g., head-and-shoulder, triangle) emerge naturally from the latent source model and correlate with market performance.
  • To assess scalability of the strategy and computation in high-dimensional, real-time trading environments.

Proposed method

  • The latent source model assumes that each price observation arises from one of K underlying sources, each with a latent mean vector $ s_k $, mixing weight $ u_k $, and a distribution $ ext{P}_k $ over returns.
  • The conditional distribution $ ext{P}(y|x) $ is computed via Bayesian inference as a weighted sum over source-specific distributions, using the likelihood $ ext{P}(x|T=k) riangleq ext{N}(x; s_k, I) $ and prior $ u_k $.
  • Empirical data is used to approximate the latent parameters: source means $ s_k $ are estimated as cluster centers via k-means on historical price time-series, and $ u_k $, $ ext{P}_k $ are derived from cluster frequencies and return distributions.
  • A prediction threshold $ t $ is applied to the posterior probability $ ext{P}(y|x) $, triggering a long or short position when the probability exceeds $ t $, enabling a simple yet effective trading rule.
  • The strategy is backtested causally on real Bitcoin data from May 6 to June 24, 2014, using only data prior to the test window for training.
  • Computationally, the method uses a fast approximation via inner products (equivalent to cross-correlation), enabling efficient processing of millions of data points per second on standard hardware.

Experimental results

Research questions

  • RQ1Can Bayesian regression with a latent source model effectively predict real-valued Bitcoin price movements in high-dimensional time-series data?
  • RQ2Do identifiable technical patterns such as head-and-shoulder or triangle formations naturally emerge from the latent source clustering process?
  • RQ3What is the performance of a trading strategy based on latent source inference in terms of profit, risk-adjusted returns, and trade frequency?
  • RQ4How does the strategy scale in terms of capital size and transaction volume, and what are the limitations of linear scaling?
  • RQ5To what extent can the computational complexity of the method be reduced while preserving predictive accuracy through representative data sampling?

Key findings

  • The proposed Bayesian regression strategy achieved a total profit of 3362 yuan with 2872 trades over 50 days, representing an 89% return on an average investment of 3781 yuan.
  • The strategy achieved a Sharpe ratio of 4.10, indicating strong risk-adjusted performance, with consistent profitability even during periods of declining Bitcoin price.
  • The highest return was observed at a threshold $ t $ that balanced trade frequency and average profit per trade, with a clear inverse relationship between average profit per trade and number of trades.
  • Cluster analysis of latent sources revealed that the most significant patterns corresponded to known technical analysis patterns such as 'head-and-shoulder' and 'triangle' formations.
  • The method demonstrated high computational efficiency, enabling over 10 million cross-correlations per second on a 32-core machine with 128GB RAM, supporting real-time deployment.
  • The strategy outperformed a risk-free benchmark, particularly during periods of high market volatility, and remained profitable even in a declining market phase.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.