     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: L. Diewert (Generalized Leontief) Cost Function

The three factor Diewert production function is:

q^1/nu = aLL * L + aKK * K + aMM * M + bLK * L^1/2 * K^1/2 + bLM * L^1/2 * M^1/2 + bKM * K^1/2 * M^1/2         (*)

=     f(L,K,M)

where L = labour, K = capital, M = materials and supplies, q = product output, and nu = elasticity of scale parameter.

If we have a data set relating these inputs to output for varying levels of inputs and output, we can estimate the parameters of the Diewert production function directly.

Suppose, however, we have a data set relating relating output quantities to total costs and input (factor) prices, wL, wK, and wM. Then, we can work with the Diewert (Generalized Leontief) cost function to estimate the parameters of the production technology.

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/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.

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

À1:   Estimate the parameters the cost function by way of its factor demand 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 also:

À3:   Re-estimate the Diewert Production Function — to investigate properties of the underlying technology.

Assuming dLK = dKL, dLM = dML, and dKM = dMK, the 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)

À1:   Estimate the factor demand equations separately.

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/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)]

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/nu), 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. Duality.  The Plan:

1. Generate CES data and estimate the parameters of a Diewert production function.

2. Generate cost data with the estimated Diewert 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 Diewert cost minimizing factor inputs, L, K, and M. The base factor prices and the randomizing distribution are specified in the form below.

3. 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.

The estimated coefficients of the Diewert production and cost functions will vary with the parameters sigma, nu, alpha, beta and gamma of the CES production function.

CES Production Function:

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

where L = labour, K = capital, M = materials and supplies, and q = product. The parameter nu is a measure of the economies of scale, while the parameter rho yields the elasticity of substitution:

sigma = 1/(1 + rho).

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

Restrictions: .7 < nu < 1.3; .5 < sigma < 1.5;
.25 < alpha < .45, .3 < beta < .5, .2 < gamma < .35
sigma = 1 → nu = alpha + beta + gamma (Cobb-Douglas)
sigma < 1 → inputs complements; sigma > 1 → inputs substitutes
4 <= wL* <= 11,   7<= wK* <= 16,   4 <= wM* <= 10

CES Production Function Parameters
elasticity of scale parameter: nu
elasticity of substitution: sigma
alpha
beta
gamma
Base Factor Prices
 wL* wK* wM*
Distribution to Randomize Factor Prices
 Use [-2, 2] Uniform distribution     Use .25 * Normal (μ = 0, σ2 = 1)

The CES production function as specified:

q = 1 * [0.35 * (L^- 0.17647) + 0.4 * (K^- 0.17647) + 0.25 *(M^- 0.17647)]^(-1/0.17647)

II. For these coefficients of the CES production function, I generated a sequence of factor prices, outputs, and the corresponding cost minimizing inputs. Then I estimated the Diewert production function using multiple regression yielding the following coefficient estimates:

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1480530.001-183.569
cKK-0.181890-424.452
cMM-0.179970-380.444
cLK0.6443770.001555.523
cLM0.3466190.001322.232
cKM0.519060.001465.723
 R2 = 1 R2b = 1 # obs = 182

nu = 1
aLL = -0.148053, aKK = -0.18189, aMM = -0.17997
bLK = 0.644377, bLM = 0.346619 bKM, = 0.51906

aLL + aKK + aMM + bLK + bLM + bKM = 1

The estimated Diewert production function:

q^1/1 = -0.148053 * L + -0.18189 * K + -0.17997 * M + 0.644377 * L^1/2 * K^1/2 + 0.346619 * L^1/2 * M^1/2 + 0.51906 * K^1/2 * M^1/2     =     f(L,K,M)

III. For these coefficients of the Diewert production function, I generated a new sequence (displayed in the "Diewert Cost Function" table) of factor prices, outputs, and the corresponding cost minimizing inputs.

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

Then I used these data to estimate the coefficients of each factor demand equation separately:

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1742250.002-78.177
dLK0.6553390.002332.741
dLM0.551770.002283.807
 R2 = 0.9999 R2b = 0.9999 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK-0.0086710.003-2.956
dKL0.6560360.003199.512
dKM0.5022510.003172.168
 R2 = 0.9996 R2b = 0.9996 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.2774140.005-61.598
dML0.547430.005111.918
dMK0.5021830.004114.385
 R2 = 0.9997 R2b = 0.9997 # obs = 31

The three estimated factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-0.1742 + 0.6553 * (wK / wL)^(1/2) + 0.5518 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0087 + 0.656 * (wL / wK)^(1/2) + 0.5023 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2774 + 0.5474 * (wL / wM)^(1/2) + 0.5022 * (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/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.

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.5708 0.3631 0.2077 1 0.2957 -0.5053 0.2096 1 0.2807 0.351 -0.6317 1

IV. The Diewert cost function as obtained from the unrestricted 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.17423 * wL + -0.00867 * wK + -0.27741 * wM + 1.31138 * (wL*wK)^(1/2) + 1.0992 * (wL*wM)^(1/2) + 1.00443 * (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.173810.003332-52.166044
dLK0.6565650.002557256.779853
dLM0.5494210.002123258.797616
cKK-0.0082770.002562-3.230222
dKL0.6565650.002557256.779853
dKM0.5010460.002122236.149187
cMM-0.2779370.002786-99.748246
dML0.5494210.002123258.797616
dMK0.5010460.002122236.149187
 R2 = 0.9999 R2b = 0.9999 # 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.1738 + 0.6566 * (wK / wL)^(1/2) + 0.5494 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0083 + 0.6566 * (wL / wK)^(1/2) + 0.501 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2779 + 0.5494 * (wL / wM)^(1/2) + 0.501 * (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/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,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.5707 0.3638 0.2068 1 0.296 -0.5051 0.2091 1 0.2818 0.3502 -0.632 1

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/1) * [-0.17381 * wL + -0.00828 * wK + -0.27794 * wM + 1.31313 * (wL*wK)^(1/2) + 1.09884 * (wL*wM)^(1/2) + 1.00209 * (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) = 51.01 = 51.01 = 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.10024 0.03441 0.04239 0.03441 -0.03162 0.02837 0.04239 0.02837 -0.11091

The principal minors of H are H1 = -0.100244, H2 = 0.001986, 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.1483, e2 = -0.0945, 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) * K(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 for a given level of output agrees with the minimized cost using the Diewert production function.

Diewert Cost Function
À1: Estimate the cost function using restricted factor demands
CES: Returns to Scale = 1, Elasticity of Substitution = 0.85
—   Diewert Production Data   —     —   Diewert Cost Data   —   Factor Shares   —   Uzawa Elasticities   —   2wwc(w)
obs #qwLwKwM LK MsLKsLMsKMcostest costest Lest Kest MsLsKsMuLKuLMuKLuKMuMLuMKe1e2e3
1187.74 12.325.98 20.4815.49 19.220.880.880.82464.25464.2320.4715.519.190.3410.4110.2470.890.860.890.820.860.82 -0.141-0.0910
2197.4 12.226.72 22.716.6 18.50.840.910.86495.2495.1722.6816.6118.510.3390.410.2510.860.870.860.850.870.85 -0.132-0.09-0
3206.06 11.185.62 24.9516.6 19.980.850.870.87449.15449.1324.9416.6119.990.3370.4130.250.860.850.860.860.850.86 -0.163-0.105-0
4216.58 11.824.22 24.0716.4 26.190.930.790.78462.69462.7124.0716.426.180.3420.4190.2390.920.80.920.80.80.8 -0.208-0.107-0
5226.08 14.424.58 28.9315.39 27.410.920.720.84523.29523.3528.9115.4127.370.3360.4250.240.910.760.910.840.760.84 -0.201-0.112-0
6238.98 14.324.9 24.3918.53 30.380.960.80.73633.22633.2524.4118.5130.410.3460.4190.2350.930.810.930.770.810.77 -0.181-0.079-0
7248.88 11.765.22 24.0221.5 28.670.930.890.73615.8615.8424.0721.5128.580.3470.4110.2420.920.870.920.770.870.77 -0.161-0.0850
8256.02 13.825.04 33.0818.17 28.860.890.760.87595.77595.7933.0918.1928.810.3340.4220.2440.890.780.890.850.780.85 -0.184-0.1090
9266.66 14.94.84 33.2118.6 32.410.920.730.83655.23655.2933.1918.6232.390.3370.4230.2390.910.770.910.830.770.83 -0.188-0.103-0
10275.84 11.264.5 32.9421.08 30.840.90.810.83568.49568.532.9421.130.790.3380.4180.2440.890.810.890.830.810.83 -0.196-0.116-0
11287.72 13.484.04 30.5821.39 38.960.980.750.73681.84681.8330.5521.3639.110.3460.4220.2320.940.790.940.780.790.78 -0.227-0.091-0
12295.88 11.884.4 35.8121.98 34.280.910.780.83622.49622.5135.812234.230.3380.420.2420.90.80.90.830.80.83 -0.202-0.116-0
13307 136 36.8924.4 31.620.870.850.86765.2765.1836.8924.4231.590.3370.4150.2480.880.840.880.840.840.84 -0.148-0.0940
14315.06 12.227.54 46.9925.16 24.920.750.881.01733.21733.3347.0325.0425.110.3250.4170.2580.810.860.810.940.860.94 -0.191-0.082-0
15327.2 11.825.8 37.1527.34 33.620.870.880.83785.66785.6237.1427.3633.580.340.4120.2480.880.860.880.830.860.83 -0.147-0.0960
16336.32 12.445.34 41.3225.99 35.830.880.820.86775.79775.7941.332635.790.3370.4170.2460.880.820.880.850.820.85 -0.168-0.104-0
17347.58 14.547.76 43.9428.29 32.280.830.880.9994.95994.9443.9128.2832.330.3350.4130.2520.850.850.850.870.850.87 -0.126-0.079-0
18357.82 12.424.6 37.5928.63 44.180.940.820.75852.74852.7937.6328.6244.160.3450.4170.2380.920.820.920.780.820.78 -0.189-0.091-0
19367.16 14.326.28 45.6928.35 38.390.870.820.87974.15974.1445.6928.3638.350.3360.4170.2470.880.820.880.850.820.85 -0.145-0.090
20378.82 12.124.4 36.3231.64 49.260.970.840.69920.57920.736.431.5949.270.3490.4160.2350.940.840.940.750.840.75 -0.201-0.083-0
21385.78 12.826.62 52.8830.16 35.380.810.850.94926.52926.5152.930.1235.440.330.4170.2530.840.830.840.90.830.9 -0.166-0.092-0
22398 12.76.12 44.2233.54 41.880.880.880.811035.991035.9444.2333.5641.810.3420.4110.2470.890.860.890.820.860.82 -0.138-0.088-0
23407.08 115.68 45.4935.11 41.360.870.90.82943.15943.0945.4735.1441.310.3410.410.2490.880.870.880.820.870.82 -0.149-0.0990
24415.86 13.845.7 56.430.35 43.540.860.780.91998.76998.7456.4630.3643.460.3310.4210.2480.870.790.870.880.790.88 -0.174-0.1030
25428.88 14.324.3 43.7932.98 59.610.990.760.71117.411117.3743.7832.959.890.3480.4220.230.950.80.950.760.80.76 -0.215-0.08-0
26436.86 13.287.68 56.8736.36 38.570.810.90.921169.241169.2856.836.3238.710.3330.4120.2540.840.870.840.890.870.89 -0.137-0.0810
27448.36 14.685.84 50.8335.32 51.720.910.820.81245.421245.4550.8435.3451.650.3410.4170.2420.90.820.90.810.820.81 -0.148-0.084-0
28455.92 12.584.36 56.4833.14 54.660.910.760.83989.54989.6156.4733.1754.60.3380.4220.2410.90.780.90.830.780.83 -0.206-0.115-0
29468.72 14.124.74 49.0536.75 61.190.960.790.731236.581236.6449.0736.7161.270.3460.4190.2350.930.810.930.770.810.77 -0.188-0.081-0
30478.74 12.327.82 53.0244.31 43.760.830.970.841351.491351.3352.8944.3643.790.3420.4040.2530.860.910.860.830.910.83 -0.109-0.081-0
31485.64 12.664.62 62.7335.13 55.710.890.760.861055.931055.9962.7435.1755.610.3350.4220.2430.890.780.890.850.780.85 -0.199-0.117-0
AVE:337.12 12.925.52 39.7726.6 37.20.890.830.83827.09827.139.7726.637.20.3390.4170.2440.890.830.890.830.830.83-0.172-0.095-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 sigma, nu, alpha, beta and gamma of the CES production function used to generate these data with the Diewert production function.

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1886430.004-47.907
cKK-0.011420.003-4.367
cMM-0.277660.003-87.012
2*dLK1.3279620.006226.393
2*dLM1.1107030.003342.432
2*dKM0.9936110.005203.835
 R2 = 1 R2b = 1 # obs = 31

The Diewert cost function as obtained by direct estimation is:

C(q;wL,wK,wM) = q^(1/nu) * [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.18864 * wL + -0.01142 * wK + -0.27766 * wM + 1.32796 * (wL*wK)^(1/2) + 1.1107 * (wL*wM)^(1/2) + 0.99361 * (wK*wM)^(1/2)]
(***)

XII. Its three derived factor demand functions are:

 ∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-0.1886 + 0.664 * (wK / wL)^(1/2) + 0.5554 * (wM / wL)^(1/2)] ∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0114 + 0.664 * (wL / wK)^(1/2) + 0.4968 * (wM / wK)^(1/2)] ∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2777 + 0.5554 * (wL / wM)^(1/2) + 0.4968 * (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/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.

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.5767 0.3677 0.2089 1 0.2995 -0.507 0.2075 1 0.2847 0.3471 -0.6318 1

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) = 51.01 = 51.01 = 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.10136 0.0348 0.04285 0.0348 -0.03172 0.02813 0.04285 0.02813 -0.11093

The principal minors of H are H1 = -0.101358, H2 = 0.002004, 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.1493, e2 = -0.0947, and e3 = 0.
H3 = e1 * e2 * e3 = 0.

XIV. Table of Results: check that the estimated Diewert cost function for a given level of output agrees with the minimized cost using the Diewert production function.

Diewert Cost Function
À2: Estimate the Diewert cost function directly
CES: Returns to Scale = 1, Elasticity of Substitution = 0.85
—   Diewert Production Data   —     —   Diewert Cost Data   —   Factor Shares   —   Uzawa Elasticities   —   2wwc(w)
obs #qwLwKwM LK MsLKsLMsKMcostest costest Lest Kest MsLsKsMuLKuLMuKLuKMuMLuMKe1e2e3
1187.74 12.325.98 20.4815.49 19.220.880.880.82464.25464.2520.4715.519.210.3410.4110.2470.90.870.90.810.870.81 -0.142-0.091-0
2197.4 12.226.72 22.716.6 18.50.840.910.86495.2495.222.6816.618.530.3390.410.2510.870.880.870.840.880.84 -0.133-0.09-0
3206.06 11.185.62 24.9516.6 19.980.850.870.87449.15449.1424.9616.5919.990.3370.4130.250.870.860.870.850.860.85 -0.164-0.1050
4216.58 11.824.22 24.0716.4 26.190.930.790.78462.69462.7124.0716.426.190.3420.4190.2390.930.810.930.80.810.8 -0.208-0.107-0
5226.08 14.424.58 28.9315.39 27.410.920.720.84523.29523.3128.9515.3927.360.3360.4240.2390.920.760.920.840.760.84 -0.202-0.113-0
6238.98 14.324.9 24.3918.53 30.380.960.80.73633.22633.2324.3818.5130.440.3460.4190.2360.940.820.940.770.820.77 -0.181-0.08-0
7248.88 11.765.22 24.0221.5 28.670.930.890.73615.8615.8124.0321.5228.620.3470.4110.2430.930.880.930.760.880.76 -0.161-0.085-0
8256.02 13.825.04 33.0818.17 28.860.890.760.87595.77595.7633.1418.1728.80.3350.4220.2440.90.790.90.850.790.85 -0.185-0.1090
9266.66 14.94.84 33.2118.6 32.410.920.730.83655.23655.2633.2318.6132.380.3380.4230.2390.920.770.920.830.770.83 -0.188-0.103-0
10275.84 11.264.5 32.9421.08 30.840.90.810.83568.49568.532.9621.0830.80.3390.4180.2440.90.820.90.820.820.82 -0.197-0.117-0
11287.72 13.484.04 30.5821.39 38.960.980.750.73681.84681.8130.5321.3739.130.3460.4220.2320.950.790.950.770.790.77 -0.227-0.092-0
12295.88 11.884.4 35.8121.98 34.280.910.780.83622.49622.535.8321.9834.240.3380.420.2420.910.80.910.820.80.82 -0.203-0.117-0
13307 136 36.8924.4 31.620.870.850.86765.2765.236.9124.431.60.3380.4150.2480.890.840.890.840.840.84 -0.149-0.0950
14315.06 12.227.54 46.9925.16 24.920.750.881.01733.21733.2447.1524.9925.10.3250.4160.2580.810.860.810.940.860.94 -0.193-0.082-0
15327.2 11.825.8 37.1527.34 33.620.870.880.83785.66785.6537.1427.3533.610.340.4120.2480.890.870.890.820.870.82 -0.148-0.097-0
16336.32 12.445.34 41.3225.99 35.830.880.820.86775.79775.7941.3625.9835.80.3370.4170.2460.890.830.890.840.830.84 -0.169-0.105-0
17347.58 14.547.76 43.9428.29 32.280.830.880.9994.95994.9643.9628.2532.340.3350.4130.2520.860.860.860.870.860.87 -0.127-0.079-0
18357.82 12.424.6 37.5928.63 44.180.940.820.75852.74852.7737.5928.6244.20.3450.4170.2380.930.830.930.780.830.78 -0.19-0.092-0
19367.16 14.326.28 45.6928.35 38.390.870.820.87974.15974.1345.7428.3438.360.3360.4170.2470.890.830.890.850.830.85 -0.146-0.091-0
20378.82 12.124.4 36.3231.64 49.260.970.840.69920.57920.6136.3331.6149.330.3480.4160.2360.950.850.950.740.850.74 -0.201-0.0840
21385.78 12.826.62 52.8830.16 35.380.810.850.94926.52926.4652.9930.0735.440.3310.4160.2530.850.840.850.890.840.89 -0.167-0.092-0
22398 12.76.12 44.2233.54 41.880.880.880.811035.991035.9844.2133.5641.850.3410.4110.2470.90.870.90.810.870.81 -0.139-0.089-0
23407.08 115.68 45.4935.11 41.360.870.90.82943.15943.1345.4635.1341.350.3410.410.2490.890.880.890.820.880.82 -0.15-0.10
24415.86 13.845.7 56.430.35 43.540.860.780.91998.76998.6556.5630.3243.440.3320.420.2480.880.80.880.870.80.87 -0.175-0.1030
25428.88 14.324.3 43.7932.98 59.610.990.760.71117.411117.3143.7232.9159.940.3470.4220.2310.960.80.960.750.80.75 -0.215-0.08-0
26436.86 13.287.68 56.8736.36 38.570.810.90.921169.241169.3156.8836.2838.720.3340.4120.2540.850.870.850.880.870.88 -0.138-0.081-0
27448.36 14.685.84 50.8335.32 51.720.910.820.81245.421245.4650.8435.3351.680.3410.4160.2420.910.830.910.810.830.81 -0.148-0.084-0
28455.92 12.584.36 56.4833.14 54.660.910.760.83989.54989.5856.5133.1454.60.3380.4210.2410.910.790.910.830.790.83 -0.207-0.116-0
29468.72 14.124.74 49.0536.75 61.190.960.790.731236.581236.649.0236.7261.320.3460.4190.2350.950.820.950.770.820.77 -0.188-0.0820
30478.74 12.327.82 53.0244.31 43.760.830.970.841351.491351.4552.8744.3543.850.3420.4040.2540.870.920.870.830.920.83 -0.11-0.0810
31485.64 12.664.62 62.7335.13 55.710.890.760.861055.931055.9362.8235.1355.60.3360.4210.2430.90.790.90.840.790.84 -0.2-0.118-0
AVE:337.12 12.925.52 39.7826.59 37.220.890.830.83827.09827.0939.7826.5937.220.3390.4160.2440.90.830.90.820.830.82-0.173-0.095-0

À3:   Re-estimate the Diewert Production Function.

XV. Assuming we had 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 that we did not have data on the cost minimizing levels of inputs, we estimated the Diewert cost function directly. With the derived factor demand functions to determine cost minimizing inputs, we can estimate a Diewert production function using the data in the Diewert Cost Function table.

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cLL-0.1468670.001-105.127
cKK-0.1795920.002-73.26
cMM-0.1793510.001-178.294
cLK0.6417190.003186.263
cLM0.3464550.001337.218
cKM0.5178250.003199.252
 R2 = 1 R2b = 1 # obs = 31

The estimated Diewert production function using the cost data is:

q^1/1 = -0.146867 * L + -0.179592 * K + -0.179351 * M + 0.641719 * L^1/2 * K^1/2 + 0.346455 * L^1/2 * M^1/2 + 0.517825 * K^1/2 * M^1/2     =     f(L,K,M)

The coefficients of this production function are approximately equal to the coefficients of the original Diewert production function.

XVI. Knowing the Diewert production function permits us to investigate further properties of the production / cost technology. For example, we can determine the short-run average and marginal cost functions in relation to the long-run average and marginal cost functions obtained from the Diewert cost function, and the short-run Allen elasticities of substitution.

For example, if we set capital at the least cost level for q = 30, then K = 24.4, and we can solve for the least cost inputs of labour, L, and materials and supplies, M, for various levels of output, q.   (See the Diewert Production Function web page.)

Diewert Short Run Cost Data
CES: Returns to Scale = 1, Elasticity of Substitution = 0.85
wL = 7, wK= 13, wM = 6
qest q LK Mtotal cost ave. costmarg. cost3 factor
sLM
2 factor
sLM
1414 10.7224.4 9.27447.91 31.99 14.05 1.391.15
1616 13.1524.4 11.35477.43 29.84 15.52 1.311.1
1818 15.8324.4 13.65509.92 28.33 16.98 1.231.06
2020 18.7324.4 16.15545.28 27.26 18.43 1.161.02
2222 21.8924.4 18.86583.57 26.53 19.87 1.090.98
2424 25.2824.4 21.76624.73 26.03 21.29 1.020.94
2626 28.9224.4 24.86668.82 25.72 22.7 0.960.91
2828 32.7624.4 28.16715.51 25.55 24.12 0.90.88
3030 36.8724.4 31.66765.27 25.51 25.5 0.850.85
3232 41.224.4 35.34817.69 25.55 26.89 0.80.83
3434 45.7624.4 39.21872.85 25.67 28.26 0.750.8
3636 50.5524.4 43.28930.76 25.85 29.63 0.70.78
3838 55.5524.4 47.51991.19 26.08 31 0.660.76
4040 60.824.4 51.961054.62 26.37 32.35 0.620.74
4242 66.2524.4 56.61120.62 26.68 33.68 0.580.72
4444 71.9324.4 61.421189.3 27.03 35.01 0.540.7
4646 77.8324.4 66.431260.63 27.41 36.33 0.510.69
4848 83.9424.4 71.621334.59 27.8 37.64 0.470.67
5050 90.2724.4 771411.12 28.22 38.94 0.440.66
5252 96.8224.4 82.541490.2 28.66 40.24 0.410.64

We get a U-shaped, short run average cost curve, with capital fixed.

As seen in the diagram below, the short run average cost curve is (approx.) tangent to the long run average cost curve, at q = 30.

Graph of Average Cost and Marginal Cost
Diewert Cost / Production Functions - Capital Fixed Average cost function Marginal cost function L.R. Average cost function

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 