#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default Minverse

Hello!
I have made a very cool econometric interface for Excel. However, I have a
little problem: some advanced Panel Data techniques use MANY variables, and
large matrixes. Some of these matrixes have to be inverted, and I am sadly
surprised to see that the Minverse function can only work with a Matrix of up
to 52x52. Does someone have (or can help me make) a function to replace the
built in one, but that can work with larger matrixes?
I thank you in advance,
Albert C.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Minverse

On Nov 28, 3:52 am, Albert wrote:
Hello!
I have made a very cool econometric interface for Excel. However, I have a
little problem: some advanced Panel Data techniques use MANY variables, and
large matrixes. Some of these matrixes have to be inverted, and I am sadly
surprised to see that the Minverse function can only work with a Matrix of up
to 52x52. Does someone have (or can help me make) a function to replace the
built in one, but that can work with larger matrixes?
I thank you in advance,
Albert C.


Hi
finding the inverse of a large matrix is a delicate business
numerically, and you run up against rounding problems in doing the
arithmetic. I'm guessing that is why there is a 52 by 52 limit (could
be wrong on that).
I'm not sure I would trust excel to calculate the inverse for very
large matrices and would go with specialised numerical methods
software. You might be able to call some C code function or some such
that reads in and outputs an array that you can work with. Try
googling on "C code matrix inverse"
Any postgrad engineers out there who had to do that kind of thing?

regards
Paul
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Minverse

You may be able to break up the inversion problem into more manageable
chunks. This may help with the numerical issues as well.

If you can partition your matrix into submatrices such that
M = / A B \
\ C D /
where A and D are both nonsingular, then
M^-1 = / A^-1 + A^-1*B*Z^-1*C*A^-1 -A^-1*B*Z^-1 \
\ -Z^-1*B*A^-1 Z^-1 /

where Z = D - C*A^-1*B

Here * refers to MMULT and ^-1 refers to MINVERSE in order to keep the
formula size manageable.

Much simplification occurs if you can arrange it so that B and/or C is a
matrix of zeros.

Jerry

"Albert" wrote:

Hello!
I have made a very cool econometric interface for Excel. However, I have a
little problem: some advanced Panel Data techniques use MANY variables, and
large matrixes. Some of these matrixes have to be inverted, and I am sadly
surprised to see that the Minverse function can only work with a Matrix of up
to 52x52. Does someone have (or can help me make) a function to replace the
built in one, but that can work with larger matrixes?
I thank you in advance,
Albert C.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Minverse

Laurent Longre's MoreFunc.xll includes a MINVERSE.EXT function that will
invert larger matrices
http://xcell05.free.fr/
but it is not unlimited and you still might want to consider a partitioned
layout to possibly reduce the numerical problems.

Jerry

"Jerry W. Lewis" wrote:

You may be able to break up the inversion problem into more manageable
chunks. This may help with the numerical issues as well.

If you can partition your matrix into submatrices such that
M = / A B \
\ C D /
where A and D are both nonsingular, then
M^-1 = / A^-1 + A^-1*B*Z^-1*C*A^-1 -A^-1*B*Z^-1 \
\ -Z^-1*B*A^-1 Z^-1 /

where Z = D - C*A^-1*B

Here * refers to MMULT and ^-1 refers to MINVERSE in order to keep the
formula size manageable.

Much simplification occurs if you can arrange it so that B and/or C is a
matrix of zeros.

Jerry

"Albert" wrote:

Hello!
I have made a very cool econometric interface for Excel. However, I have a
little problem: some advanced Panel Data techniques use MANY variables, and
large matrixes. Some of these matrixes have to be inverted, and I am sadly
surprised to see that the Minverse function can only work with a Matrix of up
to 52x52. Does someone have (or can help me make) a function to replace the
built in one, but that can work with larger matrixes?
I thank you in advance,
Albert C.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 256
Default Minverse

Interestingly enough, Excel 2007 seems to have removed this limit (I
don't remember reading about it). I just solved a 1000-variable
simultaneous equation, with answers in column 1002. Adapting this
formula to Excel 2003, using:

=MMULT(MINVERSE($A$1:$IT$254),$IV$1:$IV$254)

returns #VALUE in Excel 2003, but works in Excel 2007.


On Nov 27, 10:52 pm, Albert wrote:
Hello!
I have made a very cool econometric interface for Excel. However, I have a
little problem: some advanced Panel Data techniques use MANY variables, and
large matrixes. Some of these matrixes have to be inverted, and I am sadly
surprised to see that the Minverse function can only work with a Matrix of up
to 52x52. Does someone have (or can help me make) a function to replace the
built in one, but that can work with larger matrixes?
I thank you in advance,
Albert C.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA and MINVERSE Daniel Excel Programming 7 October 11th 07 07:56 PM
Minverse, how come this function only returns one value? Giovannired Excel Worksheet Functions 1 May 1st 07 03:12 PM
MINVERSE errors Oliver Heaviside Excel Worksheet Functions 5 December 29th 06 07:04 PM
How do I use MINVERSE in Excel? esoarerkt Excel Worksheet Functions 3 February 26th 05 04:15 PM
Trouble with MINVERSE David D. Excel Worksheet Functions 3 February 13th 05 07:55 AM


All times are GMT +1. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"