How do we find (using Python) all the possible values of categories inside a Pandas data-frame
column named ‘book’? The name of the Pandas data-frame is data_df.
A.
data_df.book.unique()
B.
data_df.book.category_name()
C.
data_df['book'].distinct()
D.
data_df['book'].unique()
A published solution is not available for this question yet.
We are interested in fitting an ARIMA model to our time series data. Specifically, we are interested
in a moving average model of 0, setting a lag value of 4 for autoregression, and a difference order
of 1. Which of the following gives you such a model?
A.
ARIMA(..., trend = (4,1,0))
B.
ARIMA(..., order = (4,1,0))
C.
ARIMA(..., order = (0,4,1))
D.
ARIMA(..., trend = (0,4,1))
A published solution is not available for this question yet.
K-Means clustering algorithm is sensitive to the initial choice of centroids. Which parameter in
kmeans() function helps the user mitigate this problem?
A.
algorithm
B.
max_iter
C.
n_clusters
D.
n_init
A published solution is not available for this question yet.
Using cross-validation we find that the ideal K in a K-Nearest Neighbour procedure is 6. Your friend
does not use cross-validation but instead guesses a K of 2. His predictor would:
A.
have higher bias
B.
have higher variance
C.
have lower bias
D.
have lower variance
E.
overfit the data compared to your solution
F.
underfit the data compared to your solution
A published solution is not available for this question yet.