1 / 55

How can we obtain those equations?

Last week we talked, among other things, about supply and demand equations and said that having those available may improve the accuracy of our predictions.

Download Presentation

How can we obtain those equations?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Last week we talked, among other things, about supply and demand equations and said that having those available may improve the accuracy of our predictions.

  2. Last week we talked, among other things, about supply and demand equations and said that having those available may improve the accuracy of our predictions. • How can we obtain those equations? • What information do we need for that? • What techniques do we use to translate raw data into an equation? • How much faith should we have in the resultingequations?

  3. Regression analysis The simplest case is the relationship between two variables, which may help answer such business-type questions as • How does the number of TVs sold at an outlet depend on the TV price? • How does the quantity demanded of paper towels depend on the population of a town? • How does the volume of ice cream sales depend on the outside temperature?

  4. Simple regression Step 1. Collect data.

  5. Step 2. Assume a form of the relationship between the variables of interest, such as • QD = A – B∙P, or QD= A/P – B∙P + CP– D, or any other you can possibly think of, where A through D are some numbers, or “coefficients”. Which of the above specifications would you prefer to use? How would you justify your choice? None of them represents the “real” relationship between P and Q, therefore let’s use the linear, the simplest one that is consistent with theory (therefore common sense).

  6. Step 3. Find the best values for coefficients. How? Each observation is a point in the price-quantity space. Each pair of numbers, A and B, when plugged into the equation above, uniquely defines a line in the price-quantity space. It is highly unlikely that all the points (observations) will fit on the same line. The best line will be the one that minimizes the sum of squared deviations between the line and the actual data points.

  7. This procedure can be performed using a MS Excel spreadsheet. 2003: In the upper scroll-down menu, choose Tools  Data Analysis  Regression 2007: Data tab  Analysis  Data Analysis  Regression then enter the range of cells that contain data for each variable. • Y is the “dependent variable” (in our case, QD). • X is the “independent variable”, also called the explanatory variable (in our case, P). • Check the “Labels” box if and only if you include column headers. • Click on the cell where you want the output printout to start, then click ‘OK’.

  8. R2 shows the portion of the variation in the dependent variable, QD, that is explained by the independent one, P.

  9. The greater the F-statistic is, the lower is the probability that the estimated regression model fits the data purely by accident.

  10. The greater the F-statistic is, the lower is the probability that the estimated regression model fits the data purely by accident. That probability is given under “Significance F”.

  11. The ‘Coefficients’ column contains the values of A and B that provide the best fit.

  12. In our case, the regression analysis suggests that the best estimate of the demand for TVs based on the data provided is…

  13. In our case, the regression analysis suggests that the best estimate of the demand for TVs based on the data provided is… QD = A + B∙P

  14. In our case, the regression analysis suggests that the best estimate of the demand for TVs based on the data provided is… QD = 163.7 – 0.261∙P • Which means that • For every $1 increase in the price of a TV set, the quantity demanded drops by (approx.) 0.26 units

  15. The ‘Coefficients’ column contains the values of A and B that provide the best fit.

  16. t-values show the ‘statistical significance’ of each coefficient. The larger is the t-statistic, the higher are the chances that the coefficient is different from zero.

  17. t-values show the ‘statistical significance’ of each coefficient. The larger is the t-statistic, the higher are the chances that the coefficient is different from zero. As in the case of the F-statistic, the same information is also available in the form of probabilities, or P-values.

  18. In our case, there is only a 0.11% probability that price is irrelevant for consumer decisions. • Another way to say it is, there is a 99.89% probability that price matters for consumer decisions • (more specifically, that higher price is associated with a lower quantity demanded). This, however, is very different from the statement “There is 99.89% probability that the coefficient on price is –0.26”, which is FALSE.

  19. But the actual value is not certain – it is distributed around the expected value in a probabilistic manner The regression output gives us the “expected value” of the coefficient The entire distribution lies in the positive range – P0 andwe are certain the sign of the coefficient is positive (but don’t know its actual value!) 0 100 200 300 400 500 600 80% of the area is in the positive range 20% -200 - 100 0 100 200 300 400 P = 0.2

  20. The “Lower 95%” and “Upper 95%” columns in the printout give the upper and lower bounds within which the true value of each coefficient falls with a certain probability (95% probability in this case). This range is also known as the “95% confidence interval”. In our case, …

  21. The “Lower 95%” and “Upper 95%” columns in the printout give the upper and lower bounds within which the true value of each coefficient falls with a certain probability (95% probability in this case). This range is also known as the “95% confidence interval”. In our case, … … there is a 95% probability the value of the coefficient for price lies between -0.382 and -0.1393

  22. Note the P-value for the estimated coefficient on price equals the significance of F. This is always the case when there is only one independent variable.

  23. To summarize, we want: The sign of coefficients to make economic sense; R2 to be The F-statistic to be The t-statistic to be ‘Significance F’ and P-values to be The confidence interval to be LARGE (close to 1) LARGE LARGE in absolute value SMALL SMALL / NARROW

  24. Statistical significance of a coefficient is a statement about how reliable the sign of the calculated coefficient is (look at the t-statistic and the p-value).

  25. Statistical significance of a coefficient is a statement about how reliable the sign of the calculated coefficient is (look at the t-statistic and the p-value). Example: There is a 0.11% probability that the coefficient on “Price” is non-negative

  26. Statistical significance of a coefficient is a statement about how reliable the sign of the calculated coefficient is (look at the t-statistic and the p-value). Example: There is a 0.11% probability that there is either a positive or no relationship between price and quantity demanded. You may also come across the expression “the coefficient is significant at the 5% level”. That means there is no more than 5 percent probability that this coefficient has the sign opposite to the estimate. When statistical significance of a coefficient is low, the role of the variable in question is weak or unclear.

  27. Economic significance of a variable: How, according to the regression results, a change in one variable will affect the other variable (look at the value of the coefficient itself).

  28. Economic significance of a variable: How, according to the regression results, a change in one variable will affect the other variable (look at the value of the coefficient itself). Example: For every $1 increase in price, quantity demanded drops by 0.261 unit.

  29. Economic significance of a variable: How, according to the regression results, a change in one variable will affect the other variable (look at the value of the coefficient itself). Example: For every $100 increase in price, quantity demanded drops by ~ 26 units.

  30. Economic significance of a variable: How, according to the regression results, a change in one variable will affect the other variable (look at the value of the coefficient itself). Example: For every $4 decrease in price, quantity demanded increases by approximately one unit. Avoid causality statements!

  31. What if you are not happy with the fit? (Say, F-statistic is too small, the statistical significance is small, etc.) Sometimes this is due to the fact that the points on the scatter plot do not align well along a straight line. In that case you may be able to make things better by trying a different specification, such as a log-linear regression.

  32. A curve provides a better fit than a line.

  33. To run a log-linear regression, you first need to create new auxiliary variables and • Here, ln stands for the natural logarithm (logarithm with base e, where is a mathematical constant). • lnX is a number such that elnX = X. After that, proceed with the regression as usual.

  34. The resulting equation will be of the form or which is equivalent to What if the log-linear specification doesn’t help? How can we increase the explanatory power further? Add more explanatory variables!

  35. Another potential source of errors: the “specification problem” Example: Data on demand for soft drinks: P Oct Apr Jan Fitted line July Apr Q

  36. Another potential source of errors: the “specification problem” Example: Data on demand for soft drinks: P The real story: Oct Apr Jan Fitted line July Apr Q

  37. Another potential source of errors: the “specification problem” Example: Data on demand for soft drinks: P Oct Apr The real story: Jan July Fitted line Q Once again, adding more explanatory variables may help us understand things better

  38. Multiple regression The idea is similar to a simple regression, except there are more than one explanatory (independent) variable. When compared to a simple regression, a multiple regression helps avoid the aforementioned “specification problem”, improve the overall goodness of fit, and improve the understanding of factors relevant for the variable of interest. What variables other than own price could matter in the soft drink example? Outside temperature? Town population? Etc.

  39. Running a multiple regression in MS Excel is similar to a simple regression except the fact that, when choosing the cell range for independent variables, you need to include all the independent variables at once. The output will contain more lines, according to the number of variables included in the regression. (A demonstration session follows.) Regression output can again be translated into an equation.

  40. Such an equation helps us not only evaluate the relationship between price and quantity, but also answer such questions as… - Are goods X and Y substitutes or complements? - How does the consumption of our good depend on income? - Does advertising matter and how much? and so on.

  41. Things to look for when adding explanatory variables: Does R2 improve (increase) when variables are added?

More Related