MulaiMulai sekarang secara gratis

Confidence intervals

Continuing from the previous exercise you will now asses the uncertainty of the coefficients by computing the confidence intervals.

Recall formulas for confidence intervals discussed in the video:

  • 95% confidence intervals for the parameter \(\beta\) $$ \hat\beta\pm1.96*SE $$

  • 95% confidence intervals for odds $$ exp(\hat\beta\pm1.96*SE) $$

The model crab_GLM and crab dataset are loaded in the workspace.

Latihan ini adalah bagian dari kursus

Generalized Linear Models in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Extract and print confidence intervals
print(____.____)
Edit dan Jalankan Kode