Analytics, Data Science, Statistics, Glm, Poisson Regression.
for the simulation true_params = np.array([0.1, 0.0005, 0.005]) # Linear predictor (log scale) log_lambda = true_params[0] + true_params[1] * ad_budget + true_params[2] * store_size # Rate parameter (exponentiate to get the expected number of customers) lambda_ = np.exp(log_lambda) # Generate the