



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Simple regression
Use Solver and some simple utility function to compute some demands for commodity 1 as a function of income and prices. Here is a small sample
We now try to fit a linear demand curve
The data points are depicted below.
(^1) These notes are almost identical to those in the Regression Analysis Slides
Clearly no line is going to pass through each point. Regression analysis starts with an initial guess as to the values of the parameters a and b. It then computes the vertical distance between the line and each dot and then sums the square of these distances. The regression program then finds the parameters that minimize this sum of โsquared errors.โ The estimated parameter vector is then called the least squares estimate.
From the Home Ribbon, click on Data. On the far right you will see the Analysis Options
Click on Data Analysis and scroll down to Regression.
Click on OK.
Click OK and the results will appear.
We are interested in the coefficients. What the SUMMARY OUTPUT reveals is that the least squares estimate is
The R^2 is 0.85 indicating that we have โexplainedโ 85% of the variation.
Drawing the chart
Using the estimated coefficients we can compute the estimated demand for each price.
We can then plot the estimated demand curve on the same chart as the actual scatter plot.
Multiple Regression
Simple regression leaves out the fact that the variation in x 1 results not just from the variation
in p 1 but in the other price and income as well. The analysis proceeds as before but now the Xโ
array is J3:L8. The new SUMMARY OUTPUT IS
We should not put too much faith in this result as there are only 6 observations and 4 explanatory variables (including the constant.)