Standaardfout

Introductie tot lineaire modellering in Python

Jason Vestuto

Data Scientist

Onzekerheid in voorspellingen

Modelvoorspellingen en RMSE:

  • voorspellingen vs. data geven residuen
  • residuen hebben spreiding
  • RMSE meet de residuspreiding
  • RMSE kwantificeert hoe goed de voorspelling is
Introductie tot lineaire modellering in Python

Onzekerheid in parameters

Modelparameters en standaardfout:

  • Parameterwaarde als centrum
  • Standaardfout van parameter als spreiding
  • Standaardfout meet parameteronzekerheid
Introductie tot lineaire modellering in Python

Standaardfouten berekenen

df = pd.DataFrame(dict(times=x_data, distances=y_data))
model_fit = ols(formula="distances ~ times", data=df).fit()
a1 = model_fit.params['times']
a0 = model_fit.params['Intercept']
slope = a1
intercept = a0
Introductie tot lineaire modellering in Python

Standaardfouten berekenen

e0 = model_fit.bse['Intercept']
e1 = model_fit.bse['times']
standard_error_of_intercept = e0
standard_error_of_slope = e1
Introductie tot lineaire modellering in Python

Laten we oefenen!

Introductie tot lineaire modellering in Python

Preparing Video For Download...