I've never used GLM before so I would like to have some hints on how to use it and if I'm missing any steps. My challenge: I want to know if the price of product is influenced, positively or negatively by other variables that I can measure: Production time of a machine that stays on to build the product during a day How much time it takes to build one single product in a day How much is the manpower cost per product in a day How many products are built in a day I thought that using a GLM would help me understand this. However, I have two doubts: Should I study the distribution of my variables before choosing the type of family of GLM? I use Python to do the GLM but I get a warning: RuntimeWarning: invalid value encountered in log special.gammaln(n - y + 1) + y * np.log(mu / (1 - mu + 1e-20)) + RuntimeWarning: invalid value encountered in log n * np.log(1 - mu + 1e-20)) * var_weights But I don't understand what it means. How should I interpret the results? When following tutorials, the coef were more interpretable than what I got (ex. 0.67) --- For reproducibility, here is the code I used --- # creating the Numpy array array = np.array([[4, 441, 25, 4, 17], [10, 444, 49, 8, 9], [3, 483, 12, 2, 38], [2,447,10,1,43], [4,423,22,3,19], [3,19,19,3,1], [18,445,111,17,4], [7,423,42,7,10], [9,426,53,8,8], [12,378,54,8,7], [36,450,225,36,2],]) # creating a list of column names column_values = ['CONST', 'ACTUAL_PRODTIME', 'TIME_LOGO', 'COST_PPL_LOGO', 'LOGO'] # creating the dataframe d…

Full article content could not be extracted automatically. Read the original below.