Local regression and likelihood