Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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-16image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

jbod spin disk storage workload rpm

Answered: 1 week ago

Question

=+ What is the nature of the contracts or agreements with unions?

Answered: 1 week ago

Question

=+What is the procedure for labor relations in the workplace?

Answered: 1 week ago

Question

=+ Are ballots compulsory?

Answered: 1 week ago