#!/usr/bin/env python # coding: utf-8 # # The Specific Factors or Ricardo-Viner Model # ### Background # # The SF model is a workhorse model in trade, growth, political economy and development. We will see variants of the model used to describe rural to urban migration, the Lewis model and other dual sector models of sectoral misallocation, models such as the Harris-Todaro model that explain migration and the urban informal sector. The specific factors model predicts that, in the absence of political redistribution mechanisms, specific factors in declining sectors will organize strong opposition to policies that might otherwise raise growth. The initial distribution of factor endowments may therefore make a big difference in terms of what types of political coalitions mobilize for and against different policies. This is the basic driving force in Moav-Galor's (2006) growth model on why some regions made public investments in human capital which sped the transition from agriculture to manufacturing and enhanced growth, whereas similar policies were delayed in other regions where political/economic resistance was stronger, for instance where landlords had stronger voice in political decisions. # # These are just a few of the applications. The model is relatively easy to analyze -- it can be described compactly in terms of diagrams and yet is very rich in predictions. # The Specific Factors (SF) or Ricardo-Viner model is a close relative of the Hecksher-Ohlin-Samuelson (HOS) neoclassical trade model. The 2x2 HOS model assumes production in each of two sectors takes place by firms using constant returns to scale technologies with capital and labor as inputs and that both capital and labor are mobile across sectors. In the SF model only labor is inter-sectorally mobile and the fixed amounts of capital become 'specific' to the sector they are trapped within. # # In effect the SF model therefore consists of three factors of production: mobile labor and two types of capital, one specific to each sector. Let's label the two sectors are Agriculture and Manufacturing. In agriculture competitive firms bid to hire land and labor. In manufacturing competitive firms bid to hire capital and labor. Each factor of production will be competitively priced in equilibrium but only labor is priced on a national labor market. # # The SF model is often described as a short-run version of the HOS model. For example suppose we start with a HOS model equilibrium where labor wage and rental rate of capital have equalized across sectors (which also implies marginal products are equalized across sectors -- no productivity differences across sectors). Now suppose that the relative price of manufacturing products suddenly rises (due to a change of world price, or government trade protection or other policies that favor manufacturing). The higher relative product price should lead firms in the booming manufacturing sector to demand both more capital and labor. Correspondingly, demand for land and labor decline in the agricultural sector. In the short run however only labor can be move from agriculture to manufacturing. Agricultural workers can become factory workers but agricultural capital (say 'land' or 'tractors') cannot be easily converted to manufacturing capital (say 'weaving machines'). So labor moves from manufacturing to the agriculture, lowering the capital labor ratio in manufacturing and raising the land to labor ratio in agriculture. The model thus predicts a surge in the real return to capital in the expanding sector and a real decline in the real return to capital in agriculture (land). Hence the measured average and marginal product of capital will now diverge across sectors. What happens to the real wage is more ambiguous: it rises measured in terms of purchasing power over agricultural goods but falls in terms of purchasing power over manufacturing goods. Whether workers are better off or worse off following this price/policy change therefore comes down to how important agricultural and manufacturing goods are in their consumption basket. This result is labeled the neo-classical ambiguity. # # Over the longer-term weaving machines cannot be transformed into tractors but over time new capital accumulation will build tractors and old weaving machines can be sold overseas or as scrap metal. Hence over time more capital will arrive into the manufacturing sector and leave the agricultural sector, whcih in turn will lead to even more movement of labor to manufacturing. If this process continues capital has, in effect become mobile over time, and we end up getting closer to the predictions of the HOS model. # ### Technology and Endowments # There are two sectors Agriculture and Manufacturing. Production in each sector takes place with a linear homogenous (constant returns to scale) production functions. Agricultural production requires land which is non-mobile or specific to the sector and mobile labor. # # $$Q_a = F(\bar T, L_a)$$ # # Manufacturing production requires specific capital $K$ and mobile labor. # # $$Q_m = G(\bar K, L_m)$$ # # The quantity of land in the agricultural sector and the quantity of capital in the manufacturing sector are in fixed supply during the period of analysis. That means that firms within the agricultural (manufacturing) sector may compete with one another for the limited supply of the factor, but no new land (capital) can be supplied in the short-run period of analysis. This of course means that the price of the factor will rise (or fall) quickly in response to swings in factor demand compared to the wage of labor whose supply is more elastic. # # The market for mobile labor is competitive and the market clears at a wage where the sum of labor demands from each sector equals total labor supply. While the total labor supply in the economy is inelastic, the supply of labor to each sector will be elastic, since a rise in the wage in one sector will attract workers from the other sector. # # $$L_a + L_m = \bar{L}$$ # # Notice that we can invert the two production function to get minimum labor requirement functions $L_a(Q_a)$ and $L_m(Q_m)$ which tell us the minimum amount of labor $L_i$ required in sector $i$ to produce quantity $Q_i$. If we take these expressions and substitute them into the labor resource constraint we get an expression for the **production possibility frontier (PPF)** which summarizes the tradeoffs between sectors. # ### Assumptions and parameters for visualizations # # Let's get concrete and assume each sector employs a CRS Cobb-Douglas production function: # # $$F(\bar T, L_a)=\bar T^{1-\alpha} \cdot L_a^\alpha$$ # # $$G(\bar K, L_m)=\bar K^{1-\beta} \cdot L_m^\beta$$ # If $\alpha = \beta = \frac{1}{2}$ and $\bar T= \bar K = 100$. Then # # $$Q_a = \sqrt{\bar T} \sqrt{L_a} $$ # # $$Q_m = \sqrt{\bar K} \sqrt{L_m}$$ # Substituting these into the labor resource constraint yields: # # $$\frac{Q_a^2}{\bar T}+\frac{Q_m^2}{\bar K} = \bar L$$ # or # # $$Q_m = \sqrt{\bar K \bar L - \frac{\bar K Q_a^2}{\bar T} } $$ # # If we make the further assumption that $\bar K = \bar L = 100$ and $\bar L = 400$ then the PPF would look like this: # **NOTE:** If you are running this as a live jupyter notebook please first go to the [code section](#codesection) below and execute all the code cells there. Then return and run the code cells that follow sequentially. # In[22]: ppf(Tbar=100, Kbar=100, Lbar=400) # ## Labor market equilibrium # Profit maximizing firms in each sector will hire labor up to the point where the marginal value product of labor (MVPL) equals the market wage. Since labor is mobile across sectors in equilibrium workers must be paid the same nominal wage $w$ in either sector: # # $$ P_a \cdot MPL_a(\bar T, L_a) = w = P_m \cdot MPL_m(\bar K, L_m) $$ # It will be useful to express the wage in real terms. Divide each expression above by $P_m$ to get # # $$ p \cdot MPL_a = \frac{w}{p_m} = MPL_m $$ # # $$\text{ where } p = \frac{P_a}{P_m}$$ # # In the plots below we will place the real wage measured in terms of manufactured goods on the vertical axis of the labor demand and supply diagrams. # ### Labor allocation across sectors # # In a competitive market firms take the market prices of goods $p$ and wages $w$ as given. Since in equilibrium the labor market clears we can write $L_m = \bar L - L_a$ and substitute into the equilibrium condition above to get: # # $$p \cdot MPL_a(L_A) = w = MPL_m(\bar L-L_A) $$ # # The left hand side $p \cdot MPL_a(L_A)=w$ can be solved to give us demand for labor in the agricultural sector as a function of the wage $L_a(w/p)$ and is plotted below. The right hand side $w = MPL_m(\bar L-L_a)$ gives us demand for labor in the manufacturing sector $L_m$ as a function of the real wage but this in turn also gives us the supply of labor to the agricultural sector $L_a^s = \bar L - L_m(w/p)$ since firms in the agricultural sector can only attract workers to their sector by paying those workers just a bit above what they would be paid for the jobs they have to leave in the manufacturing sector. # # The diagram below can therefore be interpreted as showing labor demand and supply in the agricultural sector and their intersection gives us the equilibrium real wage (measured on the vertical in terms of purchasing power over manufactured goods). # In[23]: sfmplot(p=1) # # We can solve for the equilibrium labor allocation $L_a$ as a function of the relative price $p$, and this in turn also gives us the equilibrium real wage. When $\alpha=\beta = \frac{1}{2}$ the equilibrium condition $p \cdot MPL_a(L_a) = MPL_m(\bar L-L_a)$ becomes: # # $$p \cdot \frac{\sqrt{\bar T}}{\sqrt{L_a}} = \frac{\sqrt{\bar K}}{\sqrt{\bar L - L_a}}$$ # # which we solve to find: # # $$L_a^e = \frac{p^2 \bar T \bar L}{\bar K - p^2 \bar T}$$ # # For cases where $\alpha \ne \beta$ we find the optimal $L_a$ that solves this equilibrium condition numerically. # ## Autarky prices # # Thus far we have a pretty complete model of how production allocations and real wages would be determined in a small open economy where producers face world price ratio $p$. we explore comparative statics in this economy in more detail below. # # If however the economy is inititally in autarky or closed to the world then we must also consider the role of domestic consumer preferences in the determination of domestic equilibrium product prices. # # With Cobb-Douglas preferences $u(x,y) = \gamma \ln(x) + (1-\gamma) \ln(y)$ consumers demands can be written as a function of relative price $p=\frac{P_a}{P_m}$. Setting $P_m=1$ to make manufacturing the numeraire good, this can be written: # # $$\begin{align} # C_a(p) =& \gamma \cdot \frac{I(p)}{p} \\ # C_m(p) =& (1-\gamma) \cdot I(p) # \end{align}$$ # # Income $I$ in the expressions is given by the value of national production or GDP at these prices. Measured in manufactured goods: # # $$I(p) = p \cdot F(\bar T, L_a(p)) + G(\bar K, \bar L - L_a(p)$$ # # By Walras' law we only need to find the relative price at which output equals demand in one of the two product markets so in the the code below we solve for equilibrium domestic prices from the condition $Q_a(p)=C_a(p)$. # For parameters $\alpha=\beta=\gamma = \frac{1}{2}$, $\bar T = \bar K =100$ and $\bar L=400$ the domestic equilibrium prices are unitary: # In[24]: p_autarky(Lbar, Tbar, Kbar) # And this in turn leads to an equilibrium autarky allocation with $L_a = L_m = 200$ and a real wage $\frac{w}{p}=0.35$. # In[25]: eqn(p_autarky()) # The plot below shows the autarky production and consumption point (marked by an 'X') as well as the new production point (marked by a circle) and consumption point (marked by a square) if the country opened to trade with a world relative price $p=\frac{7}{4}$. # # Opening to trade leads the country to expand agricultural production by re-allocating labor from manufacturing to agriculture. We confirm the expected **neoclassical ambiguity** result which is that an increase in the relative price of agricultural goods will lead to an *increase* in the real wage measured in terms of manufactured goods $\frac{w}{p_m}$ ($=w$ since we have $P_m=1$) but a *decrease* in real wage measured in terms of agricultural goods or $\frac{w}{P_a} = \frac{w}{p}$ in our notation (since $\frac{w}{P_a} = \frac{w}{p_m} \cdot \frac{P_m}{P_a}$). # # Diagrammatically # # $$p \uparrow \rightarrow \frac{w}{p_m} \uparrow , \frac{w}{p_a} \downarrow$$ # In[26]: pw = 7/4 Lao, wo = eqn(p=pw) Lao, wo, wo/pw # In[27]: sfmtrade(p=7/4) # ## Effects of a price change on the income distribution # More explanations to be placed here... # In[28]: sfmplot2(2) # # ## Code Section # # Make sure you run the cells below FIRST. Then run the cells above # ## Python simulation and plots # In[1]: import numpy as np from scipy.optimize import fsolve np.seterr(divide='ignore', invalid='ignore') import matplotlib.pyplot as plt from ipywidgets import interact, fixed import seaborn get_ipython().run_line_magic('matplotlib', 'inline') # In[2]: plt.style.use('seaborn-colorblind') plt.rcParams["figure.figsize"] = [7,7] plt.rcParams["axes.spines.right"] = True plt.rcParams["axes.spines.top"] = False plt.rcParams["font.size"] = 18 plt.rcParams['figure.figsize'] = (10, 6) plt.rcParams['axes.grid']=True # In[3]: Tbar = 100 # Fixed specific land in ag. Kbar = 100 # Fixed specific capital in manuf Lbar = 400 # Total number of mobile workers LbarMax = 400 # Lbar will be on slider, max value. p = 1.00 # initial rel price of ag goods, p = Pa/Pm alpha, beta = 0.5, 0.5 # labor share in ag, manuf # For the plots we want to plot over $L_a$ and $L_m = \bar L -l_a$: # In[4]: La = np.linspace(1, LbarMax-1,LbarMax) Lm = Lbar - La # The production functions in each sector: # In[5]: def F(La, Tbar = Tbar): return (Tbar**(1-alpha) * La**alpha) def G(Lm, Kbar =Kbar): return (Kbar**(1-beta) * Lm**beta) # In[6]: def MPLa(La): return alpha*Tbar**(1-alpha) * La**(alpha-1) def MPLm(Lm): return beta*Kbar**(1-beta) * Lm**(beta-1) def MPT(La, Tbar=Tbar): return (1-alpha)*Tbar**(-alpha) * La**alpha def MPK(Lm, Kbar=Kbar): return (1-beta)*Kbar**(-beta) * Lm**beta # We have enough to plot a production possibility Frontier (and how it varies with factor supplies): # In[7]: def ppf(Tbar=Tbar, Kbar=Kbar, Lbar=Lbar): Qa = F(La, Tbar) * (La1: plt.title(r'$\frac{P_a}{P_m} \uparrow \rightarrow \frac{w}{P_m} \uparrow, \frac{w}{P_a} \downarrow $' ); elif p<1: plt.title(r'$\frac{P_a}{P_m} \downarrow \rightarrow \frac{w}{P_m} \downarrow, \frac{w}{P_a} \uparrow $' ); plt.show(); # In[19]: sfmplot2(2) # In[20]: interact(sfmplot2, p=(0.1, 2,0.1)); # ## Before and after plots # The trick here is to define a new plotting function that first plots a static plot and then allows an interaction. # In[21]: interact(sfmplot2, p=(0,2,0.2), Lbar=fixed(400), show=fixed(True))