This is a Monte-Carlo simulation of the price of a stock over the next year. Input today's price, the expected rate of return, and the volatility of the stock. You can plot a number of possible price scenarios at once.

The prices are generated by sampling a lognormal stock price process. See, for example, N. Chriss "Black-Scholes and Beyond", Irwin, 1997. The lognormal stock price model is used in finance to value stock options.

©2001 by The MathWorks, Inc. All rights reserved. MATLAB is a registered trademark of The MathWorks, Inc.