Annual return - Geometric yield in stockmarket and make a diagram



Hello


I wish to receive two things from Numbers. 


First, the annual return of the US stock index SP500. In the picture you can see that I got the average. But it will be wrong. 


Example year 1 : 100 dollars increases decreases by -30%, year 2 the stock market increases by 40%. Then the development will be 100-30 = 70

year 2 : 70 *1.4 = $98. A decrease of 2 dollars. Which Will be right. 


The average, however, is -30+40=10. Increase by a total of 5. Which will be wrong.


I then want to create a line in a diagram, where each year's return on SP500 is included. As well as where the exponential return is shown. You can see in the picture I took from a newspaper.


So I can see what the annual performance of the SP500 has been since, say, 1995. As well as what the value of $100 invested in 1995 would have been today. Then get the exponential return So the geometric return.


Arithmetic return -50%+50% = 0


Geometric yield

-50%+50% = -25%






iPad 2

Posted on Jul 3, 2023 7:48 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 3, 2023 10:13 AM

If you want to calculate the geometric return, which in this case is the compound annualized growth rate (CAGR), then you can use this formula:


Return = (Ending value/Beginning Value)^(1/n)-1


To implement that in a spreadsheet you can do something like this:



The formula in D3, filled down the column, is:


=D2*(1+C3)


The formula in E3, filled down, is:


=(D3/D$2)^(1/B3)−1


Not that I listed n, the period number, in column B, so I could just fill the formula down. It also makes it easier if want to derive the n for different periods (you can just subtract period numbers)


The chart is a 2D 2Axis but if you just want the growth of 100 and not the annual returns you could change it accordingly.


You could add a linear trend line but I'm not sure that accurately reflects the large stock market fluctuations.


Note that my region uses . as the decimal separator. Judging from your screenshot you will want to enter the values in the table with , instead.



SG





7 replies
Question marked as Top-ranking reply

Jul 3, 2023 10:13 AM in response to henric224

If you want to calculate the geometric return, which in this case is the compound annualized growth rate (CAGR), then you can use this formula:


Return = (Ending value/Beginning Value)^(1/n)-1


To implement that in a spreadsheet you can do something like this:



The formula in D3, filled down the column, is:


=D2*(1+C3)


The formula in E3, filled down, is:


=(D3/D$2)^(1/B3)−1


Not that I listed n, the period number, in column B, so I could just fill the formula down. It also makes it easier if want to derive the n for different periods (you can just subtract period numbers)


The chart is a 2D 2Axis but if you just want the growth of 100 and not the annual returns you could change it accordingly.


You could add a linear trend line but I'm not sure that accurately reflects the large stock market fluctuations.


Note that my region uses . as the decimal separator. Judging from your screenshot you will want to enter the values in the table with , instead.



SG





Jul 3, 2023 5:59 PM in response to henric224

The formula you used is different from mine! Note where the ( ) go.




Also on a linear scale you should expect a curved line, not a straight line, for compounding at the geometric rate for return. You can switch the Y-axis to Logarithmic if you want to show straight lines, as shown in the chart on the right.


Here is my Numbers document (Dropbox download).


If you have access to a Mac then you can switch the region to your region by going to File > Advanced > Language and Region... to the number formatting you are accustomed to using. You may need to switch the language there first before picking a different region.



SG

Jul 4, 2023 8:33 AM in response to henric224

Any luck on your end?


To make the formula a little easier to understand I tried the Insert > Equation ... feature in Numbers, resulting in this:



I've added it to the linked Numbers document.


Ending Value is the value of the index (the Growth of 100 column is really an index) at the last period you want and Beginning Value is the value of the index at the beginning. In the example at time 0 the index is 100. But you could pick another period if you want and use the index value for that period as the Beginning Value. You can use the formula to calculate the compound return between any two periods.


SG

Jul 3, 2023 1:15 PM in response to SGIII

Thanks SG. So grateful for your help. Really appreciate it.

As you can see, something goes wrong in column E. You know what?


You get CAGR of 8.9%. I want to create charts like in the picture where CAGR (8.9%) is the red line. The black line is where the market is now. Above or below historical CAGR. Is it possible to create such a diagram? How?


You wrote "It also makes it easier if want to derive the n for different periods (you can just subtract period numbers)". How do I do that?

Jul 4, 2023 9:22 AM in response to henric224


henric224 wrote:

see at a detailed level how the present value deviates from history.


Not sure I entirely understand what you are looking for here. One can always look at the difference between the values in the Growth of 100 and Growth at CAGR columns in the table.


BTW, the term "present value" has a specific meaning for finance problems in English. Probably not the right term here.😀


Glad I was able to help.


SG


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Annual return - Geometric yield in stockmarket and make a diagram

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.