# Assignment 1. The gravity model of trade: do size and distance matter for the exports of (fill in name of…

Assignment 1. The gravity model of trade: do size and distance matter for the exports of (fill in name of your country)? Assignment 1 is due on Monday 22 October 2012 at the beginning of class. The assignments are done in groups of two students. For assignment 1, every country can be taken only by one group. Send me a mail (
[email protected]) with your country and your names in the subject line: ES11221 name.of.country: firstname LASTNAME of student 1, firstname LASTNAME of student 2. It’s first-come, first-serve. Here’s the list of countries and students so far. Start by reading: Krugman, Obstfeld, and Melitz (2012), Chapter 2. the rules for written work the section on APA Style from a standard textbook on academic writing (Glenn et al., 2004, pp. 652-679, or Kirszner and Mandell, 2011, chapter 35, pp. 236Ã263) line_of_best_fit.pdf. If you took a course on quantitative methods, review the sections in your quantitative methods textbook on scatter plots and linear regression (an excellent introduction is: Freedman, Pisani, & Purves (2007), Ch. 7 and Ch. 12 section 1). the document on how to typeset math (pdf) (optional) the STA101_Using_R.pdf and the sections on installing R from STA101_Getting_started.pdf I recommend that you print the documents and keep them in your course file. The gravity model of trade (Krugman, Obstfeld, and Melitz (2012), equation 2-2 p. 43) predicts that trade increases with the partner country’s GDP: the bigger your trade partner’s GDP, the more you trade with that partner country. The model also predicts that trade decreases with the distance to the partner country: the further away your trade partner, the less you trade with that partner country. In this assignment, you’ll test these hypotheses by estimating the gravity equation. Pick a country (but not the US) from this list. First, you have to collect the data. Bilateral trade data with the ten biggest trading partners are in the Country Trade Profiles from: United Nations. (2011). 2011 International Trade Statistics Yearbook. New York: United Nations ( http://comtrade.un.org/pb/CountryPagesNew.aspx?y=2011 ). To keep things simple, we’ll use exports rather than total trade (exports + imports) to test the gravity model. Nominal GDP data are available from: International Monetary Fund. (2011). International Financial Statistics Yearbook 2011. Washington, DC: International Monetary Fund. Available in print in the VUB library. As the bilateral exports data are in millions of USD, you have to convert nominal GDP also to millions of USD. You can find the appropriate exchange rate in International Monetary Fund (2010), too. In the paper, show your work to convert GDP to millions of dollars for one country. All trade and GDP data should be for the same year. Distance data are available from http://www.cepii.fr/anglaisgraph/bdd/distances.htm Cite the source as: Centre d’Ã©tudes Prospectives et dÃ•Informations Internationales (CEPII) (2011). Geodesic distances. Retrieved on (write the date) from http://www.cepii.fr/anglaisgraph/bdd/distances.htm The file dist_cepii.xls contains distances between countries. The downloaded file is a compressed file (dist_cepii.zip); double-click dist_cepii.zip to expand it to dist_cepii.xls. The dist_cepii.xls file is a spreadsheet file in Microsoft Excel format, that can be opened by Excel and by most other spreadsheet programs (such as OpenOffice Calc or Apple’s Numbers). The distances are in kilometers. The country codes are three-letter ISO codes (e.g., Belgium is BEL). The list of ISO country codes is here. Your paper should have a table (table 1) with the relevant data for the top-10 export destinations: country, exports (USD), GDP of destination country (USD), and distance to destination country (km). Put the table on a separate page at the end of the paper. Dumping some spreadsheet output on a separate page is not appropriate; the table should be carefully designed, using APA style. The table should be numbered and captioned, units of measurement should be given, numbers should be rounded, sources should be documented in a note to the table. Second, make a scatter plot (figure 1) that focuses on size (GDP) as a determinant of trade. It has GDP (as a percent of the GDP of all top-10 export destinations) on the horizontal axis, and exports (as a percent of the exports to all top-10 export destinations) on the vertical axis, like figure 2-3 on p. 44. You can draw the scatter plot by hand on squared paper, or use a spreadsheet program (LibreOffice Calc, Numbers, or Excel) or statistical software (like SPSS, TSP, Stata, Eviews, Gretl, or R; see the link to the R scripts at the end of this paragraph; if you know R, you can easily adapt the scripts). In any case, make sure the axes are labelled (variable and units of measurement) and the points are labelled with the country names or codes. It’s OK to handwrite the axis labels and point labels. Here is an example: figure 1 (pdf) for the US (generated using the R script. Here’s the US data set. Next, estimate the coefficients of the gravity equation (equation 2-2 in Krugman et al. (2012), p. 43): Tij = A Yia Yjb/Dijc The slope coefficients (a and b) of this linearized equation are elasticities: b measures by how many percent trade increases when the partner country’s GDP increases by one percent; c measures by how many percent trade decreases when the distance to the partner country increases by one percent. This can be seen by taking the partial derivatives (check your math for business and economics course) of the gravity equation with regard to Yj and Dij, orâ€”without using calculusâ€” by using the following approximation. From Tij = A Yia Yjb/Dijc it follows that approximately percentage change of Tij = percentage change of A + a (percentage change of Yi) + b (percentage change of Yj) – c (percentage change of Dij) The first two terms of the right-hand side are zero, so we obtain that approximately: percentage change of Tij = b (percentage change of Yj) – c (percentage change of Dij) If we control for distance, we obtain: percentage change of Tij = + b (percentage change of Yj) or, solving for b: b = (percentage change of Tij) / (percentage change of Yj) That is, b is the elasticity of trade with regard to the partner country’s GDP. Similarly, If we control for the partner country’s GDP, we obtain: percentage change of Tij = – c (percentage change of Dij) or, solving for c: -c = (percentage change of Tij) / (percentage change of Dij) which is the elasticity of trade with regard to the distance. In your paper, it suffices to say that the coefficients b and c are elasticities of trade with regard to GDP of the partner country and distance to the partner country; you don’t have to repeat the explanation above. Here’s how to estimate the elasticities b and -c. Make the gravity equation linear in the parameters by taking logarithms of both sides: logTij = log A + a logYi + b logYj-c logDij To find estimates of b and c, compute the new variables z = logTij, x1 = logYj, and x2= logDij. Estimate the linear equation: z = constant + b x1 -c x2 Estimate this equation (find the coefficient estimates for b and c) using multiple regression analysis. Make sure that at least one of the two students in your group knows what multiple regression analysis is and knows how to estimate regression coefficients. This can be done using a spreadsheet program (OpenOffice Calc, Numbers, or Excel) orâ€”preferablyâ€”statistical software (like SPSS, TSP, Stata, Eviews, Gretl, or R; see the link to the R scripts at the end of this paragraph; if you know R, you can easily adapt the scripts). Report the equation as explained in line_of_best_fit.pdf. The y-intercept of the equation (representing the estimate of log A + a logYi) is not interesting so you don’t have to discuss it, but carefully report the meaning of the slope coefficients b and c (remember: they are elasticities). Skip the hypothesis tests on the coefficients (t-statistics) and R-squared. Here is an example of the R script to generate the scatter plot and estimate the linearized gravity equation for the US. Here’s the US data set. The report should have the format set out in my rules for written work: a full report (introduction, middle, end; about 300-600 words), prededed by a brief abstract (max 120 words). Find two appropriate JEL (Journal of Economic Literature) Classification Codes describing the subject of your paper. Most economists use JEL Classification Codes to attach standardized subject descriptors to their papers. For a list see JEL Classification Codes. At the end of the abstract, include within brackets the JEL Classification Codes, something like this: (JEL C210, L620). Start the main text with a general introduction (no header) briefly introducing the gravity model, explaining how you will test it, and which data sources you’ll use. In the next paragraph, briefly describe the data (table 1). Then discuss the scatter plots and the coefficients of correlation. Include figures 1 and 2 at the end of the paper. The References section should contain at least the data source and Krugman et al. (2012) (to which you should refer in your paper). Document all sources using the author-year citation method; this also holds for data sources where the author is an instititutional author. Start on time. If you run into trouble, ask me for help.