Weighted averaging, logistic regression and the Gaussian response model