Question: USE Python to solve the probelm 13-16 Problem 13 Assuming the array prices_np corresponds to the prices in the same order as the tickers, use
USE Python to solve the probelm 13-16
Problem 13 Assuming the array prices_np corresponds to the prices in the same order as the tickers, use the is_BABA array to print the price for BABA. Assume the following list of lists contains the variance/covariance matrix for the 3 stocks In [2]: vcv [[.04,.01,.03],[.01, .05,.02],.03,.02,.04]] [ 10.04, 0.01, 0.03], 0.01, 0.05, 0.021, [0.03, 0.02, 0.04]1 Problem 14 A) Create a 2-D numpy array of the variance/covariance matrix called vcv_np B: Print the contents of vcv_np B) Print the covariance between IBM (the first stock) and FB (the second stock) Problem 15 Print a sentence that says "The covariance between IBM and FB is " and finish this with the number Problem 16 A) Create the following variables: future_value-100 interest_rate.10 time 2 B) Create a variable called present_value equal to the present value C) Print the statement "The present value is " and finish with the number Problem 13 Assuming the array prices_np corresponds to the prices in the same order as the tickers, use the is_BABA array to print the price for BABA. Assume the following list of lists contains the variance/covariance matrix for the 3 stocks In [2]: vcv [[.04,.01,.03],[.01, .05,.02],.03,.02,.04]] [ 10.04, 0.01, 0.03], 0.01, 0.05, 0.021, [0.03, 0.02, 0.04]1 Problem 14 A) Create a 2-D numpy array of the variance/covariance matrix called vcv_np B: Print the contents of vcv_np B) Print the covariance between IBM (the first stock) and FB (the second stock) Problem 15 Print a sentence that says "The covariance between IBM and FB is " and finish this with the number Problem 16 A) Create the following variables: future_value-100 interest_rate.10 time 2 B) Create a variable called present_value equal to the present value C) Print the statement "The present value is " and finish with the number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
