# How to solve the Numerai Tournament / lecture by Marcos Lopez de Prado

**URL:** <https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982>\
**Category:** Data Science\
**Created:** [August 23, 2021, 9:26am UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982 "2021-08-23T09:26:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyuton](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/nyuton/32/687_2.png) [@nyuton](https://forum.numer.ai/u/nyuton)\
**Post date:** [August 23, 2021, 9:26am UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/1 "2021-08-23T09:26:55Z")

</div>

Hi,

Since I started selling my predictions, people ask, what do I do. @ageonsen posted a great lecture from Marcos Lopez de Prado a few months ago on how to solve the Numerai tournament with fairly detailed steps. I follow those steps!  
Seeing the current burning rate, I guess it didn’t get the attention neccessary.

Ageonsen is now #1 and I keep winning medals every week since I started following those instructions.  
I might have been simply lucky in the recent eras, but this lecture is certainly valuable. For the beginner and for the expert as well.

You can read it here:

> **[Advances in Financial Machine Learning: Numerai's Tournament (seminar slides)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3478927)**

Have fun!

---

<div class="post-metadata">

**Author:** ![profricecake](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/profricecake/32/2528_2.png) [@profricecake](https://forum.numer.ai/u/profricecake)\
**Post date:** [August 27, 2021, 3:31pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/2 "2021-08-27T15:31:37Z")

</div>

Hi @nyuton - thanks for sharing.

The slides are a great starting point and outline a very sensible approach. But of course they leave implementation completely up to the reader. I’m curious what other references you found useful for getting into the specifics of topics like, say, feature engineering. Is the textbook one of them? Are there others of note?

Thanks again!

---

<div class="post-metadata">

**Author:** ![nyuton](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/nyuton/32/687_2.png) [@nyuton](https://forum.numer.ai/u/nyuton)\
**Post date:** [August 27, 2021, 5:15pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/3 "2021-08-27T17:15:49Z")

</div>

Sure the textbook is great!  
Eye opening about the value of random forests. My best performing models are random forests. I stopped experimenting with NNs afterwards.

---

<div class="post-metadata">

**Author:** ![platemort](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/platemort/32/1143_2.png) [@platemort](https://forum.numer.ai/u/platemort)\
**Post date:** [August 31, 2021, 12:59pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/4 "2021-08-31T12:59:33Z")

</div>

Each week the era of the numerai\_tournament\_data.csv “test” column increases by one. How then can an era be a one month period?

---

<div class="post-metadata">

**Author:** ![liz](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/liz/32/1103_2.png) [@liz](https://forum.numer.ai/u/liz)\
**Post date:** [August 31, 2021, 9:03pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/5 "2021-08-31T21:03:23Z")

</div>

great point, thanks!

---

<div class="post-metadata">

**Author:** ![nyuton](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/nyuton/32/687_2.png) [@nyuton](https://forum.numer.ai/u/nyuton)\
**Post date:** [September 1, 2021, 6:37am UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/6 "2021-09-01T06:37:21Z")

</div>

We start one era every week. There are 4 overlapping open eras.

---

<div class="post-metadata">

**Author:** ![platemort](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/platemort/32/1143_2.png) [@platemort](https://forum.numer.ai/u/platemort)\
**Post date:** [September 1, 2021, 3:02pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/7 "2021-09-01T15:02:58Z")

</div>

I agree with that, but his paper repeatedly refers to the eras as monthly, like here “Train set: 120 months (eras)” on page 6. Shouldn’t that be 120 weeks?

---

<div class="post-metadata">

**Author:** ![nyuton](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/nyuton/32/687_2.png) [@nyuton](https://forum.numer.ai/u/nyuton)\
**Post date:** [September 1, 2021, 3:59pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/8 "2021-09-01T15:59:00Z")

</div>

Oh, true. In the training set the eras are not overlapping. Yet…  
From 8. September we get the full dataset with overlapping eras.

---

<div class="post-metadata">

**Author:** ![javiermoral](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@javiermoral](https://forum.numer.ai/u/javiermoral)\
**Post date:** [January 25, 2023, 6:41pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/9 "2023-01-25T18:41:42Z")

</div>

Hi nyuton, thanks for sharing. I am wondering if and how you apply stationarity tests. It makes no sense to apply test directly on the variables since each era reflects the same time period for all assets. Aggregating by eras and calculating the mean and then applying tests (e.g. Augmented Dickey-Fuller) seems too simple.

---

<div class="post-metadata">

**Author:** ![andralienware](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@andralienware](https://forum.numer.ai/u/andralienware)\
**Post date:** [January 26, 2023, 3:34am UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/10 "2023-01-26T03:34:56Z")

</div>

I think that’s actually exactly what he means, but not necessarily to the variables, but to the variables’ correlation with the target.

---

<div class="post-metadata">

**Author:** ![javiermoral](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@javiermoral](https://forum.numer.ai/u/javiermoral)\
**Post date:** [January 26, 2023, 12:32pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/11 "2023-01-26T12:32:51Z")

</div>

I’ve aggregated by eras, computed the spearman corr of each era, created a series for each feature (v.4.1) on its correlation and then applied Augmented Dickey-Fuller) on each series. Result, not a single null hypothesis rejected. All features are stationary following this apporach.

---

<div class="post-metadata">

**Author:** ![andralienware](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@andralienware](https://forum.numer.ai/u/andralienware)\
**Post date:** [January 26, 2023, 2:58pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/12 "2023-01-26T14:58:44Z")

</div>

It may also be more important if you are competing in the signals competition.

---

<div class="post-metadata">

**Author:** ![f58c](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@f58c](https://forum.numer.ai/u/f58c)\
**Post date:** [November 7, 2023, 10:35pm UTC](https://forum.numer.ai/t/how-to-solve-the-numerai-tournament-lecture-by-marcos-lopez-de-prado/3982/14 "2023-11-07T22:35:25Z")

</div>

> [@nyuton](#):
>
> Ageonsen

thanks for the paper!
