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