Skip to content

Instantly share code, notes, and snippets.

@druce
Created December 20, 2020 21:58
Show Gist options
  • Select an option

  • Save druce/aefe158cab92a5f40ccb1327835b766b to your computer and use it in GitHub Desktop.

Select an option

Save druce/aefe158cab92a5f40ccb1327835b766b to your computer and use it in GitHub Desktop.
portfolio_opt_table.md
Return vol $$ \sigma_{1} $$ Return vol $$ \sigma_{2} $$ Return correlation $$ \rho_{12} $$ Portfolio volatility
$3 $4 1.0 $$ \sqrt{3^2 + 4^2 + 2 \cdot 3 \cdot 4 \cdot 1} = 3 + 4 = $7 $$
$3 $4 -1.0 $$ \sqrt{3^2 + 4^2 + 2 \cdot 3 \cdot 4 \cdot (-1)} = 4 - 3 = $1 $$
$3 $4 0.5 $$ \sqrt{3^2 + 4^2 + 2 \cdot 3 \cdot 4 \cdot 0.5} = \sqrt{37} = $6.08 $$
$3 $4 -0.5 $$ \sqrt{3^2 + 4^2 + 2 \cdot 3 \cdot 4 \cdot (-0.5)} = \sqrt{13} = $3.61 $$
$3 $4 0 $$ \sqrt{3^2 + 4^2} = $5 $$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment