Back to portfolio

Checking my Bitcoin forecasts

In an unpublished 2022 study I compared ways to forecast Bitcoin's daily price and concluded that a linear regression worked best, with a score of 0.9994. I rebuilt it in 2026 to see whether that held up. It didn't, and the reasons are useful for anyone evaluating a forecast. Results are as of 2 November 2026.

Personal project: my own analysis of publicly available data. It is not associated with my work for any current or past employer and does not represent their views. This is a lesson in method. It isn't trading or investment advice.

At a glance

QuestionMethodsAnswer
Where did 0.9994 come from?Same regression, with one problem fixed at a timeLook-ahead. R² on daily returns falls from 0.79 to −0.02 once the day's own prices are removed.
Could the 2022 study rank its models by MSE?One forecast measured on each scaleNo. The numbers were on three different scales.
Does anything beat a random walk?Walk-forward, Diebold-Mariano, Clark-WestNo. ARIMA and the regression can't be told apart from it, and gradient boosting is worse.
Can direction be forecast?Logit, walk-forward calibration, Brier scoresBarely. Accuracy of at most 51.7% against 51.6% for always saying up.

1. Where did 0.9994 come from?

The regression predicted each day's close from that day's open, high, low and volume. The high and low aren't known until the day is over, so this can't be used as a forecast. I don't have the original estimation code, so I rebuilt the setup from the study's description and its data file, which gives 0.9995 against the 0.9994 reported.

Two scatter charts of predicted against actual daily returns. With same-day inputs the points follow the diagonal, R² 0.79. With inputs from the day before they form a vertical band around zero, R² −0.02.
The same regression on daily returns, with and without same-day inputs, using Bitstamp prices.
InputsTargetValidationR², 2022 fileR², Bitstamp
Same dayPrice, scaledRandom 10%, mean of 200 draws0.99950.9994
Same dayPriceLast 10%, scaled on the past0.99470.9943
Day beforePriceLast 10%, scaled on the past0.97050.9698
No-change forecastPriceLast 10%0.97130.9703
Same dayLog returnLast 10%, scaled on the past0.79740.7914
Day beforeLog returnLast 10%, scaled on the past−0.0148−0.0197
No-change forecastLog returnLast 10%−0.0047−0.0046

2. Why fixing that wasn't enough

Even without the leak, a regression on price levels scores 0.97, and repeating yesterday's price scores the same. Prices are close to their value the day before, so R² on levels says little.

The 2022 study also ranked its models by MSE on three different scales: scaled prices, log returns and, for the logit, a log loss. Those numbers can't be compared. On its own scale, its ARIMA was slightly worse than a forecast of no change.

3. The rebuild

  • 3,582 days, January 2017 to November 2026
  • Walk-forward
  • Diebold-Mariano tests
  • Clark-West tests

Every model now forecasts the next day's log return, using only what was known at the previous close, and is refit on earlier days only. I compared ARIMA, a lagged regression and gradient boosting with a random walk.

ModelOut-of-sample R² against a random walkDiebold-Mariano p
ARIMA(4,1,1)−0.12%0.73
Lagged regression−0.58%0.13
Gradient boosting−3.27%0.001
Line chart of each model's running squared-error gap against a random walk from 2017 to 2026. All three stay at or below zero. ARIMA and the regression stay close to it, and gradient boosting falls furthest.
Running total of squared-error gaps. Above zero, a model has done better than a no-change forecast so far.

ARIMA and the regression can't be told apart from a random walk, and gradient boosting is measurably worse. A no-change forecast still gets an R² of 0.9985 on price levels, close to the 2022 number.

Line chart of the last 120 days. The regression's implied price and the no-change forecast overlap, both one day behind the actual close.
Implied price and the no-change forecast over the last 120 days. This shows the method and says nothing about future prices.

4. Can direction be forecast?

The 2022 logit had AUCs of 0.54 and 0.51, close to a coin flip, and that was its most reliable result. In the rebuild, after calibrating each model's forecasts on its own past, accuracy is at most 51.7% against 51.6% for always saying up. The difference isn't significant.

Four small charts of calibrated probability of an up day against the share of days that went up. Forecasts stay between about 50% and 60%, with wide ranges around each point.
Calibrated forecasts against outcomes. On the grey line, forecasts match outcomes.

What this does and doesn't show

  • The results don't prove that returns can't be forecast: with this many days, a true out-of-sample R² under about 0.7% couldn't be told from zero.
  • They come from one exchange, a daily horizon and a small set of inputs. No costs are modelled because no trading is modelled.
  • The repository's tests fail if any input or forecast changes when later prices change.

Data

Daily BTC/USD candles from Bitstamp's public API, which aren't redistributed. The "2022 file" column comes from my own copy of the Yahoo file the 2022 study used, which isn't redistributed either. The 2022 study isn't in the repository, and its numbers are quoted there and here.