Analytics, Data Science, Statistics, Glm, Poisson Regression.
(e.g., deviance, Akaike Information Criterion) to determine how well our model fits the data. import numpy as np import pandas as pd import statsmodels.api as sm import statsmodels.formula.api as smf # Seed for reproducibility np.random.seed(103) # Step 1: Generating the dataset n = 1000 ad_budget