SlideShare a Scribd company logo
1 of 18
Overfitting : your forecasts may not
be as good as the measure tells you


               Joannes Vermorel, 2009-04-19, www.lokad.com
Overfitting

Subtle problem
Too little known

Key facts
• it costs money
• no work-around



                      Joannes Vermorel, 2009-04-19, www.lokad.com
Forecasting accuracy?

Wait and see?

Not tractable
• Can’t wait.
• Method is changing.




                        Joannes Vermorel, 2009-04-19, www.lokad.com
Forecasting model




      Joannes Vermorel, 2009-04-19, www.lokad.com
Linear model (error > 50%)
   (numbers are made-up, just an illustration)




                      Joannes Vermorel, 2009-04-19, www.lokad.com
More complexity (error ≈ 10%)




            Joannes Vermorel, 2009-04-19, www.lokad.com
Too much complexity (error < 1%)




              Joannes Vermorel, 2009-04-19, www.lokad.com
Comparing models
10% error                     1% error




Model “fits”               Model “overfits”

               Joannes Vermorel, 2009-04-19, www.lokad.com
Comparing models
10% empirical error                1% empirical error




  Model “fits”                    Model “overfits”

                      Joannes Vermorel, 2009-04-19, www.lokad.com
Comparing models
real error = ?                  real error = ?




Model “fits”                 Model “overfits”

                 Joannes Vermorel, 2009-04-19, www.lokad.com
Real error


Def: it’s the error on the
  data you don’t have.

Paradox?




                             Joannes Vermorel, 2009-04-19, www.lokad.com
Old school: bias vs. variance




  high bias     medium bias                    low bias
low variance   medium variance              high variance



                     Joannes Vermorel, 2009-04-19, www.lokad.com
Bounding the real error


1995: The Nature of Statistical Learning Theory
  by Vladimir Vapnik (AT&T Bell Labs)

     Real Error < Empirical Error + Structural Risk




                         Joannes Vermorel, 2009-04-19, www.lokad.com
Empirical Error and Structural Risk




Low risk    Medium risk                 High risk




               Joannes Vermorel, 2009-04-19, www.lokad.com
Empirical Error and Structural Risk
             (numbers are made-up, just an illustration)




Emp. Error = 50%      Emp. Error = 10%                  Emp. Error = 1%
Stuct. Risk = 10%     Stuct. Risk = 20%                Stuct. Risk = 99%
 Real error < 60%      Real error < 30%               Real error < 100%


                                Joannes Vermorel, 2009-04-19, www.lokad.com
Estimating the structural risk
                                   1% error

This criterion is
• Theoretical
• Difficult
• Yet unavoidable

                                Model “overfits”

                    Joannes Vermorel, 2009-04-19, www.lokad.com
Estimating the structural risk
                                            1% error
Overfitting is probable if
• Data is complex
• Models are complex

No magic: happens also
  with linear models
                                         Model “overfits”

                             Joannes Vermorel, 2009-04-19, www.lokad.com
Conclusions
Without taking into account the structural risk,
  your measure of the forecast error can be deceptive.

Shameless plug : No time to compute your structural risks?
  Let Lokad handle your forecasts, so that you don’t have to.

Ask your questions at http://forums.lokad.com/

Academic References:
1984: A Theory of the Learnable. Communications of the ACM,
   27(11):1134--1142, L. Valiant
1995: The Nature of Statistical Learning Theory
   Springer, by Vladimir Vapnik (AT&T Bell Labs)

                               Joannes Vermorel, 2009-04-19, www.lokad.com

More Related Content

Viewers also liked (7)

RETAIL SALES FORECASTING : CONCEPT AND ISSUES
RETAIL SALES FORECASTING : CONCEPT AND ISSUESRETAIL SALES FORECASTING : CONCEPT AND ISSUES
RETAIL SALES FORECASTING : CONCEPT AND ISSUES
 
A Roadmap To World Class Forecasting Accuracy
A Roadmap To World Class Forecasting AccuracyA Roadmap To World Class Forecasting Accuracy
A Roadmap To World Class Forecasting Accuracy
 
Retail Analytics
Retail AnalyticsRetail Analytics
Retail Analytics
 
Business forcasting
Business forcastingBusiness forcasting
Business forcasting
 
Demand forecasting
Demand forecastingDemand forecasting
Demand forecasting
 
Demand Forecasting
Demand ForecastingDemand Forecasting
Demand Forecasting
 
Demand forecasting ppt
Demand forecasting pptDemand forecasting ppt
Demand forecasting ppt
 

Recently uploaded

Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024christinemoorman
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...lizamodels9
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...ictsugar
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Kirill Klimov
 

Recently uploaded (20)

Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...Global Scenario On Sustainable  and Resilient Coconut Industry by Dr. Jelfina...
Global Scenario On Sustainable and Resilient Coconut Industry by Dr. Jelfina...
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024
 

Overfitting: your forecasts may not be as good as the measure tells you

  • 1. Overfitting : your forecasts may not be as good as the measure tells you Joannes Vermorel, 2009-04-19, www.lokad.com
  • 2. Overfitting Subtle problem Too little known Key facts • it costs money • no work-around Joannes Vermorel, 2009-04-19, www.lokad.com
  • 3. Forecasting accuracy? Wait and see? Not tractable • Can’t wait. • Method is changing. Joannes Vermorel, 2009-04-19, www.lokad.com
  • 4. Forecasting model Joannes Vermorel, 2009-04-19, www.lokad.com
  • 5. Linear model (error > 50%) (numbers are made-up, just an illustration) Joannes Vermorel, 2009-04-19, www.lokad.com
  • 6. More complexity (error ≈ 10%) Joannes Vermorel, 2009-04-19, www.lokad.com
  • 7. Too much complexity (error < 1%) Joannes Vermorel, 2009-04-19, www.lokad.com
  • 8. Comparing models 10% error 1% error Model “fits” Model “overfits” Joannes Vermorel, 2009-04-19, www.lokad.com
  • 9. Comparing models 10% empirical error 1% empirical error Model “fits” Model “overfits” Joannes Vermorel, 2009-04-19, www.lokad.com
  • 10. Comparing models real error = ? real error = ? Model “fits” Model “overfits” Joannes Vermorel, 2009-04-19, www.lokad.com
  • 11. Real error Def: it’s the error on the data you don’t have. Paradox? Joannes Vermorel, 2009-04-19, www.lokad.com
  • 12. Old school: bias vs. variance high bias medium bias low bias low variance medium variance high variance Joannes Vermorel, 2009-04-19, www.lokad.com
  • 13. Bounding the real error 1995: The Nature of Statistical Learning Theory by Vladimir Vapnik (AT&T Bell Labs) Real Error < Empirical Error + Structural Risk Joannes Vermorel, 2009-04-19, www.lokad.com
  • 14. Empirical Error and Structural Risk Low risk Medium risk High risk Joannes Vermorel, 2009-04-19, www.lokad.com
  • 15. Empirical Error and Structural Risk (numbers are made-up, just an illustration) Emp. Error = 50% Emp. Error = 10% Emp. Error = 1% Stuct. Risk = 10% Stuct. Risk = 20% Stuct. Risk = 99% Real error < 60% Real error < 30% Real error < 100% Joannes Vermorel, 2009-04-19, www.lokad.com
  • 16. Estimating the structural risk 1% error This criterion is • Theoretical • Difficult • Yet unavoidable Model “overfits” Joannes Vermorel, 2009-04-19, www.lokad.com
  • 17. Estimating the structural risk 1% error Overfitting is probable if • Data is complex • Models are complex No magic: happens also with linear models Model “overfits” Joannes Vermorel, 2009-04-19, www.lokad.com
  • 18. Conclusions Without taking into account the structural risk, your measure of the forecast error can be deceptive. Shameless plug : No time to compute your structural risks? Let Lokad handle your forecasts, so that you don’t have to. Ask your questions at http://forums.lokad.com/ Academic References: 1984: A Theory of the Learnable. Communications of the ACM, 27(11):1134--1142, L. Valiant 1995: The Nature of Statistical Learning Theory Springer, by Vladimir Vapnik (AT&T Bell Labs) Joannes Vermorel, 2009-04-19, www.lokad.com