Quant Academy
0 / 10 done
Interactive course · 10 lessons

Trading with math,
not gut feelings.

Learn how quant traders turn hunches into rules, test them on data, and avoid fooling themselves — by playing with real-looking market simulators.

🎓 Made for ages 15+ ⏱ ~45 minutes 🧪 7 hands-on labs No real money involved
001The big idea

What is quant trading?

“Quant” is short for quantitative — it means using numbers. A quant trader uses data, math and computer code to decide when to buy and sell, instead of guessing.

🤔

The gut-feeling trader

  • “I have a good feeling about this one.”
  • Decisions change with mood, news, and fear.
  • Hard to know if they were skilled or just lucky.
🤖

The quant trader

  • “Here is my rule, and here is how it did over 10 years of data.”
  • Rules are written as code — a computer follows them exactly.
  • Every idea is tested before real money touches it.
Key idea

A quant strategy is just a rule: “IF this happens in the data, THEN buy/sell.” The job is finding rules that actually work — and proving they aren't luck.

🧪 Lab · Turn a hunch into a rule
Tap each card
Who does this for real? Firms like Renaissance Technologies, Two Sigma, Jane Street and Citadel hire mathematicians, physicists and programmers — often people who loved math, coding or puzzles at your age.
Next: why prices are hard to predictCompleted
002Randomness

Prices are noisy

A stock price wiggles every day because millions of people are buying and selling for different reasons. Most of that wiggling is noise — random movement with no pattern. Can you beat it?

🎮 Game · Up or Down?
Round 1 / 10 · Score 0
Key idea

Nobody can predict a single day reliably. Quants instead look for a small edge — being right 52–55% of the time — and repeat it over thousands of trades. That's exactly how a casino wins: not every game, but on average.

Next: smoothing out the noiseCompleted
003Your first indicator

Moving averages

To see the trend through the noise, quants use a moving average (MA): the average price over the last N days, recalculated every day. It's like your grade average — one bad test barely moves it.

Worked example: 5-day moving average

Prices over the last 5 days:

$10+$12+$11+$13+$14= $60 ÷ 5 =$12.00

Tomorrow, the oldest day ($10) drops out and the newest price comes in — the window “moves”.

🧪 Lab · Drag the window size
PriceMoving average

Key idea

Short window = fast but jumpy. Long window = smooth but slow (it “lags” behind). Every indicator has this trade-off.

Next: your first strategyCompleted
004Strategy #1

Momentum: ride the trend

Momentum traders believe things that are going up tend to keep going up (for a while). The classic rule uses two moving averages:

BUY signal

When the fast MA crosses above the slow MA — recent prices are beating the long-run average. A “golden cross”.

SELL signal

When the fast MA crosses below the slow MA — the trend is fading. Go back to cash. A “death cross”.

🧪 Lab · Backtest a moving-average crossover
Market type
PriceFast MASlow MAHolding the stockBuySell
If you started with $100
Your strategyJust buy & hold

Try this: switch to Choppy. Watch the strategy keep buying high and selling low — traders call this getting “whipsawed”. Every strategy has a type of market it hates.
Next: the opposite ideaCompleted
005Strategy #2

Mean reversion: what goes too far snaps back

Imagine a rubber band. Stretch it and it pulls back to the middle. Mean-reversion traders bet that when price runs unusually far from its average, it'll return to it.

How do we measure “unusually far”? Bollinger Bands

Draw the moving average, then draw a band above and below it using the standard deviation (a measure of how much prices normally wiggle). Rule: buy when price falls below the lower band, sell when it climbs back to the average.

🧪 Lab · Rubber-band strategy
Market type
PriceAverageBandBuySell
If you started with $100
Your strategyJust buy & hold

Key idea

Momentum and mean reversion are opposites. One loves trends, the other loves ranges. Real quant firms run many strategies at once so that when one struggles, another may be doing well — that's called diversification.

Next: how to judge a strategyCompleted
006Backtesting & metrics

Scoring a strategy

Testing a rule on past data is called a backtest. But “how much money did it make?” is only part of the story. Quants check a whole report card:

📈

Total return

How much $100 grew. The headline number — but it hides how scary the ride was.

🎢

Max drawdown

The biggest drop from a high point. −50% means at some point you'd lost half. Could you stomach that?

⚖️

Sharpe ratio

Return per unit of bumpiness. Above 1 is good, above 2 is excellent. It rewards smooth profits.

🧪 Lab · Which strategy would you pick?
Both start with $100
Strategy AStrategy B
Don't forget costs! Every trade costs a little (fees, plus slippage — getting a slightly worse price than you expected). Our labs charge 0.1% per trade. A strategy that trades a lot can see its whole edge eaten by costs.
Next: edges and bet sizingCompleted
007Risk management

Edge & risk: don't bet the farm

Say you found a coin that lands heads 55% of the time. You win when it's heads, lose when it's tails. Free money, right? Only if you size your bets wisely. Simulate 40 players, each flipping 250 times:

🧪 Lab · The betting simulator
Each player's money (log scale)Typical (median) playerStarting $100

Key idea

Even with a real edge, betting too big can wipe you out. The Kelly formula says the best bet is about 2 × win% − 1 of your money (10% for a 55% coin). Pros often bet even less — “half Kelly” — to be safe.

Next: the #1 beginner trapCompleted
008Fooling yourself

The overfitting trap

If you try enough settings, something will look amazing on past data — just by luck. That's overfitting: memorizing the past instead of learning a real pattern. Like memorizing last year's test answers and being shocked this year's test is different.

🧪 Lab · Search 300+ strategies on a 100% random market

The first 400 days are the “past” (where we search). The last 200 days are the “future” (hidden during the search). Let's find the best crossover settings…

0 tested
Best strategy foundBuy & holdThe “future” (unseen data)

Press the button to start searching.

Key idea

Always keep some data hidden (“out-of-sample”) and test on it only once at the end. If a strategy only works on the data you tuned it on, it was luck. Simple rules with few settings are less likely to overfit.

Next: how the pros put it togetherCompleted
009How to actually do it

The quant workflow

Here's the step-by-step process real quants follow — and what you'd use if you tried it yourself (with paper money!).

Your first backtest in ~10 lines of Python

Python is the most popular language for quants. Click any line to see what it does.

momentum.pyPython · pandas · yfinance
ExplanationClick a line above ↑

Open-source projects on GitHub to explore

Real tools that quants (and students) use. Great for when you're ready to code.

Safety first: this course is for learning, not financial advice. Practice with paper trading (fake money). If you're under 18 you can't open a brokerage account on your own anyway — talk with a parent or guardian before investing any real money.
Next: test yourselfCompleted
010Score 0 / 8

Final quiz

8 questions. Answer them all to complete the course.

Completed
A–ZReference

Word bank

Quant slang, decoded.