Standard Error

Introduction to Linear Modeling in Python

Jason Vestuto

Data Scientist

ความไม่แน่นอนในการพยากรณ์

การพยากรณ์ของโมเดลและ RMSE:

  • เปรียบเทียบค่าพยากรณ์กับข้อมูลจริงจะได้ค่าคงเหลือ
  • ค่าคงเหลือมีการกระจายตัว
  • RMSE วัดการกระจายตัวของค่าคงเหลือ
  • RMSE บ่งบอกความแม่นยำของการพยากรณ์
Introduction to Linear Modeling in Python

ความไม่แน่นอนในพารามิเตอร์

พารามิเตอร์ของโมเดลและ Standard Error:

  • ค่าพารามิเตอร์เป็นจุดกึ่งกลาง
  • Standard Error ของพารามิเตอร์เป็นตัววัดการกระจาย
  • Standard Error วัดความไม่แน่นอนของพารามิเตอร์
Introduction to Linear Modeling in Python

การคำนวณ Standard Error

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
Introduction to Linear Modeling in Python

การคำนวณ Standard Error

e0 = model_fit.bse['Intercept']
e1 = model_fit.bse['times']
standard_error_of_intercept = e0
standard_error_of_slope = e1
Introduction to Linear Modeling in Python

มาฝึกกันเถอะ!

Introduction to Linear Modeling in Python

Preparing Video For Download...