Two systems I built outside of work — one in systematic trading infrastructure, one in multi-agent orchestration.
A modular Python framework for quantitative portfolio management, the full stack from factor estimation to constrained optimization to walk-forward execution, with every step grounded in theory and verified by tests.
The constrained MVO solves the standard mean-variance problem with active weight penalties and a full constraint set:
For spiked covariance structures (low-rank factor model + diagonal idiosyncratic), the platform uses the Woodbury-Sherman-Morrison identity for O(n) solves instead of inverting the full \(n \times n\) matrix:
A LangGraph-orchestrated multi-agent system where specialized agents each handle a domain, coordinate through belief propagation over a DAG, and produce a unified assessment with explainable reasoning. The application was clinical risk detection, but the architecture is domain-agnostic — it's the same routing-and-fusion pattern applicable to any multi-signal decision problem.
Knowledge distillation + mixed-precision quantization compressed the system 93% in size while keeping accuracy within 1.2% of the original. An adaptive router directs easy cases to lightweight models and escalates high-entropy cases to larger ones. Each agent incorporates RAG for evidence-grounded outputs. Validated on N=2,847 across 3 sites, deployed on Kubernetes with MCP-based integration, processing 500+ assessments daily at 99.7% uptime.