import React from 'react'; import { BookOpen, X, Cpu, BarChart2, Compass, ShieldAlert, Activity } from 'lucide-react'; import 'katex/dist/katex.min.css'; import { BlockMath, InlineMath } from 'react-katex'; interface CryptoMathModalProps { isOpen: boolean; onClose: () => void; } export default function CryptoMathModal({ isOpen, onClose }: CryptoMathModalProps) { React.useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') { onClose(); } }; if (isOpen) { window.addEventListener('keydown', handleKeyDown); } return () => { window.removeEventListener('keydown', handleKeyDown); }; }, [isOpen, onClose]); if (!isOpen) return null; return (
Institutional Specification Manual
Models momentum regimes and updates transition probabilities using on-chain alpha inputs.
The asset return state space is mapped into 3 momentum regimes:
Calculates transition probabilities over rolling 90-day return vectors:
where
When external alpha inputs (e.g. Funding Rate anomalies, Whale inflows) occur, state probabilities are updated using Bayes' theorem:
Where:
-
-
To minimize false signals and adapt to changing momentum regimes, we run a two-stage hybrid ML pipeline. First, a client-side Random Forest Classifier maps non-linear combinations of four features to forecast trend probabilities:
The Random Forest ensemble evaluates 10 non-linear decision trees to output the short-term and medium-term trend probabilities:
Raw ML forecasts are susceptible to regime drift. We implement a self-correcting Beta-Binomial update. The continuous probability output from the Random Forest model is mapped into a discrete Binomial likelihood by defining the Trust-Weight Hyperparameter (
1. Prior Distribution (Accuracy History):
where
2. Likelihood Formulation (Binomial pseudo-observations):
where
3. Conjugate Posterior Update:
To resolve a single operational point-estimate from our posterior distribution, we integrate out the continuous parameter
Posterior Expectation Integral Proof:
Using the definition of the Beta function
Expanded Workstation Implementation Formula:
This formulation ensures that if the prior model is highly accurate (large
The Walk-Forward Ensemble Radar aggregates forecasting signals from 5 independent machine learning estimators optimized for distinct predictive roles across three temporal horizons:
Utilizes bootstrap aggregation (bagging) of uncorrelated decision trees to map non-linear feature interactions. It constructs a robust ensemble prediction:
Optimized for multi-regime boundary separation and filtering out high-volatility futures noise.
Fits sequential decision trees to minimize the residual classification loss via gradient descent:
Highly responsive to short-term micro-trends, making it the primary signal anchor for the T+1 horizon.
Serves as the linear baseline anchor, regularized with combined L1 (Lasso) and L2 (Ridge) penalties:
Prevents wild regime-extrapolation decay and ensures structural stability during major trend shifts.
Projects the feature space into a high-dimensional Hilbert space using a Radial Basis Function (RBF) kernel:
Isolates non-linear hyperplane separation boundaries, targeting multi-dimensional trend-reversal thresholds for the T+5 horizon.
A deep feedforward neural network mapping complex cross-correlations across hidden layers using backpropagation:
Extracts intricate temporal patterns and deep feature interactions, optimized for the medium-term T+10 forecasting horizon.