Nonlinear Least Squares with Cobb-Douglas Production Function
This demo provides two data input options for variable estimation and reports regression statistics based on a Cobb-Douglas production function. The reported statistics include estimators, standard errors, T values, and p-values (against non-significant coefficients assumption) at the estimated point.
For the best results, we recommend using Firefox for this interactive case study.
Back to the Nonlinear Least Squares with Cobb-Douglas Production Function case study.
Option 1: Data in a text file
Users who have access to the data needed in the estimation should create a text file with the data, for example, the capital, labor, and production data collected in Mizon (1977). See mizon_data.txt. User-provided data files must satisfy the following restrictions:
- The first column of the data file must be a column of output indexed by Q, denoting the quantity of output.
- The second and subsequent columns of the data file that contain input data may not contain any negative or zero input values.
The estimated variables in the Cobb-Douglas model are indexed by i0 for scale factor, i1 for output elasticity of input 1, i2 for output elasticity of input 2, i3 for output elasticity of input 3, ..., etc.
Users then can download a sample GAMS model file, cd_text.gms (Cobb-Douglas model with text input), and modify it to solve their own estimation problems. Users should specify their own set definitions (sets "t" and "m" in the sample), include their own table of data (as described above), and run the modified model to obtain the estimation results.
Option 2: Data in a GAMS data exchange (gdx) file
Users who have access to the data in a GAMS data exchange (gdx) file can use one of the following two methods.
- Method 1: Solve using the NEOS Server
Users can click on the "Solve with NEOS" button to find estimation results based on the default gdx file, i.e., the file with the capital, labor, and production data collected in Mizon (1977). See mizon.gdx. Alternatively, users can upload their own data by clicking on the button next to "Upload GDX File" and then "Solve with NEOS". User-provided gdx files must satisfy the same restrictions as listed above in Option 1.
The estimated variables in the Cobb-Douglas model are indexed by i0 for scale factor, i1 for output elasticity of input 1, i2 for output elasticity of input 2, i3 for output elasticity of input 3, ..., etc. Clicking on the "Reset" button will clear the solution.
- Method 2: Calculate the regression statistics locally
Users who have access to GAMS can download the GAMS model file, cd_gdx.gms (Cobb-Douglas model with gdx input), and solve the model locally with the following command:
- "gams cd_gdx --in=mydata"
where mydata.gdx is a data file provided by the user. The gdx file must satisfy the restrictions as described above in Option 1.