Suppose you are using one of the minimizing optimizers from Scipy. You are using it to optimize your portfolio to MINIMIZE the cumulative return, and port_vals are the daily total values of the portfolio for a particular allocation. Which of the following would be the best way to compute the objective function for the optimizer?
Blog
According to the 60 minutes video “Is the stock market rigge…
According to the 60 minutes video “Is the stock market rigged?” which of the following was true for the Katsuyama’s team in 2008?
Consider the following Python session and its output. >>> im…
Consider the following Python session and its output. >>> import numpy as np>>> a = np.random.uniform(size=(7, 6)) >>> b = a/a[1, :] >>> print(XXXX) 1.0 What should you replace XXXX with in order to get the following output?
What is the output of the following Python session? >>> a =…
What is the output of the following Python session? >>> a = 7 >>> b = a >>> a = 2 >>> print(b * a)
Which of the following is NOT typically used as a means of a…
Which of the following is NOT typically used as a means of assessing a learning algorithm?
Consider the following valuation factors of a company: It ow…
Consider the following valuation factors of a company: It owns 1000 cars valued at $20,000 each It holds patents worth $5,000,000 It owes $5,000,000 in loans It pays $1.00 per year per share in dividends starting in one year The stock price is $60.00 per share There are 1,000,000 shares outstanding The discount rate is 5% The risk free rate is 0% What is the intrinsic value of the company?
Consider the following Python session and its output. >>> im…
Consider the following Python session and its output. >>> import numpy as np >>> a = np.random.uniform(size=(4, 8)) >>> b = a/a[2, :] >>> print(XXXX) 1.0 What should you replace XXXX with in order to get the following output?
Consider the following data: COL_1 COL_2 COL_3 100.00 0.00 0…
Consider the following data: COL_1 COL_2 COL_3 100.00 0.00 0.00 101.00 0.01 0.01 102.00 0.01 0.02 100.00 -0.02 0.00 102.00 0.02 0.02 What might the data in each of the columns represent (from left to right)?
Suppose you have historical stock price data with data missi…
Suppose you have historical stock price data with data missing on some days in history (the values are NaN). You still want to use the data in backtesting and calculation of technical factors. Which of the following options are recommended (in the book)?
What is important to assess in a child receiving prednisone…
What is important to assess in a child receiving prednisone to treat nephrotic syndrome?