690 points · by Cantaro86 · 7y ago · 60 comments
[1] https://julia.quantecon.org/
[2] https://python.quantecon.org/
Thank you for making this publicly available.
Practical example: get free price every minute from cryptomarketplot.com/api.json then you can figure out the EUR/USD spot using BTC/USD and BTC/EUR without ever needing yahoo finance or anything
I'll only note that beating everyone else is quite challenging, especially when you are competing against very well funded trading firms.
EDIT: Slight fix of wording as suggested by comment below.
But anyways, no one actually believes that. EMH is used as a framework to price securities and as a way to reason about the market. Quant finance doesn’t work without the no arbitrage condition and therefore, EMH. EMH has absolutely nothing to do with “making a profit.” If fact, quant finance and EMH are built on a sure fire way to make a profit: the risk-free rate.
In short, while alpha is, by definition, a zero sum game, beta is not. So we can make profit pretty easily, and this is what most of the world does: obtain exposure to beta and make money.
I do agree that the EMH doesn't exactly hold. Empirical proof of that is the existence of profitable trading firms. However, the reasoning behind EMH does imply something about the difficulty of earning profit relative to the market. And I do think it is a theory that people should be aware of when they start trying to understand finance.
There is lots of data that shows that active managers don't do better than the market.
Sure, one of us might be the next George Soros, but it's important to keep expectations curbed.
He made his first big money by shorting the pound, which (to me, oddly) turned out to be a self-perpetuating burn-it-all-down machine. Which required that he had the resources to place the bet in the first place, but much like LTCM, kind of self-funded after the first dominoe fell.
So - great financial system hacker! For sure!
Stock picker? I'm not quite so certain. (It's possible you know enough more about this than I, that I could be overlooking some great "picking" behavior. I'd love to learn.)
They are useful for pricing or replicating other derivatives without available prices, but not really aimed at getting an edge on the market.
Can quants help? That I am not certain.
And many people like re-creational gambling. So why not gamble on a non-zero sum game, the stock-market?
(I work at Quantopian)
https://epubs.siam.org/doi/abs/10.1137/s0036144500378302
I was planning on moving on to his book but now I'll just read this. Kudos to you Nicola for putting in the work and then releasing. If I were you I would typeset this and approach publishers because I bet you would sell many copies.
edit: i'll take this opportunity to poll the audience: does anyone know a good explanation of girsanov? i know a fair amount of measure theory but i'm still looking for a good, detailed, practical explanation of its use in the context of changing to risk-free measure for black-scholes.
A quick explanation of how it's used:
Taking the stochastic differential equation for geometric Brownian motion, apply Girsanov's theorem to change measure via a drift change such that we now have a discounted stock price that is a martingale. The discounted stock price is the stock price divided by a short term bond or cash account asset. In this new measure the discounted short term bond/cash account asset is also trivially a martingale since it's being divided by itself. So we have that our two key assets (discounted) are martingales. We then define the time zero price of the option (divided by the time zero price of the bond/cash asset) to be the discounted expected value of its value at maturity in this newly constructed measure. By construction this discounted option price is a martingale and we now have three assets that are all martingales which implies there is no arbitrage possible. With this option price, called the "risk neutral" price, no arbitrage is possible under our newly constructed measure, but, because the original measure is an equivalent measure no arbitrage is possible here in the "real world" either and so this is our actual price.
I appreciate there are a few steps here that seem like a bit of a leap. It took me a while to appreciate them. The key things to appreciate are:
How everything being a martingale implies a lack of arbitrage. Girsanov allows you to make your (discounted) underlying a martingale.
How you can then just make the option price a martingale by construction. And then how lack of arbitrage under one measure means lack of arbitrage in any equivalent measure.
The discounting can also be a little confusing, but it's really just incorporating the time value of money into the calculations.
[0] Oksendal B . Stochastic Differential Equations. [1] Shreve S E. Stochastic Calculus for Finance II. [2] Joshi M S. The Concepts and Practice of Mathematical Finance
for anyone interested these two explanations i found when googling around again today are very good: