Segmentation and simulation

28 views
Skip to first unread message

Philipp Theile

unread,
Sep 17, 2024, 5:15:11 AM9/17/24
to Biogeme
Dear Biogeme-group,

I have defined a catalog of model specifications for my application, which helps me to obtain coefficients for different segments of my data.

In a next step, I would like to simulate probabilities of product choices within each segment. Would it be possible to apply the simulate command of biogeme to segmented data? Or do I have to consider anything special, i.e., updating the Variable dictionary explicitly to also contain the segmented coefficients? I could not find an example of combined segmentation and simulation in the gallery of examples.

Thank you very much and kind regards
Philipp Theile


Michel Bierlaire

unread,
Sep 17, 2024, 5:19:53 AM9/17/24
to theile...@gmail.com, Michel Bierlaire, Biogeme
You can simulate the same expressions as the one you have used for estimation.
A segmentation is nothing else than a valid biogeme expression.
In order to test your simulator, try to recalculate the final loglikelihood using simulation.
It is a good way to test your implementation before simulating other things.
> --
> 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 biogeme+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/41607793-927f-4f28-9400-6e557e28fd36n%40googlegroups.com.

Michel Bierlaire
Transport and Mobility Laboratory
School of Architecture, Civil and Environmental Engineering
EPFL - Ecole Polytechnique Fédérale de Lausanne
http://transp-or.epfl.ch
http://people.epfl.ch/michel.bierlaire

Reply all
Reply to author
Forward
0 new messages