Solved – OLS estimate of a linear model with dumthe variable

categorical dataleast squaresregressionself-study

I know a regression of y on x (dummy variable) and a constant term can be represented in the following form:
enter image description here

On the other hand OLS estimator can be presented in the following form:

enter image description here

I need to see how these two equations for Beta estimation are related to one another.

Best Answer

The model that we have is: enter image description here

Knowing that X is a dummy variable, we can get the following: enter image description here

Using the above information, we can substitute for components of OLS estimation and by simplifying we get: enter image description here