According to the CAPM, which statement is true regarding Alpha and Beta for a typical stock drawn at random from the market portfolio in an downward tranding market?
Author: Anonymous
Consider kNN, linear regression (LR), Decision tree (DT) (us…
Consider kNN, linear regression (LR), Decision tree (DT) (using correlation for splitting), and Random tree. Which model has the fastest training time?
Consider two decision trees trained on the exact same data….
Consider two decision trees trained on the exact same data. DT was trained using correlation for splitting, RT was trained using splits determined randomly. Both trees were trained with leaf_size = 1. Which option below correctly describes (in order): The slowest to train, the slowest to query, the highest accuracy on in-sample data?
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)?
Consider overfitting when using DTLearner and a polynomial p…
Consider overfitting when using DTLearner and a polynomial parametric model. When overfitting occurs with these two methods, in which “direction” does it occur?
Consider two decision trees trained on the exact same data….
Consider two decision trees trained on the exact same data. DT was trained using correlation for splitting, RT was trained using splits determined randomly. Both trees were trained with leaf_size = 1. Which option below correctly describes (in order): The fastest to train, the fastest to query, the highest accuracy on in-sample data?
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)?
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?