Prediction error and Kullback-Leibler distance provide a useful link between least squares and maximum likelihood estimation.This article is a summary of some existing results, with special reference to the deviance function popular in the GLIM literature.