Sorry am new to Pandas. Can I check how do I use Pandas to get the annualized mean returns. (Note: NOT the Annualized returns) I will like to calculate for the entire dataframe
Mean of the returns: m = (1/M * Σ)
M is the number of number of observations (1 date = 1 observation), r is the daily returns
Annualized daily mean returns = (1+m)^365 -1
I've already calculated the daily returns by using .pctchange
So to give you guys an example, skipping the first column with NaN.
From the second column assuming i made an observation from the 26th to 30th , therefore the calculation is:
m = (1/3 * (0.007246+0.001199+0.006587))= 0.00501
Annualized daily mean returns = (1+0.00501)^365 -1
The formula is above
Sorry for my poor english.
Thanks :)