Differential Machine Learning (DML) is adapted for Bitcoin price forecasting in R using a twin-network architecture built with Keras3. Instead of mathematical derivatives, RSI, MACD, and Bollinger Bands serve as volatility proxies. A primary network learns price/trend dynamics while an auxiliary network captures volatility signals. Their outputs are combined via a linear regression stacking ensemble, reducing RMSE from ~76,000 (individual networks) to ~3,030 and MAPE from ~99% to ~3.65%. Residual-based 95% confidence intervals are added for uncertainty quantification, and results are visualized with ggplot2.
Table of contents
IntroductionWhy Volatility Variables Instead of Derivatives?Ensemble via StackingEvaluationConfidence IntervalsVisualizationKeras3 in R: Flexible Deep Learning for Financial ForecastingWhy It Matters for DMLConclusionSort: