mathematical modeling of behavior
play

Mathematical Modeling of Behavior Michel Bierlaire Transport and - PowerPoint PPT Presentation

Mathematical Modeling of Behavior Michel Bierlaire Transport and Mobility Laboratory School of Architecture, Civil and Environmental Engineering Ecole Polytechnique F ed erale de Lausanne M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical


  1. Mathematical Modeling of Behavior Michel Bierlaire Transport and Mobility Laboratory School of Architecture, Civil and Environmental Engineering Ecole Polytechnique F´ ed´ erale de Lausanne M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 1 / 30

  2. Outline Outline Model specification Motivation 1 Probabilities In this course Model Applications Estimation Importance Testing Simple example Maximum likelihood 2 Choice problem Hypothesis testing Data Application M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 2 / 30

  3. Motivation Motivation Human dimension in Need for engineering behavioral theories business quantitative methods marketing operational mathematical models planning policy making M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 3 / 30

  4. Motivation Motivation Concept of demand Concept of choice marketing brand, product transportation mode, destination energy type, usage finance buy/sell, product M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 4 / 30

  5. Motivation In this course In this course... Focus Individual behavior (vs. aggregate behavior) Theory of behavior which is descriptive (how people behave) and not normative (how they should behave) general: not too specific operational: can be used in practice for forecasting Type of behavior: choice M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 5 / 30

  6. Motivation Applications Applications Mode choice in the Netherlands Context: car vs rail in Nijmegen Objective: sensitivity to travel time and cost, inertia. Mode choice in Switzerland Context: Car Postal Objective: demand forecasting M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 6 / 30

  7. Motivation Applications Applications Swissmetro Context: new transportation technology Objective: demand pattern, pricing Residential telephone services Context: flat rate vs. measured Objective: offer the most appropriate service Airline itinerary choice Context: questionnaire about itineraries across the US Objective: help airlines and aircraft manufacturer to design a better offer M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 7 / 30

  8. Motivation Importance Importance Daniel L. McFadden UC Berkeley 1963, MIT 1977, UC Berkeley 1991 Laureate of The Bank of Sweden Prize in Economic Sciences in Memory of Alfred Nobel 2000 Owns a farm and vineyard in Napa Valley “Farm work clears the mind, and the vineyard is a great place to prove theorems” M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 8 / 30

  9. Simple example Outline Model specification Motivation 1 Probabilities In this course Model Applications Estimation Importance Testing Simple example Maximum likelihood 2 Choice problem Hypothesis testing Data Application M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 9 / 30

  10. Simple example Simple example Objectives Introduce basic components of choice modeling: definition of the problem data model specification parameter estimation model application Application Analysis of the market for smartphones M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 10 / 30

  11. Simple example Choice problem Choice problem Choice Consumer’s choice to own a smartphone own another (“non-smart”) mobile phone. Questions what is the current market penetration of smartphones relative to non-smart phones? how will the penetration change in the future? M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 11 / 30

  12. Simple example Data Data Population Sample adults 2000 adults in the US randomly selected owning a mobile phone Questions Is your mobile phone a What is your level of educational smartphone attainment? No high school diploma, Yes, High school graduate, No. College graduate. M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 12 / 30

  13. Simple example Data Data Contingency table Education Smartphone Low ( k = 1) Medium ( k = 2) High ( k = 3) Yes ( i = 1) 75 500 510 1085 No ( i = 2) 175 500 240 915 250 1000 750 2000 Market penetration in the sample 1085 / 2000 = 54 . 3% How do we predict? We need a model. M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 13 / 30

  14. Simple example Model specification Model specification Variables Dependent Independent or exogenous or endogenous explanatory what is explained here: level of education here: choice to use a smartphone notation: k notation: i nature: discrete nature: discrete 1 = “low”; 2= “medium”; 3=“high” 1 = “yes”; 2= “no” M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 14 / 30

  15. Simple example Probabilities Probabilities Marginal probability frequency of smartphone ownership in the population P ( i = 1) Inference: use the sample to obtain an estimate P ( i = 1) ≈ � P ( i = 1) = 1085 / 2000 = 0 . 543 Joint probability frequency of smartphone ownership and medium level of education P ( i = 1 , k = 2) ≈ � P ( i = 1 , k = 2) = 500 / 2000 = 0 . 25 Conditional probability frequency of smartphone ownership in the population of people with medium level of education P ( i = 1 | k = 2) ≈ � P ( i = 1 | k = 2) = 500 / 1000 = 0 . 50 M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 15 / 30

  16. Simple example Model Model P ( i , k ) = P ( i | k ) P ( k ) = P ( k | i ) P ( i ) Interpretation P ( i | k ): level of education explains smartphone ownership P ( k | i ): smartphone ownership explains level of education Model identify stable causal relationships between the variable here: we select P ( i | k ) as an acceptable behavioral model stability over time necessary to forecast M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 16 / 30

  17. Simple example Model Model Specification P ( i = 1 | k = 1) = π 1 , P ( i = 1 | k = 2) = π 2 , P ( i = 1 | k = 3) = π 3 . Parameters π 1 , π 2 , π 3 unknown must be estimated from data M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 17 / 30

  18. Simple example Estimation Model estimation � P ( i = 1 , k = j ) π j = � π j = P ( i = 1 | k = j ) ≈ � P ( i = 1 | k = j ) = � P ( k = j ) Using the contingency table: π 1 � = 75 / 250 = 0 . 300 , π 2 � = 500 / 1000 = 0 . 500 , π 3 � = 510 / 750 = 0 . 680 . M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 18 / 30

  19. Simple example Testing Quality of the estimates Informal checks Do these estimates make sense? Do they match our a priori expectations? Here: as years of education increases, there is a higher penetration of smartphones. Quality of the estimates How is � π j different from π j ? We have no access to π j For each sample, we would obtain a different value of � π j π j is distributed. � M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 19 / 30

  20. Simple example Testing Quality of the estimates Distribution of � π 2 N = 4000 ( N 2 = 2000) N = 2000 ( N 2 = 1000) π 2 ) f N 2 ( � our estimate (0.50) π 2 = 0 . 48 0.42 0.44 0.46 0.48 0.5 0.52 0.54 π 2 � M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 20 / 30

  21. Simple example Testing Quality of the estimates Distribution of � π 2 Smaller samples are associated with wider spread The larger the sample, the better the estimate In practice, impossible to repeat the sampling multiple times Distributions derived from theoretical results or simulation Properties Bernoulli (0/1) random variables Variance: σ 2 j = π j (1 − π j ) Sample average: unbiased estimator � σ 2 / N Standard error of the estimator: Estimated standard error: � � s π j = � π j (1 − � π j ) / N j M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 21 / 30

  22. Simple example Testing Testing Estimates and standard errors parameter π j � � s π j π 1 0 . 300 0 . 029 π 2 0 . 500 0 . 016 π 3 0 . 680 0 . 017 M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 22 / 30

  23. Simple example Maximum likelihood Maximum likelihood estimation Likelihood function N � L ∗ = P ( i n | k n ) n =1 Probability that our model reproduces exactly the observations For our example: L ∗ = ( π 1 ) 75 (1 − π 1 ) 175 ( π 2 ) 500 (1 − π 2 ) 500 ( π 3 ) 510 (1 − π 3 ) 240 M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 23 / 30

  24. Simple example Maximum likelihood Maximum likelihood estimation Estimates Values of the parameters that maximize L ∗ . In practice, the logarithm is maximized N � L = ln L ∗ = ln P ( i n | k n ) . n =1 Properties Consistency Asymptotic efficiency M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 24 / 30

  25. Simple example Maximum likelihood Maximum likelihood 0 L π 1 • π 3 = 0 . 680 � L π 2 Partial log likelihood -200 L π 3 -400 π 2 = 0 . 500 � • � π 1 = 0 . 300 -600 • -800 -1000 -1200 0 0.2 0.4 0.6 0.8 1 Parameter value M. Bierlaire (TRANSP-OR ENAC EPFL) Mathematical Modeling of Behavior 25 / 30

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend