Getting Started with CGE Modeling

Similar documents
Introduction to Computable General Equilibrium Model (CGE)

Session Two: SPECIFICATION

The Optimization Process: An example of portfolio optimization

Journal of College Teaching & Learning February 2007 Volume 4, Number 2 ABSTRACT

General Equilibrium Analysis Part II A Basic CGE Model for Lao PDR

GENERAL EQUILIBRIUM ANALYSIS OF FLORIDA AGRICULTURAL EXPORTS TO CUBA

Calibration of CES functions for real-world multisectoral modeling

Lecture 7: Optimal management of renewable resources

Predicting the Success of a Retirement Plan Based on Early Performance of Investments

Computational Methods forglobal Change Research. Economics & Computable General Equilibrium models

Partial Equilibrium Model: An Example. ARTNet Capacity Building Workshop for Trade Research Phnom Penh, Cambodia 2-6 June 2008

Introducing nominal rigidities. A static model.

Continuing Education Course #287 Engineering Methods in Microsoft Excel Part 2: Applied Optimization

Expansion of Network Integrations: Two Scenarios, Trade Patterns, and Welfare

The Collective Model of Household : Theory and Calibration of an Equilibrium Model

Modelling Economic Variables

A Note on Ramsey, Harrod-Domar, Solow, and a Closed Form

Elements of Economic Analysis II Lecture II: Production Function and Profit Maximization

Lecture 7. The consumer s problem(s) Randall Romero Aguilar, PhD I Semestre 2018 Last updated: April 28, 2018

Part A: Answer Question A1 (required) and Question A2 or A3 (choice).

Monopolistic competition models

New Trade Theory I. Part A: Simple monopolistic competition model. Robert Stehrer. The Vienna Institute for International Economic Studies - wiiw

Ramsey s Growth Model (Solution Ex. 2.1 (f) and (g))

1.1 Some Apparently Simple Questions 0:2. q =p :

The economic impact of pricing CO 2 emissions: Input-Output analysis of sectoral and regional effects

Mock Examination 2010

Economics 742 Brief Answers, Homework #2

The Implications for Fiscal Policy Considering Rule-of-Thumb Consumers in the New Keynesian Model for Romania

Characterization of the Optimum

Problem Set #2. Intermediate Macroeconomics 101 Due 20/8/12

Equilibrium with Production and Labor Supply

A PRODUCER OPTIMUM. Lecture 7 Producer Behavior

Portfolio Sharpening

Introductory Mathematics for Economics MSc s: Course Outline. Huw David Dixon. Cardiff Business School. September 2008.

Chapter URL:

For students electing Macro (8702/Prof. Smith) & Macro (8701/Prof. Roe) option

Midterm Exam International Trade Economics 6903, Fall 2008 Donald Davis

Lecture 3: Factor models in modern portfolio choice

A N ENERGY ECONOMY I NTERAC TION MODEL FOR EGYPT

Overview Definitions Mathematical Properties Properties of Economic Functions Exam Tips. Midterm 1 Review. ECON 100A - Fall Vincent Leah-Martin

Q: How does a firm choose the combination of input to maximize output?

Investigating the Relationship between Green Tax Reforms and Shadow Economy Using a CGE Model - A Case Study in Iran

FINANCIAL OPTIMIZATION

TUTORIAL KIT OMEGA SEMESTER PROGRAMME: BANKING AND FINANCE

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models

A Convenient Way of Generating Normal Random Variables Using Generalized Exponential Distribution

PhD Qualifier Examination

14.461: Technological Change, Lectures 12 and 13 Input-Output Linkages: Implications for Productivity and Volatility

What types of policy decisions is CGE model findings most useful for

Homework # 8 - [Due on Wednesday November 1st, 2017]

Government Spending in a Simple Model of Endogenous Growth

2) What is algorithm?

Consumer Budgets, Indifference Curves, and Utility Maximization 1 Instructional Primer 2

Chapter 19 Optimal Fiscal Policy

Lastrapes Fall y t = ỹ + a 1 (p t p t ) y t = d 0 + d 1 (m t p t ).

Regional unemployment and welfare effects of the EU transport policies:

SDP Macroeconomics Final exam, 2014 Professor Ricardo Reis

Fluctuations. Shocks, Uncertainty, and the Consumption/Saving Choice

1 The Solow Growth Model

The Theory of the Firm

Math: Deriving supply and demand curves

Comprehensive Exam. August 19, 2013

1 No capital mobility

9/10/2017. National Income: Where it Comes From and Where it Goes (in the long-run) Introduction. The Neoclassical model

Department of Economics The Ohio State University Final Exam Answers Econ 8712

Dynamic Replication of Non-Maturing Assets and Liabilities

DRAFT. A microsimulation analysis of public and private policies aimed at increasing the age of retirement 1. April Jeff Carr and André Léonard

Problem Set 1. Debraj Ray Economic Development, Fall 2002

Public Pension Reform in Japan

Graduate Public Finance

Notes on a Basic Business Problem MATH 104 and MATH 184 Mark Mac Lean (with assistance from Patrick Chan) 2011W

The Effect of Interventions to Reduce Fertility on Economic Growth. Quamrul Ashraf Ashley Lester David N. Weil. Brown University.

Lucas s Investment Tax Credit Example

Data requirements II: Building a country database for MAMS

A 2 period dynamic general equilibrium model

The Economic Benefits of Tax Reform in Louisiana

Problem Set #2. Intermediate Macroeconomics 101 Due 20/8/12

ECO 100Y L0101 INTRODUCTION TO ECONOMICS. Midterm Test #2

Appendix: Numerical Model

DUALITY AND SENSITIVITY ANALYSIS

FE670 Algorithmic Trading Strategies. Stevens Institute of Technology

Modelling the Sharpe ratio for investment strategies

004: Macroeconomic Theory

Quantitative Significance of Collateral Constraints as an Amplification Mechanism

Unemployment Fluctuations and Nominal GDP Targeting

Topic 7. Nominal rigidities

Macroeconomic Analysis and Parametric Control of Economies of the Customs Union Countries Based on the Single Global Multi- Country Model

Computing General Equilibrium Theories of Monopolistic Competition and Heterogeneous Firms

Financial Giffen Goods: Examples and Counterexamples

Increasing Returns and Economic Geography

Game Theory Fall 2003

MACROECONOMICS. Prelim Exam

SYLLABUS AND SAMPLE QUESTIONS FOR MSQE (Program Code: MQEK and MQED) Syllabus for PEA (Mathematics), 2013

Final Exam (Solutions) ECON 4310, Fall 2014

Structural Change in Investment and Consumption: A Unified Approach

Chapter 10: Mixed strategies Nash equilibria, reaction curves and the equality of payoffs theorem

EconS Micro Theory I 1 Recitation #9 - Monopoly

1 A tax on capital income in a neoclassical growth model

Notes on Intertemporal Optimization

Seminar on Public Finance

Transcription:

Getting Started with CGE Modeling Lecture Notes for Economics 8433 Thomas F. Rutherford University of Colorado January 24, 2000 1 A Quick Introduction to CGE Modeling When a students begins to learn general equilibrium modeling with GAMS/MPSGE, it is easy to lose sight of underlying methodology because a number of steps are automated by the software. In order to teach students how to properly use these tools, I often find it helpful for the students to begin by implementing a few models from scratch. After having done this, it is easier for the novice modeller to understand how MPSGE works. The purpose of this document is to provide an overview of some of the characteristics of CGE models and the steps involved in their construction and application. Following this summary, I will present some demand function results which will prove useful for writing down the equations which define a economic equilibrium model. Finally, I will conclude by working through the implementation of a couple of elementary general equilibrium models, both as systems of equations and using the MPSGE representation. The purpose of this document is to provide an introduction to the basic concepts rather than to introduce MPSGE modeling, per se. 1.1 Characteristics of a CGE Model There are many models which are portrayed by their authors as general equilibrium. The term assumes different meanings in different fields, so it is probably a good idea to begin with a definition of what this means. When I say general equilibrium, I am normally thinking of models which have the following characteristics: 1

1. Multiple interacting agents. 2. Individual behaviour based on optimization. Two types of decision problems are prominent: budget-constrained utility maximization by households and technology-constraint profit maximization by firms.) 3. Most agent interactions are mediated by markets and prices. 4. Typically disaggregate, with many agents and markets. 5. Limited data in comparison with the number of behavioral and technilogical parameters in the model. CGE data are often limited to a representative benchmark) equilibrium observation and some independent estimates of elasticities of demand or supply. CGE models are typically constructed so as to replicate the transactions in the benchmark equilibrium. 6. Equilibrium allocations which typically cannot be characterized as the solution to a single planner s) optimization problem. 7. Formulation has an implicit or explicit focus on policy analysis. General equilibrium models can be used to perform positive economic analysis, attempting to explain aspects of market performance, etc., but even when models are intended for this purpose, it is customary for a CGE model to provide insight into the effects of changes in government instruments of some sort. There are a number of canonical general equilibrium models, differing with respect to the degree of disaggregation in goods and markets, the policy issues which can be addressed, and the degree of difficulty in collecting data and analyzing equilibrium outcomes. Perhaps the most common of these is a static open-economy model of taxation and trade. 1.2 Steps in Building a CGE Model There is, to my knowledge, no recipe book for CGE modelling, but if there were such a book it would probably include many of the following chapters: 2

1. General design Based on the policy issues of interest and considerations of the availability of data, the basic dimensions of the analysis should be defined: regions, households, firms, governments. 2. Individual choice design Specify a choice problem for each agent in the model household, firm, government). These problems could be quite simple e.g., the government collects revenue and purchases public goods and services; or it could be quite complex, as in a consumer or produce choice, allocating revenue across a range of alternative goods or inputs. 3. Demand and supply functions Solve for the behavioural equations for each of the agents in the model. This typically involves closed-form constrained optimization. A few examples of these derivations will be presented below. 4. Develope a system of notation This step in the model design process requires careful attention to the correspondences between markets and prices. Select indices for underlying sets and names for the prices of goods and factors. It is often convenient to employ more than one price for a given commodity, if that good is subject to taxation, or if there is uncertainty as to the direction of trade. 5. Specify Parameters This step confronts behvioural equations with the reference equilibrium values. In the calibration process, observed choices by agents in the reference case are combined with the behavioural equations and other exogenous parameters to infer parameters of the individual choice problems. 6. Program the Model Write out a system of equations which reads the input data, assigns parameter values and solves a system of equations representing the models equilibrium conditions. The solution of systems of nonlinear equations is a task which can be performed using a variety of software tools. The relative ease of one or another approach depends to a great extent on individual experience. 7. Replicate the benchmark If preference and technology parameters have been calibrated from a given equilibrium dataset, then if all exogenous parameters are assinged to their benchmark levels, the model should return the benchmark equilibrium. 3

8. Test the model A new model should be subject to some shake-down tests to verify that it works as intended. These tests can include calculations of simple policy reforms, such as tax reforms, but they should also include diagnostic calculations, such as marginal excess burden claculatoins which provide insight into the relative inefficiency of alternative tax instruments. 1.3 Modeling Language Issues One approach to setting up your model would be do conventional scientific programming with C, Pascal or Fortran. This approach is the most difficult if you program your own solution algorithm, Considerable savings can be realized by using callable numerical libraries such as Numerical Recipes, NAG or IMSL). A somewhat easier strategy would be to code up the equilibrium conditions in a spreadsheet such as Excel or Quattro) which now provide internal routines for solving systems of nonlinear equations. Both of these methods are less than ideal because of the level of abstraction required to translate the economic equilibrium conditions into a machine-readable format. It is far easier to work with a model which is presented to the computer in algebraic terms, based the mathematical representation of the equations as they are documented in the model write-up. This is posssible if the model is programming in a higher-level language. These languages include a number of econometric packages such as SAS or GAUSS) as well as conventional mathematical programming languages such as MATLAB, MATHEMATIC, AMPL or GAMS). MPSGE is based on GAMS and permits use of GAMS matrix language for data preparation. In addition, MPSGE provides a compact, non-algebraic representation of the model s core equation. Advantages: compact model representation, resulting in fewer opportunities for mistakes. Provides a structured framework for model representation: three classes of equations in an MPSGE model are: market clearance one equation for each price in the model), income balance one for each household and government agent), and zero excess profit one equation for each representative firm which operating under constant returns to scale) 1 Disadvantages: non-transparent for the uniformed reader. Algebraic modeling, while tediuos, has a distinct advantage of transparency. 1 It is conceptually convenient to consider decreasing returns to scale as a special case of constant returns, namely a situation in which there is a specific factor of production. 4

1.4 Model Application There is no single way to apply a model to a policy issue. The following steps provide a very general set of guidelines: 1. Translate policy into the model instruments. This step involves some conceptualization you need to think about how to be represent the policy instruments within the context of your model. In some cases, this may require modification of your base model in order to add tax parameters or other policy instruments which better capture the relevant issues. 2. Guess at the policy result. It can be very helpful before running your model to sketch out a few diagrams illustrating how you expect the model to behave. This will require that you reason through the economic intuition underlying the model and begin to develop your understanding of the relavent aspects of the formulation and representation of the policies. 3. Run the simulation and compare results. This seems quite simple, but careful programming is needed. 4. Compare the model results with your earlier guess. Analyze the experimental outcome and explain why the results may differ from your initial assessment. This diagnostics may require some additional experiments with the model in order to develop a clear understanding of the critical issues. 5. Evaluate the outcome and write up your key findings. It is important to do your writing as soon as you have the results in hand. This provides a very important test of your understanding if you cannot write a clear and simple explaination of what the model is telling you, then you probably need to do more work with the model. 6. Develop sensitivity analyses. Once you have the central assessment completed, you can then return to the model calculations and run a number of additional scenarios testing sensitivity of your findings to the various assumptions underlying the analysis. 7. Write up the model. Any CGE paper requires a clear explaination of how the model is formulated. It is important to do this writing as soon after you have completed the calculations as possible in order that all the details of the analysis remain at your fingertips. 5

2 Some Common Functional Forms 2.1 Consumer Utility and Uncompensated Demand Functions All of these problems assume a budget constraint of the form i p ic i = M. Budget shares at the demand point p c c i /M are denoted s i. Assume that utility parameters are shares, i.e. 0 i and i = 1. p i and c i denote a benchmark price and quantity, and θ i = p i c i /M where M is the value of expenditure at the benchmark point. In each of these utility functions I present two forms of the demand function, one based on utility function parameters α, and another based on the reference price-quantity point, the calibrated demand function. The calibrated function is useful in model specification because it avoids the need for intermediate calculation of the share vector, α. 2.1.1 Leontief Preferences [ ] c Utility function: U = min i i Indirect utility function: V = M i αipi) Expenditure function: E = U i p i Conventional demand function: c i = V Calibration: = c i / j c j Calibrated demand function: c i = c i i θ ip i / i θ ip i )M/M) 2.1.2 Cobb-Douglass Preferences Utility function: U = i cαi i Indirect utility function: V = M i Expenditure function: E = U pi ) αi p i ) αi Conventional demand function: c i = M/p i Calibration: = θ i Calibrated demand function: c i = c i p i /p i )M/M) 6

2.1.3 Constant Elasticity of Substitution C.E.S.) Preferences Utility function: U = i α1/σ i ) σ/σ 1) c σ 1)/σ i Indirect utility function: V = M i p 1 σ ) 1/σ 1) i Expenditure function: E = U i p 1 σ ) i 1/1 σ) Price indes: P U = i p 1 σ ) 1/1 σ) i Conventional demand function: c i = αim P U Calibration: = c i i p 1 σ ) i p σ i /M PU pj ) σ Calibrated price index: PU = i pi p i ) 1 σ ) 1/1 σ) ) σ Calibrated demand function: c i = c i M/M) PU p i /p i 2.1.4 Linear Expenditure System L.E.S.): Utility function: U = i c i β i ) αi Indirect utility function: V = M j p jβ j ) i Expenditure function: E = j p jβ j + U pi ) αi p i ) αi Conventional demand function: c i = β i + M j p jβ j )/p i 2.2 Technology, Cost and Compensated Demand Functions All of these problems assume a cost-minimizing representation of producer behavior where the underlying technology exhibits constant returns to scale. Unit demand for the ith input is x i, and the producer price of the ith input is w i. I use non-negative production function parameters which do not necessarily sum to unity. Where necessary, I use a output scaling parameter φ. In the calibrated form of the demand functions, let p i and x i denote a benchmark price and quantity, and θ i = p i x i / j p jx j represent the benchmark cost share of the ith input. Let Q denote benchmark output. As in the previous section, here I present two forms of the demand function, one based on the native function parameters α, and another based on the reference price-quantity point, the 7

calibrated demand function. The calibrated function is useful in model specification because it avoids the need for intermediate calculation of the parameter vector, α. 2.2.1 Leontief Technology Production function: Q = min i [ ci ] Cost function: C = Q i w i Unit cost function: c = i w i Conventional demand function: x i = Q Calibrated demand function: x i = x i Q/Q 2.2.2 Cobb Douglas Technology Production function: Q = φ j xαj j Cost function: C = Q/φ) ) αj wj j α j Unit cost function: c = 1/φ) ) αj wj j α j Conventional demand function: x i = Q/φ) α j /w j ) j Demand function under zero profit: x i = Q αjp w j Calibrated unit cost function: c = ) θj wj j w j Calibrated demand function: x i = x i Q/Q) cw i /w i ) wj α j ) αj 2.2.3 Constant Elasticity of Substitution C.E.S.) Technology Production function: Q = φ Cost function: C = Q/φ) Unit cost function: c = 1/φ) j α1/σ j ) σ/σ 1) x σ 1)/σ j ) 1/1 σ) j α jw 1 σ j ) 1/1 σ) j α jw 1 σ j ) σ/1 σ) Conventional demand function: x i = w σ i Q/φ) j α jw 1 σ j 8

Demand function under zero profit: x i = φ σ 1 p/w i ) σ Q [ Calibrated unit cost function: c = j θ j w j /w j ) 1 σ] 1/1 σ) Calibrated demand function: x i = x i Q/Q) cw i /w i ) σ 9