Given two trading payoffs X and Y, Calculate E(X - Y) and E(X + Y), Variance of combined positions and guage dependence
Understand diversification and how expectations/risks combine across positions.
TBH, my understanding of this is not strong; I’m still trying to develop a strong intuition for it, but I guess more real-life experience will reinforce my understanding.
Lesson: https://github.com/dashn9/learning_quant/blob/main/src/lessons/combined_payoffs.rs
PROBLEM:
A trader holds two assets, Stock X and Stock Y. Each stock produces different daily payoffs depending on market conditions.
Stock X:
- 50% probability of earning $100.
- 30% probability of earning $40.
- 20% probability of losing $60.
Stock Y:
- 40% probability of earning $80.
- 40% probability of earning $20.
- 20% probability of losing $40.
Assume the payoffs of Stock X and Stock Y are initially independent.
Objectives
- Calculate the expected payoff of each stock: E(X) and E(Y).
- Calculate the expected combined payoff E(X + Y).
- Calculate the expected payoff difference E(X - Y).
- Calculate the individual variances Var(X) and Var(Y).
- Assuming independence, calculate Var(X + Y) and Var(X - Y).
Solution
1. Calculate E(X) and E(Y)
E(X) = (100 × 0.50) + (40 × 0.30) + (-60 × 0.20)
E(X) = 50 + 12 - 12
E(X) = 50
E(Y) = (80 × 0.40) + (20 × 0.40) + (-40 × 0.20)
E(Y) = 32 + 8 - 8
E(Y) = 32
2. Calculate E(X + Y)
E(X + Y) = E(X) + E(Y)
E(X + Y) = 50 + 32
E(X + Y) = 82
3. Calculate E(X - Y)
E(X - Y) = E(X) - E(Y)
E(X - Y) = 50 - 32
E(X - Y) = 18
4. Calculate Var(X) and Var(Y)
Var(X) = E(X - μ)²
E(X²) = (100² × 0.50) + (40² × 0.30) + ((-60)² × 0.20)
E(X²) = 5000 + 480 + 720
E(X²) = 6200
Var(X) = 6200 - 50²
Var(X) = 6200 - 2500
Var(X) = 3700
Var(Y) = E(X - μ)2²
E(Y²) = (80² × 0.40) + (20² × 0.40) + ((-40)² × 0.20)
E(Y²) = 2560 + 160 + 320
E(Y²) = 3040
Var(Y) = 3040 - 32²
Var(Y) = 3040 - 1024
Var(Y) = 2016
5. Calculate Var(X + Y) and Var(X - Y)
Cov(X, Y) = 0
Var(X + Y) = Var(X) + Var(Y)
Var(X + Y) = 3700 + 2016
Var(X + Y) = 5716
Var(X - Y) = Var(X) + Var(Y)
Var(X - Y) = 3700 + 2016
Var(X - Y) = 5716
There are so many cool concepts within this domain; albeit, the dependence, or lack of it, between two separate games like X and Y is a bit of a drag for me atm. I understand, but I don’t fully understand, and I hate when I don’t fully understand something. In this case, I expect getting my hands dirty to teach me.
Note: These are notes from my learning journey; please do not implement the strategy with real money unless you know what you are doing.