nll_basic function

Negative log-likelihood function: basic model