This repository contains a Jupyter notebook documenting research findings on Bitcoin price prediction using stochastic calculus and technical analysis. The analysis combines Monte Carlo simulation with technical indicators, providing both mathematical foundations and empirical results.
The price evolution follows an extended Itô process:
where:
-
$S_t$ represents the asset price at time$t$ -
$\mu(S_t, t)$ is the drift function -
$\sigma(S_t, t)$ is the volatility function -
$W_t$ is a Wiener process -
$J(S_t)$ captures jump processes -
$N_t$ is a Poisson process for discontinuous price movements
-
$EMA$ = Exponential Moving Average -
$U_p$ = Upward price changes -
$D_n$ = Downward price changes -
$n$ = Period length (typically 14)
-
$TP$ = Typical Price =$(High + Low + Close)/3$ -
$SMA$ = Simple Moving Average -
$MD$ = Mean Deviation
The seasonal component is modeled using Fourier series decomposition:
where:
-
$T$ is the fundamental period -
$n$ is the number of harmonics -
$a_k, b_k$ are Fourier coefficients
-
Base Stochastic Process
- Modified Geometric Brownian Motion
- Jump-Diffusion Components
- Regime-Switching Capability
-
Technical Analysis Layer
- Momentum Indicators
- Volume-Price Relationships
- Market Sentiment Integration
-
Seasonality Component
- Multi-scale Fourier Analysis
- Wavelet Decomposition
- Trend-Cycle Separation
-
Root Mean Square Error (RMSE):
$RMSE = \sqrt{\frac{1}{n}\sum_{i=1}^n (ŷ_i - y_i)^2}$ -
Mean Absolute Percentage Error (MAPE):
$MAPE = \frac{100%}{n}\sum_{i=1}^n |\frac{ŷ_i - y_i}{y_i}|$ -
R² Score with Heteroskedasticity Adjustment:
$R^2_{adj} = 1 - \frac{\sum_{i=1}^n w_i(y_i - ŷ_i)^2}{\sum_{i=1}^n w_i(y_i - \bar{y})^2}$ -
Confidence Intervals:
$CI = ŷ \pm z_{\alpha/2} \cdot \sigma_{ŷ}$
- Achieved up to 90% prediction accuracy in backtesting
- Demonstrated 95% confidence interval coverage
- Achieved sub-2% MAPE on daily predictions
- Identified significant seasonal patterns at 7, 30, and 365-day intervals
- Quantified technical indicator effectiveness in various market regimes
The complete analysis and results are available in the Jupyter notebook: btc_analysis.ipynb
- Mathematical foundations and model architecture
- Historical performance analysis
- Error distribution and statistical validation
- Confidence interval analysis
- Technical indicator integration results
If you use these findings in your research, please cite:
@article{btc_price_prediction_2024,
title={Bitcoin Price Prediction Using Stochastic Calculus and Technical Analysis},
author={Denizhan Dakılır},
year={2024},
publisher={GitHub},
url={https://github.com/zelosleone/BTC-Price-Prediction-Findings}
}
This research is published under the MIT License. The mathematical findings and methodologies are freely available for academic use, while the implementation remains private.
For academic inquiries or collaboration opportunities, please contact denizhandakilirn@gmail.com.
This research is for academic purposes only and should not be considered financial advice. Cryptocurrency investments carry significant risks.