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')
____(____.____)