Class BinomialTree
java.lang.Object
com.quantfinlib.pricing.BinomialTree
Cox-Ross-Rubinstein binomial tree for European and American options with a
continuous carry yield (dividends / foreign rate). Converges to
Black-Scholes for European payoffs; prices the early-exercise premium for
American ones.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic doubledelta(BlackScholes.OptionType type, BinomialTree.ExerciseStyle style, double spot, double strike, double rate, double carry, double vol, double timeYears, int steps) Delta from the first tree step (central difference at t=dt).static doubleearlyExercisePremium(BlackScholes.OptionType type, double spot, double strike, double rate, double carry, double vol, double timeYears, int steps) Early-exercise premium: American price minus European price.static doubleprice(BlackScholes.OptionType type, BinomialTree.ExerciseStyle style, double spot, double strike, double rate, double carry, double vol, double timeYears, int steps)
-
Method Details
-
price
public static double price(BlackScholes.OptionType type, BinomialTree.ExerciseStyle style, double spot, double strike, double rate, double carry, double vol, double timeYears, int steps) -
earlyExercisePremium
public static double earlyExercisePremium(BlackScholes.OptionType type, double spot, double strike, double rate, double carry, double vol, double timeYears, int steps) Early-exercise premium: American price minus European price. -
delta
public static double delta(BlackScholes.OptionType type, BinomialTree.ExerciseStyle style, double spot, double strike, double rate, double carry, double vol, double timeYears, int steps) Delta from the first tree step (central difference at t=dt).
-