MLE for epochs model