Deriving Black-Scholes

94 points by meysamazad a day ago on hackernews | 55 comments

docshock | a day ago

Thank you for this. I understand much better now. Black and Scholes' choice of of Brownian motion for the model is one I cannot swallow. Heavy-tailed distributions that do not have finite mean and variance are observable in various markets, and they do not follow the Central Limit Theorem.

The theorem would appear to hold during periods that the market follows a Brownian trajectory. I would argue that it ignores the risk of a state transition to an unbounded distribution.

dalvrosa | a day ago

Thanks, glad it helped! It is the weakest assumption would say. There is no perfect model, the beauty of Black-Scholes is that can be solved analytically

Trading shops typically use more advanced models, but Black-Scholes remains the base and it is fairly accurate

nyeah | a day ago

The distributions of price changes over time are clearly non-Gaussian. There is a lot of fun math. But it's surprisingly hard to find an alternative that works meaningfully better than Brownian motion in the real world.

chollida1 | a day ago

> Black and Scholes' choice of of Brownian motion for the model is one I cannot swallow

Well its a great assumption and works most of the time. It is in fact, probably the right choice for pricing options in normal market conditions. If you have other needs thankfully we do have other models that are in use

- Merton jump-diffusion, this uses Poisson jumps (usually log-normal) to GBM. it shows Crash risk, and is used for short-dated options

- Heston, models using Stochastic volatility (CIR process) + correlation with the asset, is mostly used to model the Volatility smile/skew, term structure of vol

- Local volatility (Dupire), its advantage is that Volatility is a deterministic function of spot and time. It excels at modelling an Exact fit to the smile (used more for hedging/exotics).

- Kou jump-diffusion, I'll admit i don't use this and I'm not as familiar with it but its models using Double-exponential jumps and it excels when you need to model the skew awhile still being relatively tractable

EDIT

as someone asked. These are models that keep brownian motion but account for jumps.

We do have other models that replace the Brownian motion altogether. The most common are Levy based models such as Variance Gamma and Normal Inverse Gaussian models.

I can't speak to their use in the industry as I don't work for an option market maker.

And for completeness i should mention the very common Binomial / trinomial trees (Cox–Ross–Rubinstein, etc. family of models). THese provide a discrete approximation and can converge to Black–Scholes or be calibrated differently.

Their claim to fame was their ease of calculation back when this was a consideration.

joe_the_user | a day ago

Well, I should just highlight that it's possible for a path to follow Brownian motion "most of the time" but for relatively few times it doesn't to follow it to contribute most of the path's motion.

I'd assume you know that Benoit Mandlebot began his study of fractals with finance and noted how the characteristic of non-Gaussian stable distribution is exactly that most of the change happens with a small minority of jumps, see Fractals and Scaling in Finance, showing research long before Black, Scholes and Merton.

Indeed, all this was part of the critique that Mandlebrot and Taleb offered to the Black-Scholes-fueled financial engineering that lead up to the 2008 market crisis (unfortunately, Taleb kind of butchered the Gaussian/Non-Gaussian distinction for a popular audience in his book Black Swan).

chollida1 | a day ago

I agree with the first part of your critique, especially about the movement portion, which is why most options traders use several models together.

> Indeed, all this was part of the critique that Mandlebrot and Taleb offered to the Black-Scholes-fueled financial engineering that lead up to the 2008 market crisis

This I'd push back on, 2008 had practically nothing to do with Black Scholes and everything to do with

- a complete lack of mortgage underwriting standards

- a thirst for financial engineering that repackaged these loans in

- incompetent rating of these newly package loans

- the gausian coupula used to price the newly created CDO's

MrBuddyCasino | a day ago

> a complete lack of mortgage underwriting standards

More specifically, the Bush administration wanted to expand home ownership to the “disadvantaged” and “minorities” and passed laws to make this easier, bypassing the bank’s usual risk assessment.

An expensive mistake.

joe_the_user | 23 hours ago

Yeah, I'll concede it's more the broad assumption of stocks as Gaussian rather than the particular Black-Scholes that was the guiding focus of financial engineers.

ltbarcly3 | a day ago

"works most of the time." "normal market conditions"

So in other words it is a bad assumption and fails when most large wealth transfers occur. Got it.

HWR_14 | 22 hours ago

It failing would be why large wealth transfers occur as opposed to people being properly hedged.

etcetcetcetceta | 9 hours ago

Most of the time is enough, if the market had been solved there would be no market.

docshock | 22 hours ago

Thank you for this comprehensive reply! This has been an area of interest for me for some time, but haven't known which direction to go.

qurren | a day ago

> Heavy-tailed distributions that do not have finite mean and variance are observable in various markets

It's fundamentally flawed to assume markets behave like Brownian motion. Brownian motion better describes what markets do when there is no new information. When there is new information, misinformation, and associated greed, panic, and other herd emotions, there is no fundamental reason for a market to be Brownian.

And this is where most inefficiencies lie.

HWR_14 | 23 hours ago

Isn't "brownian motion except in response to randomness" just "brownish motion"?

contravariant | 23 hours ago

It's kind of hard to come up with good models for continuous random time-series. With a few reasonable demands you end up with a Levy process, which you can decompose into Brownian motion with jumps. [1]

Some of these demands may look unreasonable if you purely see the variable as 'the price' but become reasonable when you view the variable as 'the current state of affairs'. I think the efficient market hypothesis is that these two are similar enough, but that is indeed a bit of a weak spot.

Anyway once you have stationarity and independence you start running into a few issues because if Var(X_(t+s) - X_t) is infinite for some s, then it is also infinite for s/k for all integers k. And then you get that even the smallest increment in time gives infinite variance which becomes messy.

[1]: https://en.wikipedia.org/wiki/L%C3%A9vy_process

seanhunter | 13 hours ago

If you think about it, it's somewhat beside the point to take exception to the Brownian motion in Black-Scholes. The assumptions of constant volatility and the ability to trade in continuous time are far more unrealistic. The point is, it's a model and the real breakthrough in the original Black/Scholes/Merton paper is the idea of pricing using replication in continuous time. If you're able to hedge in continuous time, the error introduced by the difference between a Brownian motion and a distribution with higher kurtosis is necessarily smaller, because you will hedge it away in tiny bits. This is why billions of dollars are traded using local vol models like Dupire every day - notwithstanding the assumption of normality, assuming vol is a locally deterministic function of price and time gives you a good enough model for most day to day applications where you don't need term skew (eg not forward-starting).

zinc_chest63 | a day ago

[flagged]

dang | a day ago

Could you please stop creating accounts for every few comments you post? We ban accounts that do that. This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html.

You needn't use your real name, of course, but for HN to be a community, users need some identity for other users to relate to. Otherwise we may as well have no usernames and no community, and that would be a different kind of forum. https://hn.algolia.com/?sort=byDate&dateRange=all&type=comme...

Also, please don't post AI-generated (or AI-edited) text to HN - see https://news.ycombinator.com/newsguidelines.html#genai and https://news.ycombinator.com/newsguidelines.html#generated.

dalvrosa | a day ago

Author here, thanks for posting

tldr; the whole derivation is a single idea - you can hedge away all the randomness of a portfolio by combining option + underlying in the right proportion

nyeah | a day ago

The derivation part is nice. I'm a little confused by the first sentence though. I think the price of an option changes when the price of the security changes.

dalvrosa | a day ago

Fair, sloppy wording. I meant it doesn't depend on whether you expect the stock to moon or tank

dalvrosa | 23 hours ago

stevefan1999 | a day ago

Oh. I was just researching this topic yesterday. Keep in mind BS equation is essentially a PDE.

This does not work on American options because you have many potential buy and sell opportunity and the exact PDE now exponentially grows. You can only do approximations to it.

I recalled one of my former friend few years ago (parted ways unfortunately) who suggested treating it as Markov chain and create multiple exit points and assign probabilities at the exit points. This essentially turn it into a probalistic automata and is much easier to calculate and simulate, say for example, run Monte Carlo on it.

gituliar | 23 hours ago

Just a few remarks for clarity.

The Black-Scholes _formula_ for the European option price is a particular solution of the Black-Scholes _equation_.

The beauty of this PDE equation is that it also describes various exotic options (American, Bermudian, Asian, etc.), volatility structures, multi-asset options, etc. In practice, such products are priced numerically with Monte-Carlo or finite-difference methods, but the equation remains the same.

mlhpdx | a day ago

Ah, memories. My professor for Engineering Economics really wanted us to understand optionality, and for some reason that meant having us derive the B-S equation from first principles. We were versed enough in calculus that it was painful but doable, and stayed with me. It’s been useful from time to time in might career as well.

dalvrosa | a day ago

Nice, that's a great way to learn it. Doing it once by hand makes the concept to really stick

HWR_14 | 23 hours ago

And when it doesn't stick you can just derive it.
Chemist here. Was a walk in the park to do that, since its the math of physical chemistry used to explain random walks.

Then again, I understand nothing about IT except for O(matrix calculation) for hydrogen and Eigenvalues.

nater5000 | a day ago

>Even if it feels unintuitive, the price of an option does not depend on whether the underlying moons or tanks.

No? Maybe I'm just misunderstanding what is written here, but the price of an option certainly does depend on the price of the underlying (which is how I interpret the "whether the underlying moons or tanks").

Obviously, mathematically, the author is explicitly showing that Black-Scholes explicitly depends on the underlying price, but it's also intuitively obvious that it does: an option gives you the right to buy/sell the underlying at a specific price, so if a call option has a strike of X and the underlying moons from X (i.e., ATM) to X + Y, then the option will be worth more (all else equal). At expiration, if the underlying is X, then the option is worthless, but if the underlying is X + Y, then the option is worth Y (and it will, of course, be priced accordingly).

I feel like I'm missing something, so I'm happy to be corrected here. It just seems like an oddly specifically incorrect (or at least confusing) thing to start your blog post about deriving Black-Scholes with. Maybe it's just subtle, but there doesn't seem to be any explanation for it throughout the rest of the post.

dalvrosa | a day ago

Yeah that's fair, not the correct wording

I'd correct myself - it doesn't depend on whether you *expect* the stock to moon or tank

tomatocracy | 23 hours ago

I think this is the wrong way to think about put-call parity.

There's nothing about Black-Scholes that says the market can't price higher implied vols when it's worried about a potential dramatic fall in price than the corresponding risk of a dramatic rise in price of the underlying. It's just that this will affect the price of calls as well as puts in a slightly non-intuitive way.

William_BB | 23 hours ago

Yeah this seems wrong. The price of an option at expiry is described only by underlying.

I think they might have meant "whether you believe the underlying will moon or tank".

dalvrosa | 23 hours ago

Thanks William

I've updated the post itself to clarify https://github.com/david-alvarez-rosa/personal-website/commi...

kgwgk | 22 hours ago

"The price of an option at expiry" is called "the payoff" - strictly speaking at expiry there is no longer any option.

William_BB | 22 hours ago

That's semantics. I meant that extrinsic value is 0 and there's only intrinsic value remaining.

kgwgk | 3 hours ago

Everything is semantics. The other person meant “Even if it feels unintuitive, the price of an option [now] does not depend on whether [later] the underlying moons or tanks.”

toast0 | an hour ago

If we could only know now what the stock price will do later, we could better price the options... :p

quickthrowman | 23 hours ago

> >Even if it feels unintuitive, the price of an option does not depend on whether the underlying moons or tanks. No? Maybe I'm just misunderstanding what is written here, but the price of an option certainly does depend on the price of the underlying (which is how I interpret the "whether the underlying moons or tanks").

If you buy a call option and implied volatility is 15% and you hold it until implied volatility climbs up to 30% or higher with the value of the underlying falling, the option could theoretically be worth more than you paid for it despite the underlying going down. It’s dependent on the option delta and vega, but it happens with out of the money options that have a higher vega than they do delta.

Obviously at expiration the only thing that matters is the price of the underlying and the strike price of the option, but implied volatility and the risk free rate affect options pricing until expiration.

HWR_14 | 22 hours ago

Sure, you can make money on that case. But you would have made far more money if the underlying mooned to achieve that volatility and now your highly volatile option is deep in the money.

quickthrowman | 22 hours ago

Yes, it is much better to own puts when the underlying goes down so that you harvest both the delta and vega instead of just the vega. Volatility almost always falls when the underlying goes up.

HWR_14 | 21 hours ago

I thought volatility almost always went up when underlying reversed direction, as opposed to when it went up.

But I could be wrong. Asking is how I learn.

hnarayanan | a day ago

What a pretty website!

dalvrosa | 23 hours ago

Thanks!

xyzsparetimexyz | 23 hours ago

What about supermassive black scholes

ipdashc | 23 hours ago

I've never quite understood how Black-Scholes is used in practice. Aren't options priced, like everything else, by how much people are willing to buy and sell them for? Is the formula just an indicator for where the price "should" be, and deviations from that price speak to people's predictions about where the underlying will go? Or is it actually used in the market in some deeper fashion?

dullcrisp | 23 hours ago

The people use the formula to determine how much they’re willing to buy and sell them for.

xxpor | 23 hours ago

>Just an indicator for where the price "should" be, and deviations from that price speak to people's predictions about where the underlying will go?

Yes, this.

It's useful as a baseline/arbitrage signaler. Without BS, the price of an out of the money option would be pure speculation since you're not pricing anything concrete. It's more of a way to say "given the underlying state of the market, here's what makes rational sense". On the other hand, it also lets you say for example, I want to be short volatility. You can't really buy or sell volatility directly of course (outside of VIX ETFs, which are still synthetic). The market's IV is currently X, and I think it'll be X-5. What should be the option price be if that happens?

There are also a lot of deal structures in real life that are effectively options even if they're not marketed or thought of that way. BS could help price those.

fpoling | 23 hours ago

Black-Scholes assumes Gaussian distribution. Markets are not so any serious trader would not use it or they will blow up. Thorp version of that formula is much better as it allows for non-normal distribution. But even with that naked options are tough to price properly and serious trades typically limit liability in one way or another.

kryptiskt | 11 hours ago

It can't deviate too far, since if an option is too expensive compared to the theoretical value, you would be able to sell it and hedge with a position in the underlying asset and make free money.

toast0 | an hour ago

It's kind of useful to estimate the value of employee stock options, if you're unsatisfied with the pesimmistic estimate of $0. Although, if your employer is publicly traded, you can estimate based on traded options, if there's anything similar.

lordnacho | 21 hours ago

Option trading was my first job.

Some things to note:

There's a reason why you need the squared term in the Taylor expansion, which is a thing called Ito's lemma that is the stochastic calculus version of the chain rule.

If you thought that it is a bit odd to assume constant volatility, you are right. People don't just use the BS formula to make a price for an option, but they DO use it to describe a price they made, funnily enough. So you would use whatever more complex model you wanted to come up with a number, and then back out the volatility via the BS formula to say what volatility that corresponds to.

In practice you end up with a surface, whose dynamics will vary depending on what you're looking at.

Option traders are speculating on volatility (not direction), and the mechanism is like this:

- You can buy a call and short the market, or buy a put and go long the market. If you draw this on a graph, you can satisfy yourself that this roughly gives you a u-shape such that you are locally neutral in the price, ie a small up or down does very little to your portfolio. (BTW, this is why traders call all the high strikes calls and the low strikes puts, it doesn't actually matter whether it is the right to buy or sell the asset, and the in-the-money side is just more cash for the same risk)

- If the market moves and you own hedged options, your portfolio will be worth more regardless of whether it went up or down. You can then hedge again to re-seat the flat portion of the U-shape. If the market moves again, you do it again, locking in your gains.

- Why is this not free money? Well, we only looked at the price dimension. Every day you are long the option, it becomes worth a bit less, since there's less time left for it to move. This gets steeper and steeper with each day, since days are a constant length of time and you are losing a greater and greater proportion of the life of the option.

- So why is the opposite not free money? Well, the two effects push against each other. Sometimes, the movement is enough so that the loss on theta (time) is outweighed by the buying low and selling high. Other times, it is not.

I once looked at autocorrelation of volatility for currency exchanges. Turns out, when it rains, it pours. And vice versa. I.e. for short time spans, there is positive autocorrelation: if everyone is selling, so am I.

lordnacho | 8 hours ago

A well known fact about volatility. Have a look at GARCH and related models for the intro.

aswegs8 | 13 hours ago

Highly recommend "When Genius Failed" about Long-Term Capital Management. Myron Scholes was on the board of the hedge fund and they failed spectacularly. Great read.

gottheUIblues | 11 hours ago

Now LLMs are attacking major open mathematical problems - are there any questions in theory or practice they could potentially resolve in this area? What about real world impacts - could any developments potentially seriously affect the global financial system?