Gallery of examples¶
Assisted specification with Biogeme¶
Examples discussed in Bierlaire and Ortelli (2023) Assisted Specification with Biogeme 3.2.12
Segmentations and alternative specific specification
Combine many specifications: assisted specification algorithm
Biogeme examples for Bayesian inference with the Swissmetro data¶
You find here several examples of models that illustrate how to specify models to be estimated with Biogeme using Bayesian inference. To the extent possible, we have used the same examples illustrating the maximum likelihood estimation. The names of the files should correspond too.
1b. Estimation of a logit model with custom priors (Bayesian)
1c. Simulation of a logit model (traditional and Bayesian)
Hybrid choice models¶
Examples of discrete choice models with latent variables.
Baseline mode choice model: maximum likelihood estimation
Gaussian MIMIC model: maximum likelihood estimation
Sequential estimation of a choice model with a latent variable
Gaussian hybrid mode choice model: simultaneous maximum likelihood estimation
Ordered-logit hybrid mode choice model: simultaneous maximum likelihood estimation
Ordered-probit hybrid mode choice model: simultaneous maximum likelihood estimation
Hybrid choice models specifications¶
Examples of specifications of discrete choice models with latent variables. No estimation is performed.
Calculating indicators with Biogeme¶
Examples discussed in Bierlaire (2018) Calculating indicators with PandasBiogeme
Examples for the MDCEV model¶
Specification of the baseline utilities of a MDCEV model.
Monte-Carlo integration with Biogeme¶
Example discussed in Bierlaire (2019) Monte-Carlo integration with Biogeme
Mixtures of logit with Monte-Carlo 10_000 antithetic draws
Mixtures of logit with Monte-Carlo 500 antithetic draws
Mixtures of logit with Monte-Carlo 10_000 Halton draws
Mixtures of logit with Monte-Carlo 500 Halton draws
Mixtures of logit with Monte-Carlo 10_000 MLHS draws
Mixtures of logit with Monte-Carlo 10_000 antithetic MLHS draws
Mixtures of logit with Monte-Carlo 2000 antithetic MLHS draws
Programming with Biogeme¶
Examples of the use of various Biogeme objects for programming.
Sampling of alternatives¶
Examples discussed in Bierlaire and Paschalidis (2023) Estimating MEV models with samples of alternatives
Biogeme examples for the Swissmetro data¶
You find here several examples of models that can be estimated and simulated with Biogeme.
1c. Illustration of the quick_estimate method in Biogeme
5a. Mixture of logit models with Monte-Carlo integration
5b. Mixture of logit models with numerical integration
6a. Mixture of logit models with uniform distribution
6b. Mixture of logit models with uniform MLHS draws
12bis. Mixture of logit with panel data and segmented ASC
14. Nested logit with corrections for endogeneous sampling
17b. Mixture with lognormal distribution and numerical integration
Timing function evaluation¶
We perform here the timing on some functions. The results clearly depend on the computer where it is run.