5. Industry Sector and Stock Returns. You are an equity analyst looking to examine the association between industry sector and stock returns. You have collected monthly return data for several stocks from different industry sectors: Technology, Healthcare, and Energy. The dataset includes the returns
for each stock and its corresponding sector
.
In this exercise, you'll run a regression to understand how much of the returns can be explained by the different sectors. To do this, you will apply the factor()
function to the sector
column when including it in the regression, lm()
.
When you use summary()
to examine your regression results, you will notice that one sector has been excluded from the regression. You can interpret the coefficients on the other sectors as the expected difference in returns between those sectors and the excluded sector.