write down likelihood equations