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)?
Author: Anonymous
Consider a data set composed of 1500 samples where X is draw…
Consider a data set composed of 1500 samples where X is drawn randomly uniformly from -2*PI to +2*PI, and Y = 2*X^3 + 4*X^2 + 5. Consider linear regression and how it relates to kNN (k=1), decision trees (leaf_size=1), and random trees (leaf_size=1). Which statement is false regarding in-sample RMSE?
What is the output of the following Python code snippet? >>>…
What is the output of the following Python code snippet? >>> import numpy as np >>> np.random.seed(5) >>> x = np.random.uniform(0, 4) >>> np.random.seed(5) >>> y = np.random.uniform(0, 4) >>> z = np.random.uniform(0, 4) >>> print(z == y, y == x)
Suppose you are using one of the minimizing optimizers from…
Suppose you are using one of the minimizing optimizers from Scipy. You are using it to optimize your portfolio for MINIMUM volatility, 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?
Consider the following valuation factors of a company: It ow…
Consider the following valuation factors of a company: It owns 1000 cars valued at $50,000 each It holds real estate worth $7,000,000 It owes $10,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 book value of the company?
Consider the following order book. Bid size Price Ask size 2…
Consider the following order book. Bid size Price Ask size 210.10 490 210.05 500 210.00 1000 2000 209.95 2000 209.90 1500 209.85 How would you expect the price to change over the next few minutes?
Consider the following valuation factors of a company: It ow…
Consider the following valuation factors of a company: It owns 1000 cars valued at $50,000 each It holds real estate $10,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 $55.00 per share There are 1,000,000 shares outstanding The discount rate is 2% The risk free rate is 0% What is the intrinsic value of the company?
What is the output of the following Python session? >>> q =…
What is the output of the following Python session? >>> q = 4 >>> r = q >>> q = 8 >>> print(r * q)
Consider the following order book. Bid size Price Ask size 2…
Consider the following order book. Bid size Price Ask size 200.80 300 200.75 200 200.50 100 200.25 200 100 199.95 400 199.90 100 199.85 At what average price would a limit order to BUY 500 shares at $200.75 be executed?
Comparing a decision tree model using information gain to a…
Comparing a decision tree model using information gain to a decision tree model using randomized feature selection and splits with the same leaf size, the decision tree using information gain will likely require: