     Egwald Economics: Microeconomics

Cost Functions

by

Elmer G. Wiens

Egwald's popular web pages are provided without cost to users.
Please show your support by joining Egwald Web Services as a Facebook Fan: Follow Elmer Wiens on Twitter: N. Generalized CES-Diewert (Generalized Leontief) Cost Function

This web page replicates the procedures used to estimate the parameters of a Diewert cost function to approximate a CES cost function. To determine the Diewert cost function's efficacy in estimating varying elasticities of substitution among pairs of inputs, on this web page we approximate a Generalized CES cost function with the Diewert cost function.

Unlike the CES cost function, the Generalized CES cost function is not necessarily homothetic, while the Diewert cost function is homothetic by construction. Moreover, the Generalized CES's elasticity of scale is a function of its factor inputs, i.e. its elasticity of scale, εLKM, varies with factor prices and with output.

Consequently, when we estimate the Diewert cost function, we need to estimate the parameter nu1 of its returns to scale function separately, as we did when we approximated the CES production function by the Diewert production function.

The three factor Diewert (Generalized Leontief) (total) cost function is:

C(q;wL,wK,wM) = h(q) * c(wL,wK,wM)         (**)

where the returns to scale function is:

h(q) = q^(1/nu1)

a continuous, increasing function of q (q >= 1), with h(0) = 0 and h(1) = 1, where nu1 is a measure of the returns to scale,

and the unit cost function is:

c(wL,wK,wM) = cLL * wL + cKK * wK + cMM * wM + (dLK+dKL) * (wL*wK)^(1/2) + (dLM +dML) * (wL*wM)^(1/2) + (dKM+dMK) * (wK*wM)^(1/2)

linear in its parameters cLL, cKK, cMM, dLK, dKL, dLM, dML, dKM, and dMK.

We shall use two methods to obtain estimates of the parameters:

À1: Estimate the parameters the cost function by way of its factor share functions — requires data relating output quantities to (cost minimizing) factor inputs, and input prices,

À2: Estimate the parameters of the cost function directly — requires data relating output quantities to total (minimum) cost and input prices.

We shall use the three factor Generalized CES production function to generate the required cost data, yielding a data set relating output, q, and factor prices, wL, wK, and wM, [randomized about the base prices (wL*, wK*, wM*)]   to the Generalized CES cost minimizing factor inputs, L, K, and M.

For methods À1, and À2, we shall set nu1 = εLKM where q = 30 units of output, i.e. at the elasticity of scale of the Generalized CES cost function for q = 30.

To illustrate what can happen when nu1 is set incorrectly, we shall repeat methods À1, and À2 as methods À3, and À4, with nu1 = 1, i.e. under the assumption of constant returns to scale along the domain of q.

The three factor Generalized CES production function is:

q = A * [alpha * L^-rhoL + beta * K^-rhoK + gamma *M^-rhoM]^(-nu/rho) = f(L,K,M).

where L = labour, K = capital, M = materials and supplies, and q = product.

The parameter nu permits one to adjust the returns to scale, while the parameter rho is the geometric mean of rhoL, rhoK, and rhoM:

rho = (rhoL * rhoK * rhoM)^1/3.

If rho = rhoL = rhoK = rhoM, we get the standard CES production function. If also, rho = 0, ie sigma = 1/(1+rho) = 1, we get the Cobb-Douglas production function.

Generalized CES Elasticity of Scale of Production:

εLKM = ε(L,K,M) = (nu / rho) * (alpha * rhoL * L^-rhoL + beta * rhoK * K^-rhoK + gamma * rhoM * M^-rhoM) / (alpha * L^-rhoL + beta * K^-rhoK + gamma * M^-rhoM).

See the Generalized CES production function.

À1:   Estimate the factor demand equations separately.

Assuming dLK = dKL, dLM = dML, and dKM = dMK, the Diewert unit cost function becomes:

c(wL,wK,wM) = cLL * wL + cKK * wK + cMM * wM + 2 * dLK * (wL*wK)^(1/2) + 2 * dLM * (wL*wM)^(1/2) + 2 * dKM * (wK*wM)^(1/2)

Taking the partial derivative of the cost function with respect to an input price, we get the factor demand function for that input:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/nu1) * [cLL + dLK * (wK / wL)^(1/2) + dLM * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/nu1) * [cKK + dKL * (wL / wK)^(1/2) + dKM * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/nu1) * [cMM + dML * (wL / wM)^(1/2) + dMK * (wK / wM)^(1/2)]

Since it is likely that, as measured numerically, dLK != dKL, dLM != dML, and dKM != dMK, these distinctions are maintained in the factor demand equations.

After dividing each factor demand equation by q(1/nu1), we can estimate the parameters of these three linear in parameters equations using linear multiple regression.

Having obtained the unrestricted estimates of the coefficients of the factor demand functions, we shall compute the restricted least squares estimates with dLK = dKL, dLM = dML, and dKM = dMK.

The substituted values of the estimated parameters determine the Diewert cost function.

I. Stage 1. Generate cost data with the Generalized CES production function, yielding a data set relating output, q, and factor prices, wL, wK, and wM, [randomized about the base prices (wL*, wK*, wM*)]   to the Generalized CES cost minimizing factor inputs, L, K, and M. The base factor prices and the randomizing distribution are specified in the form below.

Stage 2. Obtain the Diewert cost function by substituting the estimates (obtained via linear multiple regression) of the parameters of the three factor demand equations into the cost function.

II. The estimated coefficients of the Diewert cost function will vary with the parameters nu, rho, rhoL, rhoK, rhoM, alpha, beta and gamma of the Generalized CES production function.

Set the parameters below to re-run with your own Generalized CES parameters.

The restrictions ensure that the least-cost problems can be solved to obtain the underlying Generalized CES cost function, using the parameters as specified.
Intermediate (and other) values of the parameters also work.

Restrictions:
.8 < nu < 1.1;
-.6 < rhoL = rho < .6;
-.6 < rho < -.2 → rhoK = .95 * rho, rhoM = rho/.95;
-.2 <= rho < -.1 → rhoK = .9 * rho, rhoM = rho / .9;
-.1 <= rho < 0 → rhoK = .87 * rho, rhoM = rho / .87;
0 <= rho < .1 → rhoK = .7 * rho, rhoM = rho / .7;
.1 <= rho < .2 → rhoK = .67 * rho, rhoM = rho / .67;
.2 <= rho < .6 → rhoK = .6 * rho, rhoM = rho / .6;
rho = 0 → nu = alpha + beta + gamma (Cobb-Douglas)
4 <= wL* <= 11,   7<= wK* <= 16,   4 <= wM* <= 10

Generalized CES Production Function Parameters
nu:
rho:
Base Factor Prices
 wL* wK* wM*
Distribution to Randomize Factor Prices
 Use [-2, 2] Uniform distribution     Use .25 * Normal (μ = 0, σ2 = 1)

The Generalized CES production function as specified:

q = 1 * [0.35 * L^- 0.17647 + 0.4 * K^- 0.11823 + 0.25 *M^- 0.26339]^(-1/0.17647) = f(L,K,M).

 The factor prices are distributed about the base factor prices by adding a random number distributed uniformly in the [-2, 2] domain.

Generalized CES elasticity of scale at q = 30:     εLKM = nu1 = 0.92

III. For these coefficients of the CES Generalized production function, I generated a sequence (displayed in the "Generalized CES-Diewert Cost Function" table) of factor prices, outputs, and the corresponding cost minimizing inputs. Then I used these data to estimate the coefficients of each factor share equation separately:

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1120490.005-22.625
dLK0.5272880.005114.943
dLM0.5183230.004146.546
 R2 = 0.9997 R2b = 0.9997 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK-0.0824940.033-2.528
dKL0.5296340.03515.015
dKM0.4324020.02517.222
 R2 = 0.945 R2b = 0.941 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.2054210.036-5.681
dML0.516210.0539.828
dMK0.4363110.0489.142
 R2 = 0.978 R2b = 0.9764 # obs = 31

The three estimated factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.112 + 0.5273 * (wK / wL)^(1/2) + 0.5183 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.0825 + 0.5296 * (wL / wK)^(1/2) + 0.4324 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.2054 + 0.5162 * (wL / wM)^(1/2) + 0.4363 * (wK / wM)^(1/2)]

As estimated, generally dLK != dKL, dLM != dML, and dKM != dMK: Young's Theorem doesn't hold without constraints across equations. Consequently, I use the sum of the cross parameters in the Diewert cost function.

The estimated factor demand elasticities are obtained by:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu1) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,q = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu1, etc.

For example, with wL = 7, wK = 13, wM = 6, and q = 30:

 εL,wL εL,wK εL,wM εL,q εK,wL εK,wK εK,wM εK,q εM,wL εM,wK εM,wM εM,q
 -0.5516 0.3307 0.2209 1.087 0.3239 -0.5688 0.2448 1.087 0.2804 0.3229 -0.6033 1.087

IV. The Diewert cost function as obtained from the unrestricted factor demand equations is:

C(q;wL,wK,wM) = q^(1/nu1) * [cLL * wL + cKK * wK + cMM * wM + (dLK+dKL) * (wL*wK)^(1/2) + (dLM +dML) * (wL*wM)^(1/2) + (dKM+dMK) * (wK*wM)^(1/2)]

= q^(1/0.92) * [-0.11205 * wL + -0.08249 * wK + -0.20542 * wM + 1.05692 * (wL*wK)^(1/2) + 1.03453 * (wL*wM)^(1/2) + 0.86871 * (wK*wM)^(1/2)]
(***)

V. The Restricted Factor Demand Equations.

Having obtained the unrestricted estimates of the coefficients of the factor demand functions, we compute the restricted least squares estimates with dLK = dKL, dLM = dML, and dKM = dMK.

QR Restricted Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1127940.030965-3.642594
dLK0.5281240.02539320.798069
dLM0.5179080.01803828.71197
cKK-0.0828620.025845-3.206167
dKL0.5281240.02539320.798069
dKM0.434520.01848623.505363
cMM-0.2046390.021032-9.729769
dML0.5179080.01803828.71197
dMK0.434520.01848623.505363
 R2 = 0.9967 R2b = 0.9964 # obs = 93

dLK = dKL, dLM = dML, and dKM = dMK

The three estimated, restricted factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.1128 + 0.5281 * (wK / wL)^(1/2) + 0.5179 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.0829 + 0.5281 * (wL / wK)^(1/2) + 0.4345 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.2046 + 0.5179 * (wL / wM)^(1/2) + 0.4345 * (wK / wM)^(1/2)]

The estimated factor demand elasticities are obtained by:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu1) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,wq = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu, etc.

For example, with wL = 7, wK = 13, wM = 6, and q = 30:

 εL,wL εL,wK εL,wM εL,q εK,wL εK,wK εK,wM εK,q εM,wL εM,wK εM,wM εM,q
 -0.5519 0.3312 0.2207 1.087 0.323 -0.5691 0.2461 1.087 0.2813 0.3216 -0.6029 1.087

VI. The Diewert cost function as obtained from the restricted factor demand equations is:

C(q;wL,wK,wM) = q^(1/nu) * [cLL * wL + cKK * wK + cMM * wM + (dLK+dKL) * (wL*wK)^(1/2) + (dLM +dML) * (wL*wM)^(1/2) + (dKM+dMK) * (wK*wM)^(1/2)]

= q^(1/0.92) * [-0.11279 * wL + -0.08286 * wK + -0.20464 * wM + 1.05625 * (wL*wK)^(1/2) + 1.03582 * (wL*wM)^(1/2) + 0.86904 * (wK*wM)^(1/2)]
(***)

VII. Note:
1. C(q;wL,wK,wM) linear homogeneous in factor prices requires for any t > 0 that the unit cost function c(wL,wK,wM) obey:

c(t*wL,t*wK,t*wM) = t * c(wL,wK,wM).

For example, with wL = 7, wK = 13, wM = 6, and t = 2:

2 * c(7, 13, 6) = 42.74 = 42.74 = c(14, 26,12).

2. The matrix ∇2C of second order partial derivatives of the cost function C(q;wL,wK,wM) = h(q)*c(wL,wK,wM) is symmetric:

 ∂2C/∂q∂wL = h'(q) * ∂c/∂wL = ∂2C/∂wL∂q, ∂2C/∂q∂wK = h'(q) * ∂c/∂wK = ∂2C/∂wK∂q, ∂2C/∂q∂wM = h'(q) * ∂c/∂wM = ∂2C/∂wM∂q, ∂2c/∂wL∂wK = .25 * (dLK+dKL)/(wL*wK)^(1/2) = ∂2c/∂wK∂wL, ∂2c/∂wL∂wM = .25 * (dLM+dML)/(wL*wM)^(1/2) = ∂2c/∂wM∂wL, ∂2c/∂wK∂wM = .25 * (dKM+dMK)/(wL*wK)^(1/2) = ∂2c/∂wM∂wK, and ∂2c/∂wL∂wL = -.25((dLK+dKL)*wK^(1/2) + (dLM+dML)*wM^(1/2))/wL^(3/2), ∂2c/∂wK∂wK = -.25((dKL+dLK)*wL^(1/2) + (dKM+dMK)*wM^(1/2))/wK^(3/2), ∂2c/∂wM∂wM = -.25((dML+dLM)*wL^(1/2) + (dMK+dKM)*wK^(1/2))/wM^(3/2).

3. The cost function C(q;wL,wK,wM) is a concave in factor prices if the Hessian matrix H = ∇2wwc(wL,wK,wM) of second order partial derivatives with respect to factor prices is negative semidefinite.   The values of the second order partial derivatives depend on factor prices. As an example, consider the case where wL = 7, wK = 13, and wM = 6:

H = ∇2wwc =
 -0.08566 0.02768 0.03996 0.02768 -0.02626 0.0246 0.03996 0.0246 -0.09992

The principal minors of H are H1 = -0.085657, H2 = 0.001483, and H3 = -0.

If these principal minors alternate in sign, starting with negative, with H3 <= 0, the matrix H is negative (semi)definite,
and the cost function C(q;wL,wK,wM) is a concave function in factor prices at wL = 7, wK = 13, and wM = 6.

The eigenvalues of H are e1 = -0.1334, e2 = -0.0784, and e3 = -0.
H3 = e1 * e2 * e3 = -0.

VIII. The factor share functions are:

 sL(q;wL,wK,wM) = wL * L(q; wL, wK, wM) / C(q;wL,wK,wM) = wL * ∂C/∂wL / C(q;wL,wK,wM) , sK(q;wL,wK,wM)= wK * K(q; wL, wK, wM) / C(q;wL,wK,wM) = wK * ∂C/∂wK / C(q;wL,wK,wM), sM(q;wL,wK,wM)= wM * M(q; wL, wK, wM) / C(q;wL,wK,wM) = wM * ∂C/∂wM / C(q;wL,wK,wM).
IX. Uzawa Partial Elasticities of Substitution:

 uLK = C(q;wL,wK,wM) * ∂L(q;wL,wK,wM)/∂wK / (L(q;wL,wK,wM) * K(q;wL,wK,wM)), uLM = C(q;wL,wK,wM) * ∂L(q;wL,wK,wM)/∂wM / (L(q;wL,wK,wM) * M(q;wL,wK,wM)), uKL = C(q;wL,wK,wM) * ∂K(q;wL,wK,wM)/∂wL / (K(q;wL,wK,wM) * L(q;wL,wK,wM)), uKM = C(q;wL,wK,wM) * ∂K(q;wL,wK,wM)/∂wM / (K(q;wL,wK,wM) * M(q;wL,wK,wM)), uML = C(q;wL,wK,wM) * ∂M(q;wL,wK,wM)/∂wL / (M(q;wL,wK,wM) * L(q;wL,wK,wM)), uMK = C(q;wL,wK,wM) * ∂M(q;wL,wK,wM)/∂wK / (M(q;wL,wK,wM) * M(q;wL,wK,wM)),

Imposing the dLK = dKL, dLM = dML, and dKM = dMK restrictions in the factor demand functions, we get (approximate?) equality of the cross partial elasticities of substitution:

uLK = uKL,    uLM = uML,  and    uKM = uMK.

as seen in the following table.

X. Table of Results: check that the estimated Diewert cost function and input amounts for a given level of output agree with the Generalized CES production function's minimized cost and inputs. Also, compare the Allen partial elasticities of substitution, sLK, sLM, and sMK, with the Uzawa partial elasticities of substitution, uLK, uLM, and uKM.

Generalized CES-Diewert Cost Function
À1: Estimate the Translog cost function using restricted factor shares
Parameters: rho = 0.17647, rhoL = 0.17647, rhoK = 0.11823, rhoM = 0.26339
nu = 1
—   Generalized CES Cost Data   —
nu1 = 0.92
—   Diewert Cost Data   —
Factor SharesUzawa Elasticities2wwc(w)
obs #qwLwKwM LK MsLKsLMsKMεLKMcostest costest Lest Kest MsLsKsMuLKuLMuKLuKMuMLuMKe1e2e3
1188.36 13.125.36 22.3513.83 26.990.90.790.830.925512.87512.7822.314.2725.970.3640.3650.2710.940.790.940.830.790.83 -0.144-0.0710
2195.32 11.266.16 29.8414.35 22.130.90.790.830.93456.57455.2629.7714.7621.210.3480.3650.2870.870.80.870.930.80.93 -0.156-0.085-0
3205.66 11.14.74 28.5514.66 27.450.90.790.830.924454.48454.4828.5715.0126.630.3560.3660.2780.920.780.920.880.780.88 -0.17-0.097-0
4217.56 14.744.38 27.714.28 35.720.890.790.830.917576.38578.0227.8814.5634.830.3650.3710.2640.970.730.970.840.730.84 -0.188-0.0760
5226.48 12.388 34.3518.23 23.980.90.790.830.93640.11638.2434.3318.6723.090.3490.3620.2890.850.830.850.930.830.93 -0.125-0.068-0
6237.62 14.57.72 34.3618.3 28.050.90.790.830.926743.8743.1834.3518.6427.350.3520.3640.2840.880.810.880.90.810.9 -0.112-0.067-0
7248.96 13.685.62 30.1119.4 36.250.890.790.830.921738.87739.4130.0619.7135.670.3640.3650.2710.940.80.940.820.80.82 -0.137-0.066-0
8255.88 14.27.74 43.1518.79 28.180.90.790.830.926738.73738.4543.0719.1127.630.3430.3670.290.860.790.860.960.790.96 -0.143-0.068-0
9266.58 14.866.36 41.0418.93 34.350.890.790.830.921769.8770.3441.0719.0834.040.3510.3680.2810.910.760.910.910.760.91 -0.137-0.077-0
10276.98 11.447.38 39.3524.13 30.770.90.790.830.927777.72777.239.4124.4130.210.3540.3590.2870.860.850.860.90.850.9 -0.117-0.074-0
11287.22 13.667.64 42.8623.22 33.290.90.790.830.924880.96881.0642.8923.4232.920.3510.3630.2850.870.810.870.910.810.91 -0.116-0.068-0
12297.88 13.47.74 42.325.18 34.880.90.790.830.924940.75940.9542.3325.3534.580.3550.3610.2840.880.830.880.890.830.89 -0.107-0.067-0
13307 136 43.7924.14 40.130.890.790.830.92861.17861.743.8124.1940.10.3560.3650.2790.910.790.910.880.790.88 -0.133-0.078-0
14316.6 11.966.32 46.1526.08 38.60.890.790.830.922860.36860.8646.1726.1338.540.3540.3630.2830.890.810.890.890.810.89 -0.131-0.08-0
15328.12 13.24.34 40.6425.14 54.40.890.790.830.913898.01898.1540.6225.1154.570.3670.3690.2640.970.760.970.810.760.81 -0.187-0.072-0
16338.98 12.76.52 42.8730.12 44.870.890.790.830.921060.061060.6442.7830.0845.160.3620.360.2780.910.830.910.830.830.83 -0.115-0.068-0
17348.34 14.247.18 48.8729.21 44.290.890.790.830.921141.561142.2548.8729.144.610.3570.3630.280.90.810.90.870.810.87 -0.11-0.067-0
18358.24 12.85 45.3529.38 54.490.890.790.830.9151022.231022.0345.2429.255.090.3650.3660.270.950.790.950.820.790.82 -0.156-0.072-0
19367.82 13.64.66 48.3628.42 58.690.890.790.830.9121038.231037.448.3528.1259.420.3640.3690.2670.960.760.960.830.760.83 -0.172-0.074-0
20377.28 14.065.56 54.3829.27 53.790.890.790.830.9141106.491105.9654.3828.8954.650.3580.3670.2750.930.770.930.870.770.87 -0.143-0.077-0
21385.12 12.367.68 70.0231.29 39.890.90.790.830.9221051.591052.7569.9731.2640.120.340.3670.2930.830.810.830.980.810.98 -0.164-0.07-0
22395.84 13.64.74 62.1328.49 58.030.890.790.830.9111025.341023.5562.227.8759.330.3550.370.2750.940.730.940.90.730.9 -0.175-0.094-0
23407.06 12.866.34 60.1434.29 51.970.890.790.830.9171195.061195.2860.1333.8252.960.3550.3640.2810.90.80.90.890.80.89 -0.127-0.077-0
24418.56 14.35.44 55.7734.23 63.690.890.790.830.9121313.261311.2555.6533.6265.090.3630.3670.270.950.780.950.840.780.84 -0.144-0.068-0
25427.96 12.726.9 60.2838.65 53.560.890.790.830.9181341.081341.7960.2838.0754.740.3580.3610.2810.890.830.890.870.830.87 -0.113-0.071-0
26435.34 11.847.84 77.4937.56 44.590.890.790.830.9211208.071209.7777.5937.345.130.3430.3650.2920.830.820.830.970.820.97 -0.154-0.069-0
27446.86 14.046.9 71.136.85 55.520.890.790.830.9151388.181387.871.0636.1356.960.3510.3660.2830.890.790.890.910.790.91 -0.126-0.0730
28455.88 11.286.8 73.5440.46 51.310.890.790.830.9191237.731238.9673.6639.8452.420.350.3630.2880.860.820.860.920.820.92 -0.139-0.079-0
29467.1 13.126.84 71.4640.6 57.720.890.790.830.9161434.841434.7371.4539.7559.350.3540.3630.2830.890.810.890.90.810.9 -0.122-0.074-0
30477.52 11.27.52 68.7147.24 54.030.890.790.830.921452.061454.5868.9546.3755.410.3560.3570.2860.860.860.860.880.860.88 -0.109-0.073-0
31486.12 13.826.64 82.1539.29 59.820.890.790.830.9141442.971441.582.0238.2961.80.3480.3670.2850.890.780.890.930.780.93 -0.14-0.0770
AVE:337.1 13.076.39 49.6527.42 43.530.890.790.830.92977.72977.7549.6527.4243.530.3550.3650.280.90.80.90.890.80.89-0.139-0.074-0

À2:   Estimate the Diewert cost function directly.

XI. If we have a data set relating the input (factor) prices, wL, wK, and wM, to the total (minimum) cost of producing output for varying levels output, but do not have data on the required levels of inputs, we can estimate the Diewert cost function directly. We will use the same sequence (displayed in the "Diewert Cost Function" table) of factor prices, outputs, and total (minimum) cost as used in À1. The estimated coefficients of the cost function will vary with the parameters nu, rho, rhoL, rhoK, rhoM, alpha, beta and gamma of the Generalized CES production function used to generate these data.

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.2022880.122-1.66
cKK-0.1752590.087-2.022
cMM-0.2796820.064-4.401
2*dLK1.1999890.1936.231
2*dLM1.0098530.09610.557
2*dKM0.9917390.1089.207
 R2 = 0.9998 R2b = 0.9998 # obs = 31

The Diewert cost function as obtained by direct estimation is:

C(q;wL,wK,wM) = q^(1/nu1) * [cLL * wL + cKK * wK + cMM * wM + 2 * dLK * (wL*wK)^(1/2) + 2 * dLM * (wL*wM)^(1/2) + 2 * dKM * (wK*wM)^(1/2)]

= q^(1/0.92) * [-0.20229 * wL + -0.17526 * wK + -0.27968 * wM + 1.19999 * (wL*wK)^(1/2) + 1.00985 * (wL*wM)^(1/2) + 0.99174 * (wK*wM)^(1/2)]
(***)

XII. Its three derived factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.2023 + 0.6 * (wK / wL)^(1/2) + 0.5049 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.1753 + 0.6 * (wL / wK)^(1/2) + 0.4959 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.2797 + 0.5049 * (wL / wM)^(1/2) + 0.4959 * (wK / wM)^(1/2)]

The derived factor demand elasticities are obtained by:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu1) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,q = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu, etc.

For example, with wL = 7, wK = 13, wM = 6, and q = 30:

 εL,wL εL,wK εL,wM εL,q εK,wL εK,wK εK,wM εK,q εM,wL εM,wK εM,wM εM,q
 -0.5934 0.3776 0.2159 1.087 0.3657 -0.6456 0.2798 1.087 0.2739 0.3666 -0.6405 1.087

XIII. Notes:
1. As derived, dLK = dKL, dLM = dML, and dKM = dMK: Young's Theorem holds by construction.

2. C(q;wL,wK,wM) linear homogeneous in factor prices requires for any t > 0 that the unit cost function c(wL,wK,wM) obey:

c(t*wL,t*wK,t*wM) = t * c(wL,wK,wM).

For example, with wL = 7, wK = 13, wM = 6, and t = 2:

2 * c(7, 13, 6) = 42.76 = 42.76 = c(14, 26,12).

3. The matrix ∇2C of second order partial derivatives of the cost function C(q;wL,wK,wM) = h(q)*c(wL,wK,wM) is symmetric.

4. The cost function C(q;wL,wK,wM) is a concave in factor prices if the Hessian matrix H = ∇2wwc(wL,wK,wM) of second order partial derivatives with respect to factor prices is negative semidefinite.   The values of the second order partial derivatives depend on factor prices. As an example, consider the case where wL = 7, wK = 13, and wM = 6:

H = ∇2wwc =
 -0.09179 0.03145 0.03896 0.03145 -0.02989 0.02807 0.03896 0.02807 -0.10627

The principal minors of H are H1 = -0.091795, H2 = 0.001755, and H3 = 0.

If these principal minors alternate in sign, starting with negative, with H3 <= 0, the matrix H is negative (semi)definite,
and the cost function C(q;wL,wK,wM) is a concave function in factor prices at wL = 7, wK = 13, and wM = 6.

The eigenvalues of H are e1 = -0.1387, e2 = -0.0893, and e3 = 0.
H3 = e1 * e2 * e3 = 0.

XIV. Table of Results: check that the estimated Diewert cost function and input amounts for a given level of output agree with the Generalized CES production function's minimized cost and inputs. Also, compare the Allen partial elasticities of substitution, sLK, sLM, and sMK, with the Uzawa partial elasticities of substitution, uLK, uLM, and uKM.

Generalized CES-Diewert Cost Function
À2: Estimate the Diewert cost function directly
Parameters: rho = 0.17647, rhoL = 0.17647, rhoK = 0.11823, rhoM = 0.26339
nu = 1
—   Generalized CES Cost Data   —
nu1 = 0.92
—   Diewert Cost Data   —
Factor SharesUzawa Elasticities2wwc(w)
obs #qwLwKwM LK MsLKsLMsKMεLKMcostest costest Lest Kest MsLsKsMuLKuLMuKLuKMuMLuMKe1e2e3
1188.36 13.125.36 22.3513.83 26.990.90.790.830.925512.87512.7322.0714.3626.080.360.3680.2731.070.781.070.940.780.94 -0.151-0.080
2195.32 11.266.16 29.8414.35 22.130.90.790.830.93456.57455.4429.814.8221.110.3480.3660.2850.980.780.981.060.781.06 -0.164-0.0960
3205.66 11.14.74 28.5514.66 27.450.90.790.830.924454.48454.6628.5514.9826.750.3550.3660.2791.040.751.041.010.751.01 -0.177-0.110
4217.56 14.744.38 27.714.28 35.720.890.790.830.917576.38577.6627.9114.3635.390.3650.3660.2681.120.71.120.960.70.96 -0.198-0.086-0
5226.48 12.388 34.3518.23 23.980.90.790.830.93640.11638.1634.218.9222.790.3470.3670.2860.950.830.951.060.831.06 -0.131-0.0770
6237.62 14.57.72 34.3618.3 28.050.90.790.830.926743.8743.4534.2518.7827.230.3510.3660.28310.7911.030.791.03 -0.116-0.076-0
7248.96 13.685.62 30.1119.4 36.250.890.790.830.921738.87739.2729.7119.8735.80.360.3680.2721.070.781.070.930.780.93 -0.144-0.0750
8255.88 14.27.74 43.1518.79 28.180.90.790.830.926738.73738.6343.3119.0827.520.3450.3670.2880.970.770.971.10.771.1 -0.15-0.076-0
9266.58 14.866.36 41.0418.93 34.350.890.790.830.921769.8770.5941.2718.9334.230.3520.3650.2831.030.731.031.050.731.05 -0.143-0.0880
10276.98 11.447.38 39.3524.13 30.770.90.790.830.927777.72776.8439.0224.8729.80.3510.3660.2830.970.850.971.020.851.02 -0.121-0.084-0
11287.22 13.667.64 42.8623.22 33.290.90.790.830.924880.96881.342.7423.6432.710.350.3660.2840.990.80.991.040.81.04 -0.121-0.078-0
12297.88 13.47.74 42.325.18 34.880.90.790.830.924940.75940.944225.7234.290.3520.3660.2820.990.820.991.010.821.01 -0.111-0.077-0
13307 136 43.7924.14 40.130.890.790.830.92861.17862.0643.6624.2740.150.3550.3660.2791.030.771.0310.771 -0.139-0.0890
14316.6 11.966.32 46.1526.08 38.60.890.790.830.922860.36861.1145.9526.3638.380.3520.3660.28210.811.010.81.01 -0.136-0.0910
15328.12 13.24.34 40.6425.14 54.40.890.790.830.913898.01897.7440.3125.0755.180.3650.3690.2671.110.741.110.920.740.92 -0.197-0.081-0
16338.98 12.76.52 42.8730.12 44.870.890.790.830.921060.061060.0442.1130.6244.950.3570.3670.2761.030.831.030.940.830.94 -0.12-0.076-0
17348.34 14.247.18 48.8729.21 44.290.890.790.830.921141.561142.548.5229.3844.480.3540.3660.281.020.81.020.990.80.99 -0.114-0.0760
18358.24 12.85 45.3529.38 54.490.890.790.830.9151022.231021.8344.7629.3755.40.3610.3680.2711.080.771.080.930.770.93 -0.163-0.081-0
19367.82 13.64.66 48.3628.42 58.690.890.790.830.9121038.231037.2148.1228.0260.050.3630.3670.271.10.741.10.940.740.94 -0.18-0.084-0
20377.28 14.065.56 54.3829.27 53.790.890.790.830.9141106.491106.2754.3428.7855.040.3580.3660.2771.060.741.060.990.740.99 -0.149-0.088-0
21385.12 12.367.68 70.0231.29 39.890.90.790.830.9221051.591052.7370.331.3839.710.3420.3680.290.940.790.941.120.791.12 -0.173-0.078-0
22395.84 13.64.74 62.1328.49 58.030.890.790.830.9111025.341023.2662.6527.3960.110.3580.3640.2781.080.71.081.030.71.03 -0.183-0.1070
23407.06 12.866.34 60.1434.29 51.970.890.790.830.9171195.061195.7259.8734.0452.890.3530.3660.281.020.791.021.010.791.01 -0.132-0.087-0
24418.56 14.35.44 55.7734.23 63.690.890.790.830.9121313.261311.2355.2533.6865.560.3610.3670.2721.080.761.080.950.760.95 -0.151-0.077-0
25427.96 12.726.9 60.2838.65 53.560.890.790.830.9181341.081341.6859.6638.6354.40.3540.3660.281.010.821.010.980.820.98 -0.117-0.081-0
26435.34 11.847.84 77.4937.56 44.590.890.790.830.9211208.071209.5977.737.6444.510.3430.3680.2890.930.810.931.110.811.11 -0.163-0.078-0
27446.86 14.046.9 71.136.85 55.520.890.790.830.9151388.181388.4571.0836.1856.930.3510.3660.2831.010.771.011.040.771.04 -0.131-0.083-0
28455.88 11.286.8 73.5440.46 51.310.890.790.830.9191237.731239.173.4240.2851.910.3480.3670.2850.970.810.971.050.811.05 -0.146-0.089-0
29467.1 13.126.84 71.4640.6 57.720.890.790.830.9161434.841435.2371.1640.0559.140.3520.3660.28210.7911.020.791.02 -0.127-0.084-0
30477.52 11.27.52 68.7147.24 54.030.890.790.830.921452.061453.1367.9847.4754.550.3520.3660.2820.970.860.9710.861 -0.113-0.083-0
31486.12 13.826.64 82.1539.29 59.820.890.790.830.9141442.971442.182.3538.1661.860.3490.3660.2851.010.751.011.060.751.06 -0.146-0.0870
AVE:337.1 13.076.39 49.4827.59 43.510.890.790.830.92977.72977.7649.4827.5943.510.3540.3670.281.020.781.021.010.781.01-0.145-0.084-0

The Generalized CES production function as specified:

q = 1 * [0.35 * L^- 0.17647 + 0.4 * K^- 0.11823 + 0.25 *M^- 0.26339]^(-1/0.17647) = f(L,K,M).

À3:   Estimate the factor demand equations separately, with nu1 = 1.

XVI. For these coefficients of the CES Generalized production function, I generated a sequence (displayed in the "Generalized CES-Diewert Cost Function" table) of factor prices, outputs, and the corresponding cost minimizing inputs. Then I used these data to estimate the coefficients of each factor share equation separately:

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1562690.097-1.607
dLK0.6790570.097.539
dLM0.7534720.06910.85
 R2 = 0.9412 R2b = 0.937 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK-0.1470490.111-1.329
dKL0.7210130.126.029
dKM0.6301380.0857.402
 R2 = 0.7501 R2b = 0.7322 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.226550.009-25.04
dML0.692380.01352.683
dMK0.5570490.01246.649
 R2 = 0.9992 R2b = 0.9991 # obs = 31

The three estimated factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-0.1563 + 0.6791 * (wK / wL)^(1/2) + 0.7535 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.147 + 0.721 * (wL / wK)^(1/2) + 0.6301 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2266 + 0.6924 * (wL / wM)^(1/2) + 0.557 * (wK / wM)^(1/2)]

As estimated, generally dLK != dKL, dLM != dML, and dKM != dMK: Young's Theorem doesn't hold without constraints across equations. Consequently, I use the sum of the cross parameters in the Diewert cost function.

The estimated factor demand elasticities are obtained by:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu1) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,q = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu1, etc.

For example, with wL = 7, wK = 13, wM = 6, and q = 30:

 εL,wL εL,wK εL,wM εL,q εK,wL εK,wK εK,wM εK,q εM,wL εM,wK εM,wM εM,q
 -0.5533 0.3155 0.2378 1 0.3265 -0.5908 0.2642 1 0.2788 0.3057 -0.5845 1

XVII. The Diewert cost function as obtained from the unrestricted factor demand equations is:

C(q;wL,wK,wM) = q^(1/nu1) * [cLL * wL + cKK * wK + cMM * wM + (dLK+dKL) * (wL*wK)^(1/2) + (dLM +dML) * (wL*wM)^(1/2) + (dKM+dMK) * (wK*wM)^(1/2)]

= q^(1/1) * [-0.15627 * wL + -0.14705 * wK + -0.22655 * wM + 1.40007 * (wL*wK)^(1/2) + 1.44585 * (wL*wM)^(1/2) + 1.18719 * (wK*wM)^(1/2)]
(***)

XVIII. The Restricted Factor Demand Equations.

Having obtained the unrestricted estimates of the coefficients of the factor demand functions, we compute the restricted least squares estimates with dLK = dKL, dLM = dML, and dKM = dMK.

QR Restricted Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1621410.057095-2.83983
dLK0.7123470.04682115.214287
dLM0.7120140.0332621.407796
cKK-0.0897250.047654-1.882839
dKL0.7123470.04682115.214287
dKM0.5572280.03408516.347953
cMM-0.2477540.03878-6.388655
dML0.7120140.0332621.407796
dMK0.5572280.03408516.347953
 R2 = 0.9939 R2b = 0.9933 # obs = 93

dLK = dKL, dLM = dML, and dKM = dMK

The three estimated, restricted factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-0.1621 + 0.7123 * (wK / wL)^(1/2) + 0.712 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0897 + 0.7123 * (wL / wK)^(1/2) + 0.5572 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2478 + 0.712 * (wL / wM)^(1/2) + 0.5572 * (wK / wM)^(1/2)]

The estimated factor demand elasticities are obtained by:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu1) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,wq = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu, etc.

For example, with wL = 7, wK = 13, wM = 6, and q = 30:

 εL,wL εL,wK εL,wM εL,q εK,wL εK,wK εK,wM εK,q εM,wL εM,wK εM,wM εM,q
 -0.5552 0.3307 0.2245 1 0.322 -0.5553 0.2332 1 0.2866 0.3057 -0.5923 1

XIX. The Diewert cost function as obtained from the restricted factor demand equations is:

C(q;wL,wK,wM) = q^(1/nu) * [cLL * wL + cKK * wK + cMM * wM + (dLK+dKL) * (wL*wK)^(1/2) + (dLM +dML) * (wL*wM)^(1/2) + (dKM+dMK) * (wK*wM)^(1/2)]

= q^(1/1) * [-0.16214 * wL + -0.08972 * wK + -0.24775 * wM + 1.42469 * (wL*wK)^(1/2) + 1.42403 * (wL*wM)^(1/2) + 1.11446 * (wK*wM)^(1/2)]
(***)

XX. Note:
1. C(q;wL,wK,wM) linear homogeneous in factor prices requires for any t > 0 that the unit cost function c(wL,wK,wM) obey:

c(t*wL,t*wK,t*wM) = t * c(wL,wK,wM).

For example, with wL = 7, wK = 13, wM = 6, and t = 2:

2 * c(7, 13, 6) = 57.75 = 57.75 = c(14, 26,12).

2. The matrix ∇2C of second order partial derivatives of the cost function C(q;wL,wK,wM) = h(q)*c(wL,wK,wM) is symmetric:

 ∂2C/∂q∂wL = h'(q) * ∂c/∂wL = ∂2C/∂wL∂q, ∂2C/∂q∂wK = h'(q) * ∂c/∂wK = ∂2C/∂wK∂q, ∂2C/∂q∂wM = h'(q) * ∂c/∂wM = ∂2C/∂wM∂q, ∂2c/∂wL∂wK = .25 * (dLK+dKL)/(wL*wK)^(1/2) = ∂2c/∂wK∂wL, ∂2c/∂wL∂wM = .25 * (dLM+dML)/(wL*wM)^(1/2) = ∂2c/∂wM∂wL, ∂2c/∂wK∂wM = .25 * (dKM+dMK)/(wL*wK)^(1/2) = ∂2c/∂wM∂wK, and ∂2c/∂wL∂wL = -.25((dLK+dKL)*wK^(1/2) + (dLM+dML)*wM^(1/2))/wL^(3/2), ∂2c/∂wK∂wK = -.25((dKL+dLK)*wL^(1/2) + (dKM+dMK)*wM^(1/2))/wK^(3/2), ∂2c/∂wM∂wM = -.25((dML+dLM)*wL^(1/2) + (dMK+dKM)*wK^(1/2))/wM^(3/2).

3. The cost function C(q;wL,wK,wM) is a concave in factor prices if the Hessian matrix H = ∇2wwc(wL,wK,wM) of second order partial derivatives with respect to factor prices is negative semidefinite.   The values of the second order partial derivatives depend on factor prices. As an example, consider the case where wL = 7, wK = 13, and wM = 6:

H = ∇2wwc =
 -0.11643 0.03734 0.05493 0.03734 -0.03466 0.03155 0.05493 0.03155 -0.13244

The principal minors of H are H1 = -0.116426, H2 = 0.002642, and H3 = 0.

If these principal minors alternate in sign, starting with negative, with H3 <= 0, the matrix H is negative (semi)definite,
and the cost function C(q;wL,wK,wM) is a concave function in factor prices at wL = 7, wK = 13, and wM = 6.

The eigenvalues of H are e1 = -0.1799, e2 = -0.1036, and e3 = 0.
H3 = e1 * e2 * e3 = 0.

XXI. The factor share functions are:

 sL(q;wL,wK,wM) = wL * L(q; wL, wK, wM) / C(q;wL,wK,wM) = wL * ∂C/∂wL / C(q;wL,wK,wM) , sK(q;wL,wK,wM)= wK * K(q; wL, wK, wM) / C(q;wL,wK,wM) = wK * ∂C/∂wK / C(q;wL,wK,wM), sM(q;wL,wK,wM)= wM * M(q; wL, wK, wM) / C(q;wL,wK,wM) = wM * ∂C/∂wM / C(q;wL,wK,wM).
XXII. Uzawa Partial Elasticities of Substitution:

 uLK = C(q;wL,wK,wM) * ∂L(q;wL,wK,wM)/∂wK / (L(q;wL,wK,wM) * K(q;wL,wK,wM)), uLM = C(q;wL,wK,wM) * ∂L(q;wL,wK,wM)/∂wM / (L(q;wL,wK,wM) * M(q;wL,wK,wM)), uKL = C(q;wL,wK,wM) * ∂K(q;wL,wK,wM)/∂wL / (K(q;wL,wK,wM) * L(q;wL,wK,wM)), uKM = C(q;wL,wK,wM) * ∂K(q;wL,wK,wM)/∂wM / (K(q;wL,wK,wM) * M(q;wL,wK,wM)), uML = C(q;wL,wK,wM) * ∂M(q;wL,wK,wM)/∂wL / (M(q;wL,wK,wM) * L(q;wL,wK,wM)), uMK = C(q;wL,wK,wM) * ∂M(q;wL,wK,wM)/∂wK / (M(q;wL,wK,wM) * M(q;wL,wK,wM)),

Imposing the dLK = dKL, dLM = dML, and dKM = dMK restrictions in the factor demand functions, we get (approximate?) equality of the cross partial elasticities of substitution:

uLK = uKL,    uLM = uML,  and    uKM = uMK.

as seen in the following table.

XXIII. Table of Results: check that the estimated Diewert cost function and input amounts for a given level of output agree with the Generalized CES production function's minimized cost and inputs. Also, compare the Allen partial elasticities of substitution, sLK, sLM, and sMK, with the Uzawa partial elasticities of substitution, uLK, uLM, and uKM.

Generalized CES-Diewert Cost Function
À3: Estimate the Translog cost function using restricted factor shares
Parameters: rho = 0.17647, rhoL = 0.17647, rhoK = 0.11823, rhoM = 0.26339
nu = 1
—   Generalized CES Cost Data   —
nu1 = 1
—   Diewert Cost Data   —
Factor SharesUzawa Elasticities2wwc(w)
obs #qwLwKwM LK MsLKsLMsKMεLKMcostest costest Lest Kest MsLsKsMuLKuLMuKLuKMuMLuMKe1e2e3
1188.36 13.125.36 22.3513.83 26.990.90.790.830.925512.87538.8923.4115.0327.240.3630.3660.2710.940.810.940.790.810.79 -0.193-0.094-0
2195.32 11.266.16 29.8414.35 22.130.90.790.830.93456.57476.1631.1715.4322.180.3480.3650.2870.870.810.870.880.810.88 -0.213-0.112-0
3205.66 11.14.74 28.5514.66 27.450.90.790.830.924454.48473.2829.7415.6627.660.3560.3670.2770.910.790.910.840.790.84 -0.229-0.1280
4217.56 14.744.38 27.714.28 35.720.890.790.830.917576.38599.6528.8615.2135.910.3640.3740.2620.970.750.970.80.750.8 -0.251-0.102-0
5226.48 12.388 34.3518.23 23.980.90.790.830.93640.11659.1435.519.2223.90.3490.3610.290.850.850.850.880.850.88 -0.17-0.089-0
6237.62 14.57.72 34.3618.3 28.050.90.790.830.926743.8764.5135.3619.1728.140.3520.3630.2840.880.820.880.860.820.86 -0.151-0.087-0
7248.96 13.685.62 30.1119.4 36.250.890.790.830.921738.87757.8630.7720.2536.50.3640.3660.2710.940.810.940.780.810.78 -0.184-0.088-0
8255.88 14.27.74 43.1518.79 28.180.90.790.830.926738.73754.0944.0419.528.190.3430.3670.2890.860.80.860.910.80.91 -0.194-0.089-0
9266.58 14.866.36 41.0418.93 34.350.890.790.830.921769.8784.1241.8219.4734.530.3510.3690.280.90.780.90.870.780.87 -0.185-0.102-0
10276.98 11.447.38 39.3524.13 30.770.90.790.830.927777.72788.5440.0124.6830.740.3540.3580.2880.860.860.860.850.860.85 -0.159-0.097-0
11287.22 13.667.64 42.8623.22 33.290.90.790.830.924880.96890.9843.423.6633.310.3520.3630.2860.870.830.870.860.830.86 -0.157-0.090
12297.88 13.47.74 42.325.18 34.880.90.790.830.924940.75948.6842.725.5234.910.3550.360.2850.880.840.880.840.840.84 -0.145-0.088-0
13307 136 43.7924.14 40.130.890.790.830.92861.17866.2244.0324.3540.250.3560.3650.2790.910.810.910.840.810.84 -0.18-0.1040
14316.6 11.966.32 46.1526.08 38.60.890.790.830.922860.36862.8946.326.1838.640.3540.3630.2830.880.820.880.850.820.85 -0.178-0.105-0
15328.12 13.24.34 40.6425.14 54.40.890.790.830.913898.0189840.5325.2354.330.3670.3710.2630.970.780.970.770.780.77 -0.249-0.096-0
16338.98 12.76.52 42.8730.12 44.870.890.790.830.921060.061057.3642.6329.9845.060.3620.360.2780.910.850.910.790.850.79 -0.154-0.090
17348.34 14.247.18 48.8729.21 44.290.890.790.830.921141.561135.7948.628.9444.350.3570.3630.280.90.820.90.830.820.83 -0.148-0.0880
18358.24 12.85 45.3529.38 54.490.890.790.830.9151022.231013.7544.8129.0554.520.3640.3670.2690.950.810.950.780.810.78 -0.208-0.0960
19367.82 13.64.66 48.3628.42 58.690.890.790.830.9121038.231026.6547.7727.9658.560.3640.370.2660.960.780.960.790.780.79 -0.229-0.099-0
20377.28 14.065.56 54.3829.27 53.790.890.790.830.9141106.491091.7953.6528.6153.760.3580.3680.2740.930.780.930.830.780.83 -0.192-0.102-0
21385.12 12.367.68 70.0231.29 39.890.90.790.830.9221051.591036.6269.0330.739.540.3410.3660.2930.830.820.830.930.820.93 -0.223-0.091-0
22395.84 13.64.74 62.1328.49 58.030.890.790.830.9111025.341006.0361.0927.5457.970.3550.3720.2730.930.750.930.850.750.85 -0.235-0.1250
23407.06 12.866.34 60.1434.29 51.970.890.790.830.9171195.061171.8458.9633.1751.890.3550.3640.2810.90.820.90.840.820.84 -0.172-0.1010
24418.56 14.35.44 55.7734.23 63.690.890.790.830.9121313.261282.9254.3733.0163.50.3630.3680.2690.940.790.940.790.790.79 -0.193-0.091-0
25427.96 12.726.9 60.2838.65 53.560.890.790.830.9181341.081309.9258.8537.1453.490.3580.3610.2820.890.840.890.820.840.82 -0.153-0.094-0
26435.34 11.847.84 77.4937.56 44.590.890.790.830.9211208.071178.5975.7436.2144.060.3430.3640.2930.830.840.830.920.840.92 -0.21-0.091-0
27446.86 14.046.9 71.136.85 55.520.890.790.830.9151388.181349.3469.1335.1555.310.3510.3660.2830.890.80.890.860.80.86 -0.171-0.096-0
28455.88 11.286.8 73.5440.46 51.310.890.790.830.9191237.731202.371.5638.5850.940.350.3620.2880.860.840.860.880.840.88 -0.189-0.103-0
29467.1 13.126.84 71.4640.6 57.720.890.790.830.9161434.841389.669.2338.4957.470.3540.3630.2830.890.820.890.850.820.85 -0.165-0.0970
30477.52 11.27.52 68.7147.24 54.030.890.790.830.921452.061406.4366.744.6853.780.3570.3560.2880.860.870.860.840.870.84 -0.148-0.096-0
31486.12 13.826.64 82.1539.29 59.820.890.790.830.9141442.971390.9779.236.9959.510.3480.3670.2840.880.790.880.880.790.88 -0.19-0.101-0
AVE:337.1 13.076.39 49.3227.25 43.230.890.790.830.92977.72971.3849.3227.2543.230.3550.3650.280.90.810.90.840.810.84-0.188-0.098-0

À4:   Estimate the Diewert cost function directly, with nu1 = 1.

XXIV. If we have a data set relating the input (factor) prices, wL, wK, and wM, to the total (minimum) cost of producing output for varying levels output, but do not have data on the required levels of inputs, we can estimate the Diewert cost function directly. We will use the same sequence (displayed in the "Diewert Cost Function" table) of factor prices, outputs, and total (minimum) cost as used in À1. The estimated coefficients of the cost function will vary with the parameters nu, rho, rhoL, rhoK, rhoM, alpha, beta and gamma of the Generalized CES production function used to generate these data.

Under these circumstances, with nu1 = 1, the Diewert cost function may fail to be concave in factor prices, depending on the generated sequence of random factor prices, as one or more of the eigenvalues of the Hessian matrix H = ∇2wwc(wL,wK,wM) turn positive.

SVD Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL0.9506713.5880.265
cKK1.0618552.5510.416
cMM-0.5986661.871-0.32
2*dLK-1.2834475.668-0.226
2*dLM2.9408782.8151.045
2*dKM0.5846033.170.184
 R2 = 0.9138 R2b = 0.8966 # obs = 31 Observation Matrix Rank: 6
The Diewert cost function as obtained by direct estimation is:

C(q;wL,wK,wM) = q^(1/nu1) * [cLL * wL + cKK * wK + cMM * wM + 2 * dLK * (wL*wK)^(1/2) + 2 * dLM * (wL*wM)^(1/2) + 2 * dKM * (wK*wM)^(1/2)]

= q^(1/1) * [0.95067 * wL + 1.06185 * wK + -0.59867 * wM + -1.28345 * (wL*wK)^(1/2) + 2.94088 * (wL*wM)^(1/2) + 0.5846 * (wK*wM)^(1/2)]
(***)

XXVI. Its three derived factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [0.9507 + -0.6417 * (wK / wL)^(1/2) + 1.4704 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [1.0619 + -0.6417 * (wL / wK)^(1/2) + 0.2923 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.5987 + 1.4704 * (wL / wM)^(1/2) + 0.2923 * (wK / wM)^(1/2)]

The derived factor demand elasticities are obtained by:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu1) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu1) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,q = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu, etc.

For example, with wL = 7, wK = 13, wM = 6, and q = 30:

 εL,wL εL,wK εL,wM εL,q εK,wL εK,wK εK,wM εK,q εM,wL εM,wK εM,wM εM,q
 -0.1693 -0.3042 0.4735 1 -0.2982 0.1725 0.1258 1 0.5593 0.1515 -0.7108 1

XXVII. Notes:
1. As derived, dLK = dKL, dLM = dML, and dKM = dMK: Young's Theorem holds by construction.

2. C(q;wL,wK,wM) linear homogeneous in factor prices requires for any t > 0 that the unit cost function c(wL,wK,wM) obey:

c(t*wL,t*wK,t*wM) = t * c(wL,wK,wM).

For example, with wL = 7, wK = 13, wM = 6, and t = 2:

2 * c(7, 13, 6) = 57.69 = 57.69 = c(14, 26,12).

3. The matrix ∇2C of second order partial derivatives of the cost function C(q;wL,wK,wM) = h(q)*c(wL,wK,wM) is symmetric.

4. The cost function C(q;wL,wK,wM) is a concave in factor prices if the Hessian matrix H = ∇2wwc(wL,wK,wM) of second order partial derivatives with respect to factor prices is negative semidefinite.   The values of the second order partial derivatives depend on factor prices. As an example, consider the case where wL = 7, wK = 13, and wM = 6:

H = ∇2wwc =
 -0.03477 -0.03364 0.11345 -0.03364 0.01047 0.01655 0.11345 0.01655 -0.16821

The principal minors of H are H1 = -0.034774, H2 = -0.001496, and H3 = -0.

If these principal minors alternate in sign, starting with negative, with H3 <= 0, the matrix H is negative (semi)definite,
and the cost function C(q;wL,wK,wM) is a concave function in factor prices at wL = 7, wK = 13, and wM = 6.

The eigenvalues of H are e1 = -0.237, e2 = 0.0445, and e3 = 0.
H3 = e1 * e2 * e3 = -0.

XXVIII. Table of Results: check that the estimated Diewert cost function and input amounts for a given level of output agree with the Generalized CES production function's minimized cost and inputs. Also, compare the Allen partial elasticities of substitution, sLK, sLM, and sMK, with the Uzawa partial elasticities of substitution, uLK, uLM, and uKM.

Generalized CES-Diewert Cost Function
À4: Estimate the Diewert cost function directly
Parameters: rho = 0.17647, rhoL = 0.17647, rhoK = 0.11823, rhoM = 0.26339
nu = 1
—   Generalized CES Cost Data   —
nu1 = 1
—   Diewert Cost Data   —
Factor SharesUzawa Elasticities2wwc(w)
obs #qwLwKwM LK MsLKsLMsKMεLKMcostest costest Lest Kest MsLsKsMuLKuLMuKLuKMuMLuMKe1e2e3
1188.36 13.125.36 22.3513.83 26.990.90.790.830.925512.87536.7123.8313.2630.510.3710.3240.305-0.941.46-0.940.421.460.42 -0.2670.0430
2195.32 11.266.16 29.8414.35 22.130.90.790.830.93456.57476.8430.3915.922.10.3390.3760.285-0.781.73-0.780.451.730.45 -0.2430.0490
3205.66 11.14.74 28.5514.66 27.450.90.790.830.924454.48472.627.9515.8929.110.3350.3730.292-0.861.65-0.860.411.650.41 -0.30.0560
4217.56 14.744.38 27.714.28 35.720.890.790.830.917576.38594.0624.6515.9939.260.3140.3970.289-0.961.65-0.960.361.650.36 -0.3350.0490
5226.48 12.388 34.3518.23 23.980.90.790.830.93640.11660.337.3418.3223.940.3660.3430.29-0.761.66-0.760.491.660.49 -0.1920.0380
6237.62 14.57.72 34.3618.3 28.050.90.790.830.926743.8765.235.5518.6329.040.3540.3530.293-0.811.63-0.810.451.630.45 -0.1880.0370
7248.96 13.685.62 30.1119.4 36.250.890.790.830.921738.87755.1631.7417.5241.140.3770.3170.306-0.941.44-0.940.421.440.42 -0.2550.0410
8255.88 14.27.74 43.1518.79 28.180.90.790.830.926738.73756.8941.0121.6226.970.3190.4060.276-0.751.86-0.750.451.860.45 -0.2010.04-0
9266.58 14.866.36 41.0418.93 34.350.890.790.830.921769.8786.3437.2321.4834.940.3120.4060.283-0.831.79-0.830.411.790.41 -0.2260.0450
10276.98 11.447.38 39.3524.13 30.770.90.790.830.927777.72793.1344.3121.4732.270.390.310.3-0.811.53-0.810.491.530.49 -0.20.04-0
11287.22 13.667.64 42.8623.22 33.290.90.790.830.924880.96892.1744.2622.7934.210.3580.3490.293-0.81.63-0.80.461.630.46 -0.1920.0380
12297.88 13.47.74 42.325.18 34.880.90.790.830.924940.75951.7545.5622.9736.820.3770.3230.299-0.821.55-0.820.471.550.47 -0.1870.0370
13307 136 43.7924.14 40.130.890.790.830.92861.17865.3743.1323.6942.60.3490.3560.295-0.851.6-0.850.431.60.43 -0.2370.0450
14316.6 11.966.32 46.1526.08 38.60.890.790.830.922860.36863.7847.324.7340.490.3610.3420.296-0.831.59-0.830.451.590.45 -0.2280.044-0
15328.12 13.24.34 40.6425.14 54.40.890.790.830.913898.01887.4638.6423.2461.520.3540.3460.301-0.981.48-0.980.381.480.38 -0.340.0470
16338.98 12.76.52 42.8730.12 44.870.890.790.830.921060.061063.7847.5424.1550.650.4010.2880.31-0.921.4-0.920.461.40.46 -0.2170.039-0
17348.34 14.247.18 48.8729.21 44.290.890.790.830.921141.561136.7250.226.4647.520.3680.3320.3-0.861.54-0.860.441.540.44 -0.1980.0370
18358.24 12.85 45.3529.38 54.490.890.790.830.9151022.231008.1645.3725.5461.480.3710.3240.305-0.951.45-0.950.411.450.41 -0.2880.0450
19367.82 13.64.66 48.3628.42 58.690.890.790.830.9121038.231017.2544.6226.87650.3430.3590.298-0.951.54-0.950.381.540.38 -0.3120.0470
20377.28 14.065.56 54.3829.27 53.790.890.790.830.9141106.491088.449.722957.30.3330.3750.293-0.891.63-0.890.41.630.4 -0.2560.0450
21385.12 12.367.68 70.0231.29 39.890.90.790.830.9221051.591038.2166.6733.4136.960.3290.3980.273-0.711.88-0.710.481.880.48 -0.2150.0410
22395.84 13.64.74 62.1328.49 58.030.890.790.830.9111025.341009.4850.5531.7459.620.2920.4280.28-0.881.83-0.880.381.830.38 -0.3010.0560
23407.06 12.866.34 60.1434.29 51.970.890.790.830.9171195.061171.8659.1231.6654.770.3560.3470.296-0.841.59-0.840.441.590.44 -0.2250.043-0
24418.56 14.35.44 55.7734.23 63.690.890.790.830.9121313.261274.753.0330.5770.510.3560.3430.301-0.931.51-0.930.41.510.4 -0.2640.0420
25427.96 12.726.9 60.2838.65 53.560.890.790.830.9181341.081314.6363.3632.3257.860.3840.3130.304-0.861.49-0.860.461.490.46 -0.2060.0390
26435.34 11.847.84 77.4937.56 44.590.890.790.830.9211208.071178.6876.437.3641.890.3460.3750.279-0.721.8-0.720.491.80.49 -0.210.040
27446.86 14.046.9 71.136.85 55.520.890.790.830.9151388.181350.3966.323656.520.3370.3740.289-0.811.69-0.810.431.690.43 -0.210.041-0
28455.88 11.286.8 73.5440.46 51.310.890.790.830.9191237.731204.2173.9437.1551.530.3610.3480.291-0.781.65-0.780.471.650.47 -0.2210.044-0
29467.1 13.126.84 71.4640.6 57.720.890.790.830.9161434.841390.6569.9936.84600.3570.3480.295-0.821.61-0.820.451.610.45 -0.2110.0410
30477.52 11.27.52 68.7147.24 54.030.890.790.830.921452.061421.3676.9836.4557.740.4070.2870.305-0.831.47-0.830.511.470.51 -0.1940.0390
31486.12 13.826.64 82.1539.29 59.820.890.790.830.9141442.971394.9672.8640.259.270.320.3980.282-0.81.79-0.80.431.790.43 -0.2210.0450
AVE:337.1 13.076.39 49.0226.23 45.60.890.790.830.92977.72971.6549.0226.2345.60.3530.3530.294-0.851.62-0.850.441.620.44-0.2370.0430

Mathematical Notes

1. The Diewert (Generalized Leontief) cost function

C(q;wL,wK,wM) = h(q) * c(wL,wK,wM)         (**)

 where the returns to scale function is: h(q) = q^(1/nu), a continuous, increasing function of q (q >= 1), with h(0) = 0 and h(1) = 1, and the unit cost function is: c(wL,wK,wM) = cLL * wL + cKK * wK + cMM * wM + (dLK+dKL) * (wL*wK)^(1/2) + (dLM +dML) * (wL*wM)^(1/2) + (dKM+dMK) * (wK*wM)^(1/2),

linear in its parameters cLL, cKK, cMM, dLK, dKL, dLM, dML, dKM, and dMK.

2. The Factor Demand Functions:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/nu) * [cLL + dLK * (wK / wL)^(1/2) + dLM * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/nu) * [cKK + dKL * (wL / wK)^(1/2) + dKM * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/nu) * [cMM + dML * (wL / wM)^(1/2) + dMK * (wK / wM)^(1/2)]

3. The Factor Share Functions:

 sL(q;wL,wK,wM) = wL * L(q; wL, wK, wM) / C(q;wL,wK,wM) = wL * ∂C/∂wL / C(q;wL,wK,wM) , sK(q;wL,wK,wM)= wK * K(q; wL, wK, wM) / C(q;wL,wK,wM) = wK * ∂C/∂wK / C(q;wL,wK,wM), sM(q;wL,wK,wM)= wM * M(q; wL, wK, wM) / C(q;wL,wK,wM) = wM * ∂C/∂wM / C(q;wL,wK,wM).

4. The Factor Demand Elasticities:

 εL,wL = ∂ln(L(q;wL,wK,wM))/∂ln(wL) = -.5 * (q^1/nu) / L(q;wL,wK,wM)) * (dLK * (wK/wL)^1/2 + dLM * (wM/wL)^1/2), εL,wK = ∂ln(L(q;wL,wK,wM))/∂ln(wK) = .5 * (q^1/nu) / L(q;wL,wK,wM)) * dLK * (wK/wL)^1/2, εL,wM = ∂ln(L(q;wL,wK,wM))/∂ln(wM) = .5 * (q^1/nu) / L(q;wL,wK,wM)) * dLM * (wM/wL)^1/2, εL,q = ∂ln(L(q;wL,wK,wM))/∂ln(q) = 1/nu, etc.

5. Cost Function C(q;wL,wK,wM) Concave in Factor Prices:

 ∂2c/∂wL∂wL = -.25((dLK+dKL)*wK^(1/2) + (dLM+dML)*wM^(1/2))/wL^(3/2), ∂2c/∂wL∂wK = .25 * (dLK+dKL)/(wL*wK)^(1/2) = ∂2c/∂wK∂wL, ∂2c/∂wL∂wM = .25 * (dLM+dML)/(wL*wM)^(1/2) = ∂2c/∂wM∂wL, ∂2c/∂wK∂wK = -.25((dKL+dLK)*wL^(1/2) + (dKM+dMK)*wM^(1/2))/wK^(3/2), ∂2c/∂wK∂wM = .25 * (dKM+dMK)/(wL*wK)^(1/2) = ∂2c/∂wM∂wK, and ∂2c/∂wM∂wM = -.25((dML+dLM)*wL^(1/2) + (dMK+dKM)*wK^(1/2))/wM^(3/2). Copyright © Elmer G. Wiens:   Egwald Web Services All Rights Reserved.    Inquiries 