Skip to content
View anamankev's full-sized avatar
🎯
Focusing
🎯
Focusing

Highlights

  • Pro

Block or report anamankev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
anamankev/README.md
An ASCII-art portrait of Kelvin Anaman.

Kelvin Anaman. Exchanges, option pricers and ML systems, measured against the tools pros trust. Quantitative economics, mathematics and computer science, Brandeis class of 2030, Boston. Founder of Pulse Energies. Wien Scholar. A real HNSW index of 40 points built by hnsw-engine, drawn as three layers, with one search highlighted from the top layer down to the nearest neighbour.

The graph is real: an index of 40 points built by hnsw-engine, and one search through it, from the entry point down to the nearest neighbour.

I study quantitative economics, mathematics and computer science at Brandeis as a Wien Scholar (class of 2030). This summer I was a quantitative research intern on the Bank of Ghana's GoldBod desk, and I'm the founder of Pulse Energies, where we build forecasting software for electricity grids.

On GitHub I rebuild the systems I want to understand: a matching engine, an options pricer, a vector index. I start from the paper or the spec, test hard, benchmark against the tools everyone already trusts, and write down every gap, including the ones that don't flatter me.

LinkedIn · Email · Pulse Energies

Selected work

brier. A prediction-market exchange in Rust, built to a regulated venue's standard, with play money. 12.3 million orders matched per second on one core; 1,000 crashes under load with no acknowledged order lost; 10 million commands with no divergence from an independent reference engine. Where an order's time goes, log scale: matching p99 334 ns; matching with ledger checks p99 1.4 microseconds; durable disk flush median 3.95 ms; order to acknowledgment through the gateway p99 9.14 ms.

brier is a prediction-market exchange, named after the Brier score, built the way a regulated venue has to be and live for the public with play money.

  • Matching. A deterministic Rust price-time limit order book and double-entry ledger, held event for event to an independent Python reference engine: no divergence in 10 million random commands.
  • Durability. No order is acknowledged before it is on disk. Killed 1,000 times under load, it lost 0 of 6,058,014 acknowledged commands.
  • Markets. About 100 open events, settled from public data (NWS, USGS, BLS, FRED, NOAA, league results) with the evidence hashed into the journal. Its temperature forecasts are calibrated within 0.05 and beat 30-year climatology in 12 of 12 cities.
  • Trading and surveillance. A model-based market maker that trades only through the public API, two-sided 100% of the time on its live markets. Surveillance flags wash trading, spoofing and insider-like trading; the pre-registered study reports two detectors that passed and two that did not.

Live site · Measured results · Specification · Surveillance study

hnsw-engine. HNSW built from the original paper, twice. 4,447 queries per second at recall 0.95 or better on one million vectors; 39 times faster than exact search; 336 tests. Queries per second at recall 0.95 or better on SIFT-1M, one thread: exact search 114, hnsw-engine 4,447, hnswlib 6,193, FAISS HNSW 10,301.

hnsw-engine is HNSW approximate nearest-neighbour search, implemented from the original paper twice: a readable Python reference, and a compiled Numba engine proven to build the bit-identical graph. It is benchmarked against FAISS and hnswlib with one single-threaded method, and it matches FAISS's recall within 0.01 on three datasets. It also has filtered search, int8 quantization and memory-mapped index files. Benchmarks · Performance notes · Studies

two-stage-recsys. Two-tower retrieval served by hnsw-engine, then a LightGBM ranker. NDCG@10 of 0.0906 against 0.0445 for tuned ALS; 0.1047 at ten times the data; 0.56 ms per request. NDCG@10 on MovieLens-1M with full-catalog ranking: popularity 0.0193, item-item co-occurrence 0.0276, tuned implicit ALS 0.0445, two-tower with exact retrieval 0.0615, two-tower via hnsw-engine 0.0619, two-tower plus LightGBM ranker 0.0906.

two-stage-recsys is a movie recommender built the way large production systems are: a PyTorch two-tower model retrieves 200 candidates through hnsw-engine, a LightGBM LambdaRank model reorders them, and a FastAPI service returns the top ten. It is evaluated with full-catalog ranking, a leakage-tested temporal split and 95% bootstrap intervals. The first ranker scored below plain retrieval, and the write-up shows how that was diagnosed and fixed. Results · Analysis · Model card

options-pricing-engine. Black-Scholes, American trees, Monte Carlo and implied volatility, checked against QuantLib. Median relative gap to QuantLib prices 4e-16; all 18 Ju-Zhong American prices within 2e-3; 493 tests. Pricing error of an American put against runtime, log scales. CRR falls from 2.8e-2 to 1.3e-4 by 16 ms; Leisen-Reimer from 7.5e-3 to 1.5e-5 by 15 ms; BBSR, nearly tied with Leisen-Reimer up to about 10 ms, reaches 1.6e-6 at 206 ms.

options-pricing-engine prices European and American options with Black-Scholes-Merton, four binomial trees, Monte Carlo with variance reduction, and safeguarded implied-volatility solvers. Its results are checked against 50-digit arithmetic, against QuantLib on 1,800 cases, and against published American-option benchmarks. Its numerical studies had their hypotheses committed before they ran, and the write-ups report the ones that failed. One command, python -m verify, checks every number in its README against the file it came from. Results · Study A: implied volatility · Study B: trees

kestrel. A command-line market terminal for iPad and Mac in SwiftUI with no third-party packages. 10 ms median feed latency from exchange to screen; 190 microseconds of main-thread work per 100 ms of ticks; 28 functions on one command line. Profiled, then fixed, log scale: depth ladder, top 20 of 20k levels, 826 microseconds before and 27 after; option chain decode of 1,000 contracts, 44 ms before and 2.9 ms after; feed message decode, 119 microseconds before and 67 after.

kestrel is a command-line market terminal for iPad and Mac, written in SwiftUI with no third-party packages. It streams live Coinbase depth and trades at a 10 ms median feed latency, prices Deribit options with Black-76 greeks and a strategy builder, and runs backtests that charge costs, fill at the next open and pay idle cash the T-bill rate. Paper trading covers market, limit, stop and stop-limit orders with Reg T short margin. Performance · Security review

Research and experience

  • Bank of Ghana, GoldBod desk, quantitative research intern, summer 2026. Priced $10B+ of gold-for-forex inflows to study USD/GHS basis through the cedi's 41% rally of 2025; built a C++20 optimal-control model for $300M of weekly FX liquidity; stress-tested $13.8B of reserves by Monte Carlo.
  • Pulse Energies, founder and CEO, 2025 to now. An XGBoost/LSTM pipeline that forecasts 24-hour grid load from 15-minute data, with capacity and ramp-rate limits enforced on every forecast. I lead a 10-person team building PulseOpen, an open-source Gymnasium environment for reinforcement learning on power grids.
  • SmartPyro, research. AI-Optimized Pyrolysis: A Machine Learning Framework for Predictive Waste-to-Energy Conversion, with Sanjith Balamurali, at the 3rd International Online Conference on Energies (IOCEN 2026). Also presented at ASME ES2026.
  • Lumiere Research Program, machine learning researcher, 2025. A PyTorch classifier for vector boson polarization in simulated Large Hadron Collider events, supervised by Dr. Gaetano Barone of Brown University.
  • Hubtel, technical product manager intern, 2026, on merchant payments.
  • IPMC Ghana, software engineer intern, 2025: LLM agents that diagnose infrastructure failures inside the IDE, cutting average debug time from 30 minutes to 5, and a fault-injection dashboard in GraphQL and React.
  • Awards. 23rd of 12,000+ in an Educational Codeforces Round. Two-time AMC top scorer and AIME qualifier. IFoRE Medalist, first award in physics and engineering interdisciplinary research. SSRN Emerging Scholar Award.

Toolbox

Languages Rust C++ Python TypeScript SQL Java

Quant and ML NumPy SciPy pandas Numba QuantLib PyTorch LightGBM XGBoost FAISS

Systems Tokio FastAPI PostgreSQL Next.js React GraphQL Docker Linux pytest

Pinned Loading

  1. hnsw-engine hnsw-engine Public

    HNSW vector search built in Python + Numba, benchmarked against FAISS and hnswlib up to SIFT-1M, with filtered search and int8 quantization.

    Python 1 1

  2. two-stage-recsys two-stage-recsys Public

    Two-stage recommender: two-tower retrieval served by hnsw-engine, then a LightGBM ranker. Doubles tuned ALS on MovieLens-1M and 10M (NDCG@10).

    Python 1