I read on Internet and Stack Overflow different articles on Annual Return vs Annualised Return vs CAGR and I am a bit confused and I do not know if they are a different or same thing.
Here what I need. Suppose I have a growth rate of 10% over 3 years. Starting with 100$ I have:
Initial capital: 100$ Year 1: 110$ Year 2: 121$ Year 3: 133$
Now the Annual return here is 10% and Annual mean return should be 33/3=11%. Correct? Obviously, the Annual mean return does not give me a good measure of growth rate because does not take into account the compound interest. Am I correct?
Suppose now I reverse my input date in the problem. I have the initial capital 100$ and final 133$ and I want to calculate the growth rate. The formula should be (Capital final/Capital initial)^(1/3)-1.
(133/100)^(1/3)-1=(1,33)^(1/3)=0.098
that correspond more or less to 10%. Are my computation and reasoning correct so far? If so, what is the difference between Annual Return vs CAGR? It seems they are the same, correct?
Suppose now my time frame goes from September 10 2008 to Ferbuary 10 2012, my time frame is 3 years and 132 days. According to this website (see video) https://www.investopedia.com/ask/answers/071014/what-formula-calculating-compound-annual-growth-rate-cagr-excel.asp the number of years here is (3 + K) where K is the number of days converted in years, in our example K=132/365=0.36 so the number of years N=3+0.36=3.36 and this is the value I should use in the formula. Am I correct?
Now the last doubt is that the website to calculate K suggest to divide the number of days for 360 or 365 but should I consider in my calculation only the number of days the stock market is open (a number more or less equal to 272)?
The last question about python is, suppose I have a panda data frame df, can someone put a snippet of code I can use to calculate the Annual Return and/or CAGR. The code should take into consideration that the time frame could have a number of days more than one year and not perfectly a multiple of one year (like the example above).
I tried to write it but I am not sure I did a good job.
In addition, if my timeframe is less than one year what happens? Should I use Annualized Return? How the code change in this case?
Thanks in advance for help.