Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I use XIRR to calculate a compound annual return on investments. This
works fine when the first value is negative and the others are positive. However I cannot get it to work for a short sale. For a short sale, you are paid up front, and then you pay back the investment later. If I have a short sale like: 1/27/2012 2/3/2012 $52 -$50 XIRR tells me it is an annualized return of -87.1% (NEGATIVE return, even though it is net positive cash) If I reverse this: 1/27/2012 2/3/2012 -$50 $52 XIRR tells me it is 673% annualized return. But at least it is positive. Why does XIRR have problems dealing with positive cash up front followed by negative cash flows? -- W |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Please see the responses to your first posting.
In the future, please do not the same question multiple times, be it in the same or multiple newsgroups. That usually leads to confusion, and it wastes the time of responders. ----- original posting ----- "W" wrote in message ... I use XIRR to calculate a compound annual return on investments. This works fine when the first value is negative and the others are positive. However I cannot get it to work for a short sale. For a short sale, you are paid up front, and then you pay back the investment later. If I have a short sale like: 1/27/2012 2/3/2012 $52 -$50 XIRR tells me it is an annualized return of -87.1% (NEGATIVE return, even though it is net positive cash) If I reverse this: 1/27/2012 2/3/2012 -$50 $52 XIRR tells me it is 673% annualized return. But at least it is positive. Why does XIRR have problems dealing with positive cash up front followed by negative cash flows? -- W |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"joeu2004" wrote in message
... Please see the responses to your first posting. In the future, please do not the same question multiple times, be it in the same or multiple newsgroups. That usually leads to confusion, and it wastes the time of responders. I have a glitch on giganews that is not allowing me to see either the original post or any responses to it. Sorry, and it doesn't happen very often. -- W "W" wrote in message ... I use XIRR to calculate a compound annual return on investments. This works fine when the first value is negative and the others are positive. However I cannot get it to work for a short sale. For a short sale, you are paid up front, and then you pay back the investment later. If I have a short sale like: 1/27/2012 2/3/2012 $52 -$50 XIRR tells me it is an annualized return of -87.1% (NEGATIVE return, even though it is net positive cash) If I reverse this: 1/27/2012 2/3/2012 -$50 $52 XIRR tells me it is 673% annualized return. But at least it is positive. Why does XIRR have problems dealing with positive cash up front followed by negative cash flows? -- W |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
And as a side effect of the point below, I have yet to see a single response
to the original post you refer to. -- W "W" wrote in message ... "joeu2004" wrote in message ... Please see the responses to your first posting. In the future, please do not the same question multiple times, be it in the same or multiple newsgroups. That usually leads to confusion, and it wastes the time of responders. I have a glitch on giganews that is not allowing me to see either the original post or any responses to it. Sorry, and it doesn't happen very often. -- W "W" wrote in message ... I use XIRR to calculate a compound annual return on investments. This works fine when the first value is negative and the others are positive. However I cannot get it to work for a short sale. For a short sale, you are paid up front, and then you pay back the investment later. If I have a short sale like: 1/27/2012 2/3/2012 $52 -$50 XIRR tells me it is an annualized return of -87.1% (NEGATIVE return, even though it is net positive cash) If I reverse this: 1/27/2012 2/3/2012 -$50 $52 XIRR tells me it is 673% annualized return. But at least it is positive. Why does XIRR have problems dealing with positive cash up front followed by negative cash flows? -- W |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"W" wrote:
I have a glitch on giganews that is not allowing me to see either the original post or any responses to it. Sorry, and it doesn't happen very often. Then I am not sure you will see this posting. Please acknowledge as soon as you see this, even if you need more time to digest and respond to the content. For now, I suggest that you use Google Groups, if you can. Go to http://groups.google.com and enter the newsgroup microsoft.public.excel.misc. Eventually, you might want to create a (free) account on news.eternal-september.org. I don't believe I have had any trouble with not seeing responses there. (Of course, it is difficult for me to know for sure ;-.) The following are my responses (3) to your other thread. However, there are responses from others that you might be interested in. ==================== From: "joeu2004" Date: Sun, 8 Apr 2012 17:05:52 -0700 "W" wrote: what about if you have a short sale of stock, where you receive funds before you buy and pay funds? [....] Why can't XIRR deal with a positive followed by negatives? It can. You are misinterpreting the reason why XIRR returns a negative IRR in this case. (By the way, I will use the terms XIRR and IRR interchangably. XIRR is simply Excel's way of calculating the IRR when cash flows occur on irregular dates.) "W" wrote: If I have a short sale like: 1/27/2012 2/3/2012 $52 -$50 XIRR tells me it is an annualized return of -87.1% (NEGATIVE return, even though it is net positive cash) And that is correct mathematically for the NPV formula that Excel uses to calculate the (X)IRR. The problem is that that definition of IRR is not appropriate for a short sale. See the explanation below. But first.... "W" wrote: If I reverse this: 1/27/2012 2/3/2012 -$50 $52 XIRR tells me it is 673% annualized return. But at least it is positive. GIGO. That is not the "reverse" of the cash flows that model the short sale. You had it right the first time. ----- Returning to the original question.... The problem is: when IRR is computed using the NPV formula, the assumption is that we have a profitable cash flow, ergo a positive IRR, when the sum of the later cash flows is __greater__ than (minus) the initial cash flow. That is a necessary mathematical requirement because, with a positive IRR, the magnitudes of the later cash flows are reduced ("discounted"). If the sum of the later cash flows were already less than the (minus) initial cash flow, the sum of the discounted cash flows would be even smaller than the (minus) initial cash flow. Ergo, the NPV could not be made zero with a positive IRR. But the point is: that assumption does not apply to short sales. For a short sale to be profitable, the "sum of the later cash flows" (the later purchase price less transaction costs) must be __less__ than (minus) the initial sale proceeds (less transaction and margin costs). So for short sales, the annualized IRR is (1 + (s-p)/s)^(365/days) - 1, where "s" is the initial net sales proceeds, "p" is the later net purchase proceeds, and "days" is the hold time. For your example, that would be about 615.56% annualized IRR. ==================== From: "joeu2004" Date: Sun, 8 Apr 2012 17:29:23 -0700 PS.... I wrote: So for short sales, the annualized IRR is (1 + (s-p)/s)^(365/days) - 1, where "s" is the initial net sales proceeds, "p" is the later net purchase proceeds, and "days" is the hold time. For your example, that would be about 615.56% annualized IRR. In case it is not obvious from the description, "s" and "p" are both positive typically. That is, they are __not__ signed cash flows. ==================== From: "joeu2004" Date: Sun, 8 Apr 2012 18:32:40 -0700 PPS.... I wrote: So for short sales, the annualized IRR is (1 + (s-p)/s)^(365/days) - 1, where "s" is the initial net sales proceeds, "p" is the later net purchase proceeds, and "days" is the hold time. For your example, that would be about 615.56% annualized IRR. Needless to say, the __annualized__ IRR is misleading, IMHO. I don't know what conventional practice is for short sellers. But IMHO, for hold times of less than 1 year, I would use the simple rate, namely (s-p)/p formatted as Percentage. Granted, that does not take "time value" into account. But I think any attempt to do so is misleading. Consider your example, but with a hold time of 14 days. The annualized IRR would be about 167.50%. Do you really __feel__ (subjectively) that the "rate of return" is more than 3.5 times better when the hold time is only 7 days? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I got your responses, thanks.
I can only say this is fairly hideous in how they implemented it. The function has complex assumptions, and it seems like a pretty broken implementation to have to keep all of that straight. -- W "joeu2004" wrote in message ... "W" wrote: I have a glitch on giganews that is not allowing me to see either the original post or any responses to it. Sorry, and it doesn't happen very often. Then I am not sure you will see this posting. Please acknowledge as soon as you see this, even if you need more time to digest and respond to the content. For now, I suggest that you use Google Groups, if you can. Go to http://groups.google.com and enter the newsgroup microsoft.public.excel.misc. Eventually, you might want to create a (free) account on news.eternal-september.org. I don't believe I have had any trouble with not seeing responses there. (Of course, it is difficult for me to know for sure ;-.) The following are my responses (3) to your other thread. However, there are responses from others that you might be interested in. ==================== From: "joeu2004" Date: Sun, 8 Apr 2012 17:05:52 -0700 "W" wrote: what about if you have a short sale of stock, where you receive funds before you buy and pay funds? [....] Why can't XIRR deal with a positive followed by negatives? It can. You are misinterpreting the reason why XIRR returns a negative IRR in this case. (By the way, I will use the terms XIRR and IRR interchangably. XIRR is simply Excel's way of calculating the IRR when cash flows occur on irregular dates.) "W" wrote: If I have a short sale like: 1/27/2012 2/3/2012 $52 -$50 XIRR tells me it is an annualized return of -87.1% (NEGATIVE return, even though it is net positive cash) And that is correct mathematically for the NPV formula that Excel uses to calculate the (X)IRR. The problem is that that definition of IRR is not appropriate for a short sale. See the explanation below. But first.... "W" wrote: If I reverse this: 1/27/2012 2/3/2012 -$50 $52 XIRR tells me it is 673% annualized return. But at least it is positive. GIGO. That is not the "reverse" of the cash flows that model the short sale. You had it right the first time. ----- Returning to the original question.... The problem is: when IRR is computed using the NPV formula, the assumption is that we have a profitable cash flow, ergo a positive IRR, when the sum of the later cash flows is __greater__ than (minus) the initial cash flow. That is a necessary mathematical requirement because, with a positive IRR, the magnitudes of the later cash flows are reduced ("discounted"). If the sum of the later cash flows were already less than the (minus) initial cash flow, the sum of the discounted cash flows would be even smaller than the (minus) initial cash flow. Ergo, the NPV could not be made zero with a positive IRR. But the point is: that assumption does not apply to short sales. For a short sale to be profitable, the "sum of the later cash flows" (the later purchase price less transaction costs) must be __less__ than (minus) the initial sale proceeds (less transaction and margin costs). So for short sales, the annualized IRR is (1 + (s-p)/s)^(365/days) - 1, where "s" is the initial net sales proceeds, "p" is the later net purchase proceeds, and "days" is the hold time. For your example, that would be about 615.56% annualized IRR. ==================== From: "joeu2004" Date: Sun, 8 Apr 2012 17:29:23 -0700 PS.... I wrote: So for short sales, the annualized IRR is (1 + (s-p)/s)^(365/days) - 1, where "s" is the initial net sales proceeds, "p" is the later net purchase proceeds, and "days" is the hold time. For your example, that would be about 615.56% annualized IRR. In case it is not obvious from the description, "s" and "p" are both positive typically. That is, they are __not__ signed cash flows. ==================== From: "joeu2004" Date: Sun, 8 Apr 2012 18:32:40 -0700 PPS.... I wrote: So for short sales, the annualized IRR is (1 + (s-p)/s)^(365/days) - 1, where "s" is the initial net sales proceeds, "p" is the later net purchase proceeds, and "days" is the hold time. For your example, that would be about 615.56% annualized IRR. Needless to say, the __annualized__ IRR is misleading, IMHO. I don't know what conventional practice is for short sellers. But IMHO, for hold times of less than 1 year, I would use the simple rate, namely (s-p)/p formatted as Percentage. Granted, that does not take "time value" into account. But I think any attempt to do so is misleading. Consider your example, but with a hold time of 14 days. The annualized IRR would be about 167.50%. Do you really __feel__ (subjectively) that the "rate of return" is more than 3.5 times better when the hold time is only 7 days? |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"W" wrote:
I can only say this is fairly hideous in how they implemented it. The function has complex assumptions, and it seems like a pretty broken implementation to have to keep all of that straight. I think you misunderstood. It has nothing to do with assumptions of any Excel function or its implementation. It is the __concept__ of IRR (its most common definition, that is) that I was speaking about. You asked why the IRR is not a positive percentage, which you expected for the short sale that resulted in a net gain. I tried to explain that IRR, when defined to be the discount rate that causes the NPV to be zero, is simply not the correct concept for you to use for that situation. Perhaps I made things too complicated for you when I tried to explain why, namely: if you are expecting a positive IRR, the magnitude of the sum of the later cash flows must be greater than and the opposite of sign (positive or negative) of the initial cash flow. It is simply a mathematical reality of the NPV formula. If you don't gronk that, ignore the technical explanation. Just know that the (NPV-based) IRR is not the right concept for you to use. (And I never heard of any other definition of IRR.) I also provided you with the correct formula to use for computing the annualized rate of return for a short sale, namely: (1 + (s-p)/s)^(365/days) - 1 where "s" is the initial net sales proceeds (less transaction and margin costs), "p" is the later net purchase proceeds (less transaction costs), and "days" is the hold time. That should answer the question for you. |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
To avoid any calculations that annualize returns I'll substitute for W's example cash amounts of $100 and -$90. I will also use IRR, but XIRR would give the same result if the dates were one period, e.g. a year, apart. IRR gives a return of -10%. The -10% would make sense if the $100 was a buy and the -$90 was a sale. The cash amounts are the same for each, the equation solved is the same for each, and Excel doesn't ask which type of scenario it is.
I believe the -10% still makes sense for a short sale. Regard it as "paying -10% interest", which can be translated to "receiving +10% interest." A comparable situation is a loan. Suppose a lender charges 10% interest with cash amounts of -$100 and +$110. IRR answers +10%. The borrower's cash amounts are $100 and -$110. IRR answers +10%. That makes sense -- there is only one loan. Yet the borrower's net cash flow is -$10 and the lender's is +$10. It's similar for the buy and the short. IRR gives the same rate of return but the cash flows are opposite. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change positive to negative number | Excel Worksheet Functions | |||
make a positive number to negative | Excel Worksheet Functions | |||
Converting a negative number to a positive number | Excel Discussion (Misc queries) | |||
PV of uneven stream of cash flows | Excel Worksheet Functions | |||
How can I get the XIRR funct to work for a positive first number? | Excel Worksheet Functions |