Monte Carlo Risk Simulation

Week 3

Lecture Notes

Fed Talk

50 bps cut! Markets exploded today. Information gets priced in a nonlinear way

Today’s topic will be a little independent of what we’ve done, so it will be more into the quantitative analysis, simulation, law of large numbers.

Lab Solutions

labs are only 10% of the grade, one point or two is not a big deal, don’t stress

if you look at the annual sharpe ratio, you have an average sharpe ratio which changes over time.

We have weekly returns, based on the end price divided by the previous one. Continuous allows us to use derivations, even if real life is discrete. You can either cut into pieces or eat whole pizza pie. Does it matter? Depends on the assumption we’re making. We can actually represent this as a summation of returns. When we’re trying to understand the expectation, we can use the linearity of expectations.

Annualization also allows you to expand data.

Limit is 15 pages for projects, keep it compact, only wants to see results

R has apply function for functional programming

Open question: Regress 𝜇𝑝 on 𝜎𝑝, what’s going to be the 𝛼, the 𝛽?

You have this market representative agent who picks the most efficient portfolio with a high Sharpe ratio and says you don’t need to do something else. It’s the same with picking a pensions, dictates how you allocate your money, higher risk equity if you’re younger.

Monte Carlo Methods

Assumes some quantitative analysis background.

Monte Carlo is a simulation method. Example: let’s flip this coin and see the next result. We don’t know for sure, but if we run it 100 times, it might be around 50/50 heads and tails. We run an R simulation to do this more and more times. As N number of trials increases, we get closer to 50% on average. This applies to any distribution, which helps us avoid solving complicated mathematical equations. It gives us a lot of good solutions. Let’s have 𝑋𝑁(𝜇,𝜎2) normal distribution.

What’s the expectation?

𝔼[𝑥]=𝜇

Second moment? Variance

𝔼[𝑥2]=𝜎2+𝜇2

Third moment (skew) becomes more complicated

Mean of (x^2) ends up being 5 when (x) is uniform on ((1,2)).

We use this a lot when looking at options and derivatives

If you ask one person how many M&Ms we can put in a jar, it will probably be wrong. But if you ask 1000 people, it will be more right on average. “The wisdom of the crowd.” This is the Law of Large Numbers. You can figure out the values and moments you’re actually looking at. We will price some games as our motivation for finance.

Maybe it’s the same guy, which makes it biased

Bayesian is far away, long-term, this thing only gets one chance.

Monte Carlo (MC) methods allow risk managers to avoid complex analytical solutions and derive complex distributions, price complex instruments. The major part of managing risk is identifying it and understanding its sensitivity. The simulation will help us stress test. What about when things go bad? This will be useful.

Black-Scholes became popular because no one had laptops.

MC relies heavily on the model’s assumption. It needs to have the right distribution, parameters, pricing function. If you have a contract to get $5 if this happens, if you model risk issues, what’s the parameters?

Model risk is always a part of things

Calibration of parameters will be taken for granted.

By flipping a coin, you can either get a $1 heads or lose a $1 tails. There’s a premium to participate in this game, so how much would you pay? Depends if it’s a fair coin or not a fair coin.

You can think of it as 𝜋 as the probability of heads and 1−𝜋 as tails. Therefore, we can model this problem as

𝜋×1+(1−𝜋)∗−1−𝑝=0

where 𝑝 is the premium to pay into the game.

To solve this we get 𝑝=2𝜋−1.

In the case when 𝜋 is 0.5 in the fair case, then the premium is 0. If 𝜋<0.5, then you actually get paid to participate.

In Atlantic City, they give you a free bus ride in order to get you in. The odds are against you, so as long as you come in, they’re making money.

How would you price this?

The price of a security is

𝑝=∑𝑠=1𝑆𝐶𝐹𝑠×ℙ(𝑠)

where cash flows from state 𝑠 and the probability of 𝑠𝑎 is probability.

The martingale is the fair game, where expected value is the same as the initial investment.

Lottery tickets are not a fair game. You pay a higher premium for the euphoria of imagining you win.

Let’s consider a complicated game. We have a fair die with equal probability of the results. We want to roll the die 3 times, with three results 𝑋1, 𝑋2, and 𝑋3. We consider 𝑋max, where if it’s 6, you get a dollar, otherwise you get nothing. What is the premium for this game? This is actually a binary or digital option.

We can solve this two ways. Analytically, and numerically.

We can combine each of these states into an indicator variable, which will tell us whether the maximum is 6 or not.

𝔼[𝐼𝑛]=𝑝

ℙ(𝑋max≤𝑖)=(𝑖/6)3

We understand this as 1−(5/6)3=0.4213

Numerical (my own)
PS C:\Users\sharif> python
>>> import rand
Traceback (most recent call last):
ModuleNotFoundError: No module named 'rand'
>>> import random
>>> random.randint()
TypeError: Random.randint() missing 2 required positional arguments: 'a' and 'b'
>>> random.randint(1, 6)
2
>>> v = [[random.randint(1, 6), random.randint(1, 6), random.randint(1, 6)] for i in range(1, 1000000)]
>>> m = [int(max(c) == 6) for c in v]
>>> sum(m)/len(m)
0.42147742147742145
>>> 1 - (5/6)**3
0.42129629629629617
Numerical (Professor’s)

Done in Excel, which approximates the answer.

We can establish the weak law as such

lim𝑁→∞∑𝑛=1𝑁𝑋𝑛𝑁→𝜇

Sports betting is a binary option.

There’s a certain probability something will happen, and you will get nothing otherwise. We can play the game under different conditions than the maximum of dice rolls.

If the current stock price is $100, the stock goes beyond $110 next month, you get paid $1, if not you get nothing and you lose the down payment 𝑝. What is the fair price of 𝑝. We can consider two regions, the winning and losing. If we have some model that will allow us to model the different scenarios, we can analyze numerically what might happen.

We need the return to be above 9.53% (because of interest rates it’s not 10%), so our option price is

ℙ(𝑅1>9.53%).

If we know that returns are normally distributed on 𝑅1𝑁(0.02,0.042), then

ℙ(𝑅1>0.0953)=1−𝜙(0.0953−0.020.04)=1−0.9701≈3%

based on the formula

=𝜙(𝐾−𝜇𝜎)

If you have high volatility, then there’s a higher probability of exercising the option, and vice versa. Nobody writes options for penny stocks.

European options have a closed form solution. American options have no analytical solution. Asian options also don’t (what are these? don’t know).