ifdp · November 28, 2017

Learning and the Value of Trade Relationships

Abstract

This paper quantifies the value of importer-exporter relationships. We show that almost 80 percent of U.S. imports take place in pre-existing relationships, with sizable heterogeneity across countries, and show that traded quantities and survival increase as relationships age. We develop a two-country general equilibrium trade model with learning that is consistent with these facts. A model-based measure of relationship value explains survival during the 2008-09 crisis. Knowledge accumulated within long-term relationships is quantitatively important: wiping out all memory from previous interactions, on average, reduces consumption by 5 percent on impact and by 48 percent over the transition back to steady state.

K.7 Learning and the Value of Trade Relationships Monarch, Ryan and Tim Schmidt-Eisenlohr Please cite paper as: Monarch, Ryan and Tim Schmidt-Eisenlohr (2017). Learning and the Value of Trade Relationships. International Finance Discussion Papers 1218. https://doi.org/10.17016/IFDP.2017.1218 International Finance Discussion Papers Board of Governors of the Federal Reserve System Number 1218 November 2017

Board of Governors of the Federal Reserve System International Finance Discussion Papers Number 1218 November 2017 Learning and the Value of Trade Relationships Ryan Monarch Tim Schmidt-Eisenlohr NOTE: International Finance Discussion Papers are preliminary materials circulated to stimulate discussion and critical comment. References to International Finance Discussion Papers (other than an acknowledgment that the writer has had access to unpublished material) should be cleared with the author or authors. Recent IFDPs are available on the Web at www.federalreserve.gov/pubs/ifdp/. This paper can be downloaded without charge from the Social Science Research Network electronic library at www.ssrn.com.

Learning and the Value of Trade Relationships Ryan Monarch* Tim Schmidt-Eisenlohr* This paper quantifies the value of importer-exporter relationships. We show that almost 80 percent of U.S. imports take place in pre-existing relationships, with sizable heterogeneity across countries, and show that traded quantities and survival increase as relationships age. We develop a two-country general equilibrium trade model with learning that is consistent with these facts. A model-based measure of relationship value explains survival during the 2008-09 crisis. Knowledge accumulated within long-term relationships is quantitatively important: wiping out all memory from previous interactions, on average, reduces consumption by 5 percent on impact and by 48 percent over the transition back to steady state. Keywords: International Trade, Firm Relationships, Learning, Trade Dynamics JEL classifications: F11,F14,L14,D22 The authors are staff economists in the Division of International Finance, Board of Governors of the Federal Reserve System, Washington, D.C. 20551 U.S.A. The views in this paper are solely the responsibility of the author(s) and should not be interpreted as reflecting the views of the Board of Governors of the Federal Reserve System or of any other person associated with the Federal Reserve System. Contact: ryan.p.monarch@frb.gov, t.schmidteisenlohr@gmail.com *We thank Bernardo Blum, Fabrice Defever, Brian Kovak, Florian Mayneris, Andreas Moxnes, Ameet Morjaria, Emanuel Ornelas, James Rauch, Peter Schott, and Olga Timoshenko for helpful discussions, as well as seminar participants at the Federal Reserve Board, the World Bank, the Rocky Mountain Empirical Trade conference, the Society for Economic Dynamics conference, the Washington Area International Trade Symposium, the European Bank for Reconstruction and Development, Nottingham University, Stockholm University, Uppsala University, UQAM, University of Montreal, Carnegie Mellon University, University of Maryland, University of Virginia, the Southern Economic Association meetings, the Stanford RDC Conference, the European Trade Study Group, the Federal Reserve Board International Trade Conference, and the Empirical Investigations in International Trade conference for helpful comments. This work was undertaken while Monarch and Schmidt-Eisenlohr were under Special Sworn Status at the U.S. Census Bureau. Any opinions and conclusions expressed herein are those of the authors and do not necessarily represent the views of the U.S. Census Bureau, the Federal Reserve Board, or anyone affiliated with the Federal Reserve System. All results have been reviewed to ensure no confidential information is disclosed.

1 Introduction Successful firm-to-firm relationships are central to modern production, as intermediate inputs often pass from one firm to another. Economists have long argued that interactions between firms are not frictionless (for example, Coase (1937) and Grossman and Hart (1986)). That said, excepting theories of how multinational firms source and organize production (such as Antra`s (2003) and Antr`as and Helpman (2004)), theoretical models in macroeconomics and international trade typically abstract from transactional frictions. Recent work by Macchiavello and Morjaria (2015) has shed new light on those frictions, providing microeconomic evidence on the value of relationships in Kenyan rose exports. Building on Araujo et al. (2012), they show that relational contracts and learning are central to firms’ production decisions and responses to shocks.1 Exploiting U.S. census data, this paper extends this line of research in two distinct ways. First, it documents the importance of continuing relationships in data that cover the universe of transactions between U.S. importers and their foreign suppliers: 80 percent of trade occurs in established relationships. Second, it embeds a model of relational contracting and learning into a general equilibrium trade model. Calibrating the model to the data and solving for the dynamic evolution of trade patterns, we quantify the value of relationships by estimating the welfare effects of “relationship shocks”. We find immediate welfare losses of, on average, 5 percent of annual consumption from wiping out all relationship-specific knowledge, with total losses averaging 48 percent of annual consumption. Westartbyestablishingseveralfacts. First, long-termrelationshipsarecentral, with almost half of U.S. imports in importer–exporter relationships that are three years old or older.2 Second, the importance of relationships differs substantially 1In related work, Antr`as and Foley (2015) reveal that learning also plays a key role for the dynamics of payment terms in international trade. 2This statistic refers only to arm’s-length importer–exporter relationships. Including relatedparty trade would increase this fraction. 1

by country, with 62% of U.S.-Japan trade in relationships that are over three years old, forexample, comparedwith33%ofU.S.-Spaintrade. Thesedifferencesarenot driven by sectoral specialization at the country level. Third, the amount traded within a relationship rises as it ages, a result that is robust to accommodating “partial year effects”.3 Fourth, the probability a relationship survives increases as it ages. Finally, we find that source countries with better institutions tend to have longer relationships. Motivated by these findings, we set up a dynamic two-country general equilibrium trade model where importers learn about the quality of their foreign suppliers over time. An importer believes they will receive a usable product from a new supplier with some country-specific probability. With each successful interaction, the importer’s belief about the supplier’s suitability improves, leading to an increase in the quantity traded and a greater probability of survival. We quantify the value of a relationship as the expected future stream of profits from that relationship, a term that varies both by supplier country and with relationship age. ThemodeliscalibratedtoU.S.relationship-levelimportdata. Weestimateseparate parameters for each of the top 10 trading partners of the United States, using moments from each country’s distributions of relationships and trade across age cohorts. The parsimonious model generates age distributions that closely match those in the data. Furthermore, the probability that a relationship survived the crisis of 2008 to 2009 is strongly correlated with our measure of relationship value, even when accounting for the age of the relationship, country fixed effects, and other covariates. Based on the calibration, long-term relationships are, on average, 21.2 times more valuable than new relationships, with a maximum of 79 (France) and a minimum of 5.1 (China). 3“Partial year effects”, a term coined by Bernard et al. (2017), refers to the differences in growth rates for firms that begin trading in January of a year compared to those that begin in December. We address this concern by showing that our result on trade growth within relationships also holds when only looking at relationships that started trading in the first quarter of a year. 2

We then solve the two-country general equilibrium trade model numerically and quantify how disruptions to relationships affect welfare. Our first experiment studies the effects of a “reset” of all relationships, meaning that all established relationships are wiped out and replaced with the same number of new relationships. Output declines sharply and only slowly moves back to steady-state levels, taking several years. The effect of the shock differs across countries: as one example, resetting all relationships is more costly for Germany than for the United Kingdom because, in Germany, long-term relationships have higher survival probabilities and therefore contribute more to overall trade. Across all countries in our model, the total consumption loss in the transition back to a steady state averages 48 percent of the annual steady-state value of consumption, with an initial loss on impact of 5 percent. In a related experiment, we show the effects of simply wiping out all existing relationships without replacement, meaning that the economy not only loses the knowledge accumulated in old relationships, but also has to bear the additional costs of recreating all relationships. Initial losses are larger in this scenario because more resources are diverted to cover entry costs. The dynamic path back to steady state, however, looks very similar, as the learning structure is unchanged. To sum up, relationships represent a type of capital for firms, and disruptions to those relationships translate into worse performance for firms and lower welfare for consumers for multiple years. There is a burgeoning literature that, like our paper, uses “two sided” international trade data to study relationships. Blum et al. (2013) use linked data on importers and exporters in Latin American, showing that firms that export only occasionally often export the same goods to the same importers. Eaton et al. (2014) study relationships between Colombian exporters and U.S. importers. They calibrate a search and matching model with learning to match exporter decisions, including sales, number of clients, and transition probabilities. Kamal and Sundaram (2016) use the same data to determine how likely Bangladeshi textile producers are to follow other exporters in the same city in exporting to a particular 3

partner. Monarch (2014) applies a dynamic discrete choice model to the sourcing decisions of U.S. importers over time to estimate the cost of switching suppliers. Two-sided trade data are also used to study the effects of firm heterogeneity on trade: Bernard et al. (forthcoming) use Norwegian trade data to develop a model of relationship-specific fixed costs of exporting.4 Carballo et al. (2013) look at relationships in several Latin American countries and develop a model to analyze the role of competition. Heise (2015) studies the effects of firm-to-firm relationships on price rigidity and exchange-rate pass-through using U.S. importer data and finds that prices grow within a relationship as trade increases. We complement this literature by focusing on cross-country heterogeneity in relationship patterns and using it to quantify the value of relationships. A set of papers directly study the role of long-term relationships for international trade with more disaggregated data.5 Egan and Mody (1992) provide survey evidence that importers from developed countries initiate emerging-economy trade relationships with very small purchases. Rauch and Watson (2003) rationalize this finding in a model with importer learning. In their model, relationship persistence is the result of a dynamic trade-off between the per-period costs of a supplier and the reliability of other potential partners. Macchiavello and Morjaria (2015) study Kenyan rose exporters and find that the value of a relationship increases with age. They also show that in long-run relationships, buyers have already learned the type of the seller, and, therefore, no costly signaling is necessary in times of crisis. Heise et al. (2015) study how changes in trade policy may affect the organization of supply chains. Our results on the resilience of long-term relationships during the 2008-09 crisis also relate to work by Carballo (2016), who shows that firm exit 4Benguria (2015) also studies two-sided heterogeneity, using data from Colombia. 5Earlier work on buyer-supplier relationships in international trade centered on the study of networks. Rauch (2001) surveys the potential for transnational cultural networks to reduce barrierstoentry,andRauchandWatson(2004)presentamodelwhereeconomicagentsusetheir networks to produce or export more efficiently or to become an intermediary. Krautheim (2012) models how information sharing in networks may affect the fixed costs of exporting and thereby the measured effects of distance on trade. Chaney (2014) studies a dynamic model where firms search for additional trade opportunities through their networks. 4

during the Great Trade Collapse was lower for integrated firms. Our model directly builds on Araujo et al. (2016), who study learning by exporters and test reduced-form predictions with Belgian firm-level data.6 In the tradition of the seminal work of Jovanovic (1982), a number of other papers consider firm learning in different contexts, such as its relationship with exports (Albornoz et al. (2012)), foreign demand (Ruhl and Willis (2017)), growth (Arkolakis et al. (forthcoming)), and international prices (Bastos et al. (2015)). Finally, our work adds to the wider literature on trade dynamics. Alvarez and Lucas (2007) develop a dynamic solution to the general equilibrium trade model of Eaton and Kortum (2002), while Eaton et al. (2016) embed this framework in an international real business cycle model. Several papers study how firm behavior shapes aggregate trade dynamics. Ruhl (2008) examines the extensive margin of tradeanditsimplicationsfortradeelasticities. AtkesonandBurstein(2010)model thedynamicproductandprocessinnovationdecisionofexporters. Alessandriaand Choi (2014) show that long-term gains of tariff cuts are larger when not only sunk costs of exporting, but also continuation costs, are taken into account. Alessandria et al. (2014) consider the sluggish response of trade volumes to changes in trade barriers or price shifts by modeling the buildup of a firm’s exporting capacity over time. In sum, our paper contributes to the literature in two ways. First, it documents the importance of long-term relationships across countries using the universe of U.S. import data. Second, it embeds a model of relational contracts and learning into a dynamic general equilibrium model, and, after calibrating it to the data and 6Ourworkisalsorelatedtothewiderliteratureonlearningandentry. Impullittietal.(2013) develop a model of entry and exit where firms pay sunk costs to start exporting and face persistent productivity shocks. Besedeˇs and Prusa (2006) study the effect of product differentiation on U.S. importer relationships with their suppliers. Besedeˇs (2008) finds that reliable suppliers lead to longer relationships and larger export orders, while only a small fraction of relationships end as a result of switching behavior. Timoshenko (2015a) looks at Colombian firm-level data to distinguish between the role of sunk costs and learning for the persistence of exporting. Timoshenko (2015b) finds that new exporters do more product switching, and develops a model of learning that rationalizes this finding. 5

solving for the dynamic transition path of the economy, provides a quantitative evaluation of the value of relationships. The rest of the paper is organized as follows. Section 2 describes the importer– exporter data and presents empirical findings on trade relationships. Section 3 discusses the model of supplier learning and how it fits into a general equilibrium framework. Section 4 describes the calibration exercise and the quantitative evaluations. Section 5 concludes. 2 Empirics 2.1 Data definitions and cleaning The data come from the Longitudinal Foreign Trade and Transaction Database (LFTTD), which is collected by U.S. Customs and Border Protection and maintained by the U.S. Census Bureau. Every transaction in which a U.S. company imports or exports a product requires the filing of Form 7501 with U.S. Customs and Border Protection, and the LFTTD contains the information from these forms.7 There are typically close to 50 million transactions per year. In this paper, we utilize the import data, which include quantity and value exchanged for each transaction, Harmonized System (HS) 10 product classification, date of import and export, port information, country of origin, and a code identifying the foreign exporting partner. Known as the manufacturing ID, or MID, the foreign partner identifier contains limited information on the name, address, and city of the foreign supplier.8 Kamal and Monarch (forthcoming) find substantial support for the use of the MID as a reliable, unique identifier, both over time and in cross-section. Pierce and Schott (2012), Monarch (2014), Kamal and Sundaram (2016), Eaton et 7Approximately 80 to 85 percent of these customs forms are filled out electronically (Krizan (2012)). 8Specifically,theMIDcontainsthefirstthreelettersoftheproducer’scity,sixcharactersfrom the producer’s name, up to four numeric characters from its address, and the ISO2 code for the country of origin. 6

al. (2014), and Heise (2015) have all used this variable in the context of studying U.S. firm relationships in international trade. For our analysis, we eliminate related-party transactions, as U.S. firms who are importingfromforeignaffiliateswilllikelyhaveverydifferentrelationshipdynamics than those involved in arm’s-length transactions. U.S. importers whose domestic operations are classified as wholesale or retail are also dropped. We follow the methods of Bernard et al. (2009) for cleaning the LFTTD. Specifically, we drop all transactions with imputed quantities or values (which are typically very low-value transactions) or converted quantities or values. All of our results come from the U.S. import data on relationships from 1997 through 2011. Finally, some definitions: an importer is a U.S. importing firm, while an exporter is a non-U.S. firm identified by the MID as exporting to the United States. A relationship is an observation of an importer–exporter combination. The age of a relationship is how many consecutive years that relationship has appeared in the U.S. import data, with the first observation of a relationship considered to be age 0.9 We call the distribution of relationship counts over different ages the count distribution, and the distribution of trade values across relationships of different ages the value distribution. 2.2 Empirical Findings Most trade is in long-term relationships. Table 1 presents a breakdown of U.S. arm’s-length imports in 2011 by the age of relationships. Two points stand out. First, the largest fraction of trade (47%) occurs in long-term relationships– those of three or more years– while new relationships account for only about one– fifth of U.S. imports.10 Second, new relationships account for the vast majority of 9The distinction between consecutive and non-consecutive years of a relationship makes little difference to any of the findings below. Results using non-consecutive years of a relationship are available upon request. 10A one-year-old relationship is one that has appeared in two consecutive years of data. 7

total relationships in 2011. The complete distributions for 2011 are shown in Figure 1: both the count distribution and the value distribution decrease nearly monotonically with age.11 In line with Table 1, the value distribution is much more skewed toward higher ages. These facts mask substantial heterogeneity in the age structure of trade at the source-country level. Table 2 presents a summary of the count distributions and value distributions for the top 20 trading partners of the United States. There is a wide range for the share of long-term trade across countries: 33 percent of U.S. arm’s-length imports from Spain occur in long-term relationships, but 67 percent of imports from Taiwan do. Taiwan also has roughly double the share of longterm relationships as Spain. There is a positive correlation between the share of long-term relationships and the share of trade in long-term relationships, shown in Figure 2. If these differences in the age structure of trade were the result of product specialization across source countries, the interpretation of the above findings would be quite different. To investigate this possibility, we conduct two exercises. First, we check whether countries with more trade in old relationships in the aggregate also have more trade in old relationships at the sectoral level. More specifically, we calculate each country’s share of trade in older relationships in the aggregate (as in Table 2), as well as for textiles (HS2 50-63), machinery and electrical goods (HS2 84-85), and footwear/headgear (HS2 64-67). We then calculate rank correlations to see if the country orderings within industries are similar to the aggregate country ordering. Results are presented in Table 3: the correlations are all positive, implying that aggregate and sector-level patterns are similar. Second, we run regressions that confirm specialization across sectors does not 11Anyrelationship11yearsorolderisclassifiedas11yearsold. Theuptickintradedvaluefor relationships for the final segment is explained by this simplification; extending the maximum age of a relationship forward more years smoothes the tail of the distribution. 8

drivetheagecompositionofrelationshipsacrosscountries. Weregressthecountrysector share of trade in an relationship on country fixed effects. We then add sector fixed effects to the regression. The country fixed effects obtained from these two regressions are extremely similar – with a correlation of 0.98 (0.94) when looking at the number of (value of trade in) old relationships. These two exercises imply that the heterogeneous trade shares of relationships across countries are not driven by the sectoral composition of exports. Trade increases as relationships age. The differences between the count distributions and the value distributions imply that, on average, older relationships trade more. One explanation for this finding is that the amount traded within a surviving relationship increases over time. To track trade within relationships, we generate cohorts of newly formed relationships for each year from 1998 to 2006 and follow them over time.12 Table 4 presents the results of the following regression with relationship fixed effects: 𝐾 ∑︁ 𝑉𝑎𝑙𝑢𝑒 = 𝛽 1[𝐴𝑔𝑒 = 𝑘]+𝑓 +𝑢 (1) 𝑚𝑥,𝑡 𝑘 𝑚𝑥,𝑡 𝑚𝑥 𝑚𝑥,𝑡 𝑘=1 where 𝑉𝑎𝑙𝑢𝑒 is the log value of trade between a U.S. importer 𝑚 and an exporter 𝑥 at time 𝑡, 𝐴𝑔𝑒 is the age of that relationship at time 𝑡 (with 𝐴𝑔𝑒 - the first 0 year a relationship is found- is omitted), and 𝑓 is a relationship fixed effect. The 𝑚𝑥 regression is run separately for relationships that last a total of 𝐾 = 5, 7, 10, and 13 years. As can be seen from the left panel of Table 4, as a relationship ages, the amount tradedincreases. Asarelationshipmovesclosertoitsend, tradefallsoff, butforall relationships, trade initially grows over multiple years.13 Importantly, this result 12A new relationship in 1998 is one not found in 1997, our first year of data. The most recent year of data is 2011. 13Heise(2015)performsasimilarexercise,alsousingtheLFTTDdata. Hebuildsamodelwith productivity shocks that can account for the fall-off in trade toward the end of a relationship. 9

is robust to accounting for “partial year effects”- recent work by Bernard et al. (2017) has shown firms that start exporting in January trade much more in a year than firms that start exporting in December. To correctly calculate trade growth for the first year, one needs to account for this pattern. As can be seen in Columns (5)-(8) of Table 4, even when looking only at relationships that began in January, February or March (where partial-year effects should be minimal), trade increases in relationship age.14 The results are presented graphically in Figure 3 by graphing the 𝛽 terms for 𝐾 = 5, 7, 10, and 13-year relationships, where Panel A shows 𝑘 the entire sample of relationships, and Panel B plots only those relationships that started exporting in the first quarter of the year. The survival probability increases as relationships age. We next explore the survival probability of a trading relationship. Figure 4 shows the conditional survival probability of a relationship by age: what share of relationships of age 𝑘 in 2010 survive into 2011? The figure shows that the older a relationship is, the higher the likelihood that relationship survives an additional year. A proportional hazard model of relationship survival that accounts for the effects of importer size, exporter size, and source country institutional quality allows greater precision for calculating survival probabilities. Following cohorts of new relationships, we define the hazard as the disappearance of a relationship. Echoing the picture in Figure 4, Figure 5 shows that there is little decline in survival– the probability a relationship survives at least to age 𝑘– after age 4. This finding is not driven by firm-level entry and exit. When estimating the probability of relationship survival on the sample of firms existing for 3 years or 7 years(approximatingabalancedpaneloffirms)wefindqualitativelysimilarresults for the survival model. Because we also control for total importer and exporter While,inprinciple,itshouldbepossibletoaddhismechanismtoourmodel,thisadditionwould raise substantial computational challenges. 14We will also account for these effects when we estimate our model. 10

firm size, firm-level trends are not driving these findings.15 Nor is it the case that relationships with larger initial trade volumes are driving these results; including first-year relationship size in the hazard model specification does not alter the finding that the probability of survival is lowest for the youngest relationships. Sourcecountrieswithbetterinstitutionshavelongerrelationships. Having shown the importance of long-term relationships in international trade, we now consider the determinants of relationship ages across countries through reducedform regressions that control for firm and product characteristics. Our specification is as follows: 𝑅𝑒𝑙𝐿𝑒𝑛𝑔𝑡ℎ = 𝛽 𝑌 +𝛽 𝑌 +𝛽 𝑌 +𝑓 +𝑢 , (2) 𝑚𝑥 𝑚 𝑚 𝑥 𝑥 𝑐 𝑐 𝑖 𝑚𝑥 where 𝑅𝑒𝑙𝐿𝑒𝑛𝑔𝑡ℎ is the age of a relationship in 2011 between U.S. importer 𝑚 and exporter 𝑥. 𝑌 and 𝑌 are sets of importer or exporter controls, which include the 𝑚 𝑥 following variables for importers and exporters: firm age (where firm “birth” is proxied by the first year of appearing in U.S. import data), firm size (proxied by total imports), number of relationships, and number of products traded. Regressionsalsoincludeimporter-industryfixedeffects𝑓 .16 𝑌 isasetofcountrycontrols 𝑖 𝑐 that includes rule of law, per capita GDP, distance from the United States, a trade agreement dummy, and an OECD membership dummy.17 Columns (1) to (5) of Table 5 present the results. The regressions show that U.S. importers have longer relationships with exporters from countries with better institutions (higher rule of law).18 Interestingly, despite its general importance for trade levels and patterns, distance is uncorrelated with relationship length. 15We proxy importer size by total imports and exporter size by total exports to the United States. 16Because importers can import from more than one industry, we assign each importer the HS2 industry that it imports the most from. 17The rule of law variable comes from Kaufmann et al. (2010). 18Theseresultsarerobusttorestrictingthesampletoonlymachineryandelectrictechnological products (HS 84-86) or to textile products (HS 50-63). 11

Similarly, Free Trade Agreements do not seem to affect the age of relationships. In contrast, source countries with higher GDP per capita tend to have longer relationships– an effect that disappears when including the OECD dummy. Tosumup,inthissectionweshowthatlong-termrelationshipsareameaningful component of international trade: almost half of U.S. imports occur within older relationships. Distributionsforindividualsourcecountriesvarygreatly. Second, as a relationship ages, trade increases and the relationship itself becomes more likely to survive an additional year. Third, long-term relationships are more likely to ariseincountrieswithgoodinstitutionsorhigherper-capitaGDP.Guidedbythese facts, we develop a model of relationships and learning, calibrate its parameters country by country, and analyze the value of relationships. 3 Model This section outlines a model of learning in trade relationships, applying the model of exporter learning about foreign demand from Araujo et al. (2016) to the context of U.S. importers learning about individual foreign suppliers. 3.1 Basic Setup and Learning Anexporterencountersanopportunitytotransactwithanimporter. Theimporter has a particular design specification they require for producing their final good but is unsure whether the supplier can produce according to their specification. The importer has to pay the buyer before they can evaluate the suitability of the product.19 In each country, some fraction 𝜃̂︀of managers are effective (meaning they ensure 19Thatis,thebuyerhastofullypaybeforedelivery–cash-in-advancepayment. Or,thebuyer may pay after delivery but without having sufficient time to verify the quality of the product before paying. We show in appendix D how this assumption can be relaxed. 12

production occurs according to the importer’s specification), whereas the remainder are not. However, even if a manager is ineffective, the underlying quality of the firm(includingtheeducationofitsworkers, itsexperienceinproduction, etc.) may ensure that a particular shipment is usable. This event occurs with probability 𝜆. Each period, following the interaction, the buyer must decide whether to continue transacting with the seller. A relationship will only be continued if the prior shipment was usable. Relationships can also dissolve for exogenous reasons with probability 𝛿 ∈ (0,1). Finally, the maximum age a relationship can last is 𝐾. Bayesian updating As there aretwotypes ofsuppliers inthe economy, learning plays a central role. Initially, buyers believe (correctly) that the probability the supplier’s manager is effective is equal to the population mean, 𝜃̂︀. Every period that a relationship survives, buyers update their beliefs according to Bayes’ rule. If a buyer has successfully purchased from a supplier for 𝑘 periods, the posterior probability that the manager is effective can be derived as: 𝜃̂︀ 𝜃 = . (3) 𝑘 (︁ )︁ 𝜃̂︀+ 1−𝜃̂︀ 𝜆𝑘 Importantly, the probability only changes with the length of time that a buyer has been buying from the same supplier. It is easy to see that for large 𝑘, 𝜃 converges 𝑘 to 1; that is, the buyer is almost certain that the manager is effective. The delivery probability Consider again a relationship of age 𝑘. The buyer will receive the goods from the supplier next period under two scenarios: either the manager is effective (an event with expected probability 𝜃 ), or the manager 𝑘 is not effective, but the supplier delivers a suitable product anyway (an event with expected probability (1−𝜃 )𝜆). Thus, after 𝑘 successful transactions, the delivery 𝑘 13

probability is: ⎛ ⎞ 𝜃̂︀ ˜ 𝜃 𝑘 = (𝜃 𝑘 +(1−𝜃 𝑘 )𝜆) = ⎝ (︁ )︁ ⎠(1−𝜆)+𝜆. (4) 𝜃̂︀+ 1−𝜃̂︀ 𝜆𝑘 The delivery probability is a key object in the model. It is increasing in 𝑘, the age ^ of the relationship, as well as in 𝜃, the fraction of effective managers in the source country.20 There are two competing effects of the parameter 𝜆 on the delivery probability. Countries that have better firms (a higher 𝜆) have a higher initial delivery proba- ˜ bility 𝜃 , but slower learning, meaning smaller increases in the delivery probability 0 over time.21 The differences can be seen in Figure 6, which illustrates the delivery probability for both high and low 𝜆. For young relationships, the direct effect of 𝜆 dominates, and the delivery probability is higher for higher 𝜆. For older relation- ˜ ships, the negative effect on 𝜃 from slower learning is more important, generating 𝑘 a delivery probability that is lower for higher 𝜆. Relationship survival A relationship of age 𝑘 survives for another period if it is not hit by the exogenous dissolution shock and if there is a successful delivery. ˜ It therefore survives with (conditional) probability: 𝑠𝑢𝑟𝑣 = (1−𝛿)𝜃 . Using this 𝑘 𝑘 expression and Equation (4), it is straightforward to see that, matching our empirical finding, as a relationship ages (𝑘 ↑), the conditional probability of survival increases, converging to 1−𝛿. The probability that a relationship is still alive after 𝑘 periods, 𝑎𝑙𝑖𝑣𝑒 , can be 𝑘 definedrecursively: itistheprobabilityarelationshipisstillaliveafter𝑘−1periods times the probability of surviving from age 𝑘 −1 to 𝑘: 𝑎𝑙𝑖𝑣𝑒 = 𝑎𝑙𝑖𝑣𝑒 𝑠𝑢𝑟𝑣 . 𝑘 𝑘−1 𝑘−1 Because the probability a relationship is alive at least 0 periods is 1 (that is, (︂ )︂ 20 𝜕 𝜃̂︀ = 𝜆𝑘 >0. 𝜕𝜃^ 𝜃̂︀+(1−𝜃̂︀)𝜆𝑘 (−𝜃^𝜆+𝜃^+𝜆)2 (︁ )︁ 21𝜃˜ =𝜃^+ 1−𝜃^ 𝜆. 0 14

𝑎𝑙𝑖𝑣𝑒 = 1), we have: 0 (︁ )︁ 𝑎𝑙𝑖𝑣𝑒 = (1−𝛿)𝑘 𝜆𝑘(1−𝜃 ^ )+𝜃 ^ . (5) 𝑘 3.2 The Trade Model We consider a Krugman (1980) two-country trade model with dynamics occurring through the evolution of beliefs described previously. Demand for the final good of a monopolistic-competitive supplier has a constant elasticity of substitution 𝜎. There is also a fixed cost of production 𝑓 , marginal cost 𝑐, and an iceberg trade 𝐸 cost 𝜏. Let 𝑝𝑖𝑖 refer to the domestic price in countries 𝑖 = 1,2 and 𝑝𝑖𝑗 refer to the price paid in country 𝑗 for a good from country 𝑖. We add a superscript 𝑖 to the probability a quality input is delivered by a particular age group 𝑘 in country 𝑖, 𝜃 ˜𝑖. Assume that for domestic sales, there are no iceberg costs (that is, 𝜏 = 1) and 𝑘 there is no problem in delivering the right quality.22 Firm profits Consider the profits of a firm in country 𝑖 at time 𝑡 of age 𝑘: 𝜋𝑖 = 𝑝𝑖𝑖 𝑞𝑖𝑖 +𝜃 ˜𝑖𝑝𝑖𝑗 𝑞𝑖𝑗 −𝑞𝑖𝑖 𝑐𝑖𝑤𝑖 −𝜏𝑞𝑖𝑗 𝑐𝑖𝑤𝑖 −𝑓 , (6) 𝑡,𝑘 𝑡,𝑘 𝑡,𝑘 𝑘 𝑡,𝑘 𝑡,𝑘 𝑡,𝑘 𝑡 𝑡,𝑘 𝑡 𝐸 WeassumestandardCESpreferences,implyingfirm-leveldemandof𝑞𝑖𝑖 = 𝐴𝑖(𝑝𝑖𝑖) −𝜎 𝑡,𝑘 𝑡 𝑘 and 𝑞𝑖𝑗 = 𝐴𝑗(︀ 𝑝𝑖𝑗)︀−𝜎 .23 The first-order conditions of profit maximization imply: 𝑡,𝑘 𝑡 𝑘 𝜎 𝑝𝑖𝑖 = 𝑝𝑖𝑖 = 𝑐𝑖𝑤𝑖 (7) 𝑡,𝑘 𝑡 𝜎 −1 𝑡 𝜏 𝑝𝑖𝑗 = 𝑝𝑖𝑖 (8) 𝑡,𝑘 𝜃 ˜𝑖 𝑡 𝑘 22Ofcourse,evenfordomesticdeliveries,theremaybeaqualityproblem. Thekeyassumption here is that the problem is larger for international trade, for example, because communication and travel costs are much higher. For tractability, we focus on the case of no domestic friction, but it would be straightforward to relax that assumption. 23Such demand comes from maximizing a CES utility function of the form 𝑄 = (︁ ∫︀ 𝑞(𝑧) 𝜎− 𝜎 1 𝑑𝑧 )︁ 𝜎− 𝜎 1, with the ideal price index 𝑃 = (︁ ∫︀ 𝑝(𝑧)1−𝜎𝑑𝑧 )︁ 1− 1 𝜎. In this context, aggregate demand 𝐴=𝑃𝜎𝑄. 15

Profits are hence: 𝜋𝑖 = 1 (︀ 𝑝𝑖𝑖 )︀1−𝜎 (︁ 𝐴𝑖 +𝜏1−𝜎 (︁ 𝜃 ˜𝑖 )︁𝜎 𝐴𝑗 )︁ −𝑓 . (9) 𝑡,𝑘 𝜎 𝑡 𝑡 𝑘 𝑡 𝐸 With expected (operating) profits from exporting: 𝜋𝑖𝑗 = 𝜃 ˜𝑖𝑝𝑖𝑗 𝑞𝑖𝑗 −𝜏𝑞𝑖𝑗 𝑐𝑖𝑤𝑖 𝑡,𝑘 𝑘 𝑡,𝑘 𝑡,𝑘 𝑡,𝑘 𝑡 (︃ )︃1−𝜎 𝜃 ˜𝑖 𝜃 ˜𝑖 𝜏 = 𝑘 (︀ 𝑝𝑖𝑗 )︀1−𝜎 𝐴𝑗 = 𝑘 𝑝𝑖𝑖 𝐴𝑗 (10) 𝜎 𝑡,𝑘 𝑡 𝜎 𝜃 ˜𝑖 𝑡 𝑡 𝑘 The delivery probability, 𝜃 ˜𝑖, affects expected profits from exporting via two chan- 𝑘 nels. First, there is a direct effect, as a sale is more likely to succeed. Second, there is an indirect effect. A higher success probability leads to a larger order and, hence, larger revenues and profits if the trade is successful, as the optimal price 𝑝𝑖𝑗 decreases in 𝜃 ˜𝑖. A successful international transaction generates revenues of: 𝑡,𝑘 𝑘 (︃ )︃1−𝜎 𝜏𝜎𝑐𝑖𝑤𝑖 𝑅𝑖𝑗 = 𝑝𝑖𝑗 𝑞𝑖𝑗 = 𝐴𝑗 𝑡 (11) 𝑡,𝑘 𝑡,𝑘 𝑡,𝑘 𝑡 (𝜎 −1)𝜃 ˜𝑖 𝑘 We can now derive the following proposition that matches our empirical finding: Proposition 1 Suppose 𝜆 < 1. Then, the amount being traded, 𝑅𝑖𝑗 , within a 𝑡,𝑘 relationship increases with the relationship’s age, 𝑘. Proof. 𝜕 (︂ 𝜏𝜎𝑐𝑖𝑤𝑖)︂1−𝜎 (︁ )︁𝜎−2 𝜕 𝑅𝑖𝑗 = 𝐴𝑗 𝑡 (𝜎 −1) 𝜃 ˜𝑖 𝜃 ˜𝑖 > 0, 𝜕𝑘 𝑡,𝑘 𝑡 𝜎 −1 𝑘 𝜕𝑘 𝑘 (︂ )︂ as 𝜃 ˜ = 𝜃̂︀ (1−𝜆)+𝜆, and this expression is increasing in 𝑘 for 𝜆 < 1. 𝑘 𝜃̂︀+(1−𝜃̂︀ )𝜆𝑘 16

3.3 Count and Value Distributions We can now derive model analogues to the count and value distributions that we studied in Section 2.2. In this section, we drop the 𝑡 subscript, as we focus on the steady-state distributions.24 In a steady state, the number of relationships is constant. Let 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒 denote the fraction of relationships that survived for 𝑘 𝑘 periods. Then: 𝐾 ∑︁ 𝑎𝑙𝑖𝑣𝑒 𝑘 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒 = 𝑎𝑙𝑖𝑣𝑒 / 𝑎𝑙𝑖𝑣𝑒 = (12) 𝑘 𝑘 𝑠 ∑︀∞ 𝑎𝑙𝑖𝑣𝑒 − ∑︀∞ 𝑎𝑙𝑖𝑣𝑒 𝑠=0 𝑠=0 𝑠 𝑠=𝐾 𝑠 We can directly compare this object to the relationship age shares reported in Section 2.2. Next, we derive the elements of the value distribution. That is, we weigh the number of relationships in a cohort with trade per relationship: 𝐾 𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 = (︀ 𝑅𝑖𝑗 𝑎𝑙𝑖𝑣𝑒 )︀ / ∑︁(︀ 𝑅𝑖𝑗 𝑎𝑙𝑖𝑣𝑒 )︀ . (13) 𝑘 𝑡,𝑘 𝑘 𝑡,𝑠 𝑠 𝑠=0 Plugging in the expression for revenues (11), we obtain (︁ )︁𝜎−1 𝜃 ˜𝑖 𝑎𝑙𝑖𝑣𝑒 𝑘 𝑘 𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 = . (14) 𝑘 𝐾 ∑︁(︁ )︁𝜎−1 𝜃 ˜𝑖 𝑎𝑙𝑖𝑣𝑒 𝑠 𝑠 𝑠=0 24We reintroduce the time dimension below when solving for the dynamic transition path in general equilibrium. 17

3.4 The Value of a Relationship Define the value of a relationship as the expected sum of future profits. Then the value of a new relationship is: 𝐾 ∑︁ [︀ ]︀ 𝑉 = E[Π ] = 𝑎𝑙𝑖𝑣𝑒 E 𝜋𝑖𝑗 (15) 0 0 𝑠 𝑠 𝑠=0 𝐾 = 1 (︀ 𝜏𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑗 ∑︁ (1−𝛿)𝑠 (︁ 𝜆𝑠(1−𝜃 ^ )+𝜃 ^ )︁(︁ 𝜃 ˜𝑖 )︁𝜎 . 𝜎 𝑠 𝑠=0 Here, an importer is matched with a random supplier at 𝑠 = 0 that delivers a quality input with probability 𝜃 ˜𝑖. The importer then slowly learns the type of the 0 supplier over time. Similarly, the sum of expected future profits of a relationship of age 𝑘 are: 𝐾−𝑘(︂ )︂ 𝑉 = E[Π ] = ∑︁ 𝑎𝑙𝑖𝑣𝑒 𝑘+𝑠 E [︀ 𝜋𝑖𝑗 ]︀ (16) 𝑘 𝑘 𝑎𝑙𝑖𝑣𝑒 𝑘+𝑠 𝑘 𝑠=0 (︁ )︁ 𝐾−𝑘 𝜆𝑘+𝑠(1−𝜃 ^ )+𝜃 ^ = 1 (︀ 𝜏𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑗 ∑︁ (1−𝛿)𝑠 (︁ 𝜃 ˜𝑖 )︁𝜎 . 𝜎 (︁ 𝜆𝑠(1−𝜃 ^ )+𝜃 ^ )︁ 𝑘+𝑠 𝑠=0 The relationship value 𝑉 increases in 𝑘, both because the conditional probability 𝑘 of a relationship being alive increases in 𝑘 and because expected revenues, which ˜ depend on 𝜃 , also rise in 𝑘. 𝑘 Finally, consider the standard (frictionless) case where the importer knows ˜ perfectly that the supplier will deliver a high-quality input (for example, after 𝑘 ˜ ˜ interactions, for large 𝑘). This case implies a 𝜃 = 1 for all periods, and the 𝑘 probabilityofarelationshipbeingaliveafter𝑘 periodsissimply(1−𝛿)𝑘. Expected 18

profits from exporting are given by 𝐾−𝑘˜ ∑︁ [︁ ]︁ 𝑉 = E[Π ] = (1−𝛿)𝑠E 𝜋𝑖𝑗|𝜃 ˜𝑖 = 1 (17) 𝑘˜ 𝑘˜ 𝑠 𝑠 𝑠=0 1−(1−𝛿)𝐾−𝑘˜+1 = (︀ 𝜏𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑗. 𝛿𝜎 For maximum age 𝐾 → ∞, this expression converges to the standard sum of profits under CES in a frictionless world with exogenous death probability 𝛿. 3.5 Solving for the Equilibrium In the two-country model, there are six equilibrium conditions (three for each country). To keep the equations tractable, it is useful to introduce some notation. We shorten the equation for domestic profits to: 1 𝑟𝑖𝑖 E[𝜋𝑖𝑖 ] = (︀ 𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑖 = 𝑡 𝐴𝑖, (18) 𝑡,𝑘 𝜎 𝑡 𝑡 𝜎 𝑡 with 𝑟𝑖𝑖 = (𝑝𝑖𝑖) 1−𝜎 = (︀ 𝜎 𝑐𝑖𝑤𝑖 )︀1−𝜎 . We shorten expected profits from exporting in 𝑡 𝑡 𝜎−1 𝑡 Equation (10) to: 𝜃 ˜𝑖 𝑟𝑖𝑗 E[𝜋𝑖𝑗 ] = 𝑘 (︀ 𝑝𝑖𝑗 )︀1−𝜎 𝐴𝑗 = 𝑡,𝑘 𝐴𝑗, (19) 𝑡,𝑘 𝜎 𝑡,𝑘 𝑡 𝜎 𝑡 with 𝑟𝑖𝑗 = 𝜃 ˜𝑖 (︀ 𝑝𝑖𝑗 )︀1−𝜎 = 𝜃 ˜𝑖 (︁ 𝜏 𝑝𝑖𝑖 )︁1−𝜎 . 𝑡,𝑘 𝑘 𝑡,𝑘 𝑘 𝜃˜𝑖 𝑡 𝑘 Free entry First, free entry must hold in both countries, such that the expected sum of future profits of an entrant at time 𝑡 is equal to the fixed cost of entering 19

production.25 We have: 𝐾 ∑︁ 𝑤𝑖𝑓 = 𝑎𝑙𝑖𝑣𝑒𝑖𝑗(𝜋𝑖𝑖 +𝜋𝑖𝑗 ) (20) 𝑡 𝐸 𝑠 𝑡+𝑠,𝑠 𝑡+𝑠,𝑠 𝑠=0 where 𝑎𝑙𝑖𝑣𝑒 is the probability that a relationship survives 𝑘 years, as previously. 𝑘 Now, replacing profits by expressions (18) and (19), we can rewrite to: 𝐾 𝑤𝑖𝜎𝑓 = ∑︁ 𝑎𝑙𝑖𝑣𝑒𝑖𝑗 (︀ 𝑟𝑖𝑖 𝐴𝑖 +𝑟𝑖𝑗 𝐴𝑗 )︀ (21) 𝑡 𝐸 𝑠 𝑡+𝑠 𝑡+𝑠 𝑡+𝑠,𝑠 𝑡+𝑠 𝑠=0 Isolating the first term of the sum, combining the two equations, and then solving for the home and foreign demand delivers: 𝑟𝑖𝑖(𝑤𝑖𝜎𝑓 −Π𝑖 )−𝑟𝑖𝑗 (𝑤𝑗𝜎𝑓 −Π𝑗 ) 𝐴𝑖 = 𝑡 𝑡 𝐸 𝑡,1+ 𝑡,0 𝑡 𝐸 𝑡,1+ , (22) 𝑡 𝑟𝑖𝑖𝑟𝑗𝑗 −𝑟𝑖𝑗 𝑟𝑗𝑖 𝑡 𝑡 𝑡,0 𝑡,0 with Π𝑖 = ∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑖𝑗 (︀ 𝑟𝑖𝑖𝐴𝑖 +𝑟𝑖𝑗 𝐴𝑗 )︀ the sum of expected profits from 𝑡,1+ 𝑠=1 𝑠 𝑡 𝑡+𝑠 𝑡+𝑠,𝑠 𝑡+𝑠 period 1 onward. Labor market clearing Second, labor markets in both countries need to clear. Callthemassoffirmsincountry𝑖attime𝑡ofage𝑘 𝑁𝑖 , andtotallaborincountry 𝑡,𝑘 𝑖 𝐿𝑖. Then, 𝐾 ∑︁ 𝐿𝑖 = 𝑁𝑖 𝑓 + 𝑁𝑖 𝑐𝑖((𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏(𝑝𝑖𝑗 )−𝜎𝐴𝑗) (23) 𝑡,0 𝐸 𝑡,𝑠 𝑡 𝑡 𝑡,𝑠 𝑡 𝑠=0 Solving for entry in period 𝑡 by isolating the first term of the sum delivers: 𝐿𝑖 −𝐿𝑖 𝑁𝑖 = 𝑃,𝑡,1+ , (24) 𝑡,0 𝑓 +𝑐𝑖 (︁ (𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏 (︀ 𝑝𝑖𝑗 )︀−𝜎 𝐴𝑗 )︁ 𝐸 𝑡 𝑡 𝑡,0 𝑡 25As in Krugman (1980), we do not assume any fixed cost of exporting, so that any firm that enters also exports. In addition, we assume that if a trade relationship gets resolved, the firm also ceases to sell domestically. The latter assumption is mainly for tractability and could be relaxed. 20

(︁ )︁ with 𝐿𝑖 = ∑︀𝐾 𝑁𝑖 𝑐𝑖 (𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏 (︀ 𝑝𝑖𝑗 )︀−𝜎 𝐴𝑗 the production labor used 𝑃,𝑡,1+ 𝑠=1 𝑡,𝑠 𝑡 𝑡 𝑡,𝑠 𝑡 by all firms that are not new in countries 𝑖, respectively. Balanced trade Balanced trade requires that income equals total expenditure (domestic consumption plus imports) at time 𝑡. 𝐾 ∑︁ 𝑤𝑖𝐿𝑖 = 𝐴𝑖 (𝑁𝑖 𝑟𝑖𝑖 +𝑁𝑗 𝑟𝑗𝑖) (25) 𝑡 𝑡 𝑡,𝑠 𝑡 𝑡,𝑠 𝑡,𝑠 𝑠=0 There are two balanced budget conditions, and either would be sufficient to solve the model. However, for the numerical solution, it turns out to be helpful to use both equations in the minimization problem. Aggregate price indices and aggregate quantities The price index at time 𝑡 is an aggregation of prices paid for all goods successfully supplied at time 𝑡, ˜ taking into account that delivery is only successful with probability 𝜃 . Thus, we 𝑘 can derive the ideal price index as (︂∫︁ )︂ 1 (︃ ∞ )︃ 1− 1 𝜎 1−𝜎 ∑︁ 𝑃 = 𝑝(𝜔)1−𝜎𝑑𝜔 = 𝜃 ˜ 𝑁 𝑝1−𝜎 . (26) 𝑡 𝑠 𝑡,𝑠 𝑠 𝜔∈Ω 𝑠=0 We can also derive the aggregate consumption from CES imports as (︂∫︁ )︂ 𝜎 (︃ ∞ )︃ 𝜎− 𝜎 1 𝜎−1 𝜎−1 ∑︁ ˜ 𝜎−1 𝑄 𝑡 = 𝑞(𝜔) 𝜎 𝑑𝜔 = 𝜃 𝑠 𝑁 𝑡,𝑠 𝑞 𝑠 𝜎 . (27) Ω 𝑠=0 Law of motion for number of relationships Finally, the law of motion of the number of relationships is directly determined by the survival probability: 𝑁𝑖 = 𝑠𝑢𝑟𝑣𝑖𝑁𝑖 (28) 𝑡+1,𝑠+1 𝑠 𝑡,𝑠 21

Normalizing the wage in country 𝑖 to 1 and given the calibrated parameters 𝜆𝑖, 𝜃 ^𝑖, 𝛿𝑖, 𝜆𝑗, 𝜃 ^𝑗, and 𝛿𝑗, we use these equilibrium conditions to solve for the unknowns {𝐴𝑖,𝐴𝑗,𝑁𝑖 ,𝑁𝑗 ,𝑤𝑗} in every period 𝑡 and for all ages 𝑘. 𝑡 𝑡 𝑡,𝑘 𝑡,𝑘 𝑡 Solving the dynamic model We solve for the dynamic transition path of the model (from any arbitrary starting point) in the following way: 1. Guess a sequence of demand at home and abroad, 𝐴𝑖,𝐴𝑗, and a sequence of 𝑡 𝑡 the foreign wage 𝑤𝑗 for periods 𝑡 = 1 to 𝑛 2. Repeat until convergence: (a) Solve for period 0 wage, 𝑤𝑗, home entry, 𝑁𝑖 , and foreign entry, 𝑁𝑗 0 0,0 0,0 using the guesses and the initial distribution of relationships. Calculate new demand at home and abroad for period 0, 𝐴𝑖,𝑁 and 𝐴𝑗,𝑁. 0 0 (b) Based on entry in period 0, calculate new distribution for period 1 and solve for wage, 𝑤𝑗, home entry, 𝑁𝑖 , and foreign entry, 𝑁𝑗 . Calculate 1 1,0 1,0 new demand at home and abroad for period 1, 𝐴𝑖,𝑁 and 𝐴𝑗,𝑁. 1 1 (c) Repeat for all periods 2 to 𝑛 (d) Update the guesses for 𝑤𝑗, 𝐴𝑖 and 𝐴𝑗 𝑡 𝑡 (for example, 𝐴𝑖,𝑈 = 0.95𝐴𝑖 +0.05𝐴𝑖,𝑁 for all 𝑡 = 1 to 𝑛) 𝑡 𝑡 𝑡 The algorithm works well when using the steady-state values as initial guesses. Note that to calculate entry at period 𝑡, we need to know the demand and relative wageinallperiodsupto𝑡+𝐾. Wesetthedemandandrelativewageforallperiods after period 𝑛 to their steady-state values. In our numerical exercises, we set the maximum number of periods 𝑛 = 60 to make sure that the economy converges back to steady state well before period 𝑛. 22

3.6 Taking care of partial year effects As shown in Bernard et al. (2017), it is crucial to control for the fact that a firm may sell less in its first year of exporting than theory predicts because of partial year effects. We address this issue in the following way. Assume that a relationship starts trading randomly in any given month, and assume that demand is uniformly distributed over calendar months. Then, a random relationship is expected to trade, on average, exactly half the value in its first year than otherwise predicted by theory. To take this point into account, we therefore set 𝑅𝑖𝑗 = 0.5𝑝𝑖𝑗𝑞𝑖𝑗 in our baseline 𝑡,0 0 𝑡,0 calibration. In the rest of the paper, we consistently take care of the partial year effects. In particular, when calculating the discounted sum of future profits in the free entry condition of firms, we assume that firms in their first year only have half the revenues and operating profits than the theory would predict otherwise. When solving the general equilibrium model, we also need to take a stance on how the partial year effect maps into consumption. In principle, there are two options. First,initsfirstyear,afirmcouldonlysellhalfthestandardCESquantity of its product to each consumer. Alternatively, in its first year, a firm could sell the standard CES quantity to half of the consumers. We make the second assumption, as it is more easily reconciled with the prices implied by the benchmark CES model of demand and also allows for the price level to be the aggregation of those prices. For clarity of exposition, the derivations in the main text do not include the partial year effect correction, as it does not add to any of the intuition of the learning model. The full formulas are employed in the Python code and are available upon request. 23

4 Calibration and Counterfactuals In this section, we calibrate the model and present counterfactuals. Section 4.1 presents our calibration approach and its outcomes. In Section 4.2, we calculate the value of relationships across countries and demonstrate that the measure can explain relationship survival during the 2008-09 crisis. Section 4.4 presents two evaluations of the effects of shocks to the distribution of relationships on the probability of a successful delivery, prices, and total output. 4.1 Matching with the data ^ We employ an algorithm that searches for the parameter vector (𝛿, 𝜃, 𝜆) that minimizes the sum of squared differences between the moments in the data and those predicted by the model. As moments, we use the elements of the count and value distributions. We solve the following problem: 𝐾 𝐾 ∑︁ (cid:92) ∑︁ (cid:92) argmin𝛽 (𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒 −𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒 )2 +(1−𝛽) (𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 −𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 )2 𝑘 𝑘 𝑘 𝑘 𝛿,𝜃^,𝜆 𝑘=0 𝑘=0 (29) (cid:92) where𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒and𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒arethevaluespredictedbythemodel,and𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒 (cid:92) and 𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 are taken from the data. We set 𝛽 = 0.5 and set the other parameters to 𝜎 = 3 and 𝑐 = 1.26 We run this procedure for 10 major trading partners with significant exports to the United States.27 For each country, we use information on eight cohorts– that is, on relationships that are one to eight years old (𝐾 = 8).28 The three parameters for each country are therefore selected by matching 16 moments in the model with 26Changes to 𝑐 have basically no effect on the estimated parameters. 27These are Canada, China, Germany, France, India, Japan, Korea, Mexico, Taiwan, and the United Kingdom. 28Eight is the largest number of cohorts for which we have information on all countries. We could add additional cohorts at the price of dropping some countries. 24

their empirical counterparts. The parameter estimates are found in the left panel of Table 6. How well do the model-implied distributions represent their empirical counterparts? Figure 7 shows that the calibrated model matches the underlying data well. China’s trade, for example, is tilted toward new relationships, while Japan has more trade in longer-term relationships. As should be expected, the model matches the data less well when there are outliers. A case in point is Mexico, where in 2011 a large fraction of trade was in relationships that were exactly seven years old. The calibration adjusts parameters to accommodate the outlier at the cost of an inferior fit to the other moments of the value distribution. Similarly, outliers in middle-age relationships in Japan lead the model to over-predict the fraction of trade in long-term relationships in that country. Would it suffice to only consider the exogenous death shock and abstract from learning? We address this question by running our calibration exercise on a restricted model where only 𝛿 is active and 𝜆 is set to one (a frictionless world). The alternative model delivers an extremely poor fit to the data, as reported in Table 7. The table also compares the fully estimated model with versions where ^ either 𝜃 or 𝜆 is fixed across countries (and chosen optimally)- the sum of squared errors from Equation (29) is lowest by allowing all three parameters to vary across countries. Figure 8 plots the goodness of fit (the sum of squared errors) of the whole model against one where only 𝛿 matters and shows that only relying on exogenous relationship death to explain the data is insufficient. Hence, while 𝛿 is a central parameter for the value of long-term relationships, it can only be calibrated credibly when learning is active. 4.2 The value of trade relationships Relationship values We can now quantify the value of relationships using the estimated parameters and Equation (16). We first return to Table 6 to show some 25

descriptive results. Column (4) reports the sum of expected profits from a new relationship 𝑉 ; column (5) reports the sum of expected profits from a relationship 0 with a supplier that will deliver usable inputs with probability 1, 𝑉 ; and column 𝑘˜ (6) reports the ratio between the values in columns (5) and (6). Consider some examples from Table 6. New relationships with the United Kingdom (2) and France (3.1) have the lowest value, mostly because they rank ^ lowest in 𝜃. A new relationship is the most valuable with Taiwan (10.9), which ^ has relatively high estimates for 𝜆 and 𝜃 combined with a moderate estimate for 𝛿. The value of an old relationship 𝑉 maps directly into 𝛿, as it does not depend 𝑘˜ ^ on 𝜆 and 𝜃. The expected sum of profits from an established relationship are therefore lowest for China (33.5) and Canada (45.2) and highest for France (242.6) and Mexico (238). According to our estimates, relationships are most valuable in France (where an established relationship has a sum of expected profits 79 times higher than a ^ new relationship) and the United Kingdom (33.1). Both countries feature low 𝜃 that depress the value of new relationships. We find the lowest relationship values ^ for China (5.1) and Taiwan (5.9). Both jurisdictions have high 𝜃, implying high profits from new relationships, and moderate to high 𝛿, implying low profits from oldrelationships. Acrossallcountries, themedianvalueofalong-termrelationship is 13.9 times that of a new relationship. The large size of these estimates should not be surprising, given our empirical findings that long-term relationships foster higher trade as well as greater survival. Importantly, countrieswithhigherrelationshipvaluesarenotsimplythosewith fewer long-term relationships: both Korea and China have nearly identical shares of long-term relationships (≈ 11 and 13 percent, respectively), but they differ greatly in the value of a relationship (5.1 versus 14.2). Based on our calibration, China has mostly short-term relationships because of a high 𝛿, while Korea has ^ many short-term relationships because of a somewhat low 𝜃 and a moderate 𝛿. The high 𝛿 for China implies that long-term relationships are not very valuable, as they 26

tend to die quickly for exogenous reasons.29 The low 𝜃 ^ for Korea leads to a low value of new relationships. At the same time, Korea’s 𝛿 is not that high, making long-term relationships more valuable. Put together, these parameter differences imply that Korea has a much higher inherent value of relationships than China. The reverse holds as well: jurisdictions with similar values of old relationships need not have similar age distributions. Column (5) of the table shows that old relationships with China and Taiwan are similarly valuable, even though in the data,theirsharesofoldrelationshipsareverydifferent. Themodelgeneratesahigh ^ Taiwanese share of old relationships via both a fairly high 𝜃 (0.22) and moderate values of 𝜆 (0.36) and 𝛿 (0.19), while the low Chinese share of old relationships comes from a very high 𝛿 (0.37) and low 𝜆 (0.31). Tracking value as relationships age We next illustrate how the expected profits from a relationship change with relationship age. Figure 9 plots 𝑉 for three 𝑘 economies – China, Japan, and Taiwan – based on their estimated parameters 𝜆, ^ 𝛿, and 𝜃. The starting point of the lines are given by Equation (15) – the value of a new relationship, 𝑉 – while the end points can be approximated by Equation 0 (17), the value of an old relationship, 𝑉 . First, note that because of learning, the 𝑘˜ sum of expected profits from a relationship strictly increases in the relationship’s age. Consider China and Japan. A new relationship has about the same expected profits in both countries. However, in the long run, relationships with Japan are much for valuable, as relationships are more stable (lower 𝛿). Now consider Taiwan ^ and Japan. Japan’s lower 𝜃 implies a much lower value of expected future profits from a new relationship. In the long run, however, all relationships that are still ^ alive are with patient suppliers. So after six years, 𝜃 and 𝜆 hardly have any effect on the relationship value, and the key determinant becomes 𝛿. As Taiwan and 29More specifically, the model assigns a high 𝛿 to China, as in the data even old relationships with China die relatively frequently. 27

Japan have about the same 𝛿, their relationship values converge to roughly the same number. 4.3 Using Relationship Values to Explain Survival in 2008- 09 Duringthe2008-09crisis, internationaltradeplummeted. Besidesthelargedecline in aggregate trade, the crisis also triggered changes to the number and the age structure of relationships. The first line of Table 8 shows that the number of relationships declined during the crisis: compared with 2008, there were 7 percent fewer relationships in 2009. Much of the story is a decrease in new relationship formation: in 2009, there were 15 percent fewer relationships formed. But we have shown trade volumes are more concentrated in continuing relationships, and those fell too: the number of continuing relationships dropped by 6 percent from 2008 to 2009. We can use our definition of relationship value, together with other explanatory variables, to predict which relationships survived the 2008-09 crisis. For the dependent variable, we use the average survival probability for each country-relationship age group over the years from 2006 to 2011.30 As before, the survival probability is the percentage of relationships of age 𝑘 in year 𝑡 that survived to year 𝑡+1. On the right hand side, we include a variety of regressors and fixed effects to understand which relationships survived. Table 9 presents our results. We first regress average survival on a dummy variable for the year 2008, 𝐶𝑟𝑖𝑠𝑖𝑠 , accompanied by country fixed effects - that is, 𝑡 the crisis dummy captures survival from 2008 to 2009. As can be seen from column (1) (and consistent with Table 8), the average survival probability of relationships declined substantially during the crisis. Next, we demonstrate that our measure of relationship value can predict relationship survival during that period. Column (2) 30For disclosure purposes, we limit to exporting countries with more than 100 relationships. 28

showstheresultsfromregressingthesurvivalprobabilityonaninteractionbetween the 𝐶𝑟𝑖𝑠𝑖𝑠 dummy and our measure of relationship value, 𝑉 , including year, 𝑡 𝑐𝑘 age, and country fixed effects. The strong positive correlation of this interaction term demonstrates that the more valuable relationships are the ones most likely to survive. We also include a specification with year and country-age fixed effects (column 3) that gives the same result. Macchiavello and Morjaria (2015) show that in the case of Kenya, the value of a relationship increases with age. An interesting question, therefore, is whether our measure for the value of a relationship affects survival beyond a pure age effect. In fact, even when accounting for the possibility of a separate interaction between the crisis dummy and age, as in Column (4), the result holds: that is, even among relationships that are the same age, the relationships that are more valuable, according to our measure, are more likely to survive. We do not find that older relationships are more likely survive (given the lack of significance of the crisis-age interaction term). Largerrelationshipsshould, allelseequalbemorelikelytosurvivesuchashockfor this reason, we also recreate our results including log average trade within a country-age group as an additional explanatory variable. All results continue to be highly significant, as shown in columns (5)-(7). In sum, our calibrated model of relationship values successfully predicts which relationships survived the 2008-09 crisis. 4.4 Quantitative Evaluation Our last step is to describe the quantitative evaluation of the model. We explore the importance of relationships for aggregate welfare with two experiments. In the first experiment we erase the memory of all importers about previous interactions with their suppliers. In the second experiment, we destroy all relationships between importers and their foreign suppliers. These two experiments provide 29

a quantification of how valuable relationships are in welfare terms when the full dynamics of the economy are taken into account. In each experiment, we let firms respond optimally, studying the transition path back to the steady state of the economy. We run the experiments separately for each of the top 10 trading partners of the United States.31 Reset of all trade relationships The first experiment wipes out all established relationships and replaces them with the same number of new relationships.32 We first discuss outcomes for two illustrative countries, the United Kingdom and Germany. As can be seen in Table 2, Germany tends to have older relationships, ^ while Table 6 shows that Germany has a higher 𝜆 and lower 𝜃 compared with the United Kingdom. Reactions of different variables to the relationship reset are shown in Figure 10. In both countries, consumption drops substantially and takes several years to recover, buttherecoverypathsfortheUnitedKingdomandGermanydiffer. Why? RelationshipstendtodielessquicklyinGermanythanintheUnitedKingdom, and Germany therefore has more “relationship capital” in steady state. Consequently, in the experiment, prices (relative to their steady-state level) spike by more in Germany after erasing all memory of previous interactions, and a larger fraction of consumption is lost. At the same time, rebuilding relationships takes longer, so recovery is slower in Germany than in the United Kingdom. All told, Germany loses about 29 percent of its annual steady-state level of consumption over the transition, while the United Kingdom loses 16 percent of its annual consumption level. Across all countries, the average loss in the transition back to a steady state 31More specifically, we take the calibration for each country and study the experiment by solving the symmetric case. Although we can solve for asymmetric cases in principle, the algorithm does not always converge. It would also be interesting to solve a multi-country version of the model. However, given the large number of state variables, we are only able to solve the two-country version. 32As we only wipe out the memory from these relationships, we assume that they are not affected by the partial year effect. That is, we distinguish between relationships that lost their memory (no partial year effect) and relationships that are truly new (with partial year effects). 30

is about 48 percent of the annual steady-state level of consumption, with China losing the least (13 percent) and Mexico losing the most (190 percent).33 The set of country-level results is shown in the left panel of Table 10. Destruction of all trade relationships In the second experiment all preexistingrelationshipsarewipedout, sotheeconomyhastousesubstantialamounts oflabortopayforthecreationofnewrelationships. Consequently, inthisscenario, losses are larger. Results, shown in Figure 11, are similar to those in experiment 1. The main difference is that consumption drops much more initially as both countries shift resources into relationship creation. However, this additional drop is short-lived, and, in later years, the recovery under experiment 2 looks very similar to that of experiment 1. In experiment 2, welfare losses are higher, but the ranking of countries is basically unaffected. China still loses the least (32 percent of steady-state consumption), whereas Mexico still loses the most (223 percent). In addition, the ordering of Germany and the United Kingdom remains the same, with losses of 51 percent and 31 percent of consumption, respectively. The average loss is 70 percent. The full set of country-level results is shown in the right panel of Table 10. To summarize the results of the experiments, relationships represent a type of knowledge capital. Losing that capital is costly for an economy, implying a large drop in welfare on impact and substantially lower levels of consumption on the transition path. Relationship disruptions have a significant impact on firm performance, and thereby on welfare. 33Part of the reason Mexico loses so much can be seen in Figure 8: Mexico has an outlier in six-year relationships, with an extremely high level of trade. The model calibration takes this into account by assigning Mexico both a very low 𝜃^and a low 𝛿 (see Table 6), causing long-term relationships to be extremely valuable. 31

5 Conclusions Relationships between importers and exporters are the core of international trade transactions. This paper presents new facts on these relationships and develops a model, building on Araujo et al. (2016), to quantify the role of learning in international trade. The model fits our empirical findings well: trade increases within successful relationships over time, relationship survival increases over time, and countries differ systematically in their count and value distributions in ways our model can capture. Our estimated relationship values are good predictors of which relationships survive during the 2008-09 crisis. Our experiments generate substantial cross-country heterogeneity in trade dynamics. In the short run, shocks to entry have the strongest effects on countries, like China, that are tilted toward relationships of short duration. In the medium run, however, entry shocks have a greater effect on countries that rely more on longer-term relationships, like Japan. This heterogeneity has implications, for example, for the study of trade policy. Our model suggests that the evolution of trade following Free Trade Agreements will depend on how trade is spread across relationships of different ages. At the same time, it implies that disruptions to relationships, such as from increased protectionism, have significant welfare effects. More generally, our analysis suggests that to capture the dynamics of aggregate trade, one needs to account for the differences in the dynamics of relationship-level trade across countries. References Albornoz, Facundo, H´ector F Calvo Pardo, Gregory Corcos, and Emanuel Ornelas, “Sequential Exporting,” Journal of International Economics, 2012, 88 (1), 17–31. Alessandria, George and Horag Choi, “Establishment heterogeneity, exporter 32

dynamics, and the effects of trade liberalization,” Journal of International Economics, 2014, 94 (2), 207–223. , , and Kim J Ruhl, “Trade adjustment dynamics and the welfare gains from trade,” Technical Report, National Bureau of Economic Research 2014. Alvarez, Fernando and Robert E Lucas, “General equilibrium analysis of the Eaton–Kortum model of international trade,” Journal of Monetary Economics, 2007, 54 (6), 1726–1768. Antr`as, Pol, “Firms, Contracts, and Trade Structure,” Quarterly Journal of Economics, 2003, 118 (4), 552–580. and C Fritz Foley, “Poultry in Motion: A Study of International Trade Finance Practices,” Journal of Political Economy, 2015, 123 (4). and Elhanan Helpman, “Global Sourcing,” Journal of political economy, 2004, 112 (3), 691–719. Araujo, Luis F, Giordano Mion, and Emanuel Ornelas, “Institutions and export dynamics,” Technical Report, National Bank of Belgium 2012. , , and , “Institutions and Export Dynamics,” Journal of International Economics, 2016, 98C, 2–20. Arkolakis, Costas, Theodore Papageorgiou, and Olga Timoshenko, “Firm Learning and Growth,” Review of Economic Dynamics, forthcoming. Atkeson, Andrew and Ariel Tomas Burstein, “Innovation, Firm Dynamics, and international Trade,” Journal of Political Economy, 2010, 118 (3), 433–484. Bastos, Paulo, Daniel Dias, and Olga Timoshenko, “Learning, Prices and Firm Dynamics,” Mimeo 2015. Benguria, Felipe, “The matching and sorting of exporting and importing firms: theory and evidence,” 2015. University of Kentucky, mimeo. 33

Bernard, Andrew B, Andreas Moxnes, and Karen Helene Ulltveit-Moe, “Two-sided Heterogeneity and Trade,” Review of Economics and Statistics, forthcoming. , Esther Ann Bøler, Renzo Massari, Jose-Daniel Reyes, and Daria Taglioni, “Exporter dynamics, firm size and growth, and partial year effects,” American Economic Review, 2017, 107 (10), 3211–3228. , J Bradford Jensen, and Peter K Schott, “Importers, Exporters and Multinationals: A Portrait of Firms in the US that Trade Goods,” in “Producer dynamics: New evidence from micro data,” University of Chicago Press, 2009, pp. 513–552. Besedeˇs, Tibor, “A Search Cost Perspective on Formation and Duration of Trade,” Review of International Economics, 2008, 16 (5), 835–849. and Thomas J Prusa, “Product Differentiation and the Duration of U.S. Import Trade,” Journal of International Economics, 2006, 70 (2), 339–358. Blum, Bernardo S, Sebastian Claro, and Ignatius J Horstmann, “Occasional and Perennial Exporters,” Journal of International Economics, 2013, 90 (1), 65–74. Carballo, Jero´nimo, “Global Sourcing under Uncertainty,” 2016. University of Colorado, mimeo. , Gianmarco IP Ottaviano, and Christian Volpe Martincus, “The Buyer Margins of Firms’ Exports,” Discussion Paper 9584, CEPR 2013. Chaney, Thomas, “The Network Structure of International Trade,” American Economic Review, 2014, 104 (11), 3600–34. Coase, Ronald H, “The Nature of the Firm,” Economica, 1937, 4 (16), 386–405. 34

Eaton, Jonathan and Samuel Kortum, “Technology, Geography, and Trade,” Econometrica, 2002, 70 (5), 1741–1779. , Marcela Eslava, Cornell J Krizan, Maurice Kugler, and James Tybout, “A Search and Learning Model of Export Dynamics,” 2014. Mimeo. , Samuel Kortum, Brent Neiman, and John Romalis, “Trade and the Global Recession,” The American Economic Review, 2016, 106 (11), 3401–3438. Egan, Mary Lou and Ashoka Mody, “Buyer-Seller Links in Export Development,” World Development, 1992, 20 (3), 321–334. Grossman, Sanford J and Oliver D Hart, “The Costs and Benefits of Ownership: A Theory of Vertical and Lateral Integration,” Journal of Political Economy, 1986, 94 (4), 691–719. Heise, Sebastian, “Firm-to-Firm Relationships and Price Rigidity: Theory and Evidence,” Mimeo 2015. , Justin R Pierce, Georg Schaur, and Peter K Schott, “Trade Policy and the Structure of Supply Chains,” Technical Report, Mimeo 2015. Impullitti, Giammario, Alfonso A Irarrazabal, and Luca David Opromolla, “A Theory of Entry into and Exit from Export Markets,” Journal of International Economics, 2013, 90 (1), 75–90. Jovanovic, Boyan, “Selection and the Evolution of Industry,” Econometrica, 1982, 50 (3), 649–670. Kamal, Fariha and Asha Sundaram, “Buyer–seller relationships in international trade: Do your neighbors matter?,” Journal of International Economics, 2016, 102, 128–140. and Ryan Monarch, “Identifying foreign suppliers in US import data,” Review of International Economics, forthcoming. 35

Kaufmann, Daniel, Aart Kraay, and Massimo Mastruzzi, “The Worldwide Governance Indicators: Methodology and Analytical Issues,” Policy Research Working Paper Series 4978, The World Bank 2010. Krautheim, Sebastian, “Heterogeneous firms, exporter networks and the effect of distance on international trade,” Journal of International Economics, 2012, 87 (1), 27–35. Krizan, C.J., “The Nuts and Bolts of International Trade Transactions: A Data User’s Primer,” 2012. U.S. Census Center for Economic Studies, mimeo. Krugman, Paul, “Scale economies, product differentiation, and the pattern of trade,” The American Economic Review, 1980, 70 (5), 950–959. Macchiavello, Rocco and Ameet Morjaria, “The value of relationships: evidence from a supply shock to Kenyan rose exports,” The American Economic Review, 2015, 105 (9), 2911–2945. Monarch, Ryan, “It’s Not You, It’s Me: Breakups in U.S.-China Trade Relationships,” Working Paper 14-08, U.S. Census Center for Economic Studies 2014. Pierce, Justin R. and Peter K. Schott, “The Surprisingly Swift Decline of U.S. Manufacturing Employment,” Working Paper 18655, National Bureau of Economic Research December 2012. Rauch, James E,“BusinessandSocialNetworksinInternationalTrade,”Journal of Economic Literature, 2001, pp. 1177–1203. and Joel Watson, “Starting Small in an Unfamiliar Environment,” International Journal of Industrial Organization, 2003, 21 (7), 1021–1042. and , “NetworkIntermediariesinInternationalTrade,” Journal of Economics & Management Strategy, 2004, 13 (1), 69–93. 36

Ruhl, Kim J, “The international elasticity puzzle,” Mimeo 2008. and Jonathan L Willis, “New Exporter Dynamics,” International Economic Review, 2017, 58 (3), 703–726. Schmidt-Eisenlohr, Tim, “Towards a theory of trade finance,” Journal of International Economics, 2013, 91 (1), 96 – 112. Timoshenko, Olga A, “Learning versus sunk costs explanations of export persistence,” European Economic Review, 2015, 79, 113–128. , “Product switching in a model of learning,” Journal of International Economics, 2015, 95 (2), 233–249. A Figures Figure 1: Count and Value Distributions, 2011 0.6 Share of Relationships 0.5 Share of Value 0.4 0.3 0.2 0.1 0.0 0 1 2 3 4 5 6 7 8 9 10 11 Age Note: This figure plots the count distribution and the value distribution for all U.S. imports in 2011. The count distribution is the distribution of relationship counts over different ages. The value distribution is the distribution of trade values across relationships of different ages. Age 11 includes all relationships that are 11 years or older. 37

Figure 2: Distribution of Relationship Age and Value Shares, 2011 0.25 0.20 0.15 0.10 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 Share of Value spihsnoitaleR fo erahS TW TH CH DE JP PH IT IN FR CA MX ID HK GB BR VE NL KR ES CN Note: This figure plots the share of long-term (three or more years) relationships against the share of trade in long-term relationships for the top 20 U.S. trading partners (𝑅2 = 0.47). 38

Figure 3: Evolution of Trade within a Relationship Panel A: All relationships 1.2 1.0 0.8 0.6 0.4 0.2 0.0 0.2 0 1 2 3 4 5 6 Age dedart eulaV 5-year 7-year 10-year 13-year Panel B: Relationships that Began in the First Quarter 0.4 0.3 0.2 0.1 0.0 0.1 0.2 0.3 0 1 2 3 4 5 6 Age dedart eulaV 5-year 7-year 10-year 13-year Note: Thesefiguresplotcoefficientsfromregressionsoftradedvalueonrelationshipagedummies, run separately for relationships that lasted 5, 7, 10, and 13 years. Panel A shows results for all relationships. Panel B shows results for relationships that started trading between January and March, in order to account for “partial year effects”. 39

Figure 4: Relationship Survival Probabilities 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0 1 2 3 4 5 6 7 8 9 10 Age ytilibaborp lavivruS Note: This figure plots the conditional survival probability by age in 2011; that is, the share of relationships of age 𝑘 that survive to age 𝑘+1. Figure 5: Survival Function 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 1 2 3 4 5 6 7 8 9 10 11 Age evilA All 3+ years 7+ years Note: This figure plots the survival function based on estimates from the Cox proportionalhazardmodelforallrelationships, firmsthatareatleastthreeyearsold, andfirms that are at least seven years old. 40

Figure 6: Delivery Probabilities 1.0 0.8 0.6 0.4 0.2 1 2 3 4 5 6 7 8 9 10 11 Age ˜θ low λ high λ ˜ Note: This figure illustrates the role of 𝜆 for 𝜃 , the probability of an additional 𝑘 successful transaction following 𝑘 periods of trade. 𝜆 takes the values 0.1 and 0.4. ^ 𝜃 is set at 0.25. 41

Figure 7: Count and Value Distributions, Model vs. Data 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 1 2 3 4 5 6 7 Age erahS tnuoC 0.30 0.25 0.20 0.15 0.10 0.05 0.00 0 1 2 3 4 5 6 7 Age erahS eulaV China 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 1 2 3 4 5 6 7 Age erahS tnuoC 0.25 0.20 0.15 0.10 0.05 0.00 0 1 2 3 4 5 6 7 Age erahS eulaV Canada 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 1 2 3 4 5 6 7 Age erahS tnuoC 0.25 0.20 0.15 0.10 0.05 0.00 0 1 2 3 4 5 6 7 Age erahS eulaV Mexico 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0 1 2 3 4 5 6 7 Age erahS tnuoC 0.25 0.20 0.15 0.10 0.05 0.00 0 1 2 3 4 5 6 7 Age erahS eulaV Japan Note: This figure shows the count and value distributions for four countries. The dark bars represent data moments, while the light bars show moments from the calibrated model. 42

Figure 8: Count and Value Distributions, Model vs. Data, All Countries Panel A: Full model 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0.1 0.2 0.2 0.0 0.2 0.4 0.6 0.8 Model ataD Panel B: only 𝛿 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0.1 0.2 0.2 0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Model ataD Note: These figures plots the data moments against the model moments for all 10 countries. Panel A shows the full model. Panel B shows results when only the dissolution shock 𝛿 is active; that is, 𝜆 = 1. 43

Figure 9: Expected Profits and Relationship Age 80 70 60 50 40 30 20 10 0 0 1 2 3 4 5 6 Age stiforp detcepxE China Japan Taiwan Note: This figure plots the expected sum of future profits at age 𝑘 for China, ^ Japan, and Taiwan for their estimated 𝜆, 𝛿, and 𝜃. The starting point is given by Equation (D.6), while the end point can be approximated by Equation (17). 44

Figure 10: Experiment 1: Erasing All Memory Panel A: Average Success Probability 0.8 0.7 0.6 0.5 0.4 0.3 5 0 5 10 15 Time ytilibaborp sseccuS Germany United Kingdom Panel C: Mass of Relationships 1.08 1.06 1.04 1.02 1.00 5 0 5 10 15 Time etats ydaets fo tnecreP Panel B: Price Indices 1.06 1.05 1.04 1.03 1.02 1.01 1.00 5 0 5 10 15 Time Germany United Kingdom etats ydaets fo tnecreP Germany United Kingdom Panel D: Total Output 1.02 1.01 1.00 0.99 0.98 0.97 0.96 0.95 0.94 5 0 5 10 15 Time etats ydaets fo tnecreP Germany United Kingdom This figure shows results from the experiment where all relationships are “reset” to new for Germany and the United Kingdom. 45

Figure 11: Experiment 2: Destruction of Relationships Panel A: Average Success Probability 0.8 0.7 0.6 0.5 0.4 0.3 5 0 5 10 15 Time ytilibaborp sseccuS Germany United Kingdom Panel C: Mass of Relationships 1.06 1.04 1.02 1.00 0.98 5 0 5 10 15 Time etats ydaets fo tnecreP Panel B: Price Indices 1.35 1.30 1.25 1.20 1.15 1.10 1.05 1.00 5 0 5 10 15 Time Germany United Kingdom etats ydaets fo tnecreP Germany United Kingdom Panel D: Total Output 1.00 0.95 0.90 0.85 0.80 5 0 5 10 15 Time etats ydaets fo tnecreP Germany United Kingdom This figure shows results from the experiment where all existing relationships are destroyed for Germany and the United Kingdom. 46

B Tables Table 1: Relationship Structure of U.S. Imports, 2011 New 1-2 Years 3 or More Years Share of Relationships 57.6 26.9 15.6 Share of Trade 21.8 30.6 47.6 Note: Forthistable,arelationshipisdefinedasaU.S.importingfirmtransactingwithanon-U.S. exporting firm. A new relationship is one that is not found in any previous year of data. Table 2: Relationship Structure of U.S. Imports, 2011 % Counts, % Trade, 3+ Year Relationships 3+ Year Relationships China 0.11 Netherlands 0.29 Spain 0.13 Spain 0.33 Korea 0.13 China 0.33 Netherlands 0.14 Brazil 0.41 Brazil 0.14 Philippines 0.42 Venezuela 0.14 Chile 0.42 United Kingdom 0.16 United Kingdom 0.43 Hong Kong 0.16 Hong Kong 0.44 Indonesia 0.17 France 0.44 Mexico 0.17 Venezuela 0.45 Canada 0.17 Indonesia 0.45 France 0.17 Korea 0.45 India 0.18 India 0.46 Italy 0.19 Italy 0.46 Philippines 0.19 Canada 0.47 Japan 0.20 Germany 0.49 Germany 0.20 Thailand 0.56 Chile 0.21 Japan 0.62 Thailand 0.22 Mexico 0.65 Taiwan 0.24 Taiwan 0.67 Note: This table shows, for each of the top 20 trading partners of the United States, what share of relationship counts (left panel) and what share of trade value (right panel) are in relationships that have appeared for four or more consecutive years. 47

Table 3: Rank Correlations Sector Share of Trade in Old Relationships Share of Old Relationships Textiles 0.68 0.18 Footwear/Headgear 0.42 0.26 Machinery/Electronics 0.66 0.26 Note: The first column presents rank correlations between a country’s share of trade in older relationships and a country’s share of trade in older relationships (3 or more years) in a particular sector, where textiles are HS2 50-63, Machinery and Electrical Goods are HS2 84-85, and Footwear/Headgear are HS2 64-67. The second column does the same for the share of old relationships. The positive correlations imply countries with high trade in old relationships, also have high trade in old relationships across different sectors. 48

Table 4: Traded Value within a Relationship Dependent Variable: 𝑉𝑎𝑙𝑢𝑒 𝑚𝑥,𝑡 (1) (2) (3) (4) (5) (6) (7) (8) 𝐴𝑔𝑒=1 0.657 0.666 0.664 0.307 0.081 0.114 0.142 0.036 (0.018) (0.020) (0.033) (0.024) (0.013) (0.014) (0.036) (0.023) 𝐴𝑔𝑒=2 0.740 0.841 0.819 0.479 0.104 0.218 0.226 0.146 (0.021) (0.025) (0.034) (0.031) (0.017) (0.022) (0.039) (0.023) 𝐴𝑔𝑒=3 0.622 0.887 0.954 0.487 -0.052 0.190 0.303 0.127 (0.024) (0.025) (0.041) (0.036) (0.026) (0.022) (0.051) (0.025) 𝐴𝑔𝑒=4 0.493 0.861 1.031 0.503 -0.195 0.156 0.328 0.121 (0.021) (0.027) (0.043) (0.040) (0.023) (0.028) (0.049) (0.037) 𝐴𝑔𝑒=5 -0.106 0.661 1.060 0.502 -0.840 -0.069 0.340 0.109 (0.023) (0.027) (0.037) (0.036) (0.030) (0.025) (0.047) (0.037) 𝐴𝑔𝑒=6 0.486 0.984 0.641 -0.263 0.236 0.241 (0.027) (0.026) (0.031) (0.033) (0.035) (0.032) 𝐴𝑔𝑒=7 -0.115 0.894 0.693 -0.912 0.123 0.278 (0.0311) (0.025) (0.034) (0.039) (0.033) (0.028) 𝐴𝑔𝑒=8 0.611 0.721 -0.145 0.306 (0.025) (0.032) (0.031) (0.029) 𝐴𝑔𝑒=9 0.392 0.638 -0.417 0.203 (0.029) (0.035) (0.045) (0.037) 𝐴𝑔𝑒=10 -0.118 0.536 -0.994 0.088 (0.039) (0.035) (0.060) (0.036) 𝐴𝑔𝑒=11 0.079 -0.373 (0.053) (0.061) 𝐴𝑔𝑒=12 0.162 -0.296 (0.045) (0.055) 𝐴𝑔𝑒=13 0.053 -0.405 (0.049) (0.056) Constant 11.117 11.319 11.495 12.317 11.873 12.151 12.239 12.847 (0.018) (0.023) (0.026) (0.028) (0.019) (0.020) (0.032) (0.028) N 443000 201000 77000 65000 152000 75000 34000 47000 R-squared 0.74 0.73 0.71 0.72 0.76 0.75 0.71 0.72 Note: This table presents results on the growth of trade values within relationships. The value of trade is regressed on age fixed effects, controlling for relationship fixed effects; see Equation 1. The omitted category is trade in the first year (𝐴𝑔𝑒=0). Data is from relationships formed in the years from 1998 to 2006. Columns (1) through (4) show results for all relationships, while columns (5) through (8) show results for relationships that started trading between January and March of their first year. Trade values are available through 2011. Standard errors are in parentheses. 49

Table 5: Determinants of Importer-Exporter Relationship Length, 2011 Dependent Variable: 𝐴𝑔𝑒 𝑚𝑥𝑐 (1) (2) (3) (4) (5) (6) Importer Controls 𝑆𝑖𝑧𝑒 -0.027 -0.027 -0.027 -0.027 -0.026 -0.026 𝑚 (0.026) (0.026) (0.026) (0.026) (0.025) (0.025) 𝐴𝑔𝑒 0.044 0.044 0.044 0.044 0.045 0.044 𝑚 (0.005) (0.005) (0.004) (0.004) (0.004) (0.004) 𝑅𝑒𝑙𝐶𝑜𝑢𝑛𝑡 0.064 0.064 0.062 0.062 0.061 0.06 𝑚 (0.035) (0.035) (0.034) (0.034) (0.034) (0.033) 𝑁𝑜𝑃𝑟𝑜𝑑𝑢𝑐𝑡𝑠 0.294 0.296 0.297 0.297 0.298 0.298 𝑚 (0.053) (0.053) (0.053) (0.053) (0.052) (0.052) Exporter Controls 𝑆𝑖𝑧𝑒 0.232 0.232 0.233 0.233 0.234 0.234 𝑥 (0.013) (0.013) (0.013) (0.013) (0.013) (0.013) 𝑅𝑒𝑙𝐶𝑜𝑢𝑛𝑡 -0.375 -0.376 -0.378 -0.379 -0.383 -0.384 𝑥 (0.016) (0.016) (0.016) (0.016) (0.016) (0.015) Country Controls 𝑅𝑢𝑙𝑒𝑂𝑓𝐿𝑎𝑤 0.122 0.124 0.119 0.126 𝑐 (0.012) (0.013) (0.016) (0.012) 𝑃𝐶−𝐺𝐷𝑃 0.164 0.073 -0.006 0.031 𝑐 (0.020) (0.019) (0.014) (0.011) 𝑂𝐸𝐶𝐷 0.238 0.228 0.142 𝑐 (0.021) (0.023) (0.015) 𝑅𝑇𝐴 0.021 0.009 𝑐 (0.017) (0.038) 𝐷𝑖𝑠𝑡𝑎𝑛𝑐𝑒 -0.018 𝑐 (0.032) Constant -2.585 -1.766 -1.132 -1.19 -2.595 -1.304 (0.297) (0.287) (0.255) (0.209) (0.337) (0.218) N 1,075,100 1,075,100 1,075,100 1,075,100 1,075,100 1,075,100 HS2 FE yes yes yes yes yes yes Country FE no no no no no yes R2 0.11 0.11 0.12 0.12 0.12 0.12 Note: This table presents results on the role of firm and country institutions on the age of relationships. Each regression includes source country and primary-HS2 product effects. Standard errors clustered by source country are in parentheses. The dependent variable is the age of a relationship in 2011, defined as the number of consecutive years a relationship has been found in the data, and is capped at 11. 50

Table 6: Parameters and the Value of Relationships (1) (2) (3) (4) (5) (6) Value of a Value of an Country 𝜆 𝜃^ 𝛿 New Relationship Old Relationship Ratio Canada 0.31 0.13 0.27 3.5 45.2 13 China 0.31 0.33 0.37 6.6 33.5 5.1 Germany 0.41 0.08 0.17 4.8 71.3 15 France 0.35 0.01 0.05 3.1 242.6 79 India 0.39 0.13 0.2 5.9 60.9 10.3 Japan 0.36 0.10 0.17 5.4 73 13.5 Korea 0.35 0.10 0.23 3.8 53.8 14.2 Mexico 0.34 0.05 0.05 10.6 238 22.5 Taiwan 0.36 0.22 0.19 10.9 64.6 5.9 United Kingdom 0.36 0.04 0.19 2 65.3 33.1 Note: This table presents parameter estimates for the 10 jurisdictions from which the United States imported the most in 2011. In columns (4) and (5), it also presents the expected sum of profits from a new and an old relationship, respectively. Column (6) reports the ratio of the expected sum of profits from an old relationship over those from a new relationship. Table 7: Alternative Models ^ Model Error 𝜆 𝜃 𝛿 min max min max min max Full 1 0.31 0.41 0.01 0.33 0.05 0.37 𝛿 Only 6.78 1 1 0.35 0.59 ^ Fixed 𝜃 1.25 0.31 0.44 0.11 0.1 0.33 Fixed 𝜆 1.07 0.36 0.02 0.28 0.05 0.35 Note: This figure presents results from alternative models. Error is the sum of squared errors, as defined in Equation (29), normalized to one for the full model. 51

Table 8: Relationship Margins during the Trade Collapse Counts Relative to 2007 Year 2007 2008 2009 2010 Relationship Counts 1 0.97 0.90 0.98 New Relationship Counts 1 0.93 0.85 0.96 Continuing-Relationship Counts 1 1.03 0.97 0.99 Ending-Relationship Counts 1 1.02 1.02 0.88 Note: This table describes relationship formation, dissolution and continuation in the years around the 2008-09 Great Trade Collapse. Each category is normalized by the baseline year 2007. A new relationship is one not observed in any prior year. A continuing relationship is one that is found in both the current year and the previous year. An ending relationship is one that is found in the current year, but not the next year. 52

Table 9: Relationship Value and Survival during the 2008/2009 Crisis Dependent Variable: 𝑆𝑢𝑟𝑣𝑖𝑣𝑎𝑙 𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑐𝑘𝑡 (1) (2) (3) (4) (5) (6) (7) 𝐴𝑔𝑒=2 0.198 0.199 0.188 (0.007) (0.007) (0.007) 𝐴𝑔𝑒=3 0.301 0.303 0.289 (0.007) (0.007) (0.008) 𝐴𝑔𝑒=4 0.355 0.359 0.344 (0.007) (0.007) (0.008) 𝐴𝑔𝑒=5 0.394 0.399 0.383 (0.007) (0.007) (0.008) 𝐴𝑔𝑒=6 0.415 0.421 0.410 (0.007) (0.008) (0.008) 𝐴𝑔𝑒=7 0.430 0.436 0.420 (0.007) (0.008) (0.008) 𝐶𝑟𝑖𝑠𝑖𝑠 -0.023 𝑡 (0.005) 𝑉 -0.007 -0.008 𝑐𝑘 (0.003) (0.003) 𝐶𝑟𝑖𝑠𝑖𝑠 × 𝑉 0.010 0.011 0.009 0.011 0.012 0.010 𝑡 𝑐𝑘 (0.004) (0.004) (0.004) (0.004) (0.004) (0.004) 𝐶𝑟𝑖𝑠𝑖𝑠 × 𝐴𝑔𝑒 0.002 0.003 𝑡 (0.003) (0.0028) 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝑇𝑟𝑎𝑑𝑒 0.012 0.015 0.015 𝑐𝑘𝑡 (0.002) (0.002) (0.002) Constant 0.269 0.272 0.568 0.568 0.127 0.371 0.370 (0.005) (0.007) (0.0050) (0.005) (0.026) (0.030) (0.030) Country FE yes yes no no yes no no Country × Age FE no no yes yes no yes yes Time FE no yes yes yes yes yes yes Observations 4300 4300 4300 4300 4300 4300 4300 R-squared 0.59 0.59 0.65 0.65 0.60 0.66 0.66 Note: This table presents results on how our model-implied value of a relationship is correlated withrelationshipsurvivalduringthe2008/2009crisis. Anobservationisthesurvivalprobability of a relationship in country 𝑐 of age 𝑘 at time 𝑡. 𝑉 is the value of a relationship in country 𝑐 of 𝑐𝑘 age 𝑘 based on the calibrated model. 𝐶𝑟𝑖𝑠𝑖𝑠 is a dummy that takes a value of one in the year 𝑡 2008, capturing the survival probability from 2008 to 2009. Standard errors clustered by source country are in parentheses. 53

Table 10: Quantification of Relationship Values Name Exp 1: Reset memory Exp 2: Destroy relationships Canada 17.9 33.3 China 12.9 31.6 France 91.7 110.4 Germany 28.9 50.9 India 28.7 51.5 Japan 36.9 58.8 Korea 21.2 38.8 Mexico 189.6 222.8 Taiwan 38.4 69.6 United Kingdom 16.0 30.8 Note: This table reports results from two counterfactual experiments that quantify the value of relationships. Numbersrepresentthecumulativeconsumptionlossthattheeconomysuffersfrom the beginning of the experiment until convergence back to steady state. 54

C Solving the General Equilibrium Model C.1 Equilibrium Conditions In the two-country model, there are six equilibrium conditions (three for each country). To keep the equations tractable, it is useful to introduce some notation. We shorten the equation for domestic profits to: 1 𝑟𝑖𝑖 E[𝜋𝑖𝑖 ] = (︀ 𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑖 = 𝑡 𝐴𝑖, (C.1) 𝑡,𝑘 𝜎 𝑡 𝑡 𝜎 𝑡 with 𝑟𝑖𝑖 = (𝑝𝑖𝑖) 1−𝜎 = (︀ 𝜎 𝑐𝑖𝑤𝑖 )︀1−𝜎 . For the foreign country we have 𝑟𝑗𝑗 = 𝑡 𝑡 𝜎−1 𝑡 𝑡 (︀ 𝑝𝑗𝑗)︀1−𝜎 = (︀ 𝜎 𝑐𝑗𝑤𝑗)︀1−𝜎 . We shorten expected profits from exporting in Equation 𝑡 𝜎−1 𝑡 (10) to: 𝜃 ˜𝑖 𝑟𝑖𝑗 E[𝜋𝑖𝑗 ] = 𝑘 (︀ 𝑝𝑖𝑗 )︀1−𝜎 𝐴𝑗 = 𝑡,𝑘 𝐴𝑗, (C.2) 𝑡,𝑘 𝜎 𝑡,𝑘 𝑡 𝜎 𝑡 with 𝑟𝑖𝑗 = 𝜃 ˜𝑖 (︀ 𝑝𝑖𝑗 )︀1−𝜎 = 𝜃 ˜𝑖 (︁ 𝜏 𝑝𝑖𝑖 )︁1−𝜎 . For the foreign country, we have 𝑟𝑗𝑖 = 𝑡,𝑘 𝑘 𝑡,𝑘 𝑘 𝜃˜𝑖 𝑡 𝑡,𝑘 𝑘 𝜃 ˜𝑗 (︀ 𝑝𝑗𝑖 )︀1−𝜎 = 𝜃 ˜𝑗 (︁ 𝜏 𝑝𝑗𝑗 )︁1−𝜎 . 𝑘 𝑡,𝑘 𝑘 𝜃˜𝑗 𝑡 𝑘 Free entry First, free entry must hold in both countries such that the expected sum of future profits of an entrant at time 𝑡 is equal to the fixed cost of entering production:34 Normalizing the home wage to 𝑤𝑖 = 1, we get: 𝑡 𝐾 ∑︁ 𝑓 = 𝑎𝑙𝑖𝑣𝑒𝑖𝑗(𝜋𝑖𝑖 +𝜋𝑖𝑗 ) (C.3) 𝐸 𝑠 𝑡+𝑠,𝑠 𝑡+𝑠,𝑠 𝑠=0 𝐾 ∑︁ 𝑤𝑗𝑓 = 𝑎𝑙𝑖𝑣𝑒𝑗𝑖(𝜋𝑗𝑗 +𝜋𝑗𝑖 ) 𝑡 𝐸 𝑠 𝑡+𝑠,𝑠 𝑡+𝑠,𝑠 𝑠=0 where 𝑎𝑙𝑖𝑣𝑒 is the probability that a relationship survives 𝑘 years, as previously.35 𝑘 Now, replacing profits by the expressions in equations and (C.1) and (19), we can 34As in Krugman (1980), we do not assume any fixed cost of exporting, so that any firm that enters also exports. In addition, we assume that if a trade relationship gets resolved, the firm also ceases to sell domestically. The latter assumption is mainly for tractability and could be relaxed. 35For data simplicity, we assume this probability is not time-varying, but it would be straightforward to allow. 55

rewrite to: 𝐾 𝜎𝑓 = ∑︁ 𝑎𝑙𝑖𝑣𝑒𝑖𝑗 (︀ 𝑟𝑖𝑖 𝐴𝑖 +𝑟𝑖𝑗 𝐴𝑗 )︀ (C.4) 𝐸 𝑠 𝑡+𝑠 𝑡+𝑠 𝑡+𝑠,𝑠 𝑡+𝑠 𝑠=0 𝐾 𝑤𝑗𝜎𝑓 = ∑︁ 𝑎𝑙𝑖𝑣𝑒𝑗𝑖 (︀ 𝑟𝑗𝑗 𝐴𝑗 +𝑟𝑗𝑖 𝐴𝑗 )︀ 𝑡 𝐸 𝑠 𝑡+𝑠 𝑡+𝑠 𝑡+𝑠,𝑠 𝑡+𝑠 𝑠=0 Isolating the first term of the sum, combining the two equations, then solving for the home and foreign demand delivers: 𝑟𝑖𝑖(𝜎𝑓 −Π𝑖 )−𝑟𝑖𝑗 (𝑤𝑗𝜎𝑓 −Π𝑗 ) 𝐴𝑖 = 𝑡 𝐸 𝑡,1+ 𝑡,0 𝑡 𝐸 𝑡,1+ , (C.5) 𝑡 𝑟𝑖𝑖𝑟𝑗𝑗 −𝑟𝑖𝑗 𝑟𝑗𝑖 𝑡 𝑡 𝑡,0 𝑡,0 𝑟𝑗𝑗(𝑤𝑗𝜎𝑓 −Π𝑗 )−𝑟𝑗𝑖 (𝜎𝑓 −Π𝑖 ) 𝐴𝑗 = 𝑡 𝑡 𝐸 𝑡,1+ 𝑡,0 𝐸 𝑡,1+ , (C.6) 𝑡 𝑟𝑖𝑖𝑟𝑗𝑗 −𝑟𝑖𝑗 𝑟𝑗𝑖 𝑡 𝑡 𝑡,0 𝑡,0 withΠ𝑖 = ∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑖𝑗 (︀ 𝑟𝑖𝑖𝐴𝑖 +𝑟𝑖𝑗 𝐴𝑗 )︀ andΠ𝑗 = ∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑗𝑖 (︀ 𝑟𝑗𝑗𝐴𝑗 +𝑟𝑗𝑖 𝐴𝑖 )︀ 𝑡,1+ 𝑠=1 𝑠 𝑡 𝑡+𝑠 𝑡+𝑠,𝑠 𝑡+𝑠 1+ 𝑠=1 𝑠 𝑡 𝑡+𝑠 𝑡+𝑠,𝑠 𝑡+𝑠 the sums of expected profits from period 1 onwards. Labor market clearing Second, labor markets in both countries need to clear. Callthemassoffirmsincountry𝑖attime𝑡ofage𝑘 𝑁𝑖 , andtotallaborincountry 𝑡,𝑘 𝑖 𝐿𝑖. Then, 𝐾 ∑︁ 𝐿𝑖 = 𝑁𝑖 𝑓 + 𝑁𝑖 𝑐𝑖((𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏(𝑝𝑖𝑗 )−𝜎𝐴𝑗) (C.7) 𝑡,0 𝐸 𝑡,𝑠 𝑡 𝑡 𝑡,𝑠 𝑡 𝑠=0 𝐾 ∑︁ 𝐿𝑗 = 𝑁𝑗 𝑓 + 𝑁𝑗 𝑐𝑗((𝑝𝑗𝑗)−𝜎𝐴𝑗 +𝜏(𝑝𝑗𝑖 )−𝜎𝐴𝑖) 𝑡,0 𝐸 𝑡,𝑠 𝑡 𝑡 𝑡,𝑠 𝑡 𝑠=0 Solving for entry in period 𝑡 by isolating the firm term of the sum delivers: 𝐿𝑖 −𝐿𝑖 𝑁𝑖 = 𝑃,𝑡,1+ , (C.8) 𝑡,0 𝑓 +𝑐𝑖 (︁ (𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏 (︀ 𝑝𝑖𝑗 )︀−𝜎 𝐴𝑗 )︁ 𝐸 𝑡 𝑡 𝑡,0 𝑡 𝐿𝑗 −𝐿𝑗 𝑁𝑗 = 𝑃,𝑡,1+ , (C.9) 𝑡,0 𝑓 +𝑐𝑗 (︁ (𝑝𝑗𝑗)−𝜎𝐴𝑗 +𝜏 (︀ 𝑝𝑗𝑖 )︀−𝜎 𝐴𝑖 )︁ 𝐸 𝑡 𝑡 𝑡,0 𝑡 (︁ )︁ with 𝐿𝑖 = ∑︀𝐾 𝑁𝑖 𝑐𝑖 (𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏 (︀ 𝑝𝑖𝑗 )︀−𝜎 𝐴𝑗 and 𝑃,𝑡,1+ 𝑠=1 𝑡,𝑠 𝑡 𝑡 𝑡,𝑠 𝑡 (︁ )︁ 𝐿𝑗 = ∑︀𝐾 𝑁𝑗 𝑐𝑗 (𝑝𝑗𝑗)−𝜎𝐴𝑗 +𝜏 (︀ 𝑝𝑗𝑖 )︀−𝜎 𝐴𝑖 the production labor used by all 𝑃,𝑡,1+ 𝑠=1 𝑡,𝑠 𝑡 𝑡 𝑡,𝑠 𝑡 56

firms that are not new in countries 𝑖 and 𝑗, respectively. Balanced trade Finally, balanced trade requires that income equals total expenditure (domestic consumption plus imports) at time 𝑡. 𝐾 ∑︁ 𝐿𝑖 = 𝐴𝑖 (𝑁𝑖 𝑟𝑖𝑖 +𝑁𝑗 𝑟𝑗𝑖) (C.10) 𝑡 𝑡,𝑠 𝑡 𝑡,𝑠 𝑡,𝑠 𝑠=0 𝐾 ∑︁ 𝑤𝑗𝐿𝑗 = 𝐴𝑗 (𝑁𝑗 𝑟𝑗𝑗 +𝑁𝑖 𝑟𝑖𝑗 ) (C.11) 𝑡 𝑡 𝑡,𝑠 𝑡 𝑡,𝑠 𝑡,𝑠 𝑠=0 C.2 Solving For the Steady State We solve the model numerically and then look at shocks to the steady state. In steady state, 𝐴𝑖, 𝐴𝑗, 𝑤𝑗, 𝑟𝑖𝑖, and 𝑟𝑖𝑗 = 𝑟𝑖𝑗 are constant, so the free entry condition 𝑡,𝑠 𝑠 simplifies to: 𝐾 ∑︁ (︀ )︀ 𝜎𝑓 = 𝑎𝑙𝑖𝑣𝑒𝑖𝑗 𝑟𝑖𝑖𝐴𝑖 +𝑟𝑖𝑗𝐴𝑗 (C.12) 𝐸 𝑠 𝑠 𝑠=0 𝐾 ∑︁ (︀ )︀ 𝑤𝑗𝜎𝑓 = 𝑎𝑙𝑖𝑣𝑒𝑗𝑖 𝑟𝑗𝑗𝐴𝑗 +𝑟𝑗𝑖𝐴𝑖 (C.13) 𝐸 𝑠 𝑠 𝑠=0 And the demand solutions become: 𝜎𝑓 −𝐴𝑗∑︀∞ 𝑎𝑙𝑖𝑣𝑒𝑖𝑗𝑟𝑖𝑗 𝐴𝑖 = 𝐸 𝑠=0 𝑠 𝑠 , (C.14) 𝑟𝑖𝑖𝑀𝑖 𝑆𝑆 𝑤𝑗𝜎𝑓 −𝐴𝑖∑︀∞ 𝑎𝑙𝑖𝑣𝑒𝑗𝑖𝑟𝑗𝑖 𝐴𝑗 = 𝐸 𝑠=0 𝑠 𝑠 , (C.15) 𝑟𝑗𝑗𝑀𝑗 𝑆𝑆 with 𝑀𝑖 and 𝑀𝑗 the steady-state mass of firms in the home and destination 𝑆𝑆 𝑆𝑆 country, respectively. We call 𝑀𝑖 the steady-state mass of firms in country 𝑖. Combining the two equations and solving for the actual demand levels yields: (︁ )︁ 𝜎𝑓 𝑟𝑗𝑗𝑀𝑗 −𝑤𝑗∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑖𝑗𝑟𝑖𝑗 𝐸 𝑠=0 𝑠 𝑠 𝐴𝑖 = (C.16) 𝑟𝑖𝑖𝑀𝑖𝑟𝑗𝑗𝑀𝑗 − ∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑖𝑗𝑟𝑖𝑗∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑗𝑖𝑟𝑗𝑖 𝑠=0 𝑠 𝑠 𝑠=0 𝑠 𝑠 (︁ )︁ 𝜎𝑓 𝑤𝑗𝑟𝑖𝑖𝑀𝑖 − ∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑗𝑖𝑟𝑗𝑖 𝐸 𝑠=0 𝑠 𝑠 𝐴𝑗 = (C.17) 𝑟𝑖𝑖𝑀𝑖𝑟𝑗𝑗𝑀𝑗 − ∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑖𝑗𝑟𝑖𝑗∑︀𝐾 𝑎𝑙𝑖𝑣𝑒𝑗𝑖𝑟𝑗𝑖 𝑠=0 𝑠 𝑠 𝑠=0 𝑠 𝑠 57

Recalling from Section 4.3 that 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒 is the share of relationships of age 𝑘 out 𝑘 of all relationships, labor clearing simplifies to: (︃ )︃ 𝐾 𝐿𝑖 = 𝑀𝑖 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑖𝑓 + ∑︁ 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑖𝑐𝑖 (︁ (︀ 𝑝𝑖𝑖 )︀−𝜎 𝐴𝑖 +𝜏(𝑝𝑖𝑗)−𝜎𝐴𝑗 )︁ 0 𝐸 𝑠 𝑠 𝑠=0 (︃ )︃ 𝐾 𝐿𝑗 = 𝑀𝑗 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑗𝑓 + ∑︁ 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑗𝑐𝑗 (︁ (︀ 𝑝𝑗𝑗 )︀−𝜎 𝐴𝑗 +𝜏(𝑝𝑗𝑖)−𝜎𝐴𝑖 )︁ 0 𝐸 𝑠 𝑠 𝑠=0 Solving for the mass of firms delivers: 𝐿𝑖 𝑀𝑖 = (C.18) 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑖𝑓 + ∑︀𝐾 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑖𝑐𝑖 (︀ (𝑝𝑖𝑖)−𝜎𝐴𝑖 +𝜏(𝑝𝑖𝑗)−𝜎𝐴𝑗 )︀ 0 𝐸 𝑠=0 𝑠 𝑠 𝐿𝑗 𝑀𝑗 = (C.19) 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑗𝑓 + ∑︀𝐾 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑗𝑐𝑗 (︀ (𝑝𝑗𝑗)−𝜎𝐴𝑗 +𝜏(𝑝𝑗𝑖)−𝜎𝐴𝑖 )︀ 0 𝐸 𝑠=0 𝑠 𝑠 And the balanced budget conditions reduce to: (︃ )︃ 𝐾 ∑︁ 𝐿𝑖 = 𝐴𝑖 𝑟𝑖𝑖𝑀𝑖 +𝑀𝑗 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑗𝑟𝑗𝑖 (C.20) 𝑠 𝑠 𝑠=0 (︃ )︃ 𝐾 ∑︁ 𝐿𝑗 = 𝐴𝑗 𝑟𝑗𝑗𝑀𝑗 +𝑀𝑖 𝑎𝑔𝑒𝑠ℎ𝑎𝑟𝑒𝑖𝑟𝑖𝑗 (C.21) 𝑠 𝑠 𝑠=0 Wecancombinethepreviousexpressionstoobtaintwobalancedbudgetconditions with one unknown 𝑤𝑗. Either would be sufficient to solve the model. However, for the numerical solution, it turns out to be helpful to use both equations in the minimization problem. D Relaxing Cash-In-Advance Payments In this appendix, we demonstrate how equations in the model can be relaxed so that cash-in-advance is not the only way to allow payment. To do so, define 𝛼 as the percent of the bill to be paid in advance. 58

D.1 Firm Optimization Expected profits Expected exporter profits when buying from a supplier that an importer has traded with for 𝑘 periods and an option to pay later are E[𝜋𝑖,𝑗] = 𝜃 ˜𝑖 [︀ 𝑝𝑖𝑗 𝑞𝑖𝑗 −(1−𝛼)𝑇𝑖𝑗]︀ −𝛼𝑇𝑖𝑗 −𝜏𝑤𝑖𝑐𝑖𝑞𝑖𝑗 , 𝑡,𝑘 𝑘 𝑡,𝑘 𝑡,𝑘 𝑘 𝑘 𝑡 𝑡,𝑘 where now 𝑇𝑖𝑗 is the agreed payment from the importer to the exporter. The buyer 𝑘 can assemble the final goods and sell them for revenue 𝑝𝑖𝑗 𝑞𝑖𝑗 if the intermediate 𝑡,𝑘 𝑡,𝑘 inputs are usable. In that case, the buyer will also pay the remaining outstanding bill of (1 − 𝛼)𝑇𝑖𝑗. In any case, the importer will incur the prepayment to the 𝑘 importer, 𝛼𝑇 , and the prepayment to its own workers, 𝑤𝑖𝑐𝑖𝑞. 𝑘 2 We assume that there are no financing costs and that suppliers do not discount the future, so advance payments are not valued more than post-delivery payments.36 The participation constraint for the supplier in 𝑖 to produce according to the specification of its buyer is given by 𝛼𝑇 + (1 − 𝛼)𝑇 ≥ 𝑐𝑖𝑞𝑖𝑗 .37 As 𝑘 𝑘 1 𝑡,𝑘 the buyer has all bargaining power, this constraint binds in equilibrium, so that 𝑇 = 𝑇 = 𝑐𝑖𝑞𝑖𝑗 . Plugging this back into expected profits delivers 𝑘 1 𝑡,𝑘 E[𝜋 ] = 𝜃 ˜ [︀ 𝑝𝑖𝑗 𝑞𝑖𝑗 −(1−𝛼)𝑐𝑖𝑞𝑖𝑗 ]︀ −𝛼𝑐𝑖𝑞𝑖𝑗 −𝜏𝑤𝑖𝑐𝑖𝑞𝑖𝑗 . (D.1) 𝑘 𝑘 𝑡,𝑘 𝑡,𝑘 1 𝑡,𝑘 1 𝑡,𝑘 𝑡 2 𝑡,𝑘 CES Demand Continue to assume that demand for the final good has the standard CES form: 𝑞𝑖𝑗 = 𝐴𝑗(︀ 𝑝𝑖𝑗 )︀−𝜎 = 𝑃𝜎𝑄 (︀ 𝑝𝑖𝑗 )︀−𝜎 , with elasticity of substitution 𝑡,𝑘 𝑡 𝑡,𝑘 𝑡 𝑡 𝑡,𝑘 𝜎 > 1. Expected importer profits in a relationship that has lasted 𝑘 periods are given by Equation (D.1), where revenue at any time 𝑡 is 𝑝𝑖𝑗 𝑞𝑖𝑗 . Profit maximiza- 𝑡,𝑘 𝑡,𝑘 tion implies the optimal price: [︃ ]︃ 𝜎𝑤𝑖𝜏 𝛼𝑐𝑖 +𝑐𝑖 𝑝𝑖𝑗 = 𝑡 (1−𝛼)𝑐𝑖 + 1 2 . (D.2) 𝑡,𝑘 𝜎 −1 1 𝜃 ˜𝑖 𝑘 This expression is quite intuitive. The importer only pays (1 − 𝛼)𝑐𝑖 when the 1 delivered inputs are of high quality, so these costs affect the optimal price-setting in the standard way. 𝛼𝑐𝑖 and 𝑐𝑖 are the costs of prepayment to the exporter 1 2 36It would be easy to relax either of these assumptions, but it would not add any value to the analysis. See Schmidt-Eisenlohr (2013) for a model of payment choices with positive interest rates. 37Weassumethatthebuyeralwaysoffersacontractthatisacceptabletopatientandimpatient sellers, sothe patient-buyer participation constraintis therelevantone. In principle, there could be a separating case where the buyers offer a low total payment, 𝑇 , and only attracts the 𝐾 impatient suppliers. However, as shown in Schmidt-Eisenlohr (2013), the pooling dominates under very weak conditions. 59

and the local workers, respectively, that are incurred independently of the success of the transaction. Optimal price setting allocates these costs evenly across all successful transactions, so the lower 𝜃 ˜𝑖 is, the more these costs increase the price 𝑘 demanded from final consumers. Importers do standard markup pricing over the effective costs per unit of output, (1−𝛼)𝑐𝑖 + 𝛼𝑐𝑖 1 +𝑐𝑖 2. This implies that a successful 1 𝜃˜ 𝑘 transaction generates revenues of (︂ 𝜎𝜏𝑤𝑖)︂1−𝜎 [︃ 𝛼𝑐𝑖 +𝑐𝑖 ]︃1−𝜎 𝑅𝑖𝑗 = 𝑝𝑖𝑗 𝑞𝑖𝑗 = 𝐴𝑗 𝑡 (1−𝛼)𝑐𝑖 + 1 2 , (D.3) 𝑡,𝑘 𝑡,𝑘 𝑡,𝑘 𝑡 𝜎 −1 1 𝜃 ˜𝑖 𝑘 As in the main text, we can show the following proposition that matches our empirical finding: Proposition 2 The amount being traded, 𝑅𝑖𝑗 , within a relationship increases with 𝑡,𝑘 the relationship’s age, 𝑘. Proof. 𝜕 𝑅𝑖𝑗 = 𝐴𝑗 (︂ 𝜎𝜏𝑤 𝑡 𝑖)︂1−𝜎 (1−𝜎) [︃ (1−𝛼)𝑐𝑖 + 𝛼𝑐𝑖 1 +𝑐𝑖 2 ]︃−𝜎 (︀ 𝛼𝑐𝑖 +𝑐𝑖 )︀ (−1) (︁ 𝜃 ˜𝑖 )︁−2 𝜕 𝜃 ˜𝑖 > 0, 𝜕𝑘 𝑡,𝑘 𝑡 𝜎 −1 1 𝜃 ˜𝑖 1 2 𝑘 𝜕𝑘 𝑘 𝑘 (︂ )︂ as 𝜃 ˜𝑖 = 𝜃̂︀ (1−𝜆)+𝜆 is increasing in 𝑘 for 𝜆 < 1. 𝑘 𝜃̂︀+(1−𝜃̂︀ )𝜆𝑘 Trade shares by age Although the expression for the count distribution does not change, because exporter revenues now also depend on 𝛼, the expression for the value distribution is altered. 𝐾 𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 = (︀ 𝑅𝑖𝑗 𝑎𝑙𝑖𝑣𝑒 )︀ / ∑︁(︀ 𝑅𝑖𝑗 𝑎𝑙𝑖𝑣𝑒 )︀ . (D.4) 𝑘 𝑡,𝑘 𝑘 𝑡,𝑠 𝑠 𝑠=0 Plugging in the expression for revenues (D.3), we obtain [︂ (︂ 𝛼𝑐 +𝑐 )︂]︂1−𝜎 1 2 (1−𝛼)𝑐 + 𝑎𝑙𝑖𝑣𝑒 1 ˜ 𝑘 𝜃 𝑡𝑟𝑎𝑑𝑒𝑠ℎ𝑎𝑟𝑒 = 𝑘 . (D.5) 𝑘 ∑︁ 𝐾 [︂ (︂ 𝛼𝑐 +𝑐 )︂]︂1−𝜎 1 2 (1−𝛼)𝑐 + 𝑎𝑙𝑖𝑣𝑒 1 ˜ 𝑠 𝜃 𝑠=0 𝑠 60

Value of a relationship Our calculations for the value of a relationship are also altered as a result of revenues depending on two separate costs. Consider the expected profit stream for a supplier in 𝑖 beginning a wholly new relationship with a firm in 𝑗. 𝐾 ∑︁ [︀ ]︀ 𝑉 = E[Π ] = 𝑎𝑙𝑖𝑣𝑒 E 𝜋𝑖𝑗 (D.6) 0 0 𝑠 𝑠 𝑠=0 = 1 (︀ 𝜏𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑗 ∑︁ 𝐾 (1−𝛿)𝑠 (︁ 𝜆𝑠(1−𝜃 ^ )+𝜃 ^ )︁ 𝜃 ˜𝑖 [︂ (1−𝛼)𝑐𝑖 + 𝛼𝑐𝑖 1 +𝑐𝑖 2 ]︂1−𝜎 . 𝜎 𝑠 1 𝜃 ˜𝑖 𝑠=0 𝑠 Here, an importer is matched with a random supplier at 𝑠 = 0 that delivers a ^ quality input with probability 𝜃. The importer then slowly learns the type of the supplier over time. The age-specific version of this measure is 𝐾−𝑘(︂ )︂ 𝑉 = E[Π ] = ∑︁ 𝑎𝑙𝑖𝑣𝑒 𝑘+𝑠 E [︀ 𝜋𝑖𝑗 ]︀ (D.7) 𝑘 𝑘 𝑎𝑙𝑖𝑣𝑒 𝑘+𝑠 𝑘 𝑠=0 (︁ )︁ = 1 (︀ 𝜏𝑝𝑖𝑖 )︀1−𝜎 𝐴𝑗 𝐾 ∑︁ −𝑘 (1−𝛿)𝑠 𝜆𝑘+𝑠(1−𝜃 ^ )+𝜃 ^ 𝜃 ˜𝑖 [︃ (1−𝛼)𝑐𝑖 + 𝛼𝑐𝑖 1 +𝑐𝑖 2 ]︃1−𝜎 . 𝜎 (︁ 𝜆𝑠(1−𝜃 ^ )+𝜃 ^ )︁ 𝑘+𝑠 1 𝜃 ˜𝑖 𝑠=0 𝑘+𝑠 (D.8) 61

Cite this document
APA
Ryan Monarch and Tim Schmidt-Eisenlohr (2017). Learning and the Value of Trade Relationships (IFDP 2017-1218). Board of Governors of the Federal Reserve System, International Finance Discussion Papers. https://whenthefedspeaks.com/doc/ifdp_2017-1218
BibTeX
@techreport{wtfs_ifdp_2017_1218,
  author = {Ryan Monarch and Tim Schmidt-Eisenlohr},
  title = {Learning and the Value of Trade Relationships},
  type = {International Finance Discussion Papers},
  number = {2017-1218},
  institution = {Board of Governors of the Federal Reserve System},
  year = {2017},
  url = {https://whenthefedspeaks.com/doc/ifdp_2017-1218},
  abstract = {This paper quantifies the value of importer-exporter relationships. We show that almost 80 percent of U.S. imports take place in pre-existing relationships, with sizable heterogeneity across countries, and show that traded quantities and survival increase as relationships age. We develop a two-country general equilibrium trade model with learning that is consistent with these facts. A model-based measure of relationship value explains survival during the 2008-09 crisis. Knowledge accumulated within long-term relationships is quantitatively important: wiping out all memory from previous interactions, on average, reduces consumption by 5 percent on impact and by 48 percent over the transition back to steady state.},
}