constrained optimization approaches to estimation of
play

Constrained Optimization Approaches to Estimation of Structural - PowerPoint PPT Presentation

Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Constrained Optimization Approaches to Estimation of Structural Models: Comment Fedor Iskhakov, University of New South Wales Jinhyuk Lee, Ulsan National


  1. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Constrained Optimization Approaches to Estimation of Structural Models: Comment Fedor Iskhakov, University of New South Wales Jinhyuk Lee, Ulsan National Institute of Science and Technology John Rust, Georgetown University Kyoungwon Seo, Korea Advanced Institute of Science and Techn. Bertel Schjerning, University of Copenhagen January 2015

  2. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Su and Judd (Econometrica, 2012)

  3. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Death to NFXP? Su and Judd (Econometrica, 2012) TABLE II N UMERICAL P ERFORMANCE OF NFXP AND MPEC IN THE M ONTE C ARLO E XPERIMENTS a Runs Converged CPU Time # of Major # of Func. # of Contraction Implementation (out of 1250 runs) (in sec.) Iter. Eval. Mapping Iter. β 0.975 MPEC/AMPL 1240 0 � 13 12.8 17 � 6 – MPEC/M ATLAB 1247 7 � 90 53.0 62 � 0 – NFXP 998 24 � 60 55.9 189 � 4 134,748 0.980 MPEC/AMPL 1236 0 � 15 14.5 21 � 8 – MPEC/M ATLAB 1241 8 � 10 57.4 70 � 6 – NFXP 1000 27 � 90 55.0 183 � 8 162,505 0.985 MPEC/AMPL 1235 0 � 13 13.2 19 � 7 – MPEC/M ATLAB 1250 7 � 50 55.0 62 � 3 – NFXP 952 43 � 20 61.7 227 � 3 265,827 0.990 MPEC/AMPL 1161 0 � 19 18.3 42 � 2 – MPEC/M ATLAB 1248 7 � 50 56.5 65 � 8 – NFXP 935 70 � 10 66.9 253 � 8 452,347 0.995 MPEC/AMPL 965 0 � 14 13.4 21 � 3 – MPEC/M ATLAB 1246 7 � 90 59.6 70 � 7 – NFXP 950 111 � 60 58.8 214 � 7 748,487 a For each β , we use five starting points for each of the 250 replications. CPU time, number of major iterations, number of function evaluations and number of contraction mapping iterations are the averages for each run. Monte Carlo study demonstrates the uses of parametric bootstrap to compute

  4. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion The Nested Fixed Point Algorithm NFXP solves the unconstrained optimization problem max L ( θ , EV θ ) θ Outer loop (Hill-climbing algorithm): Likelihood function L ( θ , EV θ ) is maximized w.r.t. θ Quasi-Newton algorithm: Usually BHHH, BFGS or a combination. Each evaluation of L ( θ , EV θ ) requires solution of EV θ Inner loop (fixed point algorithm): The implicit function EV θ defined by EV θ = Γ( EV θ ) is solved by: Successive Approximations (SA) Newton-Kantorovich (NK) Iterations

  5. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Mathematical Programming with Equilibrium Constraints MPEC solves the constrained optimization problem max θ , EV L ( θ , EV ) subject to EV = Γ θ ( EV ) using general-purpose constrained optimization solvers such as KNITRO and CONOPT Su and Judd (Ecta 2012) considers two such implementations: MPEC/AMPL: AMPL formulates problems and pass it to KNITRO. Automatic differentiation (Jacobian and Hessian) Sparsity patterns for Jacobian and Hessian MPEC/MATLAB: User need to supply Jacobians, Hessian, and Sparsity Patterns Su and Judd do not supply analytical derivatives. ktrlink provides link between MATLAB and KNITRO solvers.

  6. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Zurcher’s Bus Engine Replacement Problem Choice set: Each bus comes in for repair once a month and Zurcher chooses between ordinary maintenance ( d t = 0) and overhaul/engine replacement ( d t = 1) State variables: Harold Zurcher observes: x t : mileage at time t since last engine overhaul ε t = [ ε t ( d t = 0) , ε t ( d t = 1)]: other state variable Utility function: � − RC − c (0 , θ u ) + ε t (1) if d t = 1 u ( x t , d , θ u )+ ε t ( d t ) = (1) − c ( x t , θ u ) + ε t (0) if d t = 0 State variables process x t (mileage since last replacement) � g ( x t +1 − 0 , θ x ) if d t = 1 p ( x t +1 | x t , d t , θ x ) = (2) g ( x t +1 − x t , θ x ) if d t = 0 If engine is replaced, state of bus regenerates to x t = 0.

  7. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Zurcher’s Bus Engine Replacement Problem Zurcher’s problem Maximize expected sum of current and future discounted utilities, summarized by the Bellman equation : V θ ( x t , ε t ) = d ∈ D ( x t ) [ u ( x t , d , θ u )+ ε t ( d )+ β EV θ ( x t +1 , ε t +1 | x t , ε t , d )] max Under (CI) and (XV) we can integrate out the unobserved state variables EV θ ( x , d ) = Γ θ ( EV θ )( x , d )   �  ∑ exp[ u ( y , d ′ ; θ u ) + β EV θ ( y , d ′ )]  p ( dy | x , d , θ x ) = y ln d ′ ∈ D ( y )

  8. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Structural Estimation Econometric problem: Given observations of mileage and replacement decisions for i = 1 , .., n busses observed over T i time periods: ( d i , t , x i , t ), t = 1 , ..., T i and i = 1 , ..., n , we wish to estimate parameters θ = { θ u , θ x } using MLE Likelihood Under assumption (CI) the log-likelihood function contribution ℓ f has the particular simple form T i T i ℓ f ∑ ∑ log ( P ( d i , t | x i , t , θ ) ) log ( p ( x i , t | x i , t − 1 , d i , t − 1 , θ x ) ) i ( θ ) = + t =2 t =2 � �� � � �� � ℓ 1 ℓ 2 i ( θ ) i ( θ x ) where P ( d i , t | x i , t , θ ) is the choice probability given the observable state variable , x i , t .

  9. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Choice Probabilities and Expected Value functions Under the extreme value (XV) assumption choice probabilities are multinomial logistic exp { u ( x , d , θ u ) + β EV θ ( x , d ) } P ( d | x , θ ) = (3) ∑ j ∈ D ( y ) { u ( x , j , θ 1 ) + β EV θ ( x , j ) } The expected value function is given by the unique fixed point to the contraction mapping Γ θ , defined by EV θ ( x , d ) = Γ θ ( EV θ )( x , d )   �  ∑ exp[ u ( y , d ′ ; θ u ) + β EV θ ( y , d ′ )] = y ln  d ′ ∈ D ( y ) p ( dy | x , d , θ x ) Γ θ is a contraction mapping with unique fixed point EV θ , i.e. � Γ( EV ) − Γ( W ) �≤ β � EV − W �

  10. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Rust (Econometrica, 1987)

  11. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Death to NFXP? Su and Judd (Econometrica, 2012) TABLE II N UMERICAL P ERFORMANCE OF NFXP AND MPEC IN THE M ONTE C ARLO E XPERIMENTS a Runs Converged CPU Time # of Major # of Func. # of Contraction Implementation (out of 1250 runs) (in sec.) Iter. Eval. Mapping Iter. β 0.975 MPEC/AMPL 1240 0 � 13 12.8 17 � 6 – MPEC/M ATLAB 1247 7 � 90 53.0 62 � 0 – NFXP 998 24 � 60 55.9 189 � 4 134,748 0.980 MPEC/AMPL 1236 0 � 15 14.5 21 � 8 – MPEC/M ATLAB 1241 8 � 10 57.4 70 � 6 – NFXP 1000 27 � 90 55.0 183 � 8 162,505 0.985 MPEC/AMPL 1235 0 � 13 13.2 19 � 7 – MPEC/M ATLAB 1250 7 � 50 55.0 62 � 3 – NFXP 952 43 � 20 61.7 227 � 3 265,827 0.990 MPEC/AMPL 1161 0 � 19 18.3 42 � 2 – MPEC/M ATLAB 1248 7 � 50 56.5 65 � 8 – NFXP 935 70 � 10 66.9 253 � 8 452,347 0.995 MPEC/AMPL 965 0 � 14 13.4 21 � 3 – MPEC/M ATLAB 1246 7 � 90 59.6 70 � 7 – NFXP 950 111 � 60 58.8 214 � 7 748,487 a For each β , we use five starting points for each of the 250 replications. CPU time, number of major iterations, number of function evaluations and number of contraction mapping iterations are the averages for each run. Monte Carlo study demonstrates the uses of parametric bootstrap to compute

  12. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion How to do CPR

  13. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion NFXP survival kit Step 1: Read NFXP manual and print out NFXP pocket guide Step 2: Solve for fixed point using Newton Iterations Step 3: Recenter Bellman equation Step 4: Provide analytical gradients of Bellman operator Step 5: Provide analytical gradients of likelihood Step 6: Use BHHH (outer product of gradients as hessian approx.) If NFXP heartbeat is still weak: Read NFXP pocket guide until help arrives!

  14. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion STEP 1: NFXP documentation Main references Rust (1987): ”Optimal Replacement of GMC Bus Engines: An Empirical Model of Harold Zurcher” Econometrica 55-5 999-1033. Rust (2000): “Nested Fixed Point Algorithm Documentation Manual: Version 6” https: //editorialexpress.com/jrust/nfxp.html

  15. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion Nested Fixed Point Algorithm NFXP Documentation Manual version 6, (Rust 2000, page 18): Formally, one can view the nested fixed point algorithm as solving the following constrained optimization problem: max θ , EV L ( θ , EV ) subject to EV = Γ θ ( EV ) (4) Since the contraction mapping Γ always has a unique fixed point, the constraint EV = Γ θ ( EV ) implies that the fixed point EV θ is an implicit function of θ . Thus, the constrained optimization problem (4) reduces to the unconstrained optimization problem max L ( θ , EV θ ) (5) θ where EV θ is the implicit function defined by EV θ = Γ( EV θ ) .

  16. Death to NFXP? Harold Zurcher NFXP survival kit? NFXP vs. MPEC revisited Conclusion NFXP pocket guide

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