Country: Mexico
You are in the Mexico edition. Type your country to switch.
Nigeria
The Americas
Loading every country…
No country matches. Check the spelling, or choose "Any country" for the Global edition.
You are learning in the Mexico edition, with examples in pesos and from Mexico.
Your learning profile
Financial Data Lab · Lesson 7 of 8
Lab 7: watching a model overfit
This lab fits models of rising complexity to invented data and watches the error on the training data fall while the error on held-back test data first falls and then rises. That turn is overfitting. It also shows how trying many rules on one data set produces a winner by luck alone.
This lesson is complete in writing. A video for it is on its way.
What you will learn
- By the end you can split data into training and test parts, fit models of rising complexity and compare their errors.
- You can read a table of training and test error and pick the point where overfitting begins.
- You can work out the chance that at least one of many random rules looks significant by luck.
- You can explain why financial data must be split by time and why a final test set should be used only once.
Key terms in this lesson
- Overfitting
- Tuning a model or strategy so closely to past data that it captures noise and fails on new data.
- Training error
- How badly a model fits the data it was built on. It always falls as a model becomes more complex, so on its own it says little about future performance.
- Test error
- How badly a model fits data held back from building it. It is the honest measure of how well the model is likely to do on new data.
- Multiple testing
- The problem that testing many ideas at a fixed threshold makes some pass by luck. The more tests, the higher the threshold each should meet.
- Data snooping
- Testing many ideas on the same data and reporting the best ones, which makes results found by chance look like real effects.
- Step 1: The experiment, not started
- Step 2: Fitting models of rising complexity, not started
- Step 3: Reading the pattern, not started
- Step 4: Trying many rules: winning by luck, not started
- Step 5: Splitting financial data properly, not started
About 7 min of reading
Step 1 of 5
The experiment
Opening this step…
Step 2 of 5
Fitting models of rising complexity
This step opens when you finish the one above.
Step 3 of 5
Reading the pattern
This step opens when you finish the one above.
Step 4 of 5
Trying many rules: winning by luck
This step opens when you finish the one above.
Step 5 of 5
Splitting financial data properly
This step opens when you finish the one above.
Key takeaways
The key takeaways open when you finish every step.
Lesson quiz
6 questions. You need 85% to pass.
The quiz opens when you finish every step.
Read first
Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.