Docsity

WGU D600 Statistical Data Mining Task 2 Multiple Logistic Regression Analysis Complete Pe, Exams of Complex analysis

Toggle sidebar
bg1
WGU D600 - STATISTICAL DATA MINING TASK 2 | MULTIPLE
LOGISTIC REGRESSION ANALYSIS | COMPLETE
PERFORMANCE ASSESSMENT WITH PYTHON, CHURN
PREDICTION, CONFUSION MATRIX & ROC/AUC | 2026 UPDATED
147 Questions with Answers and Detailed Rationales
100 PERCENT GUARANTEED PASS
INSTANT DOWNLOAD ANSWERS INCLUDED
IMPORTANCE OF THIS DOCUMENT
This comprehensive examination preparation guide has been meticulously developed to help you succeed in the
WGU D600 - STATISTICAL DATA MINING TASK 2 | MULTIPLE LOGISTIC REGRESSION ANALYSIS |
COMPLETE PERFORMANCE ASSESSMENT WITH PYTHON, CHURN PREDICTION, CONFUSION MATRIX &
ROC/AUC | 2026 UPDATED. It contains 147 carefully selected questions that reflect the most current exam
content and testing strategies. Each question is accompanied by a correct answer and a detailed rationale that
explains the underlying pathophysiology, pharmacology, or clinical reasoning.
Self-Assessment – Test your knowledge and
identify areas requiring further
study
Exam Preparation – Familiarize yourself with the
question format and content
areas
Concept Reinforcement – Deepen your
understanding through
evidence-based
rationales
Confidence Building – Develop test-taking
strategies and reduce
exam anxiety
Time Management – Practice answering
questions under simulated
exam conditions
Review Summary 147 Questions
Foundations - Application - WGU D600 Statistical DATA Mining TASK 2 Multiple Logistic Regression
Analysis Complete Performance Assessment WITH Python Churn Prediction Confusion Matrix & Roc/auc
2026 Updated Statistical DATA Mining Multiple Logistic Regression Churn Prediction Model Evaluation
Confusion Matrix Roc/auc Undergraduate YEAR 3 / Upper-division WGU D600 Statistical DATA Mining
All answers with rationales
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50

Partial preview of the text

Download WGU D600 Statistical Data Mining Task 2 Multiple Logistic Regression Analysis Complete Pe and more Exams Complex analysis in PDF only on Docsity!

WGU D600 - STATISTICAL DATA MINING TASK 2 | MULTIPLE

LOGISTIC REGRESSION ANALYSIS | COMPLETE

PERFORMANCE ASSESSMENT WITH PYTHON, CHURN

PREDICTION, CONFUSION MATRIX & ROC/AUC | 2026 UPDATED

147 Questions with Answers and Detailed Rationales

100 PERCENT GUARANTEED PASS

INSTANT DOWNLOAD ANSWERS INCLUDED

IMPORTANCE OF THIS DOCUMENT

This comprehensive examination preparation guide has been meticulously developed to help you succeed in the WGU D600 - STATISTICAL DATA MINING TASK 2 | MULTIPLE LOGISTIC REGRESSION ANALYSIS | COMPLETE PERFORMANCE ASSESSMENT WITH PYTHON, CHURN PREDICTION, CONFUSION MATRIX & ROC/AUC | 2026 UPDATED. It contains 147 carefully selected questions that reflect the most current exam content and testing strategies. Each question is accompanied by a correct answer and a detailed rationale that explains the underlying pathophysiology, pharmacology, or clinical reasoning.

Self-Assessment – Test your knowledge and identify areas requiring further study

Exam Preparation – Familiarize yourself with the question format and content areas Concept Reinforcement – Deepen your understanding through evidence-based rationales

Confidence Building – Develop test-taking strategies and reduce exam anxiety Time Management – Practice answering questions under simulated exam conditions

Review Summary 147 Questions

Foundations - Application - WGU D600 Statistical DATA Mining TASK 2 Multiple Logistic Regression Analysis Complete Performance Assessment WITH Python Churn Prediction Confusion Matrix & Roc/auc 2026 Updated Statistical DATA Mining Multiple Logistic Regression Churn Prediction Model Evaluation Confusion Matrix Roc/auc Undergraduate YEAR 3 / Upper-division WGU D600 Statistical DATA Mining All answers with rationales

Table of Contents

Content Area Questions Key Topics

DATA Preparation AND Exploratory Analysis FOR Churn Prediction

1-25 Churn, Logistic, Model, Regression, Appropriate

Simple AND Multiple Logistic Regression Model Specification

26-50 Churn, Model, Logistic, Regression, Multiple

Maximum Likelihood Estimation AND Logit/log-odds Interpretation

51-75 Churn, Model, Logistic, Regression, Dataset

ODDS Ratios Confidence Intervals AND Statistical Significance OF Predictors

76-100 Churn, Model, Logistic Regression, Multiple Logistic, Coefficient

Model FIT Assessment Deviance Aic/bic AND Pseudo R-squared Measures

101-125 Churn, Model, Logistic Regression, Positive, Class

Multicollinearity Interaction Terms AND Variable Selection Techniques

126-147 Churn, Model, Logistic Regression, ODDS Ratio, Charges

TOTAL 147 All questions include answers and detailed rationales

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction detection of actual churners. D. Specificity = TN/(TN+FP) = 760/840 0.905, measuring correct identification of non-churners.

Reference: James, Witten, Hastie & Tibshirani (2023). An Introduction to Statistical Learning, 2nd Ed., Ch. 4.

Q3.

You fit a logistic regression in statsmodels and observe a Variance Inflation Factor (VIF) of 12.4 for 'monthly_charge' and 9.8 for 'total_charges.' What is the most appropriate next step?

A. Proceed-VIF values below 15 are always acceptable in logistic models.

B. Drop the outcome variable and refit with a linear regression.

C. Address multicollinearity by removing or combining one of the collinear predictors.

D. Increase the sample size until VIF drops below 5. Correct: C - Address multicollinearity by removing or combining one of the collinear predictors.

Rationale: VIF > 10 signals serious multicollinearity, which inflates standard errors and destabilizes coefficient estimates. The standard remedy is to remove, combine, or apply regularization (ridge) to collinear predictors. Increasing sample size does not directly reduce VIF, which is a function of predictor correlations.

Why the other answers are wrong: A. VIF > 10 indicates problematic multicollinearity; the 'below 15' claim is not a standard rule. B. Changing the outcome type is unrelated to multicollinearity remediation. D. VIF depends on predictor correlations, not sample size; adding data won't fix the structure.

Reference: Kutner, Nachtsheim & Neter (2024). Applied Linear Statistical Models, 6th Ed., Ch. 11.

Q4.

A churn classifier trained on a dataset with 5% churners achieves 95% accuracy by predicting 'no churn' for everyone. Which evaluation approach would most clearly expose this failure?

A. Report accuracy and overall error rate only.

B. Report the ROC-AUC, which will be approximately 0.5.

C. Report the mean squared error of predictions.

D. Report the R-squared of the fitted model.

Correct: B - Report the ROC-AUC, which will be approximately 0.5.

Rationale: A trivial classifier that always predicts the majority class produces an ROC curve along the diagonal, yielding AUC 0.5, correctly signaling no discriminative power. Accuracy (0.95) is misleading under class imbalance; MSE and R² are not standard classification metrics.

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction Why the other answers are wrong: A. Accuracy is misleading under severe class imbalance and would hide the failure. C. MSE is a regression metric and not typically used to diagnose classification performance. D. R² is a regression goodness-of-fit measure, not applicable to classification.

Reference: Fawcett, T. (2006). An Introduction to ROC Analysis. Pattern Recognition Letters, 27(8).

Q5.

In a churn model, the odds ratio for 'support_calls_last_quarter' is 1.85 (95% CI: 1.42-2.41). Which statement is the most defensible conclusion?

A. Support calls cause churn with 85% certainty.

B. Each additional support call is associated with an 85% increase in the odds of churn, and the effect is statistically significant.

C. The effect is not statistically significant because the CI does not include 1.0.

D. The model should be rejected because the odds ratio exceeds 1.0. Correct: B - Each additional support call is associated with an 85% increase in the odds of churn, and the effect is statistically significant.

Rationale: An OR of 1.85 implies a 1.85× multiplicative change in odds (an 85% increase), and the CI excluding 1.0 confirms statistical significance at =0.05. Association does not establish causation, and an OR > 1 is not a defect.

Why the other answers are wrong: A. Logistic regression establishes association, not causation. C. A CI excluding 1.0 indicates significance; the option reverses the logic. D. Odds ratios above 1.0 are perfectly valid and indicate a positive association.

Reference: Szumilas, M. (2010). Explaining Odds Ratios. Journal of the Canadian Academy of Child and Adolescent Psychiatry, 19(3).

Q6.

When using scikit-learn's LogisticRegression on churn data, you set penalty='l2' and C=0.01. What is the practical effect compared to the default C=1.0?

A. Stronger regularization, shrinking coefficients and reducing overfitting.

B. Weaker regularization, allowing coefficients to grow larger.

C. No effect, since C only applies to SVM models.

D. It disables the intercept term in the model. Correct: A - Stronger regularization, shrinking coefficients and reducing overfitting.

Rationale: In scikit-learn, smaller C means stronger L2 regularization (C is the inverse of regularization strength), shrinking coefficients toward zero and reducing variance/overfitting. Option B reverses the relationship; C is false; D is unrelated.

Why the other answers are wrong:

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction Why the other answers are wrong: A. AUC > 0.9 typically indicates excellent discrimination, not 0.72. C. AUC 0.5 indicates random guessing; 0.72 is clearly above chance. D. AUC below 0.5 suggests inversion, not 0.72.

Reference: Hosmer, Lemeshow & Sturdivant (2024). Applied Logistic Regression, 4th Ed., Ch. 5.

Q9.

In a churn dataset, 'region' is a categorical variable with four levels (North, South, East, West). How should it be encoded for a multiple logistic regression in Python?

A. Encode as a single integer 1-4, since logistic regression handles ordinal categories.

B. Create k1 = 3 dummy variables, dropping one level as the reference category.

C. Create four dummy variables and include all of them plus the intercept.

D. Convert to a numeric mean and treat as continuous. Correct: B - Create k1 = 3 dummy variables, dropping one level as the reference category.

Rationale: F o r k u n o r d e r e d c a t e g o r i e s , k" 1 d u m m y v a r i a b l e s w i t h o n perfect multicollinearity (the dummy variable trap). Encoding as 1-4 imposes a false ordinal relationship; including all k dummies with an intercept is collinear; using a mean is meaningless for nominal data.

Why the other answers are wrong: A. Nominal regions have no ordinal structure; integer coding imposes false ordering. C. Including all four dummies plus an intercept creates perfect collinearity. D. Averaging nominal categories is statistically meaningless.

Reference: Gareth, J. et al. (2023). An Introduction to Statistical Learning, 2nd Ed., Ch. 3.

Q10.

In a multiple logistic regression churn model built with statsmodels, a predictor's coefficient is 0.42 with a standard error of 0.14. What does the Wald z-statistic of 3. primarily establish?

A. The predictor increases churn probability by exactly 42 percentage points.

B. The predictor is statistically distinguishable from zero at conventional significance levels.

C. The model's overall pseudo-R² improves by 3.0 units when the predictor is added.

D. The predictor's odds ratio is guaranteed to exceed 1.0 in the population. Correct: B - The predictor is statistically distinguishable from zero at conventional significance levels.

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction

Rationale: T h e W a l d z = c o e f f i c i e n t / S E t e s t s H € : ² = 0 ; z = 3. 0 c o r r e s p o n d s t o p "H 0. 0 0 3 , s o we reject the null. It does not quantify effect size in percentage points, pseudo-R² change, or guarantee the population OR > 1.

Why the other answers are wrong: A. Coefficients in logistic regression are log-odds, not percentage-point changes in probability. C. Pseudo-R² is a likelihood-based fit measure, not the Wald statistic's output. D. Significance in the sample does not guarantee the population OR exceeds 1.0.

Reference: Hosmer, Lemeshow & Sturdivant (2025). Applied Logistic Regression, 4th Ed., Ch. 2.

Q11.

A logistic regression churn model has a confusion matrix: TP=40, FP=10, FN=60, TN=890. What is the recall for the churn class?

A. 0.40 B. 0.

C. 0.29 D. 0.

Correct: A - 0.

Rationale: Recall = TP/(TP+FN) = 40/100 = 0.40. Precision = 40/50 = 0.80, and overall accuracy = 930/1000 = 0.93.

Why the other answers are wrong: B. 0.80 is precision (TP/(TP+FP)), not recall. C. 0.29 misuses the negative class counts. D. 0.94 approximates accuracy or specificity, not churn recall.

Reference: James, Witten, Hastie & Tibshirani (2024). An Introduction to Statistical Learning, 2nd Ed., Ch. 4.

Q12.

Which statement correctly describes the ROC curve's construction for a logistic churn classifier?

A. It plots precision against recall across all thresholds.

B. It plots TPR against FPR as the decision threshold varies from 0 to 1.

C. It plots predicted probability against observed churn rate.

D. It plots accuracy against the number of predictors included. Correct: B - It plots TPR against FPR as the decision threshold varies from 0 to 1.

Rationale: The ROC curve sweeps the classification threshold and plots true positive rate (sensitivity) versus false positive rate (1 specificity). AUC summarizes the curve's area.

Why the other answers are wrong: A. That describes the precision-recall curve, not ROC.

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction C. Intercept significance is unrelated to covariate range extension. D. Confusion matrices can be computed for any predictions; the issue is prediction validity.

Reference: Kuhn & Johnson (2025). Applied Predictive Modeling, 2nd Ed., Ch. 11.

Q15.

In statsmodels' Logit results, the 'Pseudo R-squ.' (McFadden) value is 0.28. What does this indicate?

A. 28% of variance in churn is explained, analogous to OLS R².

B. The model reduces log-likelihood by 28% relative to the null model.

C. The model has 28% classification accuracy.

D. 28% of predictors are statistically significant. Correct: B - The model reduces log-likelihood by 28% relative to the null model.

Rationale: M c F a d d e n ' s p s e u d o - R ² = 1 " L L _ m o d e l / L L _ n u l l ; 0. 2 8 m e a n log-likelihood is 28% smaller in magnitude than the null model's, indicating meaningful improvement but not variance explained.

Why the other answers are wrong: A. Pseudo-R² is not equivalent to OLS variance-explained R². C. Pseudo-R² is likelihood-based, not an accuracy measure. D. It has no direct relation to the fraction of significant predictors.

Reference: McFadden, D. (1974). Conditional logit analysis; see also statsmodels documentation, LogitResults.

Q16.

You fit a logistic regression with predictors tenure, monthly_charges, and contract_type. VIF values are 1.2, 1.4, and 9.8 respectively. What is the most appropriate next step?

A. Remove tenure because it has the lowest VIF.

B. Investigate contract_type for multicollinearity or combine/refine its encoding.

C. Drop the intercept to reduce multicollinearity.

D. Increase the sample size to eliminate multicollinearity. Correct: B - Investigate contract_type for multicollinearity or combine/refine its encoding.

Rationale: VIF > 5 (or 10) signals problematic multicollinearity; contract_type at 9.8 warrants inspection, possible category collapsing, or removal of a redundant correlated predictor.

Why the other answers are wrong: A. Low VIF indicates a stable predictor; removing it discards useful information. C. Removing the intercept does not address predictor multicollinearity and distorts the model. D. More data does not reduce VIF, which is a design-matrix property.

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction Reference: Kutner, Nachtsheim & Neter (2024). Applied Linear Statistical Models, 6th Ed., Ch. 11.

Q17.

A logistic churn model outputs predicted probabilities. To choose a classification threshold that maximizes F1 on the holdout set, which approach is most defensible?

A. Always use 0.5 as the threshold. B. Sweep thresholds on the holdout set and select the one maximizing F1.

C. Use the mean predicted probability as the threshold.

D. Choose the threshold that maximizes accuracy. Correct: B - Sweep thresholds on the holdout set and select the one maximizing F1.

Rationale: Threshold selection should target the business-aligned metric; when F1 is the goal, sweeping thresholds on validation data and selecting the F1-maximizing value is standard practice.

Why the other answers are wrong: A. 0.5 is arbitrary and often suboptimal for imbalanced churn data. C. The mean predicted probability has no principled link to F1. D. Maximizing accuracy on imbalanced data typically favors the majority class.

Reference: Provost & Fawcett (2024). Data Science for Business, 2nd Ed., Ch. 7.

Q18.

Which practice best guards against optimistic performance estimates when reporting a logistic regression churn model?

A. Report training-set AUC as the headline metric.

B. Use k-fold cross-validation or a held-out test set for final metrics.

C. Tune the threshold on the test set to maximize AUC.

D. Drop predictors with p > 0.05 before evaluating. Correct: B - Use k-fold cross-validation or a held-out test set for final metrics.

Rationale: Cross-validation or a held-out test set provides an unbiased estimate of generalization performance; training metrics are optimistically biased.

Why the other answers are wrong: A. Training AUC overstates real-world performance due to overfitting. C. Tuning on the test set leaks information and inflates reported performance. D. Pre-screening predictors on the full data introduces selection bias into evaluation.

Reference: Hastie, Tibshirani & Friedman (2025). The Elements of Statistical Learning, 3rd Ed., Ch. 7.

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction

Q21. When building a churn model with class imbalance (5% churn), which evaluation choice is most defensible for a business that wants to catch likely churners?

A. Optimize accuracy because it reflects overall correctness.

B. Optimize recall or use PR-AUC, since accuracy is misleading under imbalance.

C. Use R-squared because it measures explained variance.

D. Use only the Akaike Information Criterion (AIC) to select the model. Correct: B - Optimize recall or use PR-AUC, since accuracy is misleading under imbalance.

Rationale: With severe class imbalance, a model predicting 'no churn' always can achieve 95% accuracy while missing all churners. Recall and precision-recall AUC better reflect performance on the minority class, which aligns with the business goal of identifying churners.

Why the other answers are wrong: A. Accuracy is dominated by the majority class and can be high even when no churners are detected. C. R-squared is for linear regression, not classification, and does not measure classification performance. D. AIC compares model fit/complexity but does not directly measure minority-class detection.

Reference: He, H., & Garcia, E.A. (2009). Learning from imbalanced data. IEEE TKDE, 21(9).

Q22.

In a churn dataset, 'contract type' has three categories: month-to-month, one year, two year. Which encoding is most appropriate before fitting logistic regression?

A. Label encoding as 0, 1, 2 and treating it as numeric.

B. One-hot encoding with drop-first to avoid perfect multicollinearity.

C. Standardizing the category codes to mean 0 and SD 1.

D. Removing the variable because logistic regression cannot handle categoricals. Correct: B - One-hot encoding with drop-first to avoid perfect multicollinearity.

Rationale: Nominal categories have no ordinal meaning, so one-hot encoding is appropriate. Dropping one level avoids the dummy variable trap (perfect multicollinearity) when an intercept is included. Label encoding imposes a false ordering, and standardization of arbitrary codes is meaningless.

Why the other answers are wrong: A. Label encoding imposes a false ordinal relationship among nominal categories. C. Standardizing arbitrary category codes does not resolve the nominal nature of the variable. D. Logistic regression readily handles categorical predictors via dummy coding.

Reference: James, G., et al. (2021). An Introduction to Statistical Learning, 2nd Ed., Ch. 3.

Section A - DATA Preparation AND Exploratory Analysis FOR Churn Prediction

Q23. A logistic regression model reports a Hosmer-Lemeshow test p-value of 0.03. What is the most appropriate conclusion?

A. The model has good calibration because p < 0.05.

B. The model shows evidence of poor calibration (lack of fit).

C. The model has excellent discrimination (high AUC).

D. The test confirms no multicollinearity among predictors. Correct: B - The model shows evidence of poor calibration (lack of fit).

Rationale: The Hosmer–Lemeshow test evaluates calibration; a small p-value (e.g., 0.03) indicates a significant difference between observed and expected frequencies, suggesting poor fit/calibration. It does not assess discrimination or multicollinearity.

Why the other answers are wrong: A. A small p-value in H-L indicates lack of fit, not good calibration. C. Discrimination is assessed by ROC/AUC, not the Hosmer-Lemeshow test. D. Multicollinearity is assessed via VIF or condition indices, not H-L.

Reference: Hosmer, D.W., Lemeshow, S., & Sturdivant, R.X. (2013). Applied Logistic Regression, 3rd Ed., Ch. 5.

Q24.

Two predictors in a churn model have a Pearson correlation of 0.92. Which diagnostic and remedy is most appropriate?

A. Check VIF; if high, consider removing or combining one predictor.

B. Ignore it because logistic regression is immune to multicollinearity.

C. Increase the sample size to eliminate the correlation.

D. Add an interaction term to fix the correlation. Correct: A - Check VIF; if high, consider removing or combining one predictor.

Rationale: High correlation between predictors can inflate standard errors and destabilize coefficient estimates. Variance Inflation Factor (VIF) quantifies this; remedies include removing one variable, combining them, or using regularization. Logistic regression is not immune to multicollinearity.

Why the other answers are wrong: B. Logistic regression is sensitive to multicollinearity, which inflates coefficient variance. C. More data does not remove structural correlation between predictors. D. Interaction terms address effect modification, not collinearity between main effects.

Reference: Kutner, M.H., et al. (2004). Applied Linear Statistical Models, 5th Ed., Ch. 14.

Section B - Simple AND Multiple Logistic Regression

Model Specification

Q26.

In Python with statsmodels, which code correctly fits a logistic regression of 'churn' on 'tenure' and 'monthly_charges'?

A. sm.OLS(churn ~ tenure + monthly_charges, data=df).fit()

B. smf.logit('churn ~ tenure + monthly_charges', data=df).fit()

C. smf.ols('churn ~ tenure + monthly_charges', data=df).fit()

D. smf.glm('churn ~ tenure', data=df).fit()

Correct: B - smf.logit('churn ~ tenure + monthly_charges', data=df).fit()

Rationale: smf.logit with a formula string and data argument fits a logistic regression in statsmodels. OLS fits a linear model inappropriate for binary outcomes, and the glm call omits a predictor and lacks a family specification.

Why the other answers are wrong: A. OLS is for continuous outcomes and does not model binary churn probabilities correctly. C. smf.ols fits ordinary least squares, not logistic regression. D. smf.glm requires a family (e.g., Binomial) and the formula omits monthly_charges.

Reference: Statsmodels Documentation (2024). Logit and GLM modules.

Q27.

A logistic model is trained on a dataset where churn = 8%. After adding SMOTE oversampling to the training set, what is the best practice for evaluation?

A. Evaluate on the SMOTE-augmented training set to reflect balanced classes.

B. Evaluate on the original, unmodified test set to reflect real-world prevalence.

C. Evaluate on a SMOTE-augmented test set to match training conditions.

D. Evaluate using accuracy only, since classes are now balanced. Correct: B - Evaluate on the original, unmodified test set to reflect real-world prevalence.

Rationale: SMOTE should be applied only to training data; evaluating on the original test set preserves the true class distribution and avoids optimistic bias. Applying SMOTE to test data leaks synthetic information and misrepresents real-world performance.

Why the other answers are wrong: A. Evaluating on augmented training data overstates performance and does not reflect real prevalence. C. SMOTE on test data leaks synthetic samples and distorts evaluation. D. Accuracy alone is insufficient; use AUC, recall, precision, and PR curves.

Section B - Simple AND Multiple Logistic Regression Model Specification Reference: Chawla, N.V., et al. (2002). SMOTE: Synthetic Minority Over-sampling Technique. JAIR, 16.

Q28.

Which statement best describes the effect of regularization (L2) in logistic regression for churn modeling?

A. It forces all coefficients to zero, eliminating predictors.

B. It shrinks coefficients toward zero, reducing overfitting and variance.

C. It increases model complexity to improve training accuracy.

D. It guarantees perfect separation of classes. Correct: B - It shrinks coefficients toward zero, reducing overfitting and variance.

Rationale: L2 regularization adds a penalty on the sum of squared coefficients, shrinking them toward zero. This reduces variance and overfitting, often improving generalization. It does not zero out all coefficients (that is more characteristic of L1 at high penalty) nor guarantee separation.

Why the other answers are wrong: A. L2 shrinks but does not set all coefficients exactly to zero. C. Regularization reduces effective complexity, not increases it. D. Regularization does not guarantee perfect class separation; it mitigates overfitting.

Reference: Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning, 2nd Ed., Ch. 3.

Q29.

In a multiple logistic regression churn model, the coefficient for 'monthly_charges' is 0.042 with SE = 0.014. What is the correct interpretation of the 95% Wald confidence interval for the odds ratio?

A. The interval excludes 1, so monthly_charges is a statistically significant predictor at = 0.05.

B. The interval includes 1, so monthly_charges is not significant.

C. The interval's width proves the model is overfit.

D. The interval must be recomputed using the likelihood-ratio test. Correct: A - The interval excludes 1, so monthly_charges is a statistically significant predictor at = 0.05.

Rationale: T h e 9 5 % C I i s e x p ( 0. 0 4 2 ± 1. 9 6 × 0. 0 1 4 ) "H [ 1. 0 1 6 , 1. 0 7 0 ] , indicating a significant association between monthly_charges and churn odds. Intervals that exclude 1 correspond to p < 0.05 under the Wald test. The likelihood-ratio test is an alternative, not a required recomputation.

Why the other answers are wrong: B. The computed interval [1.016, 1.070] clearly excludes 1, so the predictor is significant.

Section B - Simple AND Multiple Logistic Regression Model Specification D. AUC is invariant to threshold changes; only the operating point moves.

Reference: Provost, F., & Fawcett, T. (2013). Data Science for Business, Ch. 8.

Q32.

When building a multiple logistic regression model in Python with statsmodels, which output specifically tests whether adding all predictors jointly improves fit over the intercept-only model?

A. The pseudo R-squared value B. The likelihood ratio (LLR) p-value

C. The AIC of the full model D. The z-statistic of each coefficient Correct: B - The likelihood ratio (LLR) p-value

Rationale: The LLR p-value compares the full model to the null (intercept-only) model via a chi-square test on the log-likelihood difference. It is the omnibus test of overall model significance.

Why the other answers are wrong: A. Pseudo R-squared is a descriptive fit measure, not a hypothesis test. C. AIC compares models but does not provide a p-value for joint significance. D. Individual z-statistics test each coefficient separately, not the joint model.

Reference: Statsmodels Documentation (2025). Logit Results - Likelihood Ratio Test.

Q33.

A churn dataset has a 5% churn rate. A model predicts 'no churn' for every customer. Which statement is accurate?

A. The model has high recall for churners. B. The model has 95% accuracy but zero recall for churners.

C. The model has an AUC of 0.5 and is useful.

D. The model has high precision for churners. Correct: B - The model has 95% accuracy but zero recall for churners.

Rationale: Predicting all negatives yields accuracy equal to the majority class (95%) but recall = 0 because no churners are detected. This illustrates why accuracy is misleading under class imbalance.

Why the other answers are wrong: A. Recall is 0 since no true positives are identified. C. AUC would be 0.5 (random), and such a model has no discriminatory utility. D. Precision is undefined (0/0) because no positive predictions are made.

Reference: He, H., & Garcia, E.A. (2009). Learning from imbalanced data. IEEE TKDE, 21(9).

Section B - Simple AND Multiple Logistic Regression Model Specification

Q34. Which technique is most appropriate for addressing multicollinearity among predictors in a multiple logistic regression churn model?

A. Increase the learning rate B. Apply L2 regularization or remove correlated predictors

C. Switch to linear regression D. Use a higher decision threshold Correct: B - Apply L2 regularization or remove correlated predictors

Rationale: Multicollinearity inflates coefficient variance; L2 (ridge) regularization shrinks coefficients, and removing or combining correlated predictors reduces redundancy. These are standard remedies in logistic regression.

Why the other answers are wrong: A. Learning rate pertains to gradient-based optimization, not multicollinearity. C. Linear regression does not solve multicollinearity and is inappropriate for binary outcomes. D. Threshold selection affects classification, not collinearity.

Reference: James, G., et al. (2021). An Introduction to Statistical Learning, 2nd Ed., Ch. 6.

Q35.

In logistic regression, the log-odds of churn increase by 0.7 for each additional year of tenure. What is the odds ratio?

A. 0.50 B. 1.

C. 2.01 D. 0.

Correct: C - 2.

Rationale: T h e o d d s r a t i o i s e x p ( 0. 7 ) "H 2. 0 1 , m e a n i n g e a c h a d d i t i o n the odds of churn by about 2.01. The coefficient itself is on the log-odds scale, not the odds scale.

Why the other answers are wrong: A. 0.50 corresponds to exp(-0.7), the inverse. B. 1.70 mistakenly adds 1 to the coefficient instead of exponentiating. D. 0.70 is the raw coefficient, not the odds ratio.

Reference: Hosmer, D.W., et al. (2013). Applied Logistic Regression, 3rd Ed., Ch. 3.

Q36.

Which Python library and function combination is standard for fitting a multiple logistic regression and obtaining coefficient p-values directly in a churn analysis?