initial loglikelihhod

Skip to first unread message

Atefeh Fakourrad

Sep 25, 2021, 4:17:46 AMSep 25
to Biogeme
Dear Prof. Bierlaire,

I am estimating a logit model using PandasBioegeme. The problem is that when I run the model, the initial loglikelihood significantly changes. For instance, I just move an attribute to another alternative and there is a huge difference in initial loglikelihood. Even if I do not change anything and just run the model for the second time, the initial loglikelihood gets equal to the final loglikelihood and this affects Rho-square. Apparently, the initial likelihood is relative to the previous model while I need an absolute initial loglikelihood. Is there any way to have the absolute initial likelihood? 

Best regards,

Bierlaire Michel

Sep 25, 2021, 5:06:40 AMSep 25
to, Bierlaire Michel, Biogeme
The initial likelihood is the likelihood for the initial values of the parameters. 
If you run several times Biogeme in the same directory, it saves previous estimates, and starts again from there, in order to save time. 

Two possibilities: 
- calculate the “null log likelihood”:  
where av is the dictionary with the availability conditions.
It only depends on the data and the choice set.

- Disable the automatic saving of the parameters: 

biogeme.saveIterations = False

See documentation here:

Make sure also to remove any file that looks like __mymodel.iter in the working directory.

Best regards,

You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Reply all
Reply to author
0 new messages