開始使用免費開始

Poisson 信賴區間

使用先前配適的馬蹄蟹模型 sat ~ width,透過計算 \(\beta_1\) 的信賴區間,以及對平均數之乘法效果的信賴區間,來分析係數估計的不確定性。

model 物件與 crab 資料集已預先載入工作區。

本練習屬於課程

Generalized Linear Models in Python

檢視課程

練習說明

  • 使用 .conf_int() 函式擷取信賴區間,並將結果存成 model_ci。
  • 計算對平均數之乘法效果的信賴區間。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Compute confidence intervals for the coefficients
model_ci = ____.____

# Compute and print the confidence intervals for the multiplicative effect on the mean
____(np.____(____))
編輯並執行程式碼