Is there a way to have Excel find the least squares solution to an overdetermined system of equations? I'm thinking this would be a much better task for MATLAB, but if anyone knows a way to do this in Excel, it would be helpful.
If it matters, the application here is as follows:
I want to approximate Vanguard's Total Stock Market Index fund in my 401k using 3 other funds. I need to find the best way to allocate my money among these 3 funds that will produce the best approximation to the Total Stock Market Index fund, according to Morningstar's 9 style boxes.
Basically, there are 3 unknowns (% of money to allocate among each of the 3 funds) but 9 equations (the 9 Morningstar style boxes that are used to categorize the holdings of a mutual fund - each of the 9 boxes is assigned a number that represents its percentage of the fund's total holdings).
I am doing this mainly as a thought exercise. I have already found the actual solution using pencil, paper, and a calculator. I was interested in possibly making a spreadsheet that others could use by just plugging in the numbers. I like MATLAB, but the general population has never used that before.
If it matters, the application here is as follows:
I want to approximate Vanguard's Total Stock Market Index fund in my 401k using 3 other funds. I need to find the best way to allocate my money among these 3 funds that will produce the best approximation to the Total Stock Market Index fund, according to Morningstar's 9 style boxes.
Basically, there are 3 unknowns (% of money to allocate among each of the 3 funds) but 9 equations (the 9 Morningstar style boxes that are used to categorize the holdings of a mutual fund - each of the 9 boxes is assigned a number that represents its percentage of the fund's total holdings).
I am doing this mainly as a thought exercise. I have already found the actual solution using pencil, paper, and a calculator. I was interested in possibly making a spreadsheet that others could use by just plugging in the numbers. I like MATLAB, but the general population has never used that before.