The first fit is a Poisson regression with independent responses
The fitted intercept gives expected visitors when spending on both services is zero. Holding advert2 fixed, increasing advert1 by one unit, namely one hundred pounds, multiplies the expected visitor count by .
The second fit is a Quasi-Poisson regression. It retains the logarithmic link function and mean model
but assumes only for an unknown dispersion parameter , rather than a complete Poisson distribution.
The quasi-Poisson standard errors are the Poisson standard errors multiplied by , and the Pearson estimator divides the Pearson chi-squared statistic by the residual degrees of freedom . Therefore the requested sum of squared Pearson residuals is
up to the rounding in the printed standard errors.
The third fit is a negative binomial regression. The Poisson model is obtained at the boundary where the negative-binomial overdispersion tends to zero, so the likelihood-ratio test has the asymptotic null distribution . Since model3 has one additional parameter,
The supplied output gives , and hence the boundary-corrected p-value is
The stated mean and variance identify as a gamma distribution with shape and scale . A Poisson-gamma mixture is negative binomial, with
When , this is exactly the constant-shape variance model fitted by the negative binomial regression, so the most appropriate printed p-value is from model3.
When , the law of total variance gives
This is the quasi-Poisson mean-variance relation with constant dispersion, so the most appropriate printed p-value is from model2.
Among all depth-one regression tree splits, the best split separates the second observation from the first and third by cutting advert1 between and . The test point with advert1 equal to zero reaches the leaf containing responses and , so the output is their arithmetic mean,
This decision stump makes a piecewise-constant prediction far outside the observed predictor range and cannot extrapolate the spending trend towards the origin. Its shallow structure and leaf averaging keep its variance of an estimator modest, while that extrapolation failure can produce substantial bias of an estimator.

Articles by others on the same topic (0)

There are currently no matching articles.