Using the worksheet on “calculating beta by hand” we learned how to obtain beta in OLS, and in short one uses the following equation
Now, notice what the expression on the top and the bottom represent.
Getting to work
Knowing these concepts, and the interpretation of regression where the main variable is discrete, let’s go over the following example. For the following data:
You can use this link to download it
https://www.dropbox.com/scl/fo/vzm55313fdzl1ned2s56i/h?rlkey=774jljwee9r6kg3wsx49ifsw8&dl=0
The data is called:
Mean Comparison
Imagine that we are trying to find the effect of batten on income. We can run the following regression:
Let’s say for the sake of the example that Income is an average of earnings for the 4 years after Batten.
- The value of . Obtain this value using averages.
- The value of . Obtain this value using the following Formula
- The value of . Obtain this value using a regression
What these three exercise should show you, are ways of obtaining the same number. They all carry the same interpretation but seeing how to obtain them is important. You can do this for a continuous variable and it should work as well. Notice that for a continuous variable using average could get really complex because you would have to do it for each value change, therefore method (2) seems the most sensible to use for the continuous variable