Code covered by the BSD License
-
bisect(S0,k,r,T,sigma,D1,t1)
bisectional method of finding the value of S_Star to be used in
-
bivnormcdf(a,b,rho)
Gives the bivariate normal disribution function probabilities
-
bsprice(S, k, r, T, sigma)
Call and put prices of black-Scholes Equation
-
normcdfM(x)
Gives the normal cumulative density function probabilities
-
rogewhaley(S0,k,r,T,sigma,D1,...
Roll, Geske, Whaley approximation of an American Call Price
-
Readme.m
-
View all files
from
American Call option Pricing Approximation
by S B
Roll, geske , whaley approximation of american calls and puts with one dividend.
|
| bsprice(S, k, r, T, sigma)
|
function [c,p] = bsprice(S, k, r, T, sigma)
%Call and put prices of black-Scholes Equation
%%Inputs
%S0 = Current Stock price
%k = strike price
%sigma = Volatility
%T: Time to maturity in years.
%r: risk free rate
%Author: Sivakumar Batthala
%MBA candidate
%Chicago Graduate School of Business
%University of chicago
%Date:02/23/2005
%Please email sbatthal@gsb.uchicago.edu for any clarifications or errors.
d1 = (log(S/k) + (r+(0.5*(sigma^2)))*T)/(sigma*sqrt(T));
d2 = d1 - (sigma*sqrt(T));
c = S*normcdfM(d1) - (k*exp(-r*T)*normcdfM(d2));
p = k*exp(-r*T)*normcdfM(-d2) - (S*normcdfM(-d1));
|
|
Contact us at files@mathworks.com