Initialize the Dow Jones Industrials dataset as shown below
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…