# Risk of Two Cash Positions

**You now have two assets: JPY 1 billion + THB 4 billion. What is the risk over a 1-day period?**

**Solution**

Step | Calculation | Comment |

1. Measure value in USD | $200 million | 140 JPY/USD and 40 THB/USD |

2. 1-month volatility | JPY/USD 1.78%THB/USD 1.96% | |

3. What are risks?/$ | On JPY $ 1.78 millionOn THB $ 1.96 million | Data Set |

4. What is total risk? | $ 1.78 + $ 1.96 m = $ 3.74 million | This is incorrect you cannot just add the risks! |

Simply adding risks together is incorrect: This would assume that both JPY and THB would move together in perfect lockstep. To calculate the total risk of two or more positions, we need to know correlations between all variables.

We will now show you how it is actually calculated.

**Risk of Two Cash Position (With Correlation)**

The data set shows a correlation of 55% between JPY/USD and THB/USD.

Because the correlation is less than 1, we expect the total risk of our JPY and THB positions to be less than $3.74 million.

Undiversified risk | $3.74. million |

Diversification benefit | -$0.45 million |

Net risk | $3.29 million |

The diversification shows the difference between net portfolio risk and gross risk assuming perfect correlation (i.e., net portfolio risk minus gross risk). We can calculate the risk of two linear positions using the following formula:

## Data Science in Finance: 9-Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

### What's Included:

- Getting Started with R
- R Programming for Data Science
- Data Visualization with R
- Financial Time Series Analysis with R
- Quantitative Trading Strategies with R
- Derivatives with R
- Credit Risk Modelling With R
- Python for Data Science
- Machine Learning in Finance using Python

Each book includes PDFs, explanations, instructions, data files, and R code for all examples.

Get the Bundle for $39 (Regular $57)## Free Guides - Getting Started with R and Python

Enter your name and email address below and we will email you the guides for R programming and Python.