     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.0914230.006-16.479
dLK0.5102120.003149.301
dLM0.5209270.005101.186
 R2 = 0.9994 R2b = 0.9994 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK-0.0597430.017-3.465
dKL0.5329860.02620.349
dKM0.3968110.02515.789
 R2 = 0.9808 R2b = 0.9795 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.158860.036-4.399
dML0.4958880.03613.629
dMK0.4185330.02317.875
 R2 = 0.9768 R2b = 0.9751 # obs = 31

The three estimated factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.0914 + 0.5102 * (wK / wL)^(1/2) + 0.5209 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.0597 + 0.533 * (wL / wK)^(1/2) + 0.3968 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.1589 + 0.4959 * (wL / wM)^(1/2) + 0.4185 * (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.5421 0.3201 0.222 1.087 0.3254 -0.5497 0.2243 1.087 0.2697 0.3103 -0.58 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.09142 * wL + -0.05974 * wK + -0.15886 * wM + 1.0432 * (wL*wK)^(1/2) + 1.01682 * (wL*wM)^(1/2) + 0.81534 * (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.0865140.023551-3.673499
dLK0.5153350.01450135.538647
dLM0.5075650.01668130.42784
cKK-0.0574540.013388-4.291497
dKL0.5153350.01450135.538647
dKM0.4129830.01245333.163598
cMM-0.1633490.020913-7.810872
dML0.5075650.01668130.42784
dMK0.4129830.01245333.163598
 R2 = 0.9971 R2b = 0.9968 # 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.0865 + 0.5153 * (wK / wL)^(1/2) + 0.5076 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.0575 + 0.5153 * (wL / wK)^(1/2) + 0.413 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.1633 + 0.5076 * (wL / wM)^(1/2) + 0.413 * (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.5398 0.3234 0.2164 1.087 0.3145 -0.5478 0.2333 1.087 0.2761 0.3062 -0.5823 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.08651 * wL + -0.05745 * wK + -0.16335 * wM + 1.03067 * (wL*wK)^(1/2) + 1.01513 * (wL*wM)^(1/2) + 0.82597 * (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.75 = 42.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.08373 0.02701 0.03916 0.02701 -0.02534 0.02338 0.03916 0.02338 -0.09634

The principal minors of H are H1 = -0.083728, H2 = 0.001392, 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.1297, e2 = -0.0757, 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.76 11.084.48 19.8614.81 28.910.890.790.830.925467.57467.6519.8115.3527.680.3710.3640.2650.930.80.930.750.80.75 -0.169-0.069-0
2196.2 12.886.54 29.0214.17 23.210.90.790.830.928514.16513.2328.914.5922.350.3490.3660.2850.860.780.860.870.780.87 -0.134-0.0750
3206 13.924.14 28.8812.77 32.340.890.790.830.918484.9486.6929.0713.1331.270.3580.3760.2660.930.710.930.840.710.84 -0.194-0.092-0
4215.74 14.766.08 34.6714.11 27.30.90.790.830.923573.29573.8634.5414.4826.630.3450.3720.2820.880.730.880.890.730.89 -0.151-0.08-0
5227.7 11.286.92 29.3319.58 26.610.90.790.830.929630.75629.4629.3119.9125.890.3590.3570.2850.860.830.860.820.830.82 -0.109-0.073-0
6235.48 13.984 35.1314.42 37.120.890.790.830.915542.54544.3635.3514.6836.340.3560.3770.2670.930.690.930.850.690.85 -0.204-0.1010
7248.34 12.247.02 31.7521.25 30.180.90.790.830.927736.7736.1131.7521.5429.590.360.3580.2820.870.820.870.810.820.81 -0.106-0.0680
8255.1 13.844.04 39.9915.63 39.250.890.790.830.914578.81580.3640.1615.8338.740.3530.3770.270.930.690.930.860.690.86 -0.205-0.107-0
9268.14 11.225.44 32.2322.83 36.730.890.790.830.923718.35718.6332.2223.0936.260.3650.3610.2750.90.810.90.780.810.78 -0.134-0.0730
10275.22 13.664.54 43.8517.79 39.720.890.790.830.916652.3653.4643.8917.9539.460.3510.3750.2740.910.710.910.870.710.87 -0.185-0.1-0
11286.08 13.087.86 46.7922.7 30.830.90.790.830.926823.69823.8746.6322.9730.520.3440.3650.2910.830.80.830.90.80.9 -0.132-0.065-0
12296.76 12.647.36 44.6524.49 33.810.90.790.830.924860.18860.5244.6124.6633.590.350.3620.2870.850.80.850.860.80.86 -0.119-0.069-0
13307 136 43.7924.14 40.130.890.790.830.92861.17861.8543.7824.2540.030.3560.3660.2790.880.780.880.840.780.84 -0.13-0.0760
14317.34 14.847.5 48.5224.93 38.420.890.790.830.9211014.191015.0148.4425.0138.430.350.3660.2840.860.780.860.860.780.86 -0.114-0.065-0
15326.24 14.84.1 48.1321.43 54.080.890.790.830.91839.18839.7248.3821.3953.960.360.3770.2630.940.70.940.830.70.83 -0.198-0.0890
16335.18 12.745.22 55.2323.97 43.820.890.790.830.916820.31820.9155.0723.9544.160.3470.3720.2810.880.740.880.880.740.88 -0.169-0.092-0
17348.92 13.025.84 43.7529.92 49.630.890.790.830.9171069.591070.1443.7429.8349.920.3650.3630.2720.910.80.910.790.80.79 -0.126-0.065-0
18355.5 14.35.18 59.1324.51 49.260.890.790.830.913930.81930.958.9824.3549.870.3480.3740.2770.90.720.90.880.720.88 -0.166-0.091-0
19367.76 14.286.54 53.0529.78 48.620.890.790.830.91711551155.4853.0229.5949.150.3560.3660.2780.890.780.890.830.780.83 -0.118-0.069-0
20376.4 13.584.1 54.0826.76 61.50.890.790.830.909961.6960.7154.2126.561.910.3610.3750.2640.940.720.940.820.720.82 -0.194-0.087-0
21387.22 11.547.46 56.2235.91 43.680.890.790.830.9221146.081147.8456.3635.5744.30.3540.3580.2880.840.830.840.850.830.85 -0.11-0.07-0
22398.22 11.386.28 51.6337.33 51.240.890.790.830.9191170.991172.0451.6736.8652.20.3620.3580.280.880.820.880.80.820.8 -0.115-0.072-0
23408.24 14.964.42 53.930.65 70.560.890.790.830.9081214.541212.345430.2971.080.3670.3740.2590.950.730.950.790.730.79 -0.181-0.068-0
24417.06 14.565.12 61.5231.43 62.860.890.790.830.9111213.791211.8661.4930.9463.940.3580.3720.270.920.740.920.830.740.83 -0.152-0.0780
25426.26 11.966.92 67.4537.08 49.050.890.790.830.9191205.131206.4667.436.5950.130.350.3630.2880.850.80.850.870.80.87 -0.129-0.074-0
26435.22 14.484.28 73.5629.1 67.370.890.790.830.9071093.81090.0673.4328.4268.990.3520.3770.2710.920.690.920.870.690.87 -0.196-0.103-0
27448.62 11.94.26 53.739.01 75.030.890.790.830.911246.771244.0453.5538.4176.360.3710.3670.2610.940.780.940.750.780.75 -0.182-0.068-0
28458.96 12.167.38 60.9345.24 56.330.890.790.830.9191511.681513.6861.0644.2858.020.3610.3560.2830.870.840.870.80.840.8 -0.099-0.0660
29468.48 14.987.56 69.2340.88 59.590.890.790.830.9151649.881649.5469.1640.0261.320.3560.3630.2810.870.790.870.840.790.84 -0.103-0.062-0
30477.3 13.924.18 66.3136.48 81.270.890.790.830.9061331.571325.8566.2935.6182.840.3650.3740.2610.940.730.940.80.730.8 -0.19-0.077-0
31487.98 13.925.14 67.4440.22 75.220.890.790.830.9091484.641480.0467.3139.2377.210.3630.3690.2680.920.760.920.80.760.8 -0.148-0.070
AVE:337.01 13.255.67 48.526.43 47.490.890.790.830.917951.74951.5148.526.4347.490.3570.3680.2750.90.760.90.830.760.83-0.15-0.078-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.1578520.097-1.63
cKK-0.1408150.052-2.705
cMM-0.1383560.103-1.341
2*dLK1.2239530.11310.797
2*dLM0.8981250.1247.242
2*dKM0.8661720.1068.184
 R2 = 0.9997 R2b = 0.9997 # 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.15785 * wL + -0.14081 * wK + -0.13836 * wM + 1.22395 * (wL*wK)^(1/2) + 0.89812 * (wL*wM)^(1/2) + 0.86617 * (wK*wM)^(1/2)]
(***)

XII. Its three derived factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.1579 + 0.612 * (wK / wL)^(1/2) + 0.4491 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.1408 + 0.612 * (wL / wK)^(1/2) + 0.4331 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.1384 + 0.4491 * (wL / wM)^(1/2) + 0.4331 * (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.5723 0.3819 0.1904 1.087 0.3727 -0.6169 0.2442 1.087 0.2464 0.3239 -0.5703 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.08927 0.03208 0.03465 0.03208 -0.02859 0.02452 0.03465 0.02452 -0.09354

The principal minors of H are H1 = -0.089267, H2 = 0.001523, 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.1263, e2 = -0.0851, 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.76 11.084.48 19.8614.81 28.910.890.790.830.925467.57468.0619.7115.7127.090.3690.3720.2591.090.731.090.780.730.78 -0.162-0.079-0
2196.2 12.886.54 29.0214.17 23.210.90.790.830.928514.16513.229.114.5422.250.3520.3650.2841.020.691.020.920.690.92 -0.135-0.0820
3206 13.924.14 28.8812.77 32.340.890.790.830.918484.9486.7829.7712.931.050.3670.3690.2641.10.621.10.90.620.9 -0.188-0.105-0
4215.74 14.766.08 34.6714.11 27.30.90.790.830.923573.29573.3335.1814.226.620.3520.3650.2821.040.641.040.950.640.95 -0.152-0.0870
5227.7 11.286.92 29.3319.58 26.610.90.790.830.929630.75629.0629.0320.2625.570.3550.3630.2811.010.751.010.860.750.86 -0.107-0.081-0
6235.48 13.984 35.1314.42 37.120.890.790.830.915542.54544.0136.3514.3236.160.3660.3680.2661.10.61.10.920.60.92 -0.198-0.115-0
7248.34 12.247.02 31.7521.25 30.180.90.790.830.927736.7735.8131.521.929.20.3570.3640.2791.020.741.020.850.740.85 -0.102-0.0770
8255.1 13.844.04 39.9915.63 39.250.890.790.830.914578.81579.5941.3415.3738.620.3640.3670.2691.10.591.10.940.590.94 -0.201-0.121-0
9268.14 11.225.44 32.2322.83 36.730.890.790.830.923718.35718.7232.0223.5435.650.3630.3670.271.050.731.050.820.730.82 -0.128-0.083-0
10275.22 13.664.54 43.8517.79 39.720.890.790.830.916652.3652.844.9817.5239.360.360.3670.2741.080.611.080.940.610.94 -0.182-0.1120
11286.08 13.087.86 46.7922.7 30.830.90.790.830.926823.69823.6846.7822.930.50.3450.3640.2910.990.70.990.940.70.94 -0.136-0.0690
12296.76 12.647.36 44.6524.49 33.810.90.790.830.924860.18860.444.624.7733.410.350.3640.28610.7110.910.710.91 -0.121-0.075-0
13307 136 43.7924.14 40.130.890.790.830.92861.17862.1544.0324.2939.690.3570.3660.2761.040.691.040.880.690.88 -0.126-0.085-0
14317.34 14.847.5 48.5224.93 38.420.890.790.830.9211014.191015.0148.7324.9738.240.3520.3650.2831.020.691.020.910.690.91 -0.114-0.071-0
15326.24 14.84.1 48.1321.43 54.080.890.790.830.91839.18839.8349.6820.9653.570.3690.3690.2621.110.611.110.90.610.9 -0.191-0.102-0
16335.18 12.745.22 55.2323.97 43.820.890.790.830.916820.31820.456.0323.5544.080.3540.3660.281.050.641.050.940.640.94 -0.169-0.1010
17348.92 13.025.84 43.7529.92 49.630.890.790.830.9171069.591070.7543.6530.349.120.3640.3680.2681.060.721.060.830.720.83 -0.121-0.075-0
18355.5 14.35.18 59.1324.51 49.260.890.790.830.913930.81929.9860.323.8149.780.3570.3660.2771.070.621.070.940.620.94 -0.165-0.1-0
19367.76 14.286.54 53.0529.78 48.620.890.790.830.91711551155.9353.3229.6648.710.3580.3660.2761.040.691.040.880.690.88 -0.115-0.0770
20376.4 13.584.1 54.0826.76 61.50.890.790.830.909961.6961.5455.3626.261.330.3680.370.2621.10.631.10.880.630.88 -0.187-0.099-0
21387.22 11.547.46 56.2235.91 43.680.890.790.830.9221146.081147.2155.9136.0543.90.3520.3630.2850.990.750.990.880.750.88 -0.111-0.076-0
22398.22 11.386.28 51.6337.33 51.240.890.790.830.9191170.991171.5351.237.651.40.3590.3650.2761.030.751.030.830.750.83 -0.11-0.0820
23408.24 14.964.42 53.930.65 70.560.890.790.830.9081214.541214.6854.8930.2570.10.3720.3730.2551.110.651.110.840.650.84 -0.175-0.078-0
24417.06 14.565.12 61.5231.43 62.860.890.790.830.9111213.791212.6562.4830.763.380.3640.3690.2681.080.651.080.890.650.89 -0.147-0.088-0
25426.26 11.966.92 67.4537.08 49.050.890.790.830.9191205.131206.3167.4436.749.880.350.3640.28610.7110.910.710.91 -0.13-0.079-0
26435.22 14.484.28 73.5629.1 67.370.890.790.830.9071093.81088.3575.6227.5668.830.3630.3670.2711.10.591.10.940.590.94 -0.192-0.1170
27448.62 11.94.26 53.739.01 75.030.890.790.830.911246.771246.1453.6239.0874.860.3710.3730.2561.10.71.10.790.70.79 -0.175-0.078-0
28458.96 12.167.38 60.9345.24 56.330.890.790.830.9191511.681512.3360.3245.2357.170.3570.3640.2791.020.761.020.840.760.84 -0.095-0.074-0
29468.48 14.987.56 69.2340.88 59.590.890.790.830.9151649.881649.8469.2840.2560.760.3560.3650.2781.030.711.030.880.710.88 -0.101-0.0690
30477.3 13.924.18 66.3136.48 81.270.890.790.830.9061331.571327.9567.4735.4581.810.3710.3720.2581.110.641.110.850.640.85 -0.183-0.088-0
31487.98 13.925.14 67.4440.22 75.220.890.790.830.9091484.641481.8367.9439.3776.210.3660.370.2641.080.671.080.850.670.85 -0.143-0.080
AVE:337.01 13.255.67 48.9626.45 47.040.890.790.830.917951.74951.6148.9626.4547.040.360.3670.2731.060.681.060.880.680.88-0.147-0.087-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.0396240.071-0.556
dLK0.6622450.04415.085
dLM0.6518080.0669.855
 R2 = 0.9427 R2b = 0.9386 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK-0.0888310.057-1.547
dKL0.7586090.0878.695
dKM0.506330.0846.048
 R2 = 0.8954 R2b = 0.8879 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.2593060.014-18.155
dML0.7261030.01450.451
dMK0.5535140.00959.764
 R2 = 0.9981 R2b = 0.9979 # obs = 31

The three estimated factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-0.0396 + 0.6622 * (wK / wL)^(1/2) + 0.6518 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0888 + 0.7586 * (wL / wK)^(1/2) + 0.5063 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2593 + 0.7261 * (wL / wM)^(1/2) + 0.5535 * (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.5135 0.3077 0.2058 1 0.3429 -0.5547 0.2119 1 0.2927 0.3041 -0.5968 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.03962 * wL + -0.08883 * wK + -0.25931 * wM + 1.42085 * (wL*wK)^(1/2) + 1.37791 * (wL*wM)^(1/2) + 1.05984 * (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.0850650.04205-2.022927
dLK0.6699140.02589125.874103
dLM0.6903830.02978423.179524
cKK-0.0623310.023904-2.607519
dKL0.6699140.02589125.874103
dKM0.5646380.02223525.394171
cMM-0.2364460.037341-6.332131
dML0.6903830.02978423.179524
dMK0.5646380.02223525.394171
 R2 = 0.9949 R2b = 0.9944 # 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.0851 + 0.6699 * (wK / wL)^(1/2) + 0.6904 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0623 + 0.6699 * (wL / wK)^(1/2) + 0.5646 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2364 + 0.6904 * (wL / wM)^(1/2) + 0.5646 * (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.529 0.3111 0.2178 1 0.3024 -0.5383 0.236 1 0.2782 0.31 -0.5882 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.08506 * wL + -0.06233 * wK + -0.23645 * wM + 1.33983 * (wL*wK)^(1/2) + 1.38077 * (wL*wM)^(1/2) + 1.12928 * (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.76 = 57.76 = 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.11087 0.03511 0.05326 0.03511 -0.03366 0.03197 0.05326 0.03197 -0.1314

The principal minors of H are H1 = -0.110865, H2 = 0.002499, 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.1754, e2 = -0.1005, 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.76 11.084.48 19.8614.81 28.910.890.790.830.925467.57491.620.9216.0629.10.3730.3620.2650.90.80.90.760.80.76 -0.23-0.0910
2196.2 12.886.54 29.0214.17 23.210.90.790.830.928514.16536.8130.215.2923.330.3490.3670.2840.830.780.830.880.780.88 -0.18-0.101-0
3206 13.924.14 28.8812.77 32.340.890.790.830.918484.9506.8430.1813.7132.60.3570.3760.2660.90.710.90.840.710.84 -0.264-0.1220
4215.74 14.766.08 34.6714.11 27.30.90.790.830.923573.29595.1735.6915.0727.60.3440.3740.2820.850.740.850.90.740.9 -0.202-0.107-0
5227.7 11.286.92 29.3319.58 26.610.90.790.830.929630.75650.0730.3720.5426.680.360.3560.2840.820.830.820.830.830.83 -0.147-0.0970
6235.48 13.984 35.1314.42 37.120.890.790.830.915542.54560.1236.2215.1637.430.3540.3780.2670.90.70.90.860.70.86 -0.277-0.1330
7248.34 12.247.02 31.7521.25 30.180.90.790.830.927736.7754.5132.6422.0430.280.3610.3580.2820.830.830.830.830.830.83 -0.143-0.090
8255.1 13.844.04 39.9915.63 39.250.890.790.830.914578.81592.9140.8216.2339.610.3510.3790.270.890.70.890.870.70.87 -0.278-0.141-0
9268.14 11.225.44 32.2322.83 36.730.890.790.830.923718.35731.5732.9123.4436.890.3660.3590.2740.860.810.860.790.810.79 -0.182-0.096-0
10275.22 13.664.54 43.8517.79 39.720.890.790.830.916652.3663.1144.3518.2940.050.3490.3770.2740.880.710.880.880.710.88 -0.249-0.133-0
11286.08 13.087.86 46.7922.7 30.830.90.790.830.926823.69833.0847.1123.330.780.3440.3660.290.80.80.80.910.80.91 -0.176-0.088-0
12296.76 12.647.36 44.6524.49 33.810.90.790.830.924860.18867.4944.9924.8933.790.3510.3630.2870.810.810.810.880.810.88 -0.16-0.093-0
13307 136 43.7924.14 40.130.890.790.830.92861.17866.3644.0124.3940.210.3560.3660.2780.850.780.850.850.780.85 -0.175-0.1010
14317.34 14.847.5 48.5224.93 38.420.890.790.830.9211014.191017.3948.5325.1238.460.350.3660.2840.830.790.830.870.790.87 -0.153-0.087-0
15326.24 14.84.1 48.1321.43 54.080.890.790.830.91839.18839.4848.221.4454.020.3580.3780.2640.910.70.910.840.70.84 -0.269-0.118-0
16335.18 12.745.22 55.2323.97 43.820.890.790.830.916820.31818.5454.7323.97440.3460.3730.2810.850.740.850.890.740.89 -0.227-0.1230
17348.92 13.025.84 43.7529.92 49.630.890.790.830.9171069.591064.2343.6229.5949.640.3660.3620.2720.870.80.870.80.80.8 -0.172-0.086-0
18355.5 14.35.18 59.1324.51 49.260.890.790.830.913930.81923.5658.2824.2549.460.3470.3760.2770.860.730.860.880.730.88 -0.224-0.121-0
19367.76 14.286.54 53.0529.78 48.620.890.790.830.91711551143.2652.4729.2948.60.3560.3660.2780.850.780.850.840.780.84 -0.16-0.091-0
20376.4 13.584.1 54.0826.76 61.50.890.790.830.909961.6948.353.426.1961.190.360.3750.2650.90.720.90.830.720.83 -0.264-0.1140
21387.22 11.547.46 56.2235.91 43.680.890.790.830.9221146.081130.2655.6235.0243.510.3550.3580.2870.810.830.810.860.830.86 -0.148-0.094-0
22398.22 11.386.28 51.6337.33 51.240.890.790.830.9191170.991151.7650.9636.1351.230.3640.3570.2790.840.830.840.810.830.81 -0.157-0.0950
23408.24 14.964.42 53.930.65 70.560.890.790.830.9081214.541188.5252.9329.6769.80.3670.3730.260.910.740.910.80.740.8 -0.247-0.089-0
24417.06 14.565.12 61.5231.43 62.860.890.790.830.9111213.791185.6160.0630.362.580.3580.3720.270.880.740.880.840.740.84 -0.207-0.1020
25426.26 11.966.92 67.4537.08 49.050.890.790.830.9191205.131177.6965.835.7848.820.350.3630.2870.810.810.810.880.810.88 -0.173-0.099-0
26435.22 14.484.28 73.5629.1 67.370.890.790.830.9071093.81062.3871.227.8267.280.350.3790.2710.890.70.890.880.70.88 -0.265-0.1370
27448.62 11.94.26 53.739.01 75.030.890.790.830.911246.771209.7952.2537.2174.330.3720.3660.2620.910.780.910.760.780.76 -0.249-0.089-0
28458.96 12.167.38 60.9345.24 56.330.890.790.830.9191511.681469.0759.4942.8756.210.3630.3550.2820.830.840.830.820.840.82 -0.134-0.087-0
29468.48 14.987.56 69.2340.88 59.590.890.790.830.9151649.881597.6467.0338.7759.320.3560.3640.2810.840.80.840.850.80.85 -0.139-0.083-0
30477.3 13.924.18 66.3136.48 81.270.890.790.830.9061331.571281.7164.0334.4180.20.3650.3740.2620.910.730.910.810.730.81 -0.259-0.101-0
31487.98 13.925.14 67.4440.22 75.220.890.790.830.9091484.641428.2264.9837.8274.540.3630.3690.2680.890.760.890.810.760.81 -0.202-0.093-0
AVE:337.01 13.255.67 48.1926.26 47.150.890.790.830.917951.74944.7448.1926.2647.150.3570.3680.2750.860.770.860.840.770.84-0.204-0.103-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
cLL-3.9499951.953-2.022
cKK-1.5653531.05-1.491
cMM-0.5260562.081-0.253
2*dLK6.2567862.2862.737
2*dLM2.8946582.5011.157
2*dKM0.2124192.1340.1
 R2 = 0.9535 R2b = 0.9442 # 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) * [-3.94999 * wL + -1.56535 * wK + -0.52606 * wM + 6.25679 * (wL*wK)^(1/2) + 2.89466 * (wL*wM)^(1/2) + 0.21242 * (wK*wM)^(1/2)]
(***)

XXVI. Its three derived factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-3.95 + 3.1284 * (wK / wL)^(1/2) + 1.4473 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-1.5654 + 3.1284 * (wL / wK)^(1/2) + 0.1062 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.5261 + 1.4473 * (wL / wM)^(1/2) + 0.1062 * (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
 -1.6946 1.2894 0.4053 1 1.4304 -1.4754 0.045 1 0.6549 0.0655 -0.7204 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) = 58.33 = 58.33 = 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.40023 0.16397 0.11166 0.16397 -0.09107 0.00601 0.11166 0.00601 -0.1433

The principal minors of H are H1 = -0.400232, H2 = 0.009561, 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.4996, e2 = -0.135, 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.76 11.084.48 19.8614.81 28.910.890.790.830.925467.57485.4410.8623.1129.970.1960.5270.2775.533.15.530.13.10.1 -0.418-0.2150
2196.2 12.886.54 29.0214.17 23.210.90.790.830.928514.16535.8438.8612.9419.610.450.3110.2393.541.523.540.231.520.23 -0.574-0.1160
3206 13.924.14 28.8812.77 32.340.890.790.830.918484.9511.0440.3510.9328.220.4740.2980.2293.971.33.970.231.30.23 -0.607-0.20
4215.74 14.766.08 34.6714.11 27.30.90.790.830.923573.29582.2753.689.5321.960.5290.2420.2294.061.274.060.331.270.33 -0.645-0.1190
5227.7 11.286.92 29.3319.58 26.610.90.790.830.929630.75651.3126.5924.26250.3140.420.2663.732.143.730.142.140.14 -0.448-0.125-0
6235.48 13.984 35.1314.42 37.120.890.790.830.915542.54558.2352.5110.3531.430.5160.2590.2254.221.24.220.281.20.28 -0.675-0.2030
7248.34 12.247.02 31.7521.25 30.180.90.790.830.927736.7756.928.0326.3428.60.3090.4260.2653.812.143.810.142.140.14 -0.414-0.1240
8255.1 13.844.04 39.9915.63 39.250.890.790.830.914578.81583.9762.299.7832.420.5440.2320.2244.461.154.460.331.150.33 -0.733-0.1950
9268.14 11.225.44 32.2322.83 36.730.890.790.830.923718.35731.5923.5630.536.320.2620.4680.274.332.424.330.122.420.12 -0.429-0.1680
10275.22 13.664.54 43.8517.79 39.720.890.790.830.916652.3653.6266.4311.632.670.5310.2430.2274.241.214.240.311.210.31 -0.709-0.1690
11286.08 13.087.86 46.7922.7 30.830.90.790.830.926823.69821.3963.9618.224.750.4730.290.2373.471.523.470.271.520.27 -0.594-0.0930
12296.76 12.647.36 44.6524.49 33.810.90.790.830.924860.18868.3453.323.329.010.4150.3390.2463.431.673.430.211.670.21 -0.52-0.106-0
13307 136 43.7924.14 40.130.890.790.830.92861.17874.9749.624.0735.810.3970.3580.2463.61.653.60.181.650.18 -0.5-0.135-0
14317.34 14.847.5 48.5224.93 38.420.890.790.830.9211014.191018.3660.822.0232.710.4380.3210.2413.531.553.530.221.550.22 -0.482-0.102-0
15326.24 14.84.1 48.1321.43 54.080.890.790.830.91839.18846.4565.3216.746.760.4820.2920.2264.041.274.040.241.270.24 -0.589-0.204-0
16335.18 12.745.22 55.2323.97 43.820.890.790.830.916820.31807.2679.516.4235.690.510.2590.2313.931.313.930.31.310.3 -0.707-0.142-0
17348.92 13.025.84 43.7529.92 49.630.890.790.830.9171069.591070.534.0237.2448.320.2840.4530.2644.172.224.170.122.220.12 -0.392-0.1540
18355.5 14.35.18 59.1324.51 49.260.890.790.830.913930.81907.6487.4615.3639.960.530.2420.2284.171.234.170.321.230.32 -0.673-0.144-0
19367.76 14.286.54 53.0529.78 48.620.890.790.830.91711551155.3258.4129.2643.470.3920.3620.2463.621.663.620.181.660.18 -0.45-0.125-0
20376.4 13.584.1 54.0826.76 61.50.890.790.830.909961.6963.7965.3223.754.590.4340.3340.2323.861.413.860.21.410.2 -0.565-0.2070
21387.22 11.547.46 56.2235.91 43.680.890.790.830.9221146.081133.1156.137.7939.140.3570.3850.2583.481.933.480.171.930.17 -0.48-0.111-0
22398.22 11.386.28 51.6337.33 51.240.890.790.830.9191170.991151.3338.8445.7249.640.2770.4520.2714.092.354.090.122.350.12 -0.422-0.1430
23408.24 14.964.42 53.930.65 70.560.890.790.830.9081214.541214.9253.0132.5765.820.360.4010.2393.971.673.970.151.670.15 -0.444-0.201-0
24417.06 14.565.12 61.5231.43 62.860.890.790.830.9111213.791201.3572.7827.7255.460.4280.3360.2363.771.473.770.21.470.2 -0.505-0.161-0
25426.26 11.966.92 67.4537.08 49.050.890.790.830.9191205.131177.4179.6332.7141.590.4230.3320.2443.431.643.430.211.640.21 -0.563-0.1120
26435.22 14.484.28 73.5629.1 67.370.890.790.830.9071093.81041.21110.5515.9454.510.5540.2220.2244.571.144.570.351.140.35 -0.719-0.1820
27448.62 11.94.26 53.739.01 75.030.890.790.830.911246.771210.2232.751.0775.250.2330.5020.2654.922.584.920.12.580.1 -0.429-0.22-0
28458.96 12.167.38 60.9345.24 56.330.890.790.830.9191511.681464.7845.3654.1354.230.2770.4490.2734.022.384.020.132.380.13 -0.386-0.121-0
29468.48 14.987.56 69.2340.88 59.590.890.790.830.9151649.881611.5872.4339.7453.190.3810.3690.253.571.743.570.181.740.18 -0.41-0.1080
30477.3 13.924.18 66.3136.48 81.270.890.790.830.9061331.571309.3368.8635.6474.280.3840.3790.2373.891.583.890.161.580.16 -0.497-0.210
31487.98 13.925.14 67.4440.22 75.220.890.790.830.9091484.641452.6964.4841.6669.70.3540.3990.2473.851.753.850.151.750.15 -0.442-0.169-0
AVE:337.01 13.255.67 55.3426.14 42.260.890.790.830.917951.74946.8555.3426.1442.260.4030.3520.2453.981.723.980.21.720.2-0.53-0.154-0

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 