Question: Part C: Finding Seeds that Generate Specific Outcomes The purpose of this section is to give you some experience working with seeds. Through trial -

Part C: Finding Seeds that Generate Specific Outcomes
The purpose of this section is to give you some experience working with seeds. Through trial-and-error, you will try to find
seeds that result in specific outcomes.
4
Create a markdown cell that displays a level 2 header that reads: "Part C: Finding Seeds that Generate Specific Outcomes".
Also add some text briefly describing the purpose of your code in this part.
Create a markdown cell that displays: "In the cell below, Stock A has the highest simulated final price."
Create a new cell. Use numpy to set the random seed to an integer of your choice. Simulate daily runs for three stocks
(Stock A, Stock B, and Stock C) over a period of 100 days. The parameters for these stocks are as follows:
Stock A has a current price of 78, an expected annual return of 4%, and a volatility of 1.2.
Stock B has a current price of 75, an expected annual return of 8%, and a volatility of 0.8.
Stock C has a current price of 72, an expected annual return of 16%, and a volatility of 0.6.
Create line plots for all three runs on the same figure, including a legend indicating which line goes with which stock.
Change the seed until you get a result in which Stock A has highest final price after 100 days.
Create a markdown cell that displays: "In the cell below, Stock B has the highest simulated final price."
Repeat the steps in the previous code cell, but select a seed that results in Stock B having the highest final price after 100
days.
Create a markdown cell that displays: "In the cell below, Stock C has the highest simulated final price."
Repeat the steps in the previous code cell, but select a seed that results in Stock C having the highest final price after 100
days.
I would like for each person to have their own unique seed values on this part. When you have found three seed values that
generate the desired results, please email them to me. I will keep a list of the seeds have been claimed and will make
them available to the other students. I will deduct points if you use seed values claimed by another student, or if you and
another student have the same values, but neither of you claimed them before submitting your assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!