Python में Generalized Linear Models
Ita Cirovic Donev
Data Science Consultant
उदाहरण:
$$ P(y)=\frac{\lambda^ye^{-\lambda}}{y!} $$

import seaborn as sns
sns.distplot('y')
रिस्पॉन्स वैरिएबल $$ y \sim Poisson(\lambda) $$
रिस्पॉन्स का औसत $$ E(y)=\lambda $$
Poisson रिग्रेशन मॉडल $$ log(\lambda)=\beta_0+\beta_1x_1 $$
import statsmodels.api as sm
from statsmodels.formula.api import glm
glm('y ~ x',
data = my_data,
family = sm.families.Poisson())
Python में Generalized Linear Models