Pricing Stock Options Using the Binomial Model

The Financial Toolbox product provides functions that compute prices, sensitivities, and profits for portfolios of options or other equity derivatives. This example uses the binomial model to price an option. The binomial model assumes that the probability of each possible price over time follows a binomial distribution. That is, prices can move to only two values, one up or one down, over any short time period. Plotting these two values over time is known as building a binomial tree.

This example organizes and displays input and output data using a Microsoft Excel worksheet. Spreadsheet Link EX functions copy data to a MATLAB matrix, calculate the prices, and return data to the worksheet.

  1. Click the Sheet4 tab on ExliSamp.xls to open the worksheet for this example.

    The worksheet contains three named ranges:

  2. Make D5 the active cell. Press F2; then press Enter to execute the Spreadsheet Link EX function that copies the asset data to the MATLAB workspace.

  3. Move to D8 and execute the function that computes the binomial prices.

  4. Execute the functions in D11 and D12 to copy the price data to the Excel worksheet.

    The worksheet looks as follows.

    Read the asset price tree as follows:

    Ignore the zeros. The option value tree gives the associated option value for each node in the price tree. The option value is zero for prices significantly above the exercise price. Ignore the zeros that correspond to a zero in the price tree.

  5. Try changing the data in B4:B10 and reexecuting the Spreadsheet Link EX functions.

  6. When you finish the example, close the figure window.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS