+ Reply to Thread
Results 1 to 9 of 9

Geometric Mean

  1. #1
    Registered User
    Join Date
    02-04-2008
    Posts
    45

    Compound Average Return (geometric mean)

    Please help to find a single formula to calculate negative and positive stream of returns. The problem is that =geomean formula does not work with negative numbers.
    Here's an example on how to calculate geometric mean with 5 numbers:
    Stream of numbers: 0.5, -1.4, -6.5, 0.3, -2.7

    First step: I have to add 1 to all numbers (they are positive now)
    Second step: =Product (multiply all numbers)
    Third step (result): find 5th root(there are 5 numbers) of their product (or raise it to 1/5 power)

    I can substitute steps 2 & 3 with a formula =geomean() and the answer will be correct except it won't be negative...but i think there should be another solution, a single formula.
    Any idea? Thank you so much!
    Last edited by Sir08; 02-17-2008 at 09:07 PM. Reason: clarification

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    1 i believe that geometric mean only works with positive numbers
    2. how does adding 1 to -6.5 make it positive? it then = -5.5

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    You can calculate compound average return using the following array formula.

    Remember to use CTRL, SHIFT and ENTER to confirm it

    {=GEOMEAN(1+(A1:E1)/100)}

    NB This does assume that the numbers in the range A1:E1 are percentages.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    02-04-2008
    Posts
    45

    Compound average return

    Thank you Dave, the formula makes sense. For some reason i can't enter it even though i used your instructions....

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    No Worries,

    Type this into the cell:

    =GEOMEAN(1+(A1:E1)/100)

    Don't press enter yet. Hold down the CTRL and SHIFT keys, then tap ENTER. If done correctly, excel will display it like this:

    {=GEOMEAN(1+(A1:E1)/100)}

  6. #6
    Registered User
    Join Date
    02-04-2008
    Posts
    45
    Great, it works. One last thing: if my retures are negative (geomean formula does not accept 0s and negative #s), is there a way to go around it? thanks

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I'm not sure what the interpretation is of a geometric mean with negative numbers, but

    =IF( OR(A1:E1 = -1), 0, GEOMEAN(ABS(A1:E1 + 1) ) )

    Still an array formula.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    i take it these are percentages.
    you need to convert to decimal multiplier first (because of negative numbers)

    so 0.5, -1.4, -6.5, 0.3, -2.7
    become 1.005 0.986 0.935 1.003 0.973

    see here
    http://www.buzzardsbay.org/geomean.htm

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    That makes sense, Martin, thank you.

    Then if the numbers are stored as percentages (e.g., 0.1 means 10%), {=GEOMEAN(1+A1:A5)}

    If 0.1 means 0.1%, then {=GEOMEAN(1+A1:A5/100)}

    If these are rates of return, then the individual inner sums can never be less than 0 (you can't lose more than all your money).

    Edit: To return a result in the format as the input data,

    {=GEOMEAN(1+A1:A5) - 1} if 0.1 means 10%

    {=100 * (GEOMEAN(1+A1:A5/100) - 1)} if 0.1 means 0.1%
    Last edited by shg; 02-18-2008 at 12:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1