Initialize the Dow Jones Industrials dataset as shown below:values = np.loadtxt(‘http://people.bu.edu/kalathur/datasets/DJI_2018_values.txt’) dates = np.loadtxt(‘http://people.bu.edu/kalathur/datasets/DJI_2018_dates.txt’, dtype=’str’)1) Use the number 0159 as the random seed. Pick a random day and examine the10 consecutive values including that day. Include the condition so that the selection will be the last 10 values if the random day pick is within that period. Show the resulting dates and the values for this period. Show daily next loss/gain for this period. What is the net gain/loss for the period?2) Use the number 0159 as the random seed. Randomly pick 10 dates in thedataset. Show by ascending order of the dates the selected dates and the corresponding values. Suppose you bought a different stock tied to the DOW on each of these 10 randomly selected dates. Suppose you decided to sell each of that stock later in the year so that you either maximize the gain or minimize the loss. Show for each stock, what date you would have sold? What would have been the gain/loss for each stock? Show the results for each these 10 dates.

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!