Preview

Using Execel Solver

Powerful Essays
Open Document
Open Document
2737 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Using Execel Solver
Using Excel=s Solver Tool in Portfolio Theory
Excel contains a tool called the Asolver@ that lets you maximize or minimize functions subject to general constraints. We will use this tool to compute the global minimum variance portfolio and the tangency portfolio for the three-firm example (see the spreadsheet 3firm.xls). The spreadsheet for this tutorial is called solverex.xls. The data for this example are given in the following table
Stock 1 2 3 E[R] 0.229 0.138 0.052 VAR(R) 0.924 0.862 0.528 COV(I,J) 0.063 -0.582 -0.359 PAIR(I,J) (1,2) (1,3) (2,3)

For convenience, I have named the cells containing the expected returns, variances and covariances. See the 483solverex.xls spreadsheet. Using the Solver to find the global minimum variance portfolio Here we want to find the global minimum variance portfolio. That is, the portfolio of stocks 1, 2 and 3 that has the smallest variance regardless of expected return. In general, we want to solve the problem

minimize σ x1, x 2 , x 3

2 p

2 2 2 2 = x 1σ 1 + x 2σ 2 + x 3σ 3 + 2 x 1 x 2σ 12 + 2 x 1 x 3σ 13 + 2 x 2 x 3σ 23 2 2

s. t. x 1 + x 2 + x 3 = 1

We can set up the Lagrangian for this problem and use it to solve for x1, x2, x3 and λ. This will give us four linear equations in four unknowns and we can use matrix algebra to find the solution. Alternatively, we can use the solver to compute the solution numerically (i.e. not using a formula). To use the solver to solve for the portfolio weights such that the resulting portfolio variance is minimized and the portfolio weights sum to 1 you would set up a simple spreadsheet as follows:
Portfolio weights x1 0.2 x2 0.3 x3 0.5 Constraint VAR(Rp) 1 0.03

In the spreadsheet file 483solverex.xls, the value 0.2 is in cell B15, 0.3 is in cell C15, 0.5 is in cell D15, 1 is in E15 and 0.03 is in F15. These initial values are chosen arbitrarily such that they sum to 1.

The solver works by maximizing or minimizing a function of a set of given values subject to

You May Also Find These Documents Helpful

  • Satisfactory Essays

    σAB = 0.3 × 0.07 × 0.14 + 0.4 × 0.06 × (−0.04) + 0.3 × (−0.08) × 0.08 − 0.021 × 0.05…

    • 1969 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The first thing we did when we performed this experiment was gather our materials. We needed the clear, plastic experiment container, fresh grass, sand, and 20 Sowbugs. Next, we measured the amount of grass…

    • 669 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    OPRE/411 Week 4

    • 379 Words
    • 2 Pages

    1. Use Solver in EXCEL to solve each of the following linear programming problems. To do so,…

    • 379 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Freaudian Analysis

    • 3380 Words
    • 14 Pages

    Find the optimal solution using the graphical method (use graph paper). Identify the feasible region and the optimal solution on the graph. How much is the maximum profit? Consider the following linear programming problem: Minimize Z = 3 x + 5 y (cost, $) subject to 10 x + 2 y ≥ 20 6 x + 6 y ≥ 36 y ≥ 2 x, y ≥ 0 Find the optimal solution using the graphical method (use graph paper). Identify the feasible region and the optimal solution on the graph. How much is the minimum cost? 2. The Turner-Laberge Brokerage firm has just been instructed by one of its clients to invest $250 000 for her, money obtained recently through the sale of land holdings in British Columbia. The client has a good deal of trust in the investment house, but she also has her own ideas about the distribution of the funds being invested. She requests that the firm select whatever stocks and bonds they believe are well rated but within the following guidelines: 1. At least 20% of the investment should be in accounts with only Canadian content. 2. At least 40% of the investment should be placed in a combination of U.S. electronics firms, aerospace firms, and pharmaceutical companies. 3. No more than 50% of the invested amount should be in precious metals. 4. Ratio of aerospace to pharmaceutical investment should be at least 2 : 1 . Subject to these restrains, the client’s goal is to maximize projected return on investments. The analysts at Turner-Laberge, aware of these guidelines, prepare a list of high-quality stocks and bonds and their corresponding rates of return. Projected Rate of Return (%) Investment 3. Canadian RRSP Thompson Electronics, Inc. (USA) United Aerospace Corp. (USA) Palmer Pharmaceuticals (USA) Alberta Gold Mines (Canada) Formulate this portfolio selection problem using LP. 5.3 6.8 4.9 8.4 11.8…

    • 3380 Words
    • 14 Pages
    Powerful Essays
  • Satisfactory Essays

    Stryker Corporation

    • 1055 Words
    • 21 Pages

    arbitrarily weighted so that they each make up about 1/3 of the portfolio. Tools Solver…

    • 1055 Words
    • 21 Pages
    Satisfactory Essays
  • Satisfactory Essays

    EXCEL SOLVER TUTORIAL

    • 460 Words
    • 3 Pages

    Many firms face the problem of how to best use multiple scarce resources. Linear programming is designed to help find the product mix that maximizes profits in the short run when multiple constraints exist. While linear programming can be solved as a mathematical problem using pencil and paper, it is much more efficient to use Excel Solver. The key to using Excel Solver is to make certain you have modeled the problem correctly and then interpreted the results appropriately. In this problem we will practice the use of Solver.…

    • 460 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Julia can sell at least as many slice of pizza (x1) as hot dogs (x2) and Barbecue sandwiches (x3) combined.…

    • 893 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    “The snow leopard is listed on the World Conservation Union's Red List of Threatened Species as "Endangered," the same classification given the panda and the tiger.An estimated 3,500 to 7,000 wild snow leopards roam the mountains of central Asia today. In addition, there are between 600 and 700 snow leopards in zoos around the world. No one has an exact count because snow leopards are so elusive and inhabit such harsh and remote habitat that they are rarely seen.”…

    • 913 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Operation System

    • 358 Words
    • 2 Pages

    Constraint 2. The average duration of the portfolio must be at most 6. For example, a portfolio that invested $ 600,000 in bond 1 and $400,000 in bond 4 would have an average duration of {(600,000) (3) + (400,000) (9)]}/ 1,000,000 = 5.4.…

    • 358 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    I used this distribution model because the question states that the company in not changing its current distribution strategy. Constraints 1-2 are the number of units that the two plants are able to produce. Constraints 3-5 are transshipment constraints; they guarantee that the number of units shipped into the distribution center is equal to the number shipped out. Constraints 6-14 are the number of units demanded at each customer zone and are in place to guarantee the demand is satisfied. Now to show how to calculate the totals we must set up the model to show no limitations as the problem is saying. To set that up I am going to list the new formulas without limitations.…

    • 1639 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Call a the proportion of total portfolio value invested in first stock. Then we have to minimize the total variance…

    • 643 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Linear Programming

    • 663 Words
    • 3 Pages

    1.65(Xll+X21+X3 1+X41+X51) + 2(X12+X22+X32+X42+X52) + 2.25(Xl3+X23+X33+X43+X53) X1 l+X12+X1316,000 X2 1+X22+X2317,500 X3 1+XX?+X3317,5OO X4 1+X42+X4316,000 X5 1+X52+X5317,5OO 0.15X11+0.25X21+0.25X31+0.10X41+0.25X51>10,000 0.20X12+0.20x22+0.20X32+0.20x42+0.20X52>3,000 0.25X13+0.15X23+0.15X33+0.25X43+0.20X53>5,000 Xij>O for all ij…

    • 663 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Modeling with GAMS: Part II

    • 2346 Words
    • 10 Pages

    Problem: How did we generate generate? 10.06*FS+17.64*IB+32.41*LG+32.36*LV+33.44*SG+24.56*SV = R1 13.12*FS+ 3.25*IB+18.71*LG+20.61*LV+19.40*SG+25.32*SV = R2 S13.47*FS+7.51*IB+33.28*LG+12.93*LV+3.85*SG-6.70*SV = R3 45.42*FS-1.33*IB+41.46*LG+7.06*LV+58.68*SG+5.43*SV = R4 -21.93*FS+7.36*IB-23.26*LG-5.37*LV-9.02*SG+17.31*SV = R5…

    • 2346 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Hw1 Solution

    • 890 Words
    • 4 Pages

    Min 13p1 + 14p2 + 15p3 + 2(I1 + I2 + I3 ) subject to A1 = 5 + .5p1 (Number available to meet demand for week 1) A1 ≥ 20 (We must meet demand for week 1) I1 = A1 -20 + .5 p1 (Balance constraint for week 1) A2 = I1 + .5p2 (Number available to meet demand for week 2) A2 ≥ 10 (We must meet demand for week 2) I2 = A2 -10 + .5 p2 (Balance constraint for week 2) A3 = I2 + .5p3 (Number available to meet demand for week 3) A2 ≥ 15 (We must meet demand for week 2) I3 = A3 -15 + .5 p3 (Balance constraint for week 2) All…

    • 890 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Financial Analyse

    • 715 Words
    • 3 Pages

    PART A 1. The file “data” contains returns data on the market, risk free asset and a number of stocks. Choose five stocks from the file, list the names of the stocks and calculate their average returns and standard deviations.…

    • 715 Words
    • 3 Pages
    Good Essays