The Limits of Prediction

Pengantar Pemodelan Linear di Python

Jason Vestuto

Data Scientist

Interpolation

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

Pengantar Pemodelan Linear di Python

Interpolation

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

Pengantar Pemodelan Linear di Python

Interpolation

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

Pengantar Pemodelan Linear di 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

Pengantar Pemodelan Linear di 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

Pengantar Pemodelan Linear di 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
Pengantar Pemodelan Linear di 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

Pengantar Pemodelan Linear di Python

Let's practice!

Pengantar Pemodelan Linear di Python

Preparing Video For Download...