Python Final Quiz - Answer Key
Q1: Data scaled between 0 and 1
Q2: 7
Q3: The variances within each group are equal
Q4: 0.971
Q5: 5,018.98 (approx)
Q6: -1
Q7: 0.51
Q8: Cluster sampling
Q9: Chi-square test
Q10: There is a significant difference in means
Q11: Label encoding
Q12: East
Q13: 0.30
Q14: 1.0
Q15: Binomial and Poisson become approximately Normal under certain conditions
Q16: [[22 23 24]
[32 33 34]] [[41 31 21 11]] [[14 13 12 11]
[24 23 22 21]]
Q17: Only 1, 2, and 3
Q18: Training a meta-model to combine predictions
Q19: 3
Q20: It will increase sparsity and memory usage
Q21: ARMA model
Q22: Boosting assigns more weight to misclassified instances
Q23: Use one of the variables and drop the other
Q24: Mean = Median
Q25: 0.75
Q26: nsdn, Vowels = 0
Q27: Tuple
Q28: 8.54
Q29: [20, 40, 60]
Q30: First principal component will have much larger eigenvalue
Q31: SARIMAX
Q32: -0.75
Q33: The distribution is left-skewed
Q34: K = 4
Q35: A, B, and C
Q36: It reveals how each feature contributes to centroids
Q37: It keeps components until 95% of total variance is explained
Q38: PCA can help reduce noise and improve clustering
Q39: K-Means performs poorly with different densities and non-convex shapes
Q40: Boosting assigns more weight to misclassified instances
Q41: AdaBoostClassifier likely outperforms due to bias reduction
Q42: Only 1 and 2
Q43: 10
Q44: [(3, 2), (2, 3), (1, 4)]
Q45: Only 1 and 4