TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Black-Scholes Option Pricing Model in Scheme

12 pointsby ericlcalmost 15 years ago

3 comments

ericlcalmost 15 years ago
The magic numbers p and b1-b5 were obtained from approximation (2) in Bryc, W. "A uniform approximation to the right normal tail integral", Applied Mathematics and Computation, Volume 127, Issue 2-3 (April 2002), Pages 365-374. I have added links to this reference in the post if you'd like to look at it.
sqrt17almost 15 years ago
Where do the magic numbers (p, b1-b5) come from? Are these empirically found using curve fitting?<p>Also, wouldn't it be better to write things like<p><pre><code> (+ (- (* (exp (* (- r) t)) strike) s) call))) </code></pre> in a more schemer-friendly way as<p><pre><code> (+ call (- s) (* strike (exp (- (* r t))))) </code></pre> to avoid parenthesis syndrome?<p>(I was probably wrong to expect self-explanatory code, e.g. with docstrings, but IMO the readability could be improved)
infamouscowalmost 15 years ago
Black-Scholes Option Pricing Model in C, from the same author:<p><a href="http://blog.ecounysis.com/black-scholes-option-pricing-model-in-c" rel="nofollow">http://blog.ecounysis.com/black-scholes-option-pricing-model...</a>