There’s a subtle but very real fallacy about backtesting that lots of smart quant-y people fall into. I’ve fallen into it many times. And arguably I still do, just in more and more subtle ways.

A thread 👉👉

1/n
So you have a trading strategy, and you want to backtest it to see if it’s any good. Being good boys and girls and others, we know we mustn’t overfit to the data we already have.

We know that historical data is precious gold, and it must be used carefully.

2/n
Well, imagine I propose the following solution: build a model of the market in all its gory detail: fat tails, heteroskedasticity, vol clustering, etc etc. I calibrate this model using historical data, and it’s pretty good.

It's awesome in fact.

3/n
Why did I do this? Well now run this market model with different random seeds and I get different histories. Each one drawn from the same distribution (or meta-distribution, if you’re fancy) as real history.

So I get to backtest my strategy on all those fake histories.

4/n
Yay! With more data, I get better statistics on my strat. EV, drawdown, etc etc. There is much rejoicing!

Or is there?

5/n
Sorry, this doesn’t work. Here’s why...

6/n
Let’s think like information theorists. We take the whole history of prices and trades and everything.

A massively long multivariate timeseries of stuff.

A “model” is a thing that takes that massive amount of data and reduces it into a more manageable set of parameters.

7/n
These parameters can then be used to spit out reconstructions of the original market data. It’s dimensionality reduction.

If your market model is good, you reduced the # of dimensions a lot, but only lost a tiny bit of information.

This is good.

8/n
But you still lost *some* information. And perhaps more pointedly, you can’t have manufactured any NEW info.

What will that backtest on those fake histories generated by this model tell you?

9/n
From an information theoretic point of view, they CAN’T tell you anything you couldn’t otherwise have gotten from the original data! 😢

10/n
AHA you object!

But what about my prior beliefs?

The structure of the market model encodes my priors about the world.

11/n
Yes it does! And that’s a super useful thing for it to do.

But SO DOES YOUR TRADING STRATEGY!

All you’ve done is traded one problem (backtesting your strat) for another (making sure your market model accords with your priors, and reality).

12/n
That’s usually not a win.

Anyway, I’d appreciate some feedback on this. I’m not sure I did a great job explaining the main point, to be honest.

13/n
PS. Don’t @ me with complaints that I’m dismissing resampling methods like bootstrapping. I’m not, that’s different. Perhaps a conversation for another day.

14/14 FIN

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Agustin Lebron

Agustin Lebron Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @AgustinLebron3

14 Jul
1/ How the hiring game is like trading, and vice versa.

A thread. 👉👉👉
2/ Most of what I talk about here is trading, but one of the things that pays my bills is helping companies get better at hiring.

I don’t usually talk much about that.

Mostly because the audience for that stuff is… niche.
3/ But it’s become clear, over the years of helping clients hire better, that a lot of what I’m teaching is trading skills and mindsets.

Here’s what I mean...
Read 29 tweets
16 Jun
1/ I immigrated to the US 20 years ago, and I don't regret the decision. The people, the opportunities. It really *is* a wonderful country.

But downsides exist and they can basically all be summarized by the leafblower.

A thread... 👇
2/ What is a leafblower? It's a motorized wind generator that moves light outdoor particles (leaves, twigs, dirt/dust).

Facts about the common leafblower and its typical use:
3/ It's gas-powered with a 2-stroke engine.

That means it's incredibly loud and incredibly smelly. You can't mistake the odor. It's an crappy-machine solution to a pseudo-problem.
Read 8 tweets
2 May
1/ Reading @nope_its_lily and this hit hard:

"In all honesty, most finfluencers have pretty shit takes on the market. It kind of arises based on the mismatch between the skills required to actually trade and the skills required to market oneself."

nopeitslily.substack.com/p/a-polemic-an…
2/ That statement is insanely and ridiculously correct.

I think everyone who has other high-value uses of their time goes through the same thought process.

"Why am I doing this?"
3/ I mean, if you wanted to read and learn from #fintwit, you could do so without posting.

If you're not selling anything (or trying to raise AUM which is the same thing), it makes very very little sense.
Read 9 tweets
20 Apr
I just answered an emailed question. I suspect @KrisAbdelmessih @SinclairEuan @therobotjames and others get these too.

"I'm a smart engineering/CS/math student/graduate. How do I get into quant trading?"

A thread. 👉

1/n
2/ I'm going to preface this by asking an important question:

Why trading?

Almost every outsider has an idea of what trading is that's pretty far from the reality. It's not "deploy cool ML models on gigabytes of data". It's:
3/
- Do I have enough cash margin in account JP44315A?
- Why does the data format disseminated by broker X suck so much with this new update?
- How do I optimize my tax footprint?

And a thousand other little annoyances. Plus:

- Am I about to incinerate $ somehow?
Read 10 tweets
2 Apr
1/ A short thread about priors.

- What are they?
- Why do we need them?
- A few specific priors I hold.
2/ Priors are supposed to be "beliefs you hold before seeing the data".

Taken at face value this is crazy. You've been collecting data since the day you were born.
3/ But what we usually mean by priors (in a non-technical sense) is "what is your default assumption".

You may object "Ah, I don't hold any assumptions until I see the data."

That's dumb. (A) You do actually, and (B) you couldn't function in the world if you didn't.
Read 12 tweets
31 Mar
A book review: London And The 17th Century

amazon.com/London-Sevente…

by @margarettelinc1

1/n
When Elizabeth I died, noblemen had to make a huge show of her funeral in order to prep people for the accession of James I (James VI of Scotland).

With modern eyes, it’s cool to see how critical the “show” was to a government’s legitimacy. Government meaning the king, obv.

2/
This wasn’t some unnecessary extravagance. Shutting the city down for a day or two for the funeral procession was a critical part of establishing the legitimacy of the next king.

Oh and by the way, yes James II really was a horrendously bad king.

3/
Read 18 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(