शुरू करेंमुफ़्त में शुरू करें

Negative Binomial मॉडल के लिए Confidence intervals

पहले फिट किए गए crab मॉडल के साथ आगे बढ़ते हुए, आप Negative Binomial मॉडल के confidence intervals की तुलना Poisson regression मॉडल से करेंगे.

Poisson regression मॉडल crab_pois, Negative Binomial मॉडल crab_NB, और crab डेटासेट workspace में प्रीलोडेड हैं.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Python में Generalized Linear Models

पाठ्यक्रम देखें

अभ्यास निर्देश

  • crab_pois मॉडल के लिए confidence intervals compute करें और प्रिंट करें.
  • crab_NB मॉडल के लिए confidence intervals compute करें और प्रिंट करें.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Compute confidence intervals for crab_Pois model
print('Confidence intervals for the Poisson model')
____(____.____)

# Compute confidence intervals for crab_NB model
print('Confidence intervals for the Negative Binomial model')
____(____.____)
कोड संपादित करें और चलाएँ