:orphan: Gallery of examples ################### .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Assisted specification with Biogeme *********************************** Examples discussed in `Bierlaire and Ortelli (2023) Assisted Specification with Biogeme 3.2.12 `_ .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_everything_spec_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_everything_spec.py` .. raw:: html
Combination of many specifications
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b00logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b00logit.py` .. raw:: html
Base model
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b01model_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b01model.py` .. raw:: html
Investigation of several choice models
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b02nonlinear_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b02nonlinear.py` .. raw:: html
Catalog of nonlinear specifications
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b03alt_spec_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b03alt_spec.py` .. raw:: html
Catalog for alternative specific coefficients
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b04segmentation_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b04segmentation.py` .. raw:: html
Catalog for segmented parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b05alt_spec_segmentation_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b05alt_spec_segmentation.py` .. raw:: html
Segmentations and alternative specific specification
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b06everything_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b06everything.py` .. raw:: html
Combine many specifications: exception is raised
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b07everything_assisted_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b07everything_assisted.py` .. raw:: html
Combine many specifications: assisted specification algorithm
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b08selected_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b08selected_specification.py` .. raw:: html
One model among many
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_b09post_processing_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_b09post_processing.py` .. raw:: html
Re-estimation of best models
.. raw:: html
.. only:: html .. image:: /auto_examples/assisted/images/thumb/sphx_glr_plot_simple_example_thumb.png :alt: :ref:`sphx_glr_auto_examples_assisted_plot_simple_example.py` .. raw:: html
Example of a catalog
.. thumbnail-parent-div-close .. raw:: html
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. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b01a_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b01a_logit.py` .. raw:: html
1a. Estimation of a logit model (Bayesian)
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b01b_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b01b_logit.py` .. raw:: html
1b. Estimation of a logit model (Bayesian)
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b01c_logit_simul_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b01c_logit_simul.py` .. raw:: html
1c. Simulation of a logit model (traditional and Bayesian)
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b02_weight_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b02_weight.py` .. raw:: html
2. Logit and sample with weights (Bayesian)
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b03_scale_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b03_scale.py` .. raw:: html
3. Moneymetric and heteroscedastic specification
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b04_validation_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b04_validation.py` .. raw:: html
4. Out-of-sample validation
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b05_normal_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b05_normal_mixture.py` .. raw:: html
5. Mixture of logit models: normal distribution
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b06_unif_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b06_unif_mixture.py` .. raw:: html
6. Mixture of logit models: uniform distribution
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b07_discrete_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b07_discrete_mixture.py` .. raw:: html
7. Latent class model
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b08_boxcox_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b08_boxcox.py` .. raw:: html
8. Box-Cox transforms
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b09_nested_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b09_nested.py` .. raw:: html
9. Nested logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b10_nested_bottom_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b10_nested_bottom.py` .. raw:: html
10. Nested logit model normalized from bottom
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b11_cnl_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b11_cnl.py` .. raw:: html
11. Cross-nested logit
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b12_panel_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b12_panel.py` .. raw:: html
12. Mixture of logit with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b15_panel_discrete_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b15_panel_discrete.py` .. raw:: html
15. Discrete mixture with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b16_panel_discrete_socio_eco_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b16_panel_discrete_socio_eco.py` .. raw:: html
16. Latent class model with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b17_lognormal_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b17_lognormal_mixture.py` .. raw:: html
17. Mixture with lognormal distribution
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b18a_ordinal_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b18a_ordinal_logit.py` .. raw:: html
18a. Ordinal logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b18b_ordinal_probit_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b18b_ordinal_probit.py` .. raw:: html
18. Ordinal probit model
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b19_individual_level_parameters_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b19_individual_level_parameters.py` .. raw:: html
19. Calculation of individual level parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b23a_binary_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b23a_binary_logit.py` .. raw:: html
23a. Binary logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b23b_binary_probit_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b23b_binary_probit.py` .. raw:: html
23b. Binary probit model
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b25_triangular_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b25_triangular_mixture.py` .. raw:: html
25. Triangular mixture of logit
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_plot_b26triangular_panel_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_plot_b26triangular_panel_mixture.py` .. raw:: html
26. Triangular mixture with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_swissmetro_binary_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_swissmetro_binary.py` .. raw:: html
Data preparation for Swissmetro (binary choice)
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_swissmetro_data_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_swissmetro_data.py` .. raw:: html
Data preparation for Swissmetro
.. raw:: html
.. only:: html .. image:: /auto_examples/bayesian_swissmetro/images/thumb/sphx_glr_swissmetro_panel_thumb.png :alt: :ref:`sphx_glr_auto_examples_bayesian_swissmetro_swissmetro_panel.py` .. raw:: html
Panel data preparation for Swissmetro
.. thumbnail-parent-div-close .. raw:: html
Biogeme examples for hybrid choice models ***************************************** This directory provides example implementations of MIMIC and hybrid choice models estimated with Biogeme, using both maximum likelihood and Bayesian methods. The examples range from latent-variable-only models to fully integrated hybrid choice models and are intended as reproducible references and learning material. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_choice_model_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_choice_model.py` .. raw:: html
Choice model
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_config_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_config.py` .. raw:: html
Configuration
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_estimate_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_estimate.py` .. raw:: html
Model estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_generate_jed_run_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_generate_jed_run.py` .. raw:: html
Prepare for server
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_latent_variables_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_latent_variables.py` .. raw:: html
Latent variables
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_likert_indicators_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_likert_indicators.py` .. raw:: html
Likert indicators
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_mimic_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_mimic.py` .. raw:: html
MIMIC model
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_optima_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_optima.py` .. raw:: html
Data preparation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_plot_b01_choice_only_ml_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_plot_b01_choice_only_ml.py` .. raw:: html
1. Choice model only - maximum likelihood estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_plot_b02_mimic_ml_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_plot_b02_mimic_ml.py` .. raw:: html
2. MIMIC model - maximum likelihood estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_plot_b03_hybrid_ml_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_plot_b03_hybrid_ml.py` .. raw:: html
3. Hybrid choice model - maximum likelihood estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_plot_b04_choice_only_bayes_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_plot_b04_choice_only_bayes.py` .. raw:: html
4. Choice model only - Bayesian estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_plot_b05_mimic_bayes_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_plot_b05_mimic_bayes.py` .. raw:: html
5. MIMIC model - Bayesian estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_plot_b06_hybrid_bayes_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_plot_b06_hybrid_bayes.py` .. raw:: html
6. Hybrid choice model - Bayesian estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/hybrid_choice/images/thumb/sphx_glr_read_or_estimate_thumb.png :alt: :ref:`sphx_glr_auto_examples_hybrid_choice_read_or_estimate.py` .. raw:: html
Read or estimate model parameters
.. thumbnail-parent-div-close .. raw:: html
Calculating indicators with Biogeme *********************************** Examples discussed in `Bierlaire (2018) Calculating indicators with PandasBiogeme `_ .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b01expressions_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b01expressions.py` .. raw:: html
Examples of mathematical expressions
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b02estimation_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b02estimation.py` .. raw:: html
Estimation and simulation of a nested logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b03simulation_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b03simulation.py` .. raw:: html
Simulation of a choice model
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b04market_shares_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b04market_shares.py` .. raw:: html
Calculation of market shares
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b05revenues_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b05revenues.py` .. raw:: html
Calculation of revenues
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b06point_elasticities_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b06point_elasticities.py` .. raw:: html
Direct point elasticities
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b07cross_elasticities_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b07cross_elasticities.py` .. raw:: html
Cross point elasticities
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b08arc_elasticities_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b08arc_elasticities.py` .. raw:: html
Arc elasticities
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_plot_b09wtp_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_plot_b09wtp.py` .. raw:: html
Calculation of willingness to pay
.. raw:: html
.. only:: html .. image:: /auto_examples/indicators/images/thumb/sphx_glr_scenarios_thumb.png :alt: :ref:`sphx_glr_auto_examples_indicators_scenarios.py` .. raw:: html
Specification of a nested logit model
.. thumbnail-parent-div-close .. raw:: html
Examples for the MDCEV model **************************** .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_gamma_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_gamma_specification.py` .. raw:: html
File gamma_specification.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_generalized_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_generalized_specification.py` .. raw:: html
File generalized_specification.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_non_monotonic_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_non_monotonic_specification.py` .. raw:: html
File non_monotonic_specification.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_gamma_estimation_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_gamma_estimation.py` .. raw:: html
File gamma_estimation.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_gamma_forecasting_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_gamma_forecasting.py` .. raw:: html
File gamma_forecasting.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_generalized_estimation_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_generalized_estimation.py` .. raw:: html
File generalized_estimation.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_generalized_forecasting_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_generalized_forecasting.py` .. raw:: html
File generalized_forecasting.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_non_monotonic_estimation_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_non_monotonic_estimation.py` .. raw:: html
File non_monotonic_estimation.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_non_monotonic_forecasting_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_non_monotonic_forecasting.py` .. raw:: html
File non_monotonic_forecasting.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_translated_estimation_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_translated_estimation.py` .. raw:: html
File translated_estimation.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_plot_translated_forecasting_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_plot_translated_forecasting.py` .. raw:: html
File translated_forecasting.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_process_data_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_process_data.py` .. raw:: html
File process_data.py
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_specification.py` .. raw:: html
Specification of the baseline utilities of a MDCEV model.
.. raw:: html
.. only:: html .. image:: /auto_examples/mdcev_no_outside_good/images/thumb/sphx_glr_translated_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_mdcev_no_outside_good_translated_specification.py` .. raw:: html
File translated_specification.py
.. thumbnail-parent-div-close .. raw:: html
Monte-Carlo integration with Biogeme ************************************ Example discussed in `Bierlaire (2019) Monte-Carlo integration with Biogeme `_ .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_b07estimation_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_b07estimation_specification.py` .. raw:: html
Specification of the mixtures of logit
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b01simple_integral_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b01simple_integral.py` .. raw:: html
Simple integral
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b02simple_integral_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b02simple_integral.py` .. raw:: html
Various integration methods
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b03antithetic_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b03antithetic.py` .. raw:: html
Antithetic draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b03antithetic_explicit_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b03antithetic_explicit.py` .. raw:: html
Antithetic draws explicitly generated
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b04normal_mixture_numerical_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b04normal_mixture_numerical.py` .. raw:: html
Numerical integration
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b05normal_mixture_monte_carlo_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b05normal_mixture_monte_carlo.py` .. raw:: html
Monte-Carlo integration
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b06estimation_integral_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b06estimation_integral.py` .. raw:: html
Estimation of mixtures of logit
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo.py` .. raw:: html
Mixtures of logit with Monte-Carlo 10_000 draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_500_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_500.py` .. raw:: html
Mixtures of logit with Monte-Carlo 500 draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_anti_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_anti.py` .. raw:: html
Mixtures of logit with Monte-Carlo 10_000 antithetic draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_anti_500_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_anti_500.py` .. raw:: html
Mixtures of logit with Monte-Carlo 500 antithetic draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_halton_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_halton.py` .. raw:: html
Mixtures of logit with Monte-Carlo 10_000 Halton draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_halton_500_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_halton_500.py` .. raw:: html
Mixtures of logit with Monte-Carlo 500 Halton draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_mlhs_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_mlhs.py` .. raw:: html
Mixtures of logit with Monte-Carlo 10_000 MLHS draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_mlhs_500_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_mlhs_500.py` .. raw:: html
Mixtures of logit with Monte-Carlo 500 MLHS draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_mlhs_anti_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_mlhs_anti.py` .. raw:: html
Mixtures of logit with Monte-Carlo 10_000 antithetic MLHS draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_plot_b07estimation_monte_carlo_mlhs_anti_500_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_plot_b07estimation_monte_carlo_mlhs_anti_500.py` .. raw:: html
Mixtures of logit with Monte-Carlo 2000 antithetic MLHS draws
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_swissmetro_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_swissmetro.py` .. raw:: html
Data preparation for Swissmetro
.. raw:: html
.. only:: html .. image:: /auto_examples/montecarlo/images/thumb/sphx_glr_swissmetro_one_thumb.png :alt: :ref:`sphx_glr_auto_examples_montecarlo_swissmetro_one.py` .. raw:: html
Data preparation for Swissmetro: one observation
.. thumbnail-parent-div-close .. raw:: html
Programming with Biogeme ************************ Examples of the use of various Biogeme objects for programming. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_biogeme_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_biogeme.py` .. raw:: html
biogeme.biogeme
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_biogeme_logging_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_biogeme_logging.py` .. raw:: html
biogeme.biogeme_logging
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_cnl_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_cnl.py` .. raw:: html
biogeme.cnl
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_database_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_database.py` .. raw:: html
biogeme.database
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_distributions_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_distributions.py` .. raw:: html
biogeme.distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_draws_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_draws.py` .. raw:: html
biogeme.draws
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_expressions_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_expressions.py` .. raw:: html
biogeme.expressions
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_filenames_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_filenames.py` .. raw:: html
biogeme.filenames
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_loglikelihood_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_loglikelihood.py` .. raw:: html
biogeme.loglikelihood
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_models_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_models.py` .. raw:: html
biogeme.models
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_nests_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_nests.py` .. raw:: html
biogeme.nests
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_optimization_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_optimization.py` .. raw:: html
biogeme.optimization
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_results_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_results.py` .. raw:: html
biogeme.results_processing
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_segmentation_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_segmentation.py` .. raw:: html
biogeme.segmentation
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_tools_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_tools.py` .. raw:: html
biogeme.tools
.. raw:: html
.. only:: html .. image:: /auto_examples/programmers/images/thumb/sphx_glr_plot_version_thumb.png :alt: :ref:`sphx_glr_auto_examples_programmers_plot_version.py` .. raw:: html
biogeme.version
.. thumbnail-parent-div-close .. raw:: html
Sampling of alternatives ************************ Examples discussed in `Bierlaire and Paschalidis (2023) Estimating MEV models with samples of alternatives `_ .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_alternatives_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_alternatives.py` .. raw:: html
List of alternatives
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_compare_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_compare.py` .. raw:: html
Compare parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_plot_b01logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_plot_b01logit.py` .. raw:: html
Logit
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_plot_b02nested_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_plot_b02nested.py` .. raw:: html
Nested logit
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_plot_b03cnl_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_plot_b03cnl.py` .. raw:: html
Cross-nested logit
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_specification.py` .. raw:: html
Model specification
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_specification_sampling_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_specification_sampling.py` .. raw:: html
Model specification
.. raw:: html
.. only:: html .. image:: /auto_examples/sampling/images/thumb/sphx_glr_true_parameters_thumb.png :alt: :ref:`sphx_glr_auto_examples_sampling_true_parameters.py` .. raw:: html
True parameters
.. thumbnail-parent-div-close .. raw:: html
Biogeme examples for the Swissmetro data **************************************** You find here several examples of models that can be estimated and simulated with Biogeme. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_generate_jed_run_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_generate_jed_run.py` .. raw:: html
Generate SLURM run scripts for Biogeme experiments.
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b01a_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b01a_logit.py` .. raw:: html
1a. Estimation of a logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b01b_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b01b_logit.py` .. raw:: html
1b. Illustration of additional features of Biogeme
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b01c_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b01c_logit.py` .. raw:: html
1c. Illustration of the quick_estimate of Biogeme
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b01d_logit_simul_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b01d_logit_simul.py` .. raw:: html
1d. Simulation of a logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b01e_logit_all_algos_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b01e_logit_all_algos.py` .. raw:: html
1e. Logit model with several algorithms
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b02_weight_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b02_weight.py` .. raw:: html
2. Estimation with weights: WESML
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b03_scale_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b03_scale.py` .. raw:: html
3. Moneymetric and heteroscedastic specification
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b04_validation_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b04_validation.py` .. raw:: html
4. Out-of-sample validation
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b05a_normal_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b05a_normal_mixture.py` .. raw:: html
5a. Mixture of logit models with Monte-Carlo integration
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b05b_normal_mixture_integral_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b05b_normal_mixture_integral.py` .. raw:: html
5b. Mixture of logit models with numerical integration
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b05c_normal_mixture_simul_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b05c_normal_mixture_simul.py` .. raw:: html
5c. Simulation of a mixture model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b05d_normal_mixture_all_algos_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b05d_normal_mixture_all_algos.py` .. raw:: html
Mixture of logit
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b06a_unif_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b06a_unif_mixture.py` .. raw:: html
6a. Mixture of logit models with uniform distribution
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b06b_unif_mixture_MHLS_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b06b_unif_mixture_MHLS.py` .. raw:: html
6b. Mixture of logit models with uniform MLHS draws
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b06c_unif_mixture_integral_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b06c_unif_mixture_integral.py` .. raw:: html
"
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b07_discrete_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b07_discrete_mixture.py` .. raw:: html
7. Latent class model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b08_boxcox_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b08_boxcox.py` .. raw:: html
8. Box-Cox transforms
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b09_nested_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b09_nested.py` .. raw:: html
9. Nested logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b10_nested_bottom_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b10_nested_bottom.py` .. raw:: html
10. Nested logit model normalized from bottom
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b11a_cnl_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b11a_cnl.py` .. raw:: html
11a. Cross-nested logit
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b11b_cnl_simul_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b11b_cnl_simul.py` .. raw:: html
11b. Simulation of a cross-nested logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b11c_cnl_sparse_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b11c_cnl_sparse.py` .. raw:: html
11c. Cross-nested logit with a sparse structure
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b12_panel_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b12_panel.py` .. raw:: html
12. Mixture of logit with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b13_panel_simul_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b13_panel_simul.py` .. raw:: html
13. Simulation of panel model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b14_nested_endogenous_sampling_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b14_nested_endogenous_sampling.py` .. raw:: html
14. Nested logit with corrections for endogeneous sampling
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b15a_panel_discrete_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b15a_panel_discrete.py` .. raw:: html
15a. Discrete mixture with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b15b_panel_discrete_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b15b_panel_discrete.py` .. raw:: html
15b. Discrete mixture with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b16_panel_discrete_socio_eco_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b16_panel_discrete_socio_eco.py` .. raw:: html
16. Discrete mixture with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b17a_lognormal_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b17a_lognormal_mixture.py` .. raw:: html
17a. Mixture with lognormal distribution
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b17b_lognormal_mixture_integral_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b17b_lognormal_mixture_integral.py` .. raw:: html
17b. Mixture with lognormal distribution and numerical integration
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b18a_ordinal_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b18a_ordinal_logit.py` .. raw:: html
18a. Ordinal logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b18b_ordinal_probit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b18b_ordinal_probit.py` .. raw:: html
18b. Ordinal probit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b19_individual_level_parameters_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b19_individual_level_parameters.py` .. raw:: html
19. Calculation of individual level parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b20_multiple_models_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b20_multiple_models.py` .. raw:: html
20. Estimation of several models
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b21a_multiple_models_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b21a_multiple_models.py` .. raw:: html
21a. Assisted specification
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b21b_multiple_models_spec_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b21b_multiple_models_spec.py` .. raw:: html
21b. Specification of a catalog of models
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b21c_process_pareto_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b21c_process_pareto.py` .. raw:: html
21c. Re-estimate the Pareto optimal models
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b22a_multiple_models_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b22a_multiple_models.py` .. raw:: html
Assisted specification
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b22b_multiple_models_spec_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b22b_multiple_models_spec.py` .. raw:: html
Specification of a catalog of models
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b22c_process_pareto_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b22c_process_pareto.py` .. raw:: html
Re-estimate the Pareto optimal models
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b23a_binary_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b23a_binary_logit.py` .. raw:: html
23a. Binary logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b23b_binary_probit_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b23b_binary_probit.py` .. raw:: html
23b. Binary probit model
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b24_halton_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b24_halton_mixture.py` .. raw:: html
24. Mixture of logit with Halton draws
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b25_triangular_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b25_triangular_mixture.py` .. raw:: html
25. Triangular mixture of logit
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_plot_b26_triangular_panel_mixture_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_plot_b26_triangular_panel_mixture.py` .. raw:: html
26. Triangular mixture with panel data
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_swissmetro_binary_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_swissmetro_binary.py` .. raw:: html
Data preparation for Swissmetro (binary choice)
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_swissmetro_data_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_swissmetro_data.py` .. raw:: html
Data preparation for Swissmetro
.. raw:: html
.. only:: html .. image:: /auto_examples/swissmetro/images/thumb/sphx_glr_swissmetro_panel_thumb.png :alt: :ref:`sphx_glr_auto_examples_swissmetro_swissmetro_panel.py` .. raw:: html
Panel data preparation for Swissmetro
.. thumbnail-parent-div-close .. raw:: html
Timing function evaluation ************************** We perform here the timing on some functions. The results clearly depend on the computer where it is run. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_plot01_logit_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_plot01_logit.py` .. raw:: html
Timing of a logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_plot02_cnl_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_plot02_cnl.py` .. raw:: html
Timing of a cross-nested logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_plot03_mixtures_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_plot03_mixtures.py` .. raw:: html
Timing of a logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_plot_comparison_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_plot_comparison.py` .. raw:: html
Comparison of execution times
.. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_swissmetro_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_swissmetro.py` .. raw:: html
Data preparation for Swissmetro
.. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_timing_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_timing.py` .. raw:: html
Tool for timing an expression
.. raw:: html
.. only:: html .. image:: /auto_examples/timing/images/thumb/sphx_glr_timing_expression_thumb.png :alt: :ref:`sphx_glr_auto_examples_timing_timing_expression.py` .. raw:: html
Timing of any expression
.. thumbnail-parent-div-close .. raw:: html
Some simple examples for beginners ********************************** .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_plot_b01_first_model_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_plot_b01_first_model.py` .. raw:: html
Estimation of a binary logit model
.. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_plot_b02_parameters_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_plot_b02_parameters.py` .. raw:: html
Configuring Biogeme with parameters
.. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_plot_b03_importing_specification_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_plot_b03_importing_specification.py` .. raw:: html
Importing model specification
.. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_plot_b04_estimation_results_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_plot_b04_estimation_results.py` .. raw:: html
Estimation results
.. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_plot_b05_simulation_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_plot_b05_simulation.py` .. raw:: html
Using the estimated model
.. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_tutorial_data_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_tutorial_data.py` .. raw:: html
Data definition for the simple tutorial
.. raw:: html
.. only:: html .. image:: /auto_examples/tutorials/images/thumb/sphx_glr_tutorial_model_thumb.png :alt: :ref:`sphx_glr_auto_examples_tutorials_tutorial_model.py` .. raw:: html
Model specification for the simple tutorial
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /auto_examples/assisted/index.rst /auto_examples/bayesian_swissmetro/index.rst /auto_examples/hybrid_choice/index.rst /auto_examples/indicators/index.rst /auto_examples/mdcev_no_outside_good/index.rst /auto_examples/montecarlo/index.rst /auto_examples/programmers/index.rst /auto_examples/sampling/index.rst /auto_examples/swissmetro/index.rst /auto_examples/timing/index.rst /auto_examples/tutorials/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: auto_examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_