Professional Documents
Culture Documents
Notes About How To Treat The Topic
Notes About How To Treat The Topic
A vector firm.
A vector firms ID
A vector ROE
Additional variable that can potentially be helpful to explain the mean reverse pattern.
Market cap: changing according to the stock price, due to possible good news from the firm:
higher dividends, expansion projects.
Accuracy testing of the mean reversion phenomenon.
A t-stat of the difference between the mean ROE of the 2 groups of portfolios each year. So
10 t-stat? PROF said no need to go that far
Mature companies can not grow indefinitely. There is always a reversing point (revert to
average) eventually because of demand saturation and intra industry competition. So, making
forecast with the current high grow rate is unrealistic.
So the mean reversing point will depend on firm’s industry and competitive position
The earnings growth behavior
Change in a random walk model…
The ROE behavior
Potential explanation of the mean reversion of ROE
Firms with abnormally high ROE tend to have earnings decline (or increase if ROE
abnormally low)
When a firm has a high ROE, they expand their investment base meaning that they invest
more, since the ratio is high. The obviously make the denominator of the ratio higher (equity)
and therefore, the returns drop is the latter doesn’t follow the increase in equity.
In fact, the new or additional investment doesn’t generate proportional earnings. Hence, the
ROE falls
So, we observe the mean reverting pattern (page 246). It has been tested on the same sample as above
for revenues.
Afterward, we can decide the type of data we import: character, date, numeric etc.
First by firm_ID: so we want to see the firm who has the ID 1 first etc
Second, as a first order is provided by the ID, inside each ID, we want the data to show the
most recent data first. So, the earliest year which is 2016 in ID 1, is show, then 2017 etc until
ID 2. And then we can go back to year 2016 again.
5.5. How to create the firm IDs from the firms’ names
My data frame contains the name of the firms and their respective ROE. I want to assign them an ID
(to each firm). Firm_ID is the new variable.
Code: ROE_test <- ROE_test %>%
+ group_by(Name) %>%
+ mutate(firm_id = group_indices())
Now my 4 variables and their ID are:
1Dates
2Names
3ROE
4firm_ID
5.7.2. Compute the mean ROE of the 20% best ROE during the first year
To build the portfolio for the first time, I need to identify the 20% best ROE during the portfolio
formation year which is 2000.
Extract ROE from the data frame to compute the ROE of the best in 2000?
Or just create a formula to compute ROE for a particular year (2000) and for the 20% highest and then
the second 20% highest etc
So, I will end up with a data frame with
Computation of the mean ROE of each year
group_means <- ROE_test %>%
+ group_by(Dates) %>%
+ summarise(mean_variable = mean(ROE))
Seems like 2000 is the only year having missing data. I got this result before removing missing data.
After doing so, the results are:
NB: This code doesn’t work if firm_id is numeric that’s why I changed it as a character variable (see
the code below).
Change the fimrs’ ID from numeric to character (this is maybe not necessary)
Code: ROE_test <- ROE_test %>%
mutate(firm_id = as.character(firm_id))