MATLAB European Call antithetic Flashcards

1
Q

Generate M samples from N(0,1)

A

X = randn(M,1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Simulate first set of M trajectories in one step that are negatively correlated

A

ST_plus = S0exp((r-0.5sigma^2)T+sigmasqrt(T)*X)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Simulate second set of M trajectories in one step that are negatively correlated

A

ST_minus = S0exp((r-0.5sigma^2)T-sigmasqrt(T)*X)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define payoff from the first set

A

payoff_plus = max(ST_plus-K,0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define payoff from the second set

A

payoff_minus = max(ST_minus-K,0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define average payoff for each trajectory

A

payoff = 0.5*(payoff_plus+payoff_minus)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Discount Factor

A

discountFactor = exp(-r*T)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

MC price

A

price_MC = discountFactor*mean(payoff)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Standard deviation of MC estimate

A

stdev_MC = discountFactor*std(payoff)/sqrt(M)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly