BLKSHPTPRC Function

Calculates put prices for European options on stocks, based on the Black-Scholes model.

Category: Financial
Returned data type: DOUBLE

Syntax

BLKSHPTPRC(E, t, S, r, sigma)

Arguments

E

is a nonmissing, positive value that specifies the exercise price.

Requirement Specify E and S in the same units.
Data type DOUBLE

t

is a nonmissing value that specifies the time to maturity, in years.

Data type INTEGER

S

is a nonmissing, positive value that specifies the share price.

Requirement Specify S and E in the same units.
Data type DOUBLE

r

is a nonmissing, positive value that specifies the annualized risk-free interest rate, continuously compounded.

Data type DOUBLE

sigma

is a nonmissing, positive fraction that specifies the volatility of the underlying asset.

Data type DOUBLE

Details

The BLKSHPTPRC function calculates the put prices for European options on stocks, based on the Black-Scholes model. The function is based on the following relationship:
table with 1 row and 1 column , row1 column 1 , p u t , equals , c eh l l , minus s plus e . epsilon super negative r t end super , end table
Arguments
S
is a nonmissing, positive value that specifies the share price.
E
is a nonmissing, positive value that specifies the exercise price of the option.
table with 2 rows and 2 columns , row1 column 1 , d sub 1 , equals , column 2 fraction open natural log of . open ,  s over e , close . plus . open r plus , fraction sigma squared , over 2 end fraction , close . t close , over sigma square root of t end fraction , row2 column 1 , d sub 2 , equals , column 2 d sub 1 , minus sigma square root of t , end table
The following arguments apply to the preceding equation:
t
specifies the time to expiration, in years.
r
specifies the risk-free interest rate, which is an annual rate that is expressed in terms of continuous compounding.
sigma
specifies the volatility (the square root of the variance).
sigma squared
specifies the variance of the rate of return.
For the special case of t=0, the following equation is true:
table with 1 row and 1 column , row1 column 1 , p u t , equals mehx of . open . open e minus s close . comma 0 close , end table
For information about the basics of pricing, see Using Pricing Functions in SAS Functions and CALL Routines: Reference.

Comparisons

The BLKSHPTPRC function calculates the put prices for European options on stocks, based on the Black-Scholes model. The BLKSHCLPRC function calculates the call prices for European options on stocks, based on the Black-Scholes model. These functions return a scalar value.

Example

The following statements illustrate the BLKSHPTPRC function:
Statements
Results
----+----1----+-—-2--
select blkshptprc(230,.5,290,.04,.25);
1.56597442946068
select blkshptprc(350,.3,400,.05,.2);
1.64091943067592

See Also

Functions: