Thanks Alex. However, once I have the regression equation in ln terms, how do I make it a power function again?
Got it. Also, once I have the ln of the forecast using the log linear regression equation, I can use the EXP function to get the real number.
Thanks Alex!
Hi Carla,
When I did the regressions, I started with using all the variables at once and then deleted the ones with inadequate p-value. I got the same r square values and good forecasts even after omitting variables. I don’t
know if there’s a right answer here, I guess it’s generally a trial and error process. I guess that’s my reply to your question 4, too.
For the CPI, I don’t think it’s a dummy, because it’s not a case of yes/no variable (like “is it January?”) but a sequence of values, where the baseline happens to be 1967.
If I understand correctly, the R square will get better as you keep adding variables, regardless of their fit quality.
Hope that helps,
Adi.
| Coefficients | Standard Error | t Stat | P-value | Lower 95% | Upper 95% | Lower 95.0% | Upper 95.0% | T-test | ||
| Intercept | 0.081237643 | 2.283591 | 0.035575 | 0.972062 | -4.75976 | 4.922234 | -4.75976 | 4.922234 | ||
| LnCPI | 0.790177043 | 0.309327 | 2.554502 | 0.021209 | 0.134433 | 1.445921 | 0.134433 | 1.445921 | reject | |
| LnPBEEF | -0.978059735 | 0.092357 | -10.5899 | 1.23E-08 | -1.17385 | -0.78227 | -1.17385 | -0.78227 | reject | |
| LnPChick | 0.144451708 | 0.108541 | 1.330855 | 0.201892 | -0.08564 | 0.374547 | -0.08564 | 0.374547 | Accept | |
| LnPOP | 0.527316656 | 0.730914 | 0.721448 | 0.481044 | -1.02215 | 2.076785 | -1.02215 | 2.076785 | Accept | |
| LnPPORK | 0.108343609 | 0.098856 | 1.095976 | 0.289312 | -0.10122 | 0.317909 | -0.10122 | 0.317909 | Accept | |
| Ln(Y) | 0.488764971 | 0.187332 | 2.609085 | 0.018987 | 0.091639 | 0.885891 | 0.091639 | 0.885891 | Reject |
BTW, I got the other variables for the log-linear. They are the same as the linear model + dummy.On Tue, Feb 8, 2011 at 9:13 AM, <sph...@gmail.com> wrote:
I am at work now, but ill respond to this as soon as I get home or if anyone else can chime in.
Are we ruling out population as a variable once we used it to calculate per capita data?
From: econ_401_w...@googlegroups.com [mailto:econ_401_w...@googlegroups.com] On Behalf Of Carla Nunes
Sent: Tuesday, February 08, 2011 9:25 AM
To: econ_401_w...@googlegroups.com
Alex, it’s OK that the coefficient of the dummy is negative – you want it to reduce the forecasted demand to the low level of supply as opposed to higher demand due to forced low prices.
About the graphs, I just used a line graph on the standard residuals...
-----Original Message-----
From: econ_401_w...@googlegroups.com
[mailto:econ_401_w...@googlegroups.com] On Behalf Of Christy Knight
Sent: Tuesday, February 08, 2011 12:46 PM
To: Econ_401_winter_2011
Subject: Re: Beef Part 2
When you don’t use a dummy for the linear regression (I opted for that option), the RMSE and MAPE of the linear regression are better than the ones of the log linear:
For the linear model they are:
RMSE | 1.11 |
MAPE | 1.12% |
For the log linear model they are the same as Alex wrote:
RMSE | 2.41 |
MAPE | 2.37% |
I’m not sure if we can say, based on these numbers, that the linear model is superior. I think it’s not enough data to determine. I might calculate RMSE and MAPE for all the 23 periods and see if one of the models is still better. If I do, I’ll share the results.
Until tomorrow,
Adi.
From: econ_401_w...@googlegroups.com [mailto:econ_401_w...@googlegroups.com] On Behalf Of alex smirnov
Sent: Tuesday, February 08, 2011 9:57 PM
To: econ_401_w...@googlegroups.com
Subject: Re: Beef Part 2
Hey everyone,
| Qactual | Qf | Error | error Sq | ∑ ABS (Yi - YF)/Yi | ||
| 1971 | 95.15459 | 97.51935509 | -2.3647657 | 5.5921169 | 0.024852 | |
| 1972 | 98.23276 | 100.5059495 | -2.2731923 | 5.1674031 | 0.023141 | |
| Sum | 10.75952 | 0.047993 | ||||
| N-m | 2 | 2 | ||||
| RMSE | 2.319431 | |||||
| MAPE | 0.023996 | |||||
| Q* = 61.15 -116.93 * Pbeef +42.95* Pchick + .0263* Y/pop - 6.547* dummy | ||||||
| Qactual | Qf | Error | error Sq | ∑ ABS (Yi - YF)/Yi | ||
| 1971 | 95.15459 | 88.90969 | 6.244895 | 38.998718 | 0.065629 | |
| 1972 | 98.23276 | 98.19254 | 0.040221 | 0.0016177 | 0.000409 | |
| Sum | 39.000336 | 0.066038 | ||||
| N-m | 2 | 2 | ||||
| RMSE | 4.4158994 | |||||
| MAPE | 0.033019 | |||||
| lnQ* = -2.93 -.86*LnPbeef + .19 *LnPChick +.89 *LnY/pop -.155*Dummy | ||||||
| LnQ* 1971 | 4.487621 | |||||
| LnQ* 1972 | 4.58693 | |||||
| Q*1971n= exp(C14) | 88.90969 | |||||
| Date | PCBEEF Actual Y |
PCBEEF Forecasted YF |
Y - YF | (Y - YF)2 | abs(Y - YF)/Y |
| 1971 | 95.15458937 | 97.80199668 | -2.64740731 | 7.008765474 | 0.027822172 |
| 1972 | 98.23275718 | 100.8074474 | -2.57469023 | 6.629029782 | 0.026210098 |
| SUM | 13.63779526 | 0.054032270 |
| RMSE | 2.41 |
| MAPE | 0.023658923 |
| Date | PCBEEF Actual Y |
PCBEEF Forecasted YF |
Y - YF | (Y - YF)2 | abs(Y - YF)/Y |
| 1971 | 95.15458937 | 93.58853911 | 1.56605 | 2.45251342 | 0.016457958 |
| 1972 | 98.23275718 | 95.2013054 | 3.031452 | 9.189699897 | 0.030859887 |
| SUM | 11.64221332 | 0.047317845 |
| RMSE | 2.41 |
| MAPE | 0.023658923 |
What are you guys planning to print out when submitting the hw? Do you think we have to show the whole process again?
Calculate the LBEEF using the Ln values of the coefficients (like a linear equation, using Ln values). Then, use the function exp(LBEEF) to calculate the real beef demand.
From: econ_401_w...@googlegroups.com [mailto:econ_401_w...@googlegroups.com] On Behalf Of David Song
Sent: Wednesday, February 09, 2011 1:13 PM
To: econ_401_w...@googlegroups.com
Subject: Re: Beef Part 2
I'm having a bit difficulty using the Log-linear equation. My intercept and coefficients are all the same as Alex. But when I plug in the numbers, it doesn't come out correct. Do I take the Antilog of each number?
Thanks!
David
Sent from my iPhone