Docsity

Predicting Customer Churn Through Multiple Logistic Regression: A Complete Performance Ass, Quizzes of Social Statistics and Data Analysis

Toggle sidebar
bg1
Predicting Customer Churn Through
Multiple Logistic Regression: A
Complete Performance Assessment
Guide for WGU D600 Task 2 —
Featuring Python Implementation,
Confusion Matrix Evaluation, and
ROC/AUC Analysis (2026 Edition)"
SECTION 1: LOGISTIC REGRESSION
FUNDAMENTALS
Questions 1–25
1. What is the primary purpose of logistic regression?
A. Predict a continuous numerical value
B. Predict the probability of a categorical outcome
C. Calculate the mean of a dataset
D. Reduce the number of observations
Answer: B
Rationale: Logistic regression models the probability of an outcome, commonly a binary
outcome such as churn versus no churn.
2. In a binary logistic regression model, the dependent variable usually has how many
categories?
A. One
B. Two
C. Three
D. Four
Answer: B
Rationale: Binary logistic regression is designed for outcomes with two possible categories,
such as Yes/No.
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

Partial preview of the text

Download Predicting Customer Churn Through Multiple Logistic Regression: A Complete Performance Ass and more Quizzes Social Statistics and Data Analysis in PDF only on Docsity!

Predicting Customer Churn Through

Multiple Logistic Regression: A

Complete Performance Assessment

Guide for WGU D600 Task 2 —

Featuring Python Implementation,

Confusion Matrix Evaluation, and

ROC/AUC Analysis (2026 Edition)"

SECTION 1: LOGISTIC REGRESSION

FUNDAMENTALS

Questions 1– 25

1. What is the primary purpose of logistic regression? A. Predict a continuous numerical value B. Predict the probability of a categorical outcome C. Calculate the mean of a dataset D. Reduce the number of observations Answer: B Rationale: Logistic regression models the probability of an outcome, commonly a binary outcome such as churn versus no churn. 2. In a binary logistic regression model, the dependent variable usually has how many categories? A. One B. Two C. Three D. Four Answer: B Rationale: Binary logistic regression is designed for outcomes with two possible categories, such as Yes/No.

3. Which variable would be an appropriate dependent variable for a customer churn model? A. Monthly charges B. Customer age C. Churn status D. Contract length Answer: C Rationale: Churn status is the outcome being predicted, typically represented as 0 = did not churn and 1 = churned. 4. What does a predicted probability of 0.80 indicate in a churn model? A. The customer definitely churned B. The customer has an estimated 80% probability of churning C. The model is 80% accurate D. The customer has an 80% monthly charge Answer: B Rationale: A predicted probability represents the model's estimated likelihood of belonging to the positive class. 5. Which function is commonly used to convert logistic regression scores into probabilities? A. Linear function B. Sigmoid function C. Square-root function D. Log function only Answer: B Rationale: The sigmoid, or logistic, function converts the linear predictor into a value between 0 and 1. 6. Why is logistic regression preferable to ordinary linear regression for a binary outcome?

Rationale: An odds ratio less than 1 indicates lower odds of the outcome as the predictor increases, assuming other variables remain constant.

10. What is the logit? A. The logarithm of the odds B. The logarithm of the probability only C. The square of the probability D. The average of the predictors Answer: A Rationale: The logit is defined as the natural logarithm of the odds of the event. 11. Which is an example of a binary categorical outcome? A. Salary B. Age C. Churn: Yes/No D. Monthly spending Answer: C Rationale: Yes/No contains two possible categories and is therefore appropriate for binary logistic regression. 12. Multiple logistic regression differs from simple logistic regression because it: A. Uses multiple observations B. Uses multiple predictors C. Uses multiple dependent variables D. Requires multiple datasets Answer: B Rationale: Multiple logistic regression estimates the relationship between a binary outcome and two or more predictor variables. 13. Which is an example of a continuous predictor? A. Gender category B. Contract type

C. Monthly charges D. Churn status Answer: C Rationale: Monthly charges can take a range of numerical values and can therefore serve as a continuous predictor.

14. What does the intercept represent in logistic regression? A. The predicted outcome when all predictors equal zero, expressed on the log-odds scale B. The accuracy of the model C. The number of predictors D. The sample size Answer: A Rationale: The intercept is the baseline log-odds when all numerical predictors are zero and categorical predictors are at their reference categories. 15. Why are categorical predictors often encoded before modeling? A. Most statistical algorithms require numerical representations B. Encoding increases the sample size C. Encoding removes the dependent variable D. Encoding guarantees accuracy Answer: A Rationale: Machine-learning algorithms generally require categorical information to be represented numerically. 16. What is dummy-variable encoding? A. Removing all categorical variables B. Representing categories with binary indicator variables C. Replacing missing values with zero D. Converting numerical data into text Answer: B Rationale: Dummy variables represent membership in categorical levels using binary indicators.

Answer: B Rationale: A negative coefficient decreases the log-odds of the modeled event, holding other predictors constant.

21. Which outcome is most appropriate for logistic regression? A. House price B. Temperature C. Customer churn D. Annual income Answer: C Rationale: Customer churn can be represented as a binary outcome such as churned/not churned. 22. What is the main purpose of a training dataset? A. To estimate and fit the model B. To replace the test dataset C. To calculate only descriptive statistics D. To guarantee model accuracy Answer: A Rationale: The training set is used to estimate model parameters from observed data. 23. What is the main purpose of a test dataset? A. Fit the final model parameters B. Evaluate how the model performs on unseen data C. Remove outliers automatically D. Encode categorical variables Answer: B Rationale: A held-out test set provides an estimate of predictive performance on observations not used for model fitting. 24. Why should test data generally not be used to train the model?

A. It can cause data leakage and overly optimistic performance estimates B. It makes the dataset larger C. It prevents visualization D. It eliminates categorical variables Answer: A Rationale: Using test information during training contaminates the evaluation and can make performance appear better than it really is.

25. What is overfitting? A. A model that performs well on training data but poorly on new data B. A model with no predictors C. A model with missing values D. A model with a binary outcome Answer: A Rationale: Overfitting occurs when a model learns patterns specific to the training data that do not generalize well.

SECTION 2: DATA PREPROCESSING

AND PYTHON

Questions 26– 50

26. Which Python library is commonly used for data manipulation? A. pandas B. Flask C. Turtle D. Pygame Answer: A Rationale: pandas provides DataFrame and Series structures and extensive tools for cleaning and manipulating tabular data. 27. Which Python library is widely used for numerical computation?

31. What does df.shape return? A. Column names only B. Number of rows and columns C. Missing values only D. Data types only Answer: B Rationale: The shape is a tuple containing the number of rows and columns. 32. Why should missing data be examined before modeling? A. Missing values can cause errors or affect model estimates B. Missing values always improve accuracy C. Missing values automatically become zero D. Missing values are always irrelevant Answer: A Rationale: Missing observations may require deletion or imputation and can affect both model fitting and interpretation. 33. What is imputation? A. Replacing missing values using a defined method B. Deleting the entire dataset C. Creating a confusion matrix D. Calculating AUC Answer: A Rationale: Imputation fills missing observations using methods such as the mean, median, or model-based estimates. 34. Why might median imputation be preferred over mean imputation? A. The median is less sensitive to extreme values B. The median always produces higher values C. The median eliminates all missing data bias D. The median works only with categorical variables

Answer: A Rationale: For skewed numerical variables, the median can be more robust to outliers than the mean.

35. What is feature scaling? A. Transforming numerical predictors to comparable scales B. Removing the dependent variable C. Increasing the sample size D. Converting text into images Answer: A Rationale: Scaling can put numerical predictors on comparable ranges and can be particularly useful for regularized models. 36. Which technique standardizes a variable to approximately mean 0 and standard deviation 1? A. Standardization B. One-hot encoding C. Imputation D. Sampling Answer: A Rationale: Standardization subtracts the mean and divides by the standard deviation. 37. What is one-hot encoding used for? A. Encoding categorical variables B. Calculating AUC C. Removing outliers D. Splitting numerical data Answer: A Rationale: One-hot encoding creates indicator columns for categorical levels. 38. What is an outlier?

42. What is data leakage? A. Information from outside the appropriate training process improperly influences model development B. Missing data C. Duplicate rows D. A low AUC Answer: A Rationale: Leakage occurs when information that would not legitimately be available at prediction time enters model training or preprocessing. 43. Which action helps prevent leakage during preprocessing? A. Fit preprocessing transformations on training data only B. Fit preprocessing on the complete dataset before splitting C. Use test outcomes during training D. Copy test labels into training data Answer: A Rationale: Transformation parameters should be learned from training data and then applied to validation/test data. 44. What is the purpose of exploratory data analysis (EDA)? A. Understand patterns, distributions, relationships, and potential data-quality issues B. Guarantee the final model C. Replace model evaluation D. Remove every unusual observation Answer: A Rationale: EDA helps identify structure and quality issues before formal modeling. 45. Which visualization can help examine the distribution of a numerical variable? A. Histogram B. Confusion matrix only C. ROC curve only D. Flowchart

Answer: A Rationale: Histograms display the distribution of numerical observations.

46. Which plot is useful for examining the relationship between two numerical variables? A. Scatterplot B. Pie chart only C. Confusion matrix D. ROC table Answer: A Rationale: Scatterplots display paired numerical observations and can reveal trends or unusual points. 47. What does correlation measure? A. The strength and direction of a linear association between variables B. Classification accuracy only C. The number of missing values D. The model's p-value Answer: A Rationale: Pearson correlation, for example, measures linear association and ranges from −1 to +1. 48. Why can highly correlated predictors be problematic in regression? A. They can create multicollinearity B. They eliminate the dependent variable C. They guarantee underfitting D. They prevent Python from running Answer: A Rationale: Strong relationships among predictors can make coefficient estimates unstable and harder to interpret. 49. Which metric is commonly used to evaluate classification models?

C. It eliminates customer complaints D. It replaces all business decisions Answer: A Rationale: Predictive models can help organizations identify customers who may warrant further attention, although predictions are not guarantees.

53. If a customer's predicted churn probability is 0.25, what does this mean? A. The customer has a 25% estimated probability of churn under the model B. The customer will definitely churn C. The model has 25% accuracy D. The customer has used 25 GB of data Answer: A Rationale: The value represents the estimated probability of the positive class. 54. What is a classification threshold? A. A probability cutoff used to convert predicted probabilities into classes B. The number of observations C. A regression coefficient D. A missing-value rule Answer: A Rationale: A threshold determines whether a predicted probability is classified as positive or negative. 55. If the threshold is 0.50, a predicted probability of 0.70 would generally be classified as: A. Negative B. Positive C. Missing D. Unknown Answer: B Rationale: Since 0.70 exceeds the 0.50 threshold, the observation is assigned to the positive class.

56. What happens when a classification threshold is lowered? A. More observations are generally classified as positive B. Fewer observations are always classified as positive C. The training dataset disappears D. AUC becomes zero Answer: A Rationale: A lower cutoff makes it easier for an observation to be labeled positive. 57. Why might a business lower the threshold for identifying potential churners? A. To identify more possible churners B. To guarantee fewer false positives C. To eliminate all false negatives D. To reduce the number of positive predictions Answer: A Rationale: A lower threshold generally increases sensitivity/recall while potentially increasing false positives. 58. What is a false positive in churn prediction? A. Predicting churn when the customer does not actually churn B. Predicting no churn when the customer churns C. Correctly predicting churn D. Correctly predicting no churn Answer: A Rationale: A false positive is an incorrect positive prediction. 59. What is a false negative? A. Predicting no churn when the customer actually churns B. Predicting churn when the customer stays C. Correctly predicting churn D. Correctly predicting no churn Answer: A

A. Precision B. Recall C. Specificity D. Error rate Answer: A Rationale: Precision answers: among cases predicted positive, how many were actually positive?

64. Why can accuracy be misleading with highly imbalanced data? A. A model can achieve high accuracy by mostly predicting the majority class B. Accuracy cannot be calculated C. Accuracy always equals recall D. Accuracy ignores all predictions Answer: A Rationale: With severe imbalance, majority-class predictions can produce high accuracy while failing to identify minority-class cases. 65. What is specificity? A. The proportion of actual negatives correctly identified B. The proportion of predicted positives that are correct C. The proportion of actual positives detected D. The overall error rate Answer: A Rationale: Specificity is the true negative rate. 66. What is the F1 score? A. The harmonic mean of precision and recall B. The arithmetic mean of accuracy and AUC C. The square of recall D. The ratio of TN to TP Answer: A Rationale: F1 combines precision and recall into a single metric using their harmonic mean.

67. Why might F1 be useful? A. It balances precision and recall B. It measures only true negatives C. It ignores false positives D. It is identical to AUC Answer: A Rationale: F1 is particularly useful when both false positives and false negatives matter. 68. Which metric is threshold-independent? A. ROC-AUC B. Accuracy at 0. C. Precision at 0. D. Recall at 0. Answer: A Rationale: ROC-AUC summarizes discrimination across classification thresholds rather than at one fixed threshold. 69. What does a coefficient's sign tell you? A. The direction of association on the log-odds scale B. The sample size C. The model's accuracy D. The AUC value Answer: A Rationale: Positive coefficients increase log-odds, while negative coefficients decrease them, holding other variables constant. 70. What does statistical significance of a coefficient generally assess? A. Whether the data provide evidence that the coefficient differs from a specified null value B. Whether the model is always accurate C. Whether the predictor is the largest variable D. Whether the dataset contains no missing values