Open in app
Home
Notifications
Lists
Stories

Write
Mark Jamison
Mark Jamison

Home
About

Published in Towards Data Science

·Pinned

Modelling a Game of Tennis

Using Python to verify the math behind points-based modelling of tennis games — Tennis, like other racket sports (and volleyball), has a specific scoring system that involves point scoring being divided up into subsets with these chunks being what matters to the overall match, not each individual point. This leads to the natural question: “What’s the relationship between the probability of winning a…

Python

9 min read

Building A Tennis Match Simulator in Python
Building A Tennis Match Simulator in Python

Published in Towards Data Science

·Pinned

Why do we use the standard deviation?

Fisher, parameterisation, efficiency and CLT — It feels like knowledge has advanced, and is continuing to advance, so quickly that in order to keep up there is no time at school to explain how and why things are the way they are. For me, standard deviation is one of those things: something that is simply stated…

Python

11 min read

Why do we use the standard deviation?
Why do we use the standard deviation?

Published in Towards Data Science

·Pinned

Why is the sample variance distributed chi-squared with n-1 degrees of freedom?

Mashing together intuitive derivations littering the web — This is something I always struggled with — half because I didn’t really feel comfortable with the chi-square distribution, half because the idea of ‘degrees of freedom’ seemed incredibly vague. Most derivations are either: symbol heavy with lots of largely unnecessary maths chucked straight in your face end up technically…

Python

13 min read

Why is the sample variance distributed with n-1 degrees of freedom?
Why is the sample variance distributed with n-1 degrees of freedom?

Published in DataDrivenInvestor

·May 7

Fat tails and their impact on option prices

Kurtosis, defining fat tails and counter-intuitive results — Option trading is usually associated with the words ‘convexity’ or ‘leverage’ with the assumption being that options are the best instrument to profit from large stock price moves — either positive or negative. This opinion has been spurred on by depictions of optionality in movies such as the Big Short…

Python

7 min read

Fat tails and their impact on option prices
Fat tails and their impact on option prices

Published in Towards Data Science

·Apr 22

Random Sampling using SciPy and NumPy: Part III

Implementing custom distribution sampling in SciPy — In the previous two parts (Part I, Part II) we walked through a quick intro to what sampling entails as well as then digging through the source code of NumPy and SciPy to understand exactly how this is implemented in modern python libraries. All of this can seem like overkill…

Python

9 min read

Random Sampling with SciPy and NumPy Part III
Random Sampling with SciPy and NumPy Part III

Published in Towards Data Science

·Apr 14

Random Sampling using SciPy and NumPy: Part II

Fancy algorithms, source code walkthrough and potential improvements — In Part I we went through the basics of Inverse Transform Sampling (ITS) and created our own ITS pure python implementation to sample numbers from a standard normal distribution. We then compared the speed of our somewhat optimised function to that of the built in SciPy function and found ourselves…

Python

7 min read

Random Sampling with SciPy and NumPy Part II
Random Sampling with SciPy and NumPy Part II

Published in Towards Data Science

·Apr 14

Random Sampling with SciPy and NumPy: Part I

Intro to sampling, writing our own, speed testing — Being able to draw a random sample from a distribution of your choice is very useful. It underlies any kind of stochastic process simulation whether that’s particle diffusion, stock price movements, or modelling any phenomena that displays some kind of randomness through time. For that reason, having access to accurate…

Python

7 min read

Random Sampling using SciPy and NumPy Part I
Random Sampling using SciPy and NumPy Part I

Published in DataDrivenInvestor

·Mar 25

What is the ‘risk neutral measure’?

Cutting through excessive probability jargon — When it comes to making things sound and look much more complicated than they are, financial maths really does reign supreme. Fortunately it’s not just me who thinks it’s all overly complicated but even Paul Wilmott thinks the profession takes it just a bit too far and he’s a bit…

Python

13 min read

What is the ‘risk neutral measure’?
What is the ‘risk neutral measure’?

Published in DataDrivenInvestor

·Mar 15

How to delta hedge an option: Part V

Which volatility do I use: implied or realised? — So far we have built up a world in order to analyse the effectiveness of delta hedging for the replication of a vanilla option. We have stated a simple model for how a stock moves around: it drifts a bit has a nice simple normally distributed change every day Based…

Python

12 min read

How to delta hedge an option: Part V
How to delta hedge an option: Part V

Published in DataDrivenInvestor

·Mar 11

How to delta hedge an option: Part IV

Hedging frequency & more pretty scatterplots — We left the previous article having established that miraculously the process of just holding: cash stocks and adjusting this quantity of stocks frequently according to what the Black-Scholes delta tells us. Sure, there are lots of assumptions embedded in the way we have set up our simulations but we can…

Python

9 min read

How to delta hedge an option: Part IV
How to delta hedge an option: Part IV
Mark Jamison

Mark Jamison

Hi, I'm Mark with a k and not a c

Following
  • Piero Paialunga

    Piero Paialunga

  • Susan Li

    Susan Li

  • Harel Jacobson

    Harel Jacobson

  • Terence Shin

    Terence Shin

  • Rebecca Vickery

    Rebecca Vickery

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable