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

    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
  • 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
  • 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
  • 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

    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
  • 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
  • Satisfactory Essays

    Hbs Pinkerton

    • 1989 Words
    • 8 Pages

    $243.6 221.9 21.7 16.1 5.6 0.7 0.3 4.6 2.4 $2.2 $1.0 33.8 8.3 $43.1 $2.4 1.8 1.8 49.1 $1.0 1.0 2.7 26.5 31.2…

    • 1989 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    Data comm

    • 427 Words
    • 2 Pages

    Look at the amount you invested in stock 1 and stock 2 at the beginning of the semester. Assume, for the moment, that these stocks are your entire portfolio. What can you say about the efficiency of the combination you chose?…

    • 427 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Modeling with GAMS: Part II

    • 2346 Words
    • 10 Pages

    The first step is to rewrite our portfolio optimization model using sets and parameters. 5 Motivation Our Goal: GAMS Excel Data Input Output Excel Control Macro 6 Motivation Rather than write out the constraints “by hand” with all the numbers there, let’s write them in algebraic format: OK, here we go!…

    • 2346 Words
    • 10 Pages
    Satisfactory 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
  • Powerful Essays

    Financial Management

    • 2519 Words
    • 11 Pages

    Stocks A and B each have an expected return of 12%, a beta of 1.2, and a standard deviation of 25%. The returns on the two stocks have a correlation of 0.6. Portfolio P has 50% in Stock A and 50% in Stock…

    • 2519 Words
    • 11 Pages
    Powerful Essays