The Limits of Prediction

Introduzione alla modellazione lineare in Python

Jason Vestuto

Data Scientist

Interpolation

Scatter plot of monthly Dow Jones price index versus dates from 2013 to 2015

Introduzione alla modellazione lineare in Python

Interpolation

Scatter plot of daily Dow Jones price index versus dates from 2013 to 2015

Introduzione alla modellazione lineare in Python

Interpolation

Scatter plot of monthly Dow Jones price index versus dates from 2013 to 2015

Introduzione alla modellazione lineare in Python

Interpolation

Scatter plot of monthly Dow Jones price index versus dates from 2013 to 2015, with model line over-plotted in red, fitting the data reasonably well

Introduzione alla modellazione lineare in Python

Interpolation

Scatter plot of daily Dow Jones price index versus dates from 2013 to 2015, with model line over-plotted in red, fitting the data only in a few limited ranges of dates

Introduzione alla modellazione lineare in Python

Domain of Validity

  • zoom in: data looks linear
  • model assumption: a2*x**2 + a3*x**3 + ... = zero.
  • build a linear model: a0 + a1*x
  • zoom out: your model breaks
Introduzione alla modellazione lineare in Python

Extrapolating Too Far

Scatter plot of altitude versus distance, with black points following a linear trend and points extending to each side deviating strongly from linear shown in blue, all with model line over-plot and fitting only the central black points

Introduzione alla modellazione lineare in Python

Let's practice!

Introduzione alla modellazione lineare in Python

Preparing Video For Download...