Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The function simulate_VaR is supposed to, given the stock's drift rate and volatility, simulate stock returns for a certain number of trials and at the
The function simulate_VaR is supposed to, given the stock's drift rate and volatility, simulate stock returns for a certain number of trials and at the specified time horizon in years. It should then return the VaR for the stock by locating the correct percentile from the simulated stock returns. The second block of code tries to use this function on a stock with an annual drift rate of .05 and annual volatility of .1, and wants to simulate the VaR at 5% at a 10 year time horizon and using 100 trials. (Hint: the answer should be -.08118566).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started