View Single Post
  #4  
Old April 23rd, 2010, 05:46 AM posted to microsoft.public.excel.worksheet.functions
Dana DeLouis[_4_]
external usenet poster
 
Posts: 11
Default How to Sum infinite formula

Oh. Ok. It looks like an interesting problem. :)

When you wrote...
( T^2 / 2! )

and used

MMULT(L14:T22,L14:T22) / 2

It looked to me like you were squaring the Matrix (T: L14:T22), and
dividing by 2!

As a side note:

MMULT(MMULT(MMULT(L14:T22,L14:T22),L14:T22),L14:T2 2)

When you raise a matrix to the 4th power, (or larger) it usually is
better to do it via vba. I know that's not what you want though.
The reason I mention it is that if you wanted to take a matrix to the
32nd power, you have to make a very large worksheet function (32 times)
However, in vba, you can square the results in a loop just 5 times. The
efficiency gets better as the power gets larger.

= = = = = =
HTH :)
Dana DeLouis

On 4/23/10 12:13 AM, minyeh wrote:
T is not a matrix, it's a number, when u multiply a number to a
matrix, it multiply every single element in that matrix with the
number, for example, 3 * {1,2,1;,2,3,1;0,1,1} = {3,6,3;6,9,3;0,3,3}.

minyeh

On Apr 23, 12:01 pm, Dana wrote:
L34:T42 is something like a {1,0,0; 0,1,0; 0,0,1} matrix (not sure
what this called,


A Matrix with diagonal elements of 1 is called an "Identity Matrix"

http://en.wikipedia.org/wiki/Identity_matrix

I can't quite follow. I would suggest using Range Names to refer to
your ranges.

Where T is # of years
...+ ( T^2 / 2! )


Looks like T is a matrix, and not a number to me.

= = = = = =
Dana DeLouis

On 4/22/10 11:34 PM, minyeh wrote:



I'm doing a transition matrix (hazard rate method) using formula
(trying to avoid using VBA under some company policy), but then, i'm
stuck when it comes to summing infinite formula.


the formula i come out with looks like this
{=L34:T42+L14:T22+MMULT(L14:T22,L14:T22)/
2+MMULT(MMULT(L14:T22,L14:T22),L14:T22)/
6+MMULT(MMULT(MMULT(L14:T22,L14:T22),L14:T22),L14: T22)/24}


where
L34:T42 is something like a {1,0,0; 0,1,0; 0,0,1} matrix (not sure
what this called, i'll just refer to matrix A) but in 9x9
L14:T22 is my Generator Matrix, also in 9x9


the formula should be:
Transition Matrix = Matrix A + T * Generator + ( T^2 / 2! ) *
Generator ^ 2 + ... +(T^infinity / infinity!) * Generator ^ infinity


Where T is # of years, i'm using T = 1 for one-year transition matrix.


for now, i'm doing up to k =4, but there's still a small gap between
what i get with the supposed-to-be actual transition matrix.


need experts' help in this summing infinite formula issue. thanks a
lot.


minyeh- Hide quoted text -


- Show quoted text -