Skip to content
View TJT-Pro's full-sized avatar

Block or report TJT-Pro

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. Markdown is supported. 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
TJT-Pro/README.md

TJT-Pro

Hey. I'm TJT-Pro. Ex-medic, short-term trader, self-taught developer, and somewhere along the way, a math enthusiast who couldn't leave it alone.

Medicine teaches you not to trust a symptom until you understand the mechanism underneath it. I got fascinated with patterns 2 years ago, watching markets move and noticing they weren't random so much as structured, if you looked at the right timescale. That fascination turned into my own recursive time framework for tracking where big money is probably already moving before price confirms it. Somewhere in building that out, the trader in me turned into someone who wanted to understand markets as a mathematical object, not just a chart.

This repository is what that curiosity became, and it's my give-back for it: derive the mathematics myself, implement it from the definition, verify it against NumPy/SciPy/statsmodels so I can't fool myself, then run it against one real dataset -- daily EUR/USD exchange rates from the Federal Reserve, 1999-01-04 to 2026-08-21 -- and see what actually survives contact with real data.

No NumPy or SciPy inside any implementation here. They appear only as the check that the from-scratch version is right.

2,247 tests. 30 projects. One dataset.

Together, these 30 projects make up Quant From First Principles -- derive it, implement it, verify it, apply it to real data. The foundational curriculum lives in the repository of that name; the more advanced projects built on top of it are each published as their own repository, listed below.

Yours: TJT_Pro on TradingView

Start here

The foundational curriculum lives in quant-from-first-principles: 14 projects, phase 1 through 5 -- discrete math and probability, statistics and inference, decision theory and risk, calculus, linear algebra and optimization. 913 tests.

The quant engine

Sixteen more advanced repositories built on that foundation, published independently so each is a complete, discoverable piece of work on its own. Publishing is in progress in the order listed under each repository's own README; a link that 404s just means it isn't live yet.

Stochastic calculus & derivatives

Numerical & computational methods

Inference & learning from data

Quant finance engineering

Why from scratch

Most quantitative code hides its mathematics behind a library call. That's the right call in production. It's the wrong call if the goal is to understand what the library is actually computing. The goal was never to replace NumPy or SciPy -- it was to earn the right to use them.

Pinned Loading

  1. automatic-differentiation automatic-differentiation Public

    Automatic differentiation built from scratch in Python, two ways: forward mode via dual numbers, reverse mode via backpropagation, cross-checked against each other and a from-scratch neural network…

    Python

  2. black-scholes black-scholes Public

    Black-Scholes and Garman-Kohlhagen options pricing built from scratch in Python: Greeks, implied volatility, binomial trees, Monte Carlo pricing, verified against a closed-form oracle. 84 tests.

    Python

  3. model-risk model-risk Public

    The capstone: when do mathematically correct models produce practically wrong conclusions? VaR backtesting, AIC/BIC, backtest overfitting, bootstrap uncertainty, built from scratch in Python. 64 te…

    Python

  4. portfolio-mathematics portfolio-mathematics Public

    Classical portfolio theory built from scratch in Python: Markowitz efficient frontier, tangency portfolio, CAPM, risk decomposition via Euler's theorem, the Kelly criterion. 76 tests.

    Python

  5. quant-from-first-principles quant-from-first-principles Public

    14 of 30 projects in a from-scratch math and quant-finance curriculum, verified against NumPy/SciPy: probability, statistics, calculus, linear algebra, optimization. 913 tests.

    Python

  6. stochastic-processes stochastic-processes Public

    A standalone stochastic processes laboratory: from-scratch Python implementations of random walks, Markov chains, Poisson processes, Brownian motion, martingales, and first-passage problems, each w…

    Python