SERVING THE QUANTITATIVE FINANCE COMMUNITY

Collector
Posts: 4577
Joined: August 21st, 2001, 12:37 pm

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

American put S=100, X=100, T=5, r=0.1, b=0.01, v=0.2CN n=50, m=50 P= 12.0852 CN n=1000, m=1000 p= 12.1822 (I think right at 2 decimals...)500 time step Leisen-Reimer binomial gives 12.1836 (n=50 12.1371)500 CRR tree 12.1841 (N=50 12.1338)500 Trinomial (CRR-equivalent parameters) 12.1838 (n=50 12.1523)
Last edited by Collector on January 11th, 2007, 11:00 pm, edited 1 time in total.

hgeorgako
Posts: 40
Joined: September 17th, 2005, 1:49 am

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

Thank you all for the clarifications.I realize now that the code only keeps track of the last two time steps and not the entire grid. I will adjust the declaration to take into account the C(0 to 1, 0 to M).How about any boundary conditions within the code? The values that i used are same as the ones you outlined but with T = 3. I'm referencing the Wilmott Black Scholes Option Calculator Version 1.0 (http://paul.wilmott.com/software.cfm)and the CBOE java based calculator here: http://www.cboe.com/LearnCenter/OptionC ... r.aspxThey both seem to agree.Values for Put = 13.473, Call = 13.473For T = 5 on the Wilmott calculator i get Put = 17.0153. The CBOE calculator only goes up to 3 years. Should i not be trusting these calculators? Any other place where i can cross-reference my results?

Collector
Posts: 4577
Joined: August 21st, 2001, 12:37 pm

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

I don't know these calculators, are input consistent, what rate, carry, dividend do these calculators require (set to) continuous time? discrete? are you consistently taking into account cost-of-carry/dividend yield... if not sure do not use Black-boxes...it can cost you million of dollars...well also I have to make money I will be on other side
Last edited by Collector on January 11th, 2007, 11:00 pm, edited 1 time in total.

Collector
Posts: 4577
Joined: August 21st, 2001, 12:37 pm

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

CBOE calculator at T=3 put= 10.582 if you u use rate 10 and dividend 9.... calculator says annual? my guess it is requiering cc rates, that is 10 and 9 (not convereted 10.51709181, 9.417428371) In that case it is fully consitent with my book.... but I have no idea how you got 13.473.....was it you that I sold options to just now at CBOE ? Leisen-Reimer n=500 10.5852CN m=n=1000 10.5824 problem with all such web calculators is that it is often unclear what input they actually require.... once a trader contacted me and told me either my book was wrong or a web based exchange calculator was wrong.... well both where right, I had actually build both of them, but they required different input parameters. Well in this case it was in the instructions...THe CBOE calculator is very unclear in what input is needed...from what they write one should think annual, but continuous compounding seems to be it....?? you can not go into their code so who knows....... I like this: confusion causes opportunities... also in calculators requiering days to expiration, do they then divide by 365? or 365.25....here I think 365? but as long as it is Black-Box it takes time to look into it... my book is no Black-Box if you are putting money to work be careful with any option calculator you use (including my book), no matter.... do not trust your intution....but trust your instincts and know your weapon!!
Last edited by Collector on January 11th, 2007, 11:00 pm, edited 1 time in total.

Cuchulainn
Posts: 61593
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

QuoteOriginally posted by: CollectorAmerican put S=100, X=100, T=5, r=0.1, b=0.01, v=0.2CN n=50, m=50 P= 12.0852 CN n=1000, m=1000 p= 12.1822 (I think right at 2 decimals...)500 time step Leisen-Reimer binomial gives 12.1836 (n=50 12.1371)500 CRR tree 12.1841 (N=50 12.1338)500 Trinomial (CRR-equivalent parameters) 12.1838 (n=50 12.1523)I tried this on my C++ code. Implicit Euler (first order) and CN (second order)N= UnderlyingM = timeb = r - D so D = 0.09 (i use D in the PDE)//////////////////////////////////////////////////////////1. N = M = 300IE 12.16652CN 12.181482. N = M = 600IE 12.17758CN 12.185113. N = M = 1200IE 12.18304CN 12.18684
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

Collector
Posts: 4577
Joined: August 21st, 2001, 12:37 pm

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

n=m=300 12.1693 n=m= 600 12.1785 n=m= 1000 12.1822so looks like you have somewhat faster convergence....but that is as expected I refer to you and a few other FD experts for details on this topic!

Cuchulainn
Posts: 61593
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

QuoteOriginally posted by: CollectorCBOE calculator at T=3 put= 10.582 if you u use rate 10 and dividend 9.... calculator says annual? my guess it is requiering cc rates, that is 10 and 9 (not convereted 10.51709181, 9.417428371) In that case it is fully consitent with my book.... but I have no idea how you got 13.473.....was it you that I sold options to just now at CBOE ? Leisen-Reimer n=500 10.5852CN m=n=1000 10.5824 With T = 3 I get with N = M = 600IE 10.57983CN 10.5855So I get the same answer as Collector
Attachments
PutCN1.ZIP
Last edited by Cuchulainn on January 11th, 2007, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

Cuchulainn
Posts: 61593
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

QuoteOriginally posted by: Collectorn=m=300 12.1693 n=m= 600 12.1785 n=m= 1000 12.1822so looks like you have somewhat faster convergence....but that is as expected I refer to you and a few other FD experts for details on this topic!We can actually make it even better because this paticular code uses the early exercise test after each time level because this reduces the potential second-order accuracy of CN.But I think that the current values are OK.
Last edited by Cuchulainn on January 11th, 2007, 11:00 pm, edited 1 time in total.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

Cuchulainn
Posts: 61593
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

Quoteproblem with all such web calculators is that it is often unclear what input they actually requireCould be a problem of UNITS; some systems allow choose FDM scheme as 0 explicit Euler 1 IE and 0.5 CN while others use 0, 50 and 100!I usually finding the b term confusing when calculating.
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

hgeorgako
Posts: 40
Joined: September 17th, 2005, 1:49 am

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

Thanks again Gentlemen,Your numbers are indeed correct. The b - term was causing some confusing for me.

hgeorgako
Posts: 40
Joined: September 17th, 2005, 1:49 am

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

Thanks again Gentlemen,Your numbers are indeed correct. The b - term was causing some confusing for me.

Cuchulainn
Posts: 61593
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

QuoteOriginally posted by: hgeorgakoThanks again Gentlemen,Your numbers are indeed correct. The b - term was causing some confusing for me.You are welcomeYes, I always forget it myself, the Collector book explains all the different variationsI Prefer always b = r - D
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

DominicConnor
Posts: 11684
Joined: July 14th, 2002, 3:00 am

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

It does exist, got my copy yesterday.Looks very good, will take a while...

Cuchulainn
Posts: 61593
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

Collector,what kind of CD code you have in book? C#, C++ etc.?
http://www.datasimfinancial.com
http://www.datasim.nl

Every Time We Teach a Child Something, We Keep Him from Inventing It Himself
Jean Piaget

Collector
Posts: 4577
Joined: August 21st, 2001, 12:37 pm

### New 2nd Edition - The Complete Guide to Option Pricing Formulas + CD-ROM by Espen Gaarder Haug

In this book only VBA

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...

 JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...

GZIP: On