# The CRS CES solver function
def ffi_ces_crs_solver(ar_price, ar_share,
fl_elasticity,
fl_Q, fl_A):
# Price Ratio: divide each price by every other price
# PRICES x trans(1/PRICE)
# SHARES x trans(1/SHARES)
# fl_elasticity = 0.5
# fl_Q = 1
# fl_A = 1
# np.random.seed(8888)
# ar_price = np.random.uniform(size=3)
# # ar_price = np.array([1,1,1])
# # ar_price = np.array([0.6965, 0.2861, 0.2269])
# ar_share = np.random.uniform(size=3)
# ar_share = np.array([1,1,1])/3
# ar_share = np.array([0.3255, 0.4247, 0.2498])
ar_share = ar_share/sum(ar_share)
# Each column divides by a different number
# [a;b;c] x [1/a, 1/b, 1/c] : (3 by 1) x (1 by 3)
mt_rela_price = np.outer(ar_price, np.reciprocal(ar_price))
np.reciprocal(mt_rela_price)
mt_rela_share = np.outer(ar_share, np.reciprocal(ar_share))
# (p_j/p_i) x (alpha_i/alpha_j)
mt_rela_prcshr = np.multiply(mt_rela_price, np.reciprocal(mt_rela_share))
mt_rela_prcshr_rho = mt_rela_prcshr**(fl_elasticity/(1-fl_elasticity))
# alpha_i x [(p_j/p_i) x (alpha_i/alpha_j)]^(rho/(1-rho))
# 1/p_i are columns
# (N by N) x (N by 1)
ar_sum = np.matmul(mt_rela_prcshr_rho, ar_share)
ar_sum_rho = ar_sum**(-1/fl_elasticity)
# rescale
ar_opti_costmin_x = ar_sum_rho * fl_Q/fl_A
ar_opti_costmin_x
# weighted average of prices
fl_mc_aggprice = (np.dot(ar_sum_rho, ar_price)/fl_A)
fl_mc_aggprice
return ar_opti_costmin_x, fl_mc_aggprice
# Test function
fl_elasticity = 0.5
fl_Q = 1
fl_A = 1
# Test 1 fixed inputs
ar_price = np.array([0.6965, 0.2861, 0.2269])
ar_share = np.array([0.3255, 0.4247, 0.2498])
ffi_ces_crs_solver(ar_price, ar_share, fl_elasticity, fl_Q, fl_A)
# Test 2 common price
ar_price_common = np.array([1, 1, 1])
ffi_ces_crs_solver(ar_price_common, ar_share, fl_elasticity, fl_Q, fl_A)
# Test 3 common share
ar_share_common = np.array([1, 1, 1])/3
ffi_ces_crs_solver(ar_price, ar_share_common, fl_elasticity, fl_Q, fl_A)
# Test 4 fixed price and shares
np.random.seed(8888)
ar_price_rand = np.random.uniform(size=3)
ar_share_rand = np.random.uniform(size=3)
ffi_ces_crs_solver(ar_price_rand, ar_share_rand, fl_elasticity, fl_Q, fl_A)
# relative price function
def ffi_ces_rela_opti(ar_inputs_x, ar_share,
fl_elasticity, it_idx_base=0):
# relative prices, with it_index_price_1 price normalized to 1.
ar_rela_prices = np.multiply((ar_share * 1/ar_share[it_idx_base]),
(ar_inputs_x * 1/ar_inputs_x[it_idx_base])**(fl_elasticity - 1))
return(ar_rela_prices)
# Test
# Input optimal quantities
fl_elasticity = 0.5
fl_Q = 1
fl_A = 1
ar_price = np.array([0.6965, 0.2861, 0.2269])
ar_share = np.array([0.3255, 0.4247, 0.2498])
ar_opti_costmin_x, fl_mc_aggprice = ffi_ces_crs_solver(ar_price, ar_share,
fl_elasticity,
fl_Q, fl_A)
# Solve for relative prices given demand optimality
it_index_price_1 = 0
ar_rela_prices = ffi_ces_rela_opti(ar_opti_costmin_x, ar_share, fl_elasticity,
it_idx_base=it_index_price_1)
ar_price/ar_price[it_index_price_1]3 CES Production
The CES production function, Cobb-Douglas and Leontief limits, and nested CES.
3.1 Constant Elasticity of Substitution production function
3.1.1 The CES
Let \(x\), \(y\), and \(z\) be three inputs. Let \(A\) be aggregate productivity, \(\rho\) be the elasticity of substitution parameter across the inputs, and \(\alpha_x\), \(\alpha_y\), and \(\alpha_z=1-\alpha_x-\alpha_y\) and \(\alpha_i >0\) be the relative productivity parameter. The production function is:
\[ \begin{gathered} G(x, y, z) = A \left( \alpha_x x^{\rho} + \alpha_y y^{\rho} + \alpha_z z^{\rho} \right)^{\frac{1}{\rho}}\\ \end{gathered} \]
3.1.2 CES, first and second derivative, and cross derivative
Taking derivatives, we have:
\[ \begin{aligned} \frac{\partial G}{\partial x} &= A^{\rho}\cdot G(x,y,z)^{1-\rho}\cdot \left(\alpha_x x^{\rho-1}\right)\\ \frac{\partial G}{\partial y} &= A^{\rho}\cdot G(x,y,z)^{1-\rho}\cdot \left(\alpha_y y^{\rho-1}\right)\\ \frac{\partial G}{\partial z} &= A^{\rho}\cdot G(x,y,z)^{1-\rho}\cdot \left(\alpha_z z^{\rho-1}\right)\\ \end{aligned} \]
The factor \(\rho\) from differentiating \(x^{\rho}\) cancels the \(1/\rho\) from the outer power, and \(A^{\rho}\) restores the productivity term inside \(G^{1-\rho}\).
For second derivatives, we have:
\[ \begin{aligned} \frac{\partial^2 G}{\partial x^2} &= \frac{ \partial \left(A^{\rho}\cdot G(x,y,z)^{1-\rho}\cdot \left(\alpha_x x^{\rho-1}\right)\right) }{\partial x}\\ &=\left(1-\rho\right) \cdot A^{2\rho} \cdot \left(\alpha_x\right)^2 \cdot x^{2\rho-2} \cdot G(x,y,z)^{1-2\cdot\rho} + \left(\rho-1\right) \cdot A^{\rho} \cdot \left(\alpha_x\right) \cdot x^{\rho-2} \cdot G(x,y,z)^{1-\rho} \end{aligned} \]
For \(\rho<1\) with \(\rho\ne0\), positive inputs and positive weights, the first term is positive and the second is negative. Their ratio is negative and smaller than one in absolute value, so the second derivative is negative:
\[ \begin{aligned} \frac{\text{positive term}}{\text{negative term}} = -A^{\rho} \cdot \alpha_x \cdot x^{\rho} \cdot G(x,y,z)^{-\rho} = -\frac{\alpha_x x^{\rho}}{\alpha_x x^{\rho}+\alpha_y y^{\rho}+\alpha_z z^{\rho}} \in (-1,0) \end{aligned} \]
For cross derivatives, we have:
\[ \begin{aligned} \frac{\partial^2 G}{\partial x \partial y} &= \frac{ \partial \left(A^{\rho}\cdot G(x,y,z)^{1-\rho}\cdot \left(\alpha_x x^{\rho-1}\right)\right) }{\partial y}\\ &= \left(1-\rho\right) \cdot A^{2\rho} \cdot \left(\alpha_y \alpha_x\right) \cdot \left(y x\right)^{\rho-1} \cdot G(x,y,z)^{1-2\cdot\rho}\\ &>0, \text{ with } \rho \in \left(-\infty, 1\right) \end{aligned} \]
3.1.3 Relative marginal products of inputs
The marginal rate of substitution between inputs are:
\[ \begin{aligned} MRS_{yx} &= \frac{\alpha_y}{\alpha_x} \cdot \left(\frac{y}{x}\right)^{\rho -1}\\ MRS_{zx} &= \frac{\alpha_z}{\alpha_x} \cdot \left(\frac{z}{x}\right)^{\rho -1}\\ \end{aligned} \]
- Given this production function, the elasticity of marginal rate of substitution (MRS) with respect to the input ratio is invariant to the levels of inputs.
3.1.4 Output maximization with a budget
Assume \(A>0\), positive input prices and weights, \(W>0\), and \(\rho<1\) with \(\rho\ne0\). For the Cobb-Douglas case, use the limit as \(\rho\to0\). Consider maximizing \(G(X,Y,Z)\) subject to \(p_xX+p_yY+p_zZ\le W\). The optimum is interior and the budget binds. Equating marginal products per unit of expenditure gives:
\[ \begin{aligned} \frac{1}{p_x} G(x,y,z)^{1-\rho}\cdot \left(\alpha_x X^{\rho-1}\right) &= \frac{1}{p_y} G(x,y,z)^{1-\rho}\cdot \left(\alpha_y Y^{\rho-1}\right)\\ \frac{1}{p_x} G(x,y,z)^{1-\rho}\cdot \left(\alpha_x X^{\rho-1}\right) &= \frac{1}{p_z} G(x,y,z)^{1-\rho}\cdot \left(\alpha_z Z^{\rho-1}\right)\\ W &= p_x X + p_y Y + p_z Z \\ \end{aligned} \]
We simplify the optimality conditions by cancelling common terms.
\[ \begin{aligned} \frac{p_y}{p_x} &= \frac{\alpha_y}{\alpha_x} \cdot \left(\frac{Y}{X}\right)^{\rho-1}\\ \frac{p_z}{p_x} &= \frac{\alpha_z}{\alpha_x} \cdot \left(\frac{Z}{X}\right)^{\rho-1}\\ W &= p_x X + p_y Y + p_z Z \\ \end{aligned} \]
We write optimal \(Y\) and \(Z\) choices as functions of \(X\).
\[ \begin{aligned} Y &= \left(\frac{p_x}{p_y} \cdot \frac{\alpha_y}{\alpha_x}\right)^{\frac{1}{1-\rho}} \cdot X\\ Z &= \left(\frac{p_x}{p_z} \cdot \frac{\alpha_z}{\alpha_x}\right)^{\frac{1}{1-\rho}} \cdot X\\ W &= p_x X + p_y Y + p_z Z \\ \end{aligned} \]
We eliminate \(Y\) and \(Z\) from the budget constraint and simplify the resulting equation as a function of \(X\).
\[ \begin{aligned} W &= p_x X + p_y \cdot \left( \left(\frac{p_x}{p_y} \cdot \frac{\alpha_y}{\alpha_x}\right)^{\frac{1}{1-\rho}} \cdot X \right) + p_z \cdot \left( \left(\frac{p_x}{p_z} \cdot \frac{\alpha_z}{\alpha_x}\right)^{\frac{1}{1-\rho}} \cdot X \right)\\ W &= X\cdot\left( p_x + p_y\cdot \left(\frac{p_x}{p_y} \cdot \frac{\alpha_y}{\alpha_x}\right)^{\frac{1}{1-\rho}} + p_z\cdot \left(\frac{p_x}{p_z} \cdot \frac{\alpha_z}{\alpha_x}\right)^{\frac{1}{1-\rho}} \right) \end{aligned} \]
Thus, \(X^{\ast}\left(W, p_x, p_y, p_z\right)\) denotes the budget-constrained optimal \(X\) input choice.
\[ \begin{aligned} X^{\ast}\left(W, p_x, p_y, p_z\right) &= W\cdot \left( p_x + p_y\cdot \left(\frac{p_x}{p_y} \cdot \frac{\alpha_y}{\alpha_x}\right)^{\frac{1}{1-\rho}} + p_z\cdot \left(\frac{p_x}{p_z} \cdot \frac{\alpha_z}{\alpha_x}\right)^{\frac{1}{1-\rho}} \right)^{-1} \end{aligned} \]
3.1.5 Output maximization choices with \(N\) inputs
Now generalize the budget-constrained output maximization problem to \(N\) inputs.
Let \(\left\{X_i\right\}_{i=1}^N\) be \(N\) inputs, and \(\left\{p_i\right\}_{i=1}^{N}\) are prices on these \(N\) inputs. Let \(A\) be aggregate productivity, \(\rho\) govern the elasticity of substitution, and \(\left\{\alpha_i\right\}_{i=1}^N\) be positive relative productivity weights with \(\sum_i^N \alpha_i = 1\).
\[ \begin{aligned} X_j^{\ast}\left(W, \left\{p_i\right\}_{i=1}^N\right) &= W\cdot \left( \sum_{i=1}^{N} p_i \cdot \left( \frac{p_j}{p_i} \cdot \frac{\alpha_i}{\alpha_j} \right)^{\frac{1}{1-\rho}} \right)^{-1} \end{aligned} \]
Given model parameters, prices and the budget, the optimal choice equation above can be implemented directly.
3.1.6 Marginal value of additional resources
How much additional output can be produced when the budget \(W\) increases? Evaluate production at the budget-constrained optimal inputs:
\[ \begin{aligned} V^{\ast}\left( W, \left\{p_i\right\}_{i=1}^N \right) =& \left( \sum_{j=1}^{N} \alpha_j \cdot \left(X_j^{\ast}\left(W, \left\{p_i\right\}_{i=1}^N\right) \right)^{\rho} \right)^{\frac{1}{\rho}} A\\ =& A \left( \sum_{j=1}^{N} \alpha_j \cdot W^{\rho} \cdot \left( \sum_{i=1}^{N} p_i \cdot \left( \frac{p_j}{p_i} \cdot \frac{\alpha_i}{\alpha_j} \right)^{\frac{1}{1-\rho}} \right)^{-\rho} \right)^{\frac{1}{\rho}}\\ =& A W \cdot \left(\sum_{j=1}^{N} \alpha_j \cdot \left( \sum_{i=1}^{N} p_i \cdot \left( \frac{p_j}{p_i} \cdot \frac{\alpha_i}{\alpha_j} \right)^{\frac{1}{1-\rho}} \right)^{-\rho} \right)^{\frac{1}{\rho}}\\ \end{aligned} \]
The derivative with respect to \(W\) is constant because production has constant returns to scale:
\[ \begin{aligned} \text{MVofW} = \frac{\partial \text{V}^{\ast}(W)}{\partial W} =& A\left(\sum_{j=1}^{N} \alpha_j \cdot \left( \sum_{i=1}^{N} p_i \cdot \left( \frac{p_j}{p_i} \cdot \frac{\alpha_i}{\alpha_j} \right)^{\frac{1}{1-\rho}} \right)^{-\rho} \right)^{\frac{1}{\rho}}\\ \end{aligned} \]
For a given positive output target \(Q\), the corresponding minimum cost is \(Q/\text{MVofW}\), and marginal cost is \(1/\text{MVofW}\).
3.1.7 Marginal value of additional resources if only use one input
Suppose now that only one of the \(N\) inputs is used, and the others are zero. Output is then, for \(\rho > 0\):
\[ \begin{aligned} A\alpha_i^{\frac{1}{\rho}}\cdot X_i = A\alpha_i^{\frac{1}{\rho}}\cdot \left(\frac{W}{p_i}\right) \end{aligned} \]
When \(\rho >0\), the marginal value of additional resources under this one-input restriction is \(\frac{A\alpha_i^{\frac{1}{\rho}}}{p_i}\). For \(\rho<0\), the displayed formula requires positive inputs; its continuous extension gives zero output when an input is zero.
With positive weights and prices, the unrestricted optimum for \(\rho<1\) uses every input. Although zero inputs are feasible when \(\rho>0\), observing an excluded input requires some additional mechanism, such as a fixed cost, or a different technology or parameter case.
3.1.8 Matrix Representation of Solutions
Now consider the dual problem: minimize input expenditure for a given output target \(Q>0\). We represent its solutions in matrix form.
First, we divide each price by every other price using an outer product of two vectors.
\[ \begin{aligned} \begin{bmatrix} p_1\\ p_2 \end{bmatrix} \cdot \begin{bmatrix} \frac{1}{p_1}\\ \frac{1}{p_2} \end{bmatrix}^{T} & = \begin{bmatrix} \frac{p_1}{p_1} & \frac{p_1}{p_2} \\ \frac{p_2}{p_1} & \frac{p_2}{p_2} \\ \end{bmatrix} \end{aligned} \]
Second, combining all operations, the matrix representation of the optimal choice formula is as shown below. Note that \(\circ\) denotes element-wise operations (Hadamard product), \(^{\circ(-1)}\) denotes element-wise inverse operations, and \(\cdot\) denotes matrix multiplication. Powers of matrices and vectors below are also element-wise. \(Q\) and \(A\) are scalars, while \(P\) and \(\alpha\) are \(N\) by \(1\) vectors.
\[ \begin{aligned} X^{\ast} = \underbrace{ \frac{Q}{A} \left( \left( \underbrace{ \overbrace{ \left( P \cdot \left(P^{\circ\left(-1\right)}\right)^{T} \right) }^{N \text{ by } N} \circ \overbrace{ \left( \alpha \cdot \left(\alpha^{\circ\left(-1\right)}\right)^{T} \right)^{T} }^{N \text{ by } N} }_{N \text{ by } N} \right)^{\frac{\rho}{1-\rho}} \cdot \overbrace{ \alpha }^{N \text{ by } 1} \right)^{\frac{-1}{\rho}}}_{N \text{ by } 1} \end{aligned} \]
Third, the matrix representation of the aggregate marginal cost equation is shown below.
\[ \begin{aligned} \text{MCofQ} = \underbrace{ \frac{1}{A} \overbrace{ P^{T} }^{1 \text{ by } N} \cdot \left( \left( \underbrace{ \overbrace{ \left( P \cdot \left(P^{\circ\left(-1\right)}\right)^{T} \right) }^{N \text{ by } N} \circ \overbrace{ \left( \alpha \cdot \left(\alpha^{\circ\left(-1\right)}\right)^{T} \right)^{T} }^{N \text{ by } N} }_{N \text{ by } N} \right)^{\frac{\rho}{1-\rho}} \cdot \overbrace{ \alpha }^{N \text{ by } 1} \right)^{\circ\left(\frac{-1}{\rho}\right)}}_{1 \text{ by } 1} \end{aligned} \]
Computational Implementation
Now we write a small program with the solutions for the cost minimization problem as well as the aggregate marginal cost equation.
3.2 The CES production function family
3.2.1 The CES production function
Let \(x\), \(y\), and \(z\) be three inputs. Let \(A\) be aggregate productivity, \(\rho\) be the elasticity of substitution parameter (not the elasticity of substitution, but the parameter that governs the elasticity of substitution across the inputs), and \(\alpha_x\), \(\alpha_y\), and \(\alpha_z=1-\alpha_x-\alpha_y\) and \(\alpha_i >0\) be the relative productivity parameter. The production function is:
\[ \begin{gathered} G(x, y, z) = A \left( \alpha_x x^{\rho} + \alpha_y y^{\rho} + \alpha_z z^{\rho} \right)^{\frac{1}{\rho}}\\ \end{gathered} \]
When \(\rho > 0\), \(G\) is defined when inputs are equal to zero. But if \(\rho < 0\), all inputs must be non-zero, otherwise the function can not be evaluated. \(\rho=0\) is therefore a key threshold. When \(\rho \le 0\), the complementarity of inputs increases such that all inputs are required to produce any units of outputs, but when \(\rho >0\), the inputs are sufficiently substitutable that the production function can rationalize zero input choices.
3.2.2 CES and linear production function
When inputs are perfect substitutable, \(\rho = 1\), and we have:
\[ \begin{gathered} G(x, y, z) = A\cdot\left( \alpha_x x + \alpha_y y + \alpha_z z \right) \end{gathered} \]
Note that perfect substitutability does not mean that changes in \(x\) and \(y\) have equal effects on the outcome, rather it means that when input \(x\) decreases, we can preserve output level by increasing input \(y\) linearly.
3.2.3 CES and Cobb-Douglas production function
When \(\rho = 0\), the displayed CES formula is undefined because \(1/\rho\) is undefined. For positive inputs, L’Hôpital’s rule gives the limit as \(\rho\) approaches zero. Approaching from the right:
\[ \begin{aligned} \lim_{\rho \rightarrow 0+ } g(x, y, z) &= \lim_{\rho \rightarrow 0+ } A \cdot \left( \alpha_x x^{\rho} + \alpha_y y^{\rho} + \alpha_z z^{\rho} \right)^{\frac{1}{\rho}}\\ \end{aligned} \]
We have take log first of both sides of the equation and then apply L’Hopital’s rule:
\[ \begin{aligned} \lim_{\rho \rightarrow 0+ } \ln g(x, y, z) &= \lim_{\rho \rightarrow 0+ } \ln A + \frac{\ln\left( \alpha_x x^{\rho} + \alpha_y y^{\rho} + \alpha_z z^{\rho} \right)}{\rho}\\ &=\ln A + \lim_{\rho \rightarrow 0+ } \frac{\ln\left( \alpha_x x^{\rho} + \alpha_y y^{\rho} + \alpha_z z^{\rho} \right)}{\rho}\\ &=\ln A + \lim_{\rho \rightarrow 0+ } \frac{ \alpha_x x^{\rho} \ln(x) + \alpha_y y^{\rho} \ln(y) + \alpha_z z^{\rho} \ln(z) }{\left( \alpha_x x^{\rho} + \alpha_y y^{\rho} + \alpha_z z^{\rho} \right) }\\ &=\ln A + \frac{ \alpha_x \ln(x) + \alpha_y \ln(y) + \alpha_z \ln(z) }{\left( \alpha_x + \alpha_y + \alpha_z \right) }\\ &=\ln A + \alpha_x \ln(x) + \alpha_y \ln(y) + \alpha_z \ln(z) \\ \end{aligned} \]
So the limit of \(g\), as \(\rho\) approaches \(0\) from the right, is:
\[ \begin{aligned} \lim_{\rho \rightarrow 0+} g(x,y,z) = A\cdot x^{\alpha_x} \cdot y^{\alpha_y} \cdot z^{\alpha_z} \end{aligned} \]
The function is undefined when \(\rho\) approaches \(0\) from the left, when any of the inputs is zero. The function above is the Cobb-Douglas production function. Given the log-linear nature of the Cobb-Douglas production function, it is convenient to Taylor-approximate the log of the CES production for values of \(\rho\) that is larger than \(0\) with the help of the log-linear Cobb-Douglas.
3.2.4 CES and the Leontief production function
Note that to derive Leontief, need to rewrite the production function as:
\[ \begin{gathered} G(x, y, z) = A \left( \alpha_x (\beta_x \cdot x)^{\rho} + \alpha_y (\beta_y \cdot y)^{\rho} + \alpha_z (\beta_z \cdot z)^{\rho} \right)^{\frac{1}{\rho}}\\ \end{gathered} \]
The positive \(\beta\) values scale the inputs for every \(\rho\); in the Leontief limit they determine the input proportions.
Derive by dividing all inputs by one input and manipulate terms, we will arrive at:
\[ \begin{gathered} \lim_{\rho \rightarrow -\infty} G(x, y, z) = A \cdot \min\left( \beta_x \cdot x, \beta_y \cdot y, \beta_z \cdot z \right)\\ \end{gathered} \]
3.3 Nested Constant Elasticity of Substitution production function
3.3.1 The nested CES cost minimization problem
We have the following production function with four inputs \(x_1\), \(x_2\), \(y_1\) and \(y_2\). There are three \(\rho\) parameters \(\rho_x\), \(\rho_y\) and \(\rho_o\) that correspond to inner-nest and outter nest elasticity of substitution between inputs.
The firm’s expenditure minimization problem has the following objective:
\[ \min_{x_1, x_2, y_1, y_2} \left( x_1 \cdot p_{x_1} + x_2 \cdot p_{x_2} + y_1 \cdot p_{y_1} + y_2 \cdot p_{y_2} \right) \]
The production quantity constraint is, using a constant-returns doubly-nested production function:
\[ Y= Z \cdot \left( \beta_{o_1} \left( \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^\frac{1}{{\rho_x}} \right) ^{\rho_{o}} + \beta_{o_2} \left( \left( \beta_{y_1} y_1^{\rho_y} + \beta_{y_2} y_2^{\rho_y} \right)^\frac{1}{{\rho_y}} \right) ^{\rho_{o}} \right)^\frac{1}{\rho_{o}} \]
Assume positive productivity and weights, positive input prices, and nonzero nest parameters below one. The zero-parameter Cobb-Douglas case requires appropriately normalized weights and is interpreted by a limit. With constant returns and free scaling, a competitive firm operating at a finite profit-maximizing scale earns zero profit; prices that yield positive profit per unit instead make the unconstrained profit problem unbounded. We therefore study cost minimization for a given output.
A key object to consider is the marginal product of input (labor or capital). Taking derivative of output \(Y\) with respect to input \(x_1\), we have:
\[ \begin{aligned} \frac{\partial Y}{\partial x_1}= \left( \begin{array}{c} \left[ \frac{1}{\rho_{o}} Z \left( \beta_{o_1} \left( \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^\frac{1}{{\rho_x}} \right) ^{\rho_{o}} + \beta_{o_2} \left( \left( \beta_{y_1} y_1^{\rho_y} + \beta_{y_2} y_2^{\rho_y} \right)^\frac{1}{{\rho_y}} \right) ^{\rho_{o}} \right)^{\frac{1}{\rho_{o}} - 1} \right]\\ \times \left[ \rho_{o} \beta_{o_1} \left( \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^\frac{1}{{\rho_x}} \right)^{\rho_{o}-1} \right]\\ \times \left[ \frac{1}{{\rho_x}} \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^{\frac{1}{{\rho_x}} - 1} \right]\\ \times \left[ \rho_x \beta_{x_1} x_1^{\rho_x-1} \right] \end{array} \right) \end{aligned} \]
3.3.2 Relative quantities and relative prices
Examining the ratio of the marginal productivity of \(Y\) with respect to \(x_1\) and \(x_2\), we have:
\[ \begin{aligned} \frac{\partial Y / \partial x_1}{\partial Y / \partial x_2}&= \frac{\left[ \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^{\frac{1}{{\rho_x}} - 1} \right] \cdot \left[ \beta_{x_1} x_1^{\rho_x-1} \right]}{\left[ \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^{\frac{1}{{\rho_x}} - 1} \right] \cdot \left[ \beta_{x_2} x_2^{\rho_x-1} \right]}\\ &= \frac{\beta_{x_1} x_1^{\rho_x-1}}{\beta_{x_2} x_2^{\rho_x-1}}\\ &= \left(\frac{x_1}{x_2}\right)^{\rho_x - 1} \cdot \frac{\beta_{x_1}}{\beta_{x_2}} \end{aligned} \]
Taking log of the equation above, we have:
\[ \begin{aligned} \ln\left(\frac{\partial Y / \partial x_1}{\partial Y / \partial x_2}\right) &= \ln\left(\frac{\beta_{x_1}}{\beta_{x_2}}\right) +\left(\rho_x - 1\right) \cdot \ln\left(\frac{x_1}{x_2}\right) \end{aligned} \]
This is what we have from the production function. What is the additional insight from the firm’s problem? At a differentiable interior cost-minimizing solution with a binding output constraint, the first-order conditions are, with \(\lambda\) the Lagrange multiplier:
\[ \begin{aligned} p_{x_1} &= \lambda \cdot \left(\frac{\partial Y}{\partial x_1}\right)\\ p_{x_2} &= \lambda \cdot \left(\frac{\partial Y}{\partial x_2}\right) \end{aligned} \]
Now we can link the two equations above to get:
\[ \begin{aligned} \ln\left(\frac{p_{x_1}}{p_{x_2}}\right) &= \ln\left(\frac{\partial Y / \partial x_1}{\partial Y / \partial x_2}\right)\\ &= \ln\left(\frac{\beta_{x_1}}{\beta_{x_2}}\right) +\left(\rho_x - 1\right) \cdot \ln\left(\frac{x_1}{x_2}\right) \end{aligned} \]
This is the key equation that links the production function parameters to observables (prices and quantities). By collecting data on relative prices (e.g., relative wages of different types of workers) and relative quantities (e.g., relative employment of different types of workers), we can now pin down the \(\beta\) and \(\rho\) parameters.
Suppose we observe relative prices and relative quantities at two moments in time, with unchanged production-function parameters and different input ratios. Then the two equations identify \(\beta_{x_1}/\beta_{x_2}\) and \(\rho_x\). The thought experiment is that variations in equilibrium quantities and prices are due to shifts in supply curves.
Using the same strategy, we can back out the parameters in the Y nest, \(\beta_{y_1}/\beta_{y_2}\) and \(\rho_y\). Given the parameters from the X and Y nests, we can then use the same strategy to back out the parameters in the O nest, \(\beta_{o_1}/\beta_{o_2}\) and \(\rho_o\).
Overall, functional-form and stability assumptions allow local price and quantity observations to identify global substitution parameters and relative weights, subject to sufficient variation. The absolute production scale and the normalization of nest weights require additional information; relative first-order conditions alone do not identify the entire cardinal production function.
3.3.3 De-nesting the nested CES cost minimization problem
An interesting alternative way of thinking about the problem is to decompose the problem into sub-problems. Rather than solving the problem above directly in an expenditure minimization problem, we can divide the problem above into three parts, the X Problem, the Y Problem and the Z Problem.
The X problem:
\[ \begin{gathered} \min_{x_1, x_2} \left( x_1 \cdot p_{x_1} + x_2 \cdot p_{x_2} \right)\\ O_x = \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^\frac{1}{{\rho_x}} \end{gathered} \]
The Y problem:
\[ \begin{gathered} \min_{y_1, y_2} \left( y_1 \cdot p_{y_1} + y_2 \cdot p_{y_2} \right)\\ O_y = \left( \beta_{y_1} y_1^{\rho_y} + \beta_{y_2} y_2^{\rho_y} \right)^\frac{1}{{\rho_y}} \end{gathered} \]
The O problem:
\[ \begin{gathered} \min_{O_x, O_y} \left( O_x \cdot p_{o_1} + O_y \cdot p_{o_2} \right)\\ Y = Z\cdot\left( \beta_{o_1} O_x^{\rho_o} + \beta_{o_2} O_y^{\rho_o} \right)^\frac{1}{{\rho_o}} \end{gathered} \]
3.3.4 Solution to the problem in each subnest
We can also take the derivative of the output requirement for the X problem with respect to \(x_1\), we have:
\[ \begin{aligned} \frac{\partial O_x}{\partial x_1}&= \left[ \frac{1}{{\rho_x}} \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^{\frac{1}{{\rho_x}} - 1} \right] \cdot \left[ \rho_x \beta_{x_1} x_1^{\rho_x-1} \right]\\ &= \left[ \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^{\frac{1}{{\rho_x}} - 1} \right] \cdot \left[ \beta_{x_1} x_1^{\rho_x-1} \right] \end{aligned} \]
What is the relationship between the marginal product of labor and the wage for the problem in the subnest? Let \(\lambda_x\) be the lagrange multiplier for the lagrange multiplier specific to the subnest:
\[ p_{x_1} = \lambda_x \cdot \left(\frac{\partial O_x}{\partial x_1}\right) \]
This means that we have the following FOC from solving the expenditure minimization problem:
\[ p_{x_1} = \lambda_x \cdot \left[ \left( \beta_{x_1} x_1^{\rho_x} + \beta_{x_2} x_2^{\rho_x} \right)^{\frac{1}{{\rho_x}} - 1} \right] \cdot \left[ \beta_{x_1} x_1^{\rho_x-1} \right] \]
Then:
- Proceeding similarly for \(x_2\), we will have a similar equation.
- By taking the ratio of the FOC conditions associated with \(x_1\) and \(x_2\), we will derive \(x^{\ast}_1\left(x_2\right)\), which is the optimal quantity of \(x_1\) as a function of \(x_2\).
- Then, using the output quantity constraint, we will arrive at \(x_i^{\ast}\left(p_{x_1}, p_{x_2}, O_x\right)\) for \(i \in \left\{1, 2\right\}\).
- We can then also find the the minimum costs given optimal choices (the cost function): \(\text{COST}\left(p_{x_1}, p_{x_2}, O_x\right) = \sum_{i=1}^2 p_{x_i} \cdot x_i^{\ast}\left(p_{x_1}, p_{x_2}, O_x\right)\)
- From the cost function, we can find the marginal cost function, which in this case is constant: \(\frac{d \text{COST}\left(p_{x_1}, p_{x_2}, O_x\right)}{dO_x}\)
We proceed similarly for each of the three sub-problems. Constant returns make the unit costs of the lower nests independent of their output quantities, so the overall problem can be solved from the bottom up:
- Solve the X and Y cost problems per unit of nest output.
- Use their unit costs as the aggregate input prices \(p_{o_1}\) and \(p_{o_2}\).
- Solve the O problem for optimal \(O_x\) and \(O_y\) at those prices.
- Scale the lower-nest input choices to produce those optimal quantities.
The bottom nests face observed prices and quantities, the higher nests prices and quantities are aggregated up.