I have just read this blog: Linear Models, ANOVA, GLM etc
The author tries to explain in which situations it is better to use a generalized linear model instead of linear regression. At a certain point, he takes some data that represents the count of warms in a field, under different treatments $T_i$. The author applies a generlized linear model with a Poisson family (exponential link) and gets some results. Until here everything is fine.
Than he says:
One of the assumptions of the Poisson distribution is that its mean and variance have the same value.
and he checks the mean of all the observations vs the variance of all the observations. These turn out to be different and the author states that a quasipoisson family is better.
And here is where I don't agree. Isn't the mean the same as the variance given a single factor? I mean, if I take treatment $T_i$ and I compare the mean number of warms, then I would expect it to be the same as the variance. But the mean across all treatments must not necessarily be the same as the variance across all treatments. Am I missing something?