www.egwald.com Egwald Web Services

Egwald Web Services
Domain Names
Web Site Design

Egwald Website Search JOIN US AS A FACEBOOK FAN Twitter - Follow Elmer WiensRadio Podcasts - Geraldos Hour

 

Statistics Programs - Econometrics and Probability Economics - Microeconomics & Macroeconomics Operations Research - Linear Programming and Game Theory Egwald's Mathematics Egwald's Optimal Control
Egwald HomeEconomics Home PageOligopoly/Public Firm ModelRun Oligopoly ModelDerive Oligopoly ModelProduction FunctionsCost FunctionsDuality Production Cost FunctionsReferences & Links
 

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: JOIN US AS A FACEBOOK FAN
Follow Elmer Wiens on Twitter: Twitter - Follow Elmer Wiens

Cost Functions:  Cobb-Douglas Cost | Normalized Quadratic Cost | Translog Cost | Diewert Cost | Generalized CES-Translog Cost | Generalized CES-Diewert Cost | References and Links

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.1061960.004-28.722
dLK0.5204690.003191.962
dLM0.5220940.003173.049
R2 = 0.9998 R2b = 0.9997 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK-0.0291980.022-1.329
dKL0.4759710.02916.527
dKM0.4115190.02417.462
R2 = 0.9669 R2b = 0.9646 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.1842360.036-5.172
dML0.5942440.04114.598
dMK0.3653560.03111.848
R2 = 0.9761 R2b = 0.9744 # obs = 31

The three estimated factor demand functions are:

∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.1062 + 0.5205 * (wK / wL)^(1/2) + 0.5221 * (wM / wL)^(1/2)]

∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.0292 + 0.476 * (wL / wK)^(1/2) + 0.4115 * (wM / wK)^(1/2)]

∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.1842 + 0.5942 * (wL / wM)^(1/2) + 0.3654 * (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.54890.32640.22251.087
0.2912-0.52430.23311.087
0.32240.2701-0.59251.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.1062 * wL + -0.0292 * wK + -0.18424 * wM + 0.99644 * (wL*wK)^(1/2) + 1.11634 * (wL*wM)^(1/2) + 0.77688 * (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.1119660.026436-4.235349
dLK0.503660.0179927.99662
dLM0.5533190.01681132.913761
cKK-0.0344110.01711-2.01112
dKL0.503660.0179927.99662
dKM0.3899190.01504925.909465
cMM-0.1774860.02143-8.281987
dML0.5533190.01681132.913761
dMK0.3899190.01504925.909465
R2 = 0.9971 R2b = 0.9969 # 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.112 + 0.5037 * (wK / wL)^(1/2) + 0.5533 * (wM / wL)^(1/2)]

∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [-0.0344 + 0.5037 * (wL / wK)^(1/2) + 0.3899 * (wM / wK)^(1/2)]

∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.1775 + 0.5533 * (wL / wM)^(1/2) + 0.3899 * (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.55150.31580.23571.087
0.308-0.52870.22071.087
0.30060.2887-0.58931.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.11197 * wL + -0.03441 * wK + -0.17749 * wM + 1.00732 * (wL*wK)^(1/2) + 1.10664 * (wL*wM)^(1/2) + 0.77984 * (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.085620.02640.04269
0.0264-0.02440.02207
0.042690.02207-0.09763

The principal minors of H are H1 = -0.085618, 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.1347, e2 = -0.0729, 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
1187.78 11.24.1 20.8213.87 29.510.890.790.830.923438.28438.6520.6914.3828.450.3670.3670.2660.920.840.920.710.840.71 -0.192-0.073-0
2197.68 156.82 27.3414.06 25.160.90.790.830.926592.49592.0527.3314.4524.250.3540.3660.2790.860.840.860.80.840.8 -0.121-0.065-0
3207.4 13.784.52 26.1814.02 32.50.890.790.830.92533.78535.1726.1514.4831.440.3620.3730.2660.910.810.910.750.810.75 -0.177-0.074-0
4215.78 11.287.92 33.7217.55 21.70.90.790.830.933564.73562.3833.9117.8720.810.3490.3580.2930.790.890.790.850.890.85 -0.141-0.0650
5228.42 14.246.66 29.8117.51 29.890.90.790.830.924699.41699.3629.817.8329.210.3590.3630.2780.870.850.870.770.850.77 -0.117-0.0630
6238.18 11.57.98 30.9621.5 26.220.90.790.830.931709.73708.5131.1721.625.70.360.3510.2890.830.910.830.780.910.78 -0.102-0.065-0
7246.24 13.265.18 35.6517.24 33.980.890.790.830.92626.99627.8335.6417.5533.340.3540.3710.2750.880.810.880.80.810.8 -0.159-0.0820
8255.64 13.126.3 41.0418.43 30.630.90.790.830.923666.27666.4841.0518.7230.060.3470.3690.2840.840.830.840.840.830.84 -0.154-0.0750
9265 14.064.78 44.0116.75 36.980.890.790.830.916632.27633.643.9617.0336.490.3470.3780.2750.880.770.880.840.770.84 -0.191-0.096-0
10276.86 11.866.8 39.4423.05 32.440.90.790.830.925764.58764.6939.623.1532.120.3550.3590.2860.840.880.840.80.880.8 -0.125-0.071-0
11288.92 14.887 38.4823.19 38.150.890.790.830.921955.39956.0538.4923.31380.3590.3630.2780.870.860.870.770.860.77 -0.111-0.06-0
12298.62 14.247.02 40.1824.48 38.570.890.790.830.921965.7966.3840.2124.5338.520.3590.3620.280.870.860.870.780.860.78 -0.111-0.062-0
13307 136 43.7924.14 40.130.890.790.830.92861.17861.8343.8224.240.090.3560.3650.2790.870.840.870.790.840.79 -0.135-0.073-0
14317.06 14.644.46 44.0722.02 51.40.890.790.830.912862.77863.5944.0122.1751.190.360.3760.2640.920.790.920.770.790.77 -0.182-0.077-0
15325.54 13.66.1 54.4423.65 40.310.890.790.830.918869.16869.854.423.7140.310.3470.3710.2830.850.820.850.840.820.84 -0.159-0.077-0
16335.14 14.885.94 60.1222.66 42.550.890.790.830.916898.93899.6259.9222.7242.680.3420.3760.2820.850.790.850.860.790.86 -0.174-0.08-0
17348.48 14.245.1 44.9927.18 54.480.890.790.830.9141046.41046.3644.8127.1554.870.3630.3690.2670.910.830.910.740.830.74 -0.155-0.065-0
18355.08 13.584 57.4423.19 55.250.890.790.830.91827.73827.5657.3423.1455.520.3520.380.2680.90.760.90.810.760.81 -0.213-0.1030
19365.34 11.086.36 59.630.23 41.210.890.790.830.921915.33916.1959.8530.0241.50.3490.3630.2880.820.860.820.840.860.84 -0.157-0.077-0
20376.16 147.36 63.3129.7 43.490.890.790.830.9191125.861126.6363.4229.543.890.3470.3670.2870.830.840.830.850.840.85 -0.138-0.066-0
21386.68 13.25.74 57.8630.62 51.910.890.790.830.9151088.611088.5757.8230.2952.70.3550.3670.2780.870.830.870.80.830.8 -0.143-0.0760
22397.7 12.925.44 54.0733 56.90.890.790.830.9141152.221151.7353.9332.5858.010.3610.3650.2740.890.840.890.760.840.76 -0.142-0.0710
23405.52 13.64.86 66.2428.98 57.760.890.790.830.9111040.461039.2266.0328.6458.680.3510.3750.2740.880.790.880.820.790.82 -0.177-0.09-0
24417.94 13.385.54 57.0434.77 60.40.890.790.830.9131252.761251.6756.8634.2361.770.3610.3660.2730.890.840.890.760.840.76 -0.14-0.069-0
25425.5 12.387.8 75.3135.96 44.630.890.790.830.921207.491208.9575.7235.5145.250.3440.3640.2920.80.870.80.870.870.87 -0.152-0.064-0
26437.86 13.725.06 59.7835.41 67.260.890.790.830.9111295.971293.3359.4834.868.830.3610.3690.2690.90.830.90.750.830.75 -0.155-0.069-0
27446.68 156.24 72.1734.46 59.70.890.790.830.9121371.511369.727233.8261.120.3510.370.2780.870.820.870.820.820.82 -0.138-0.072-0
28457.6 12.566.7 65.9641.23 57.470.890.790.830.9161404.141404.7766.1140.2459.250.3580.360.2830.850.870.850.780.870.78 -0.119-0.0680
29465.58 12.087.7 81.5740.5 49.130.890.790.830.9191322.651324.3982.0839.7450.180.3460.3620.2920.80.870.80.860.870.86 -0.149-0.065-0
30475.4 13.64.1 77.2433.4 74.930.890.790.830.9061178.591173.3876.8232.6576.70.3540.3780.2680.90.770.90.80.770.8 -0.205-0.0980
31487.68 14.17.28 74.4442.62 60.730.890.790.830.9151614.821614.4574.5541.562.740.3550.3620.2830.850.860.850.80.860.8 -0.115-0.064-0
AVE:336.79 13.356.03 50.8726.18 44.960.890.790.830.918951.17951.0650.8726.1844.960.3540.3670.2780.860.830.860.80.830.8-0.15-0.073-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.2163530.109-1.977
cKK0.0139780.0480.289
cMM-0.1000540.066-1.511
2*dLK1.062470.1328.043
2*dLM1.2533640.10412.094
2*dKM0.5713520.0926.198
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.21635 * wL + 0.01398 * wK + -0.10005 * wM + 1.06247 * (wL*wK)^(1/2) + 1.25336 * (wL*wM)^(1/2) + 0.57135 * (wK*wM)^(1/2)]
        (***)

XII. Its three derived factor demand functions are:

∂C/∂wL = L(q; wL, wK, wM) = q^(1/0.92) * [-0.2164 + 0.5312 * (wK / wL)^(1/2) + 0.6267 * (wM / wL)^(1/2)]

∂C/∂wK = K(q; wL, wK, wM) = q^(1/0.92) * [0.014 + 0.5312 * (wL / wK)^(1/2) + 0.2857 * (wM / wK)^(1/2)]

∂C/∂wM = M(q; wL, wK, wM) = q^(1/0.92) * [-0.1001 + 0.6267 * (wL / wM)^(1/2) + 0.2857 * (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.59940.33280.26671.087
0.326-0.48830.16231.087
0.33930.2108-0.55021.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.74 = 42.74 = 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.093150.027840.04835
0.02784-0.022460.01617
0.048350.01617-0.09145

The principal minors of H are H1 = -0.093153, H2 = 0.001317, 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.1413, e2 = -0.0657, 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
1187.78 11.24.1 20.8213.87 29.510.890.790.830.923438.28438.1420.2714.5728.590.360.3720.2680.980.970.980.510.970.51 -0.189-0.071-0
2197.68 156.82 27.3414.06 25.160.90.790.830.926592.49591.9827.4114.424.270.3560.3650.280.910.950.910.590.950.59 -0.127-0.058-0
3207.4 13.784.52 26.1814.02 32.50.890.790.830.92533.78535.2825.9114.7131.160.3580.3790.2630.960.930.960.550.930.55 -0.175-0.071-0
4215.78 11.287.92 33.7217.55 21.70.90.790.830.933564.73563.0134.4617.3421.240.3540.3470.2990.850.970.850.630.970.63 -0.155-0.056-0
5228.42 14.246.66 29.8117.51 29.890.90.790.830.924699.41699.3129.717.7829.430.3580.3620.280.920.960.920.560.960.56 -0.122-0.058-0
6238.18 11.57.98 30.9621.5 26.220.90.790.830.931709.73709.8331.1921.1526.50.3590.3430.2980.891.010.890.571.010.57 -0.11-0.057-0
7246.24 13.265.18 35.6517.24 33.980.890.790.830.92626.99627.8135.7217.6233.060.3550.3720.2730.920.930.920.590.930.59 -0.165-0.074-0
8255.64 13.126.3 41.0418.43 30.630.90.790.830.923666.27666.0641.5518.5329.940.3520.3650.2830.880.930.880.620.930.62 -0.166-0.065-0
9265 14.064.78 44.0116.75 36.980.890.790.830.916632.27633.5744.4317.1735.580.3510.3810.2680.910.890.910.620.890.62 -0.202-0.0840
10276.86 11.866.8 39.4423.05 32.440.90.790.830.925764.58765.139.7822.8132.60.3570.3540.290.890.970.890.590.970.59 -0.134-0.062-0
11288.92 14.887 38.4823.19 38.150.890.790.830.921955.39955.9738.3423.2438.30.3580.3620.280.930.970.930.560.970.56 -0.115-0.055-0
12298.62 14.247.02 40.1824.48 38.570.890.790.830.921965.7966.440.1124.438.910.3580.360.2830.920.970.920.570.970.57 -0.116-0.056-0
13307 136 43.7924.14 40.130.890.790.830.92861.17861.7743.8624.1140.220.3560.3640.280.910.950.910.580.950.58 -0.141-0.0660
14317.06 14.644.46 44.0722.02 51.40.890.790.830.912862.77864.2743.7422.5950.40.3570.3830.260.960.910.960.560.910.56 -0.181-0.073-0
15325.54 13.66.1 54.4423.65 40.310.890.790.830.918869.16869.1455.0923.5539.960.3510.3680.280.890.920.890.630.920.63 -0.171-0.067-0
16335.14 14.885.94 60.1222.66 42.550.890.790.830.916898.93898.5660.8822.6641.820.3480.3750.2760.880.90.880.640.90.64 -0.188-0.069-0
17348.48 14.245.1 44.9927.18 54.480.890.790.830.9141046.41046.0444.2627.4854.770.3590.3740.2670.960.950.960.540.950.54 -0.153-0.063-0
18355.08 13.584 57.4423.19 55.250.890.790.830.91827.73828.4957.6123.55540.3530.3860.2610.930.880.930.60.880.6 -0.217-0.0950
19365.34 11.086.36 59.630.23 41.210.890.790.830.921915.33916.260.6129.4641.850.3530.3560.2910.870.950.870.620.950.62 -0.17-0.067-0
20376.16 147.36 63.3129.7 43.490.890.790.830.9191125.861126.0364.329.0543.930.3520.3610.2870.870.940.870.630.940.63 -0.15-0.057-0
21386.68 13.25.74 57.8630.62 51.910.890.790.830.9151088.611088.4557.9430.2552.620.3560.3670.2770.920.940.920.580.940.58 -0.149-0.068-0
22397.7 12.925.44 54.0733 56.90.890.790.830.9141152.221151.4453.5532.6958.230.3580.3670.2750.940.960.940.550.960.55 -0.145-0.066-0
23405.52 13.64.86 66.2428.98 57.760.890.790.830.9111040.461039.2766.4628.8457.650.3530.3770.270.920.90.920.610.90.61 -0.185-0.081-0
24417.94 13.385.54 57.0434.77 60.40.890.790.830.9131252.761251.3456.4434.3761.960.3580.3680.2740.940.960.940.550.960.55 -0.142-0.0640
25425.5 12.387.8 75.3135.96 44.630.890.790.830.921207.491208.7477.1434.5845.70.3510.3540.2950.850.950.850.650.950.65 -0.166-0.0550
26437.86 13.725.06 59.7835.41 67.260.890.790.830.9111295.971293.158.9435.1668.670.3580.3730.2690.950.950.950.550.950.55 -0.155-0.066-0
27446.68 156.24 72.1734.46 59.70.890.790.830.9121371.511369.3572.4833.860.610.3540.370.2760.910.920.910.60.920.6 -0.146-0.064-0
28457.6 12.566.7 65.9641.23 57.470.890.790.830.9161404.141405.1866.139.8460.060.3580.3560.2860.910.970.910.570.970.57 -0.126-0.0610
29465.58 12.087.7 81.5740.5 49.130.890.790.830.9191322.651324.5283.5238.750.780.3520.3530.2950.850.960.850.640.960.64 -0.163-0.0560
30475.4 13.64.1 77.2433.4 74.930.890.790.830.9061178.591174.5777.0433.2174.850.3540.3850.2610.930.890.930.590.890.59 -0.208-0.09-0
31487.68 14.17.28 74.4442.62 60.730.890.790.830.9151614.821614.6574.8541.0963.260.3560.3590.2850.90.960.90.590.960.59 -0.123-0.0560
AVE:336.79 13.356.03 51.0926.09 44.870.890.790.830.918951.17951.0851.0926.0944.870.3550.3660.2780.910.940.910.590.940.59-0.157-0.066-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.2447020.078-3.147
dLK0.7619130.05713.36
dLM0.7253950.06311.431
R2 = 0.9505 R2b = 0.9469 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cKK0.0149880.0740.204
dKL0.5548460.0975.749
dKM0.5684590.0797.198
R2 = 0.8102 R2b = 0.7967 # obs = 31

QR Least Squares
Parameter Estimates
Parameter Coefficient std error t-ratio
cMM-0.2246020.011-20.48
dML0.6975180.01355.664
dMK0.5515570.00958.102
R2 = 0.9987 R2b = 0.9986 # obs = 31

The three estimated factor demand functions are:

∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-0.2447 + 0.7619 * (wK / wL)^(1/2) + 0.7254 * (wM / wL)^(1/2)]

∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [0.015 + 0.5548 * (wL / wK)^(1/2) + 0.5685 * (wM / wK)^(1/2)]

∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2246 + 0.6975 * (wL / wM)^(1/2) + 0.5516 * (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.58350.35430.22921
0.2518-0.49070.23891
0.2810.3028-0.58381

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.2447 * wL + 0.01499 * wK + -0.2246 * wM + 1.31676 * (wL*wK)^(1/2) + 1.42291 * (wL*wM)^(1/2) + 1.12002 * (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.1912490.048058-3.979583
dLK0.7235230.03270422.123627
dLM0.7264020.03056123.769246
cKK-0.0825620.031104-2.654378
dKL0.7235230.03270422.123627
dKM0.5349280.02735819.553126
cMM-0.2304340.038958-5.914991
dML0.7264020.03056123.769246
dMK0.5349280.02735819.553126
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.1912 + 0.7235 * (wK / wL)^(1/2) + 0.7264 * (wM / wL)^(1/2)]

∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-0.0826 + 0.7235 * (wL / wK)^(1/2) + 0.5349 * (wM / wK)^(1/2)]

∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.2304 + 0.7264 * (wL / wM)^(1/2) + 0.5349 * (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.56520.3360.22921
0.327-0.55090.22381
0.29240.2935-0.58591

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.19125 * wL + -0.08256 * wK + -0.23043 * wM + 1.44705 * (wL*wK)^(1/2) + 1.4528 * (wL*wM)^(1/2) + 1.06986 * (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.118470.037920.05604
0.03792-0.03440.03028
0.056040.03028-0.131

The principal minors of H are H1 = -0.118465, H2 = 0.002637, 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.1812, e2 = -0.1027, 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
1187.78 11.24.1 20.8213.87 29.510.890.790.830.923438.28460.921.6815.1929.780.3660.3690.2650.980.830.980.720.830.72 -0.257-0.103-0
2197.68 156.82 27.3414.06 25.160.90.790.830.926592.49619.1728.5815.1225.340.3550.3660.2790.920.820.920.810.820.81 -0.163-0.091-0
3207.4 13.784.52 26.1814.02 32.50.890.790.830.92533.78557.2727.2815.0832.660.3620.3730.2650.970.790.970.770.790.77 -0.237-0.104-0
4215.78 11.287.92 33.7217.55 21.70.90.790.830.933564.73583.0535.0718.5621.60.3480.3590.2930.840.870.840.860.870.86 -0.193-0.090
5228.42 14.246.66 29.8117.51 29.890.90.790.830.924699.41722.0930.7118.4730.110.3580.3640.2780.930.830.930.780.830.78 -0.157-0.0890
6238.18 11.57.98 30.9621.5 26.220.90.790.830.931709.73728.3831.8322.3826.390.3580.3530.2890.880.90.880.790.90.79 -0.138-0.091-0
7246.24 13.265.18 35.6517.24 33.980.890.790.830.92626.99643.3836.6117.9534.140.3550.370.2750.930.790.930.810.790.81 -0.213-0.115-0
8255.64 13.126.3 41.0418.43 30.630.90.790.830.923666.27680.524219.0630.720.3480.3680.2840.890.80.890.850.80.85 -0.209-0.105-0
9265 14.064.78 44.0116.75 36.980.890.790.830.916632.27644.4745.0417.1837.180.3490.3750.2760.930.740.930.860.740.86 -0.258-0.134-0
10276.86 11.866.8 39.4423.05 32.440.90.790.830.925764.58775.5640.0523.5632.550.3540.360.2850.890.850.890.810.850.81 -0.169-0.099-0
11288.92 14.887 38.4823.19 38.150.890.790.830.921955.39966.6338.8323.6538.350.3580.3640.2780.930.840.930.780.840.78 -0.149-0.085-0
12298.62 14.247.02 40.1824.48 38.570.890.790.830.921965.7974.0640.4324.8238.750.3580.3630.2790.920.840.920.790.840.79 -0.149-0.0870
13307 136 43.7924.14 40.130.890.790.830.92861.17866.244.0224.3540.250.3560.3650.2790.920.820.920.80.820.8 -0.181-0.103-0
14317.06 14.644.46 44.0722.02 51.40.890.790.830.912862.77865.5844.2722.1751.230.3610.3750.2640.970.770.970.780.770.78 -0.245-0.1090
15325.54 13.66.1 54.4423.65 40.310.890.790.830.918869.16869.254.5523.640.340.3480.3690.2830.90.790.90.860.790.86 -0.216-0.108-0
16335.14 14.885.94 60.1222.66 42.550.890.790.830.916898.93896.360.0822.4642.630.3450.3730.2830.910.760.910.880.760.88 -0.238-0.1120
17348.48 14.245.1 44.9927.18 54.480.890.790.830.9141046.41040.444.5327.0654.40.3630.370.2670.970.810.970.750.810.75 -0.207-0.0920
18355.08 13.584 57.4423.19 55.250.890.790.830.91827.73820.3457.2722.7655.080.3550.3770.2690.960.730.960.830.730.83 -0.286-0.146-0
19365.34 11.086.36 59.630.23 41.210.890.790.830.921915.33906.3659.1729.741.080.3490.3630.2880.870.840.870.850.840.85 -0.213-0.1070
20376.16 147.36 63.3129.7 43.490.890.790.830.9191125.861111.8662.6629.0543.360.3470.3660.2870.880.820.880.860.820.86 -0.188-0.091-0
21386.68 13.25.74 57.8630.62 51.910.890.790.830.9151088.611071.8556.9729.8351.850.3550.3670.2780.920.810.920.810.810.81 -0.192-0.107-0
22397.7 12.925.44 54.0733 56.90.890.790.830.9141152.221131.4752.932.156.870.360.3670.2730.940.820.940.770.820.77 -0.191-0.1-0
23405.52 13.64.86 66.2428.98 57.760.890.790.830.9111040.461018.4865.0427.9357.540.3530.3730.2750.940.760.940.830.760.83 -0.238-0.127-0
24417.94 13.385.54 57.0434.77 60.40.890.790.830.9131252.761224.3355.5433.5860.290.360.3670.2730.940.820.940.770.820.77 -0.187-0.097-0
25425.5 12.387.8 75.3135.96 44.630.890.790.830.921207.491180.1173.8934.6244.250.3440.3630.2920.850.840.850.880.840.88 -0.208-0.0880
26437.86 13.725.06 59.7835.41 67.260.890.790.830.9111295.971259.9557.9433.9766.90.3610.370.2690.960.80.960.770.80.77 -0.208-0.098-0
27446.68 156.24 72.1734.46 59.70.890.790.830.9121371.511331.570.1832.7959.420.3520.3690.2780.920.790.920.830.790.83 -0.187-0.101-0
28457.6 12.566.7 65.9641.23 57.470.890.790.830.9161404.141362.8163.9439.1957.40.3570.3610.2820.910.850.910.790.850.79 -0.16-0.096-0
29465.58 12.087.7 81.5740.5 49.130.890.790.830.9191322.651282.679.4238.4748.670.3460.3620.2920.850.850.850.870.850.87 -0.204-0.09-0
30475.4 13.64.1 77.2433.4 74.930.890.790.830.9061178.591133.8874.7331.3574.140.3560.3760.2680.960.740.960.820.740.82 -0.275-0.1380
31487.68 14.17.28 74.4442.62 60.730.890.790.830.9151614.821557.671.8240.1260.490.3540.3630.2830.90.840.90.810.840.81 -0.155-0.089-0
AVE:336.79 13.356.03 50.5526 44.640.890.790.830.918951.17944.7250.552644.640.3540.3670.2780.920.810.920.810.810.81-0.202-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-2.6857342.757-0.974
cKK-1.1682971.219-0.958
cMM-0.7533371.668-0.452
2*dLK4.4018483.3271.323
2*dLM1.9940892.610.764
2*dKM1.4214022.3220.612
R2 = 0.9387 R2b = 0.9264 # 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) * [-2.68573 * wL + -1.1683 * wK + -0.75334 * wM + 4.40185 * (wL*wK)^(1/2) + 1.99409 * (wL*wM)^(1/2) + 1.4214 * (wK*wM)^(1/2)]
        (***)

XXVI. Its three derived factor demand functions are:

∂C/∂wL = L(q; wL, wK, wM) = q^(1/1) * [-2.6857 + 2.2009 * (wK / wL)^(1/2) + 0.997 * (wM / wL)^(1/2)]

∂C/∂wK = K(q; wL, wK, wM) = q^(1/1) * [-1.1683 + 2.2009 * (wL / wK)^(1/2) + 0.7107 * (wM / wK)^(1/2)]

∂C/∂wM = M(q; wL, wK, wM) = q^(1/1) * [-0.7533 + 0.997 * (wL / wM)^(1/2) + 0.7107 * (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.58581.21260.37321
0.8687-1.12840.25971
0.39310.3819-0.7751

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.92 = 57.92 = 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.280170.115360.07692
0.11536-0.080690.04024
0.076920.04024-0.17692

The principal minors of H are H1 = -0.280174, H2 = 0.009299, 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.3507, e2 = -0.1871, 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
1187.78 11.24.1 20.8213.87 29.510.890.790.830.923438.28448.4812.2219.7332.310.2120.4930.2953.951.813.950.661.810.66 -0.365-0.2630
2197.68 156.82 27.3414.06 25.160.90.790.830.926592.49622.5425.2616.8325.820.3120.4060.2832.851.252.850.961.250.96 -0.321-0.163-0
3207.4 13.784.52 26.1814.02 32.50.890.790.830.92533.78556.4521.9417.0335.270.2920.4220.2863.251.243.250.831.240.83 -0.361-0.247-0
4215.78 11.287.92 33.7217.55 21.70.90.790.830.933564.73583.8332.6821.0619.880.3240.4070.272.431.392.431.11.391.1 -0.433-0.138-0
5228.42 14.246.66 29.8117.51 29.890.90.790.830.924699.41719.5623.3922.2230.950.2740.440.2863.061.463.060.841.460.84 -0.29-0.1710
6238.18 11.57.98 30.9621.5 26.220.90.790.830.931709.73713.1120.929.4425.510.240.4750.2863.021.93.020.811.90.81 -0.297-0.146-0
7246.24 13.265.18 35.6517.24 33.980.890.790.830.92626.99648.1234.3518.8635.470.3310.3860.2842.911.122.9111.121 -0.403-0.2160
8255.64 13.126.3 41.0418.43 30.630.90.790.830.923666.27686.3243.1219.1830.390.3540.3670.2792.651.092.651.151.091.15 -0.451-0.170
9265 14.064.78 44.0116.75 36.980.890.790.830.916632.27646.1751.4814.5238.620.3980.3160.2862.950.862.951.30.861.3 -0.531-0.231-0
10276.86 11.866.8 39.4423.05 32.440.90.790.830.925764.58774.5232.4228.1832.040.2870.4320.2812.791.472.790.921.470.92 -0.355-0.165-0
11288.92 14.887 38.4823.19 38.150.890.790.830.921955.39962.1529.1228.6539.430.270.4430.2873.081.483.080.831.480.83 -0.274-0.163-0
12298.62 14.247.02 40.1824.48 38.570.890.790.830.921965.7969.0830.2430.2539.550.2690.4450.2863.051.513.050.831.510.83 -0.282-0.163-0
13307 136 43.7924.14 40.130.890.790.830.92861.17868.7937.127.8941.090.2990.4170.2842.911.322.910.921.320.92 -0.351-0.187-0
14317.06 14.644.46 44.0722.02 51.40.890.790.830.912862.77868.0539.5623.3255.450.3220.3930.2853.161.093.160.921.090.92 -0.379-0.2520
15325.54 13.66.1 54.4423.65 40.310.890.790.830.918869.16876.2957.8822.840.260.3660.3540.282.691.032.691.191.031.19 -0.464-0.1750
16335.14 14.885.94 60.1222.66 42.550.890.790.830.916898.93898.0770.3218.9542.870.4020.3140.2842.80.892.81.380.891.38 -0.521-0.179-0
17348.48 14.245.1 44.9927.18 54.480.890.790.830.9141046.41031.7231.9532.4958.480.2630.4480.2893.391.423.390.771.420.77 -0.311-0.22-0
18355.08 13.584 57.4423.19 55.250.890.790.830.91827.73822.6262.9119.7258.790.3890.3260.2863.070.863.071.20.861.2 -0.523-0.2860
19365.34 11.086.36 59.630.23 41.210.890.790.830.921915.33912.0456.6232.3339.540.3310.3930.2762.571.252.571.091.251.09 -0.468-0.169-0
20376.16 147.36 63.3129.7 43.490.890.790.830.9191125.861120.6763.7229.8642.140.350.3730.2772.581.142.581.151.141.15 -0.413-0.1440
21386.68 13.25.74 57.8630.62 51.910.890.790.830.9151088.611077.9950.6332.9153.20.3140.4030.2832.881.222.880.961.220.96 -0.371-0.1950
22397.7 12.925.44 54.0733 56.90.890.790.830.9141152.221125.3239.1338.6959.60.2680.4440.2883.21.453.20.811.450.81 -0.322-0.211-0
23405.52 13.64.86 66.2428.98 57.760.890.790.830.9111040.461025.9468.1826.3559.930.3670.3490.2842.90.972.91.140.971.14 -0.467-0.229-0
24417.94 13.385.54 57.0434.77 60.40.890.790.830.9131252.761217.8541.1740.3663.340.2680.4430.2883.211.443.210.811.440.81 -0.313-0.207-0
25425.5 12.387.8 75.3135.96 44.630.890.790.830.921207.491186.0875.7536.2441.130.3510.3780.272.421.222.421.211.221.21 -0.466-0.135-0
26437.86 13.725.06 59.7835.41 67.260.890.790.830.9111295.971254.7143.9539.9571.360.2750.4370.2883.261.363.260.811.360.81 -0.327-0.224-0
27446.68 156.24 72.1734.46 59.70.890.790.830.9121371.511342.9969.3433.3960.730.3450.3730.2822.811.082.811.071.081.07 -0.378-0.1760
28457.6 12.566.7 65.9641.23 57.470.890.790.830.9161404.141356.4248.5947.8357.670.2720.4430.2852.961.522.960.861.520.86 -0.319-0.169-0
29465.58 12.087.7 81.5740.5 49.130.890.790.830.9191322.651288.8979.341.1745.340.3430.3860.2712.431.252.431.171.251.17 -0.455-0.138-0
30475.4 13.64.1 77.2433.4 74.930.890.790.830.9061178.591139.2378.7728.6179.210.3730.3420.2853.050.913.051.120.911.12 -0.488-0.2790
31487.68 14.17.28 74.4442.62 60.730.890.790.830.9151614.821561.6360.8246.460.470.2990.4190.2822.811.362.810.941.360.94 -0.318-0.153-0
AVE:336.79 13.356.03 46.2228.56 45.670.890.790.830.918951.17945.3446.2228.5645.670.3150.4020.2832.941.272.940.991.270.99-0.388-0.192-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