Back to marketplace

06.b Logistic Regression

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is Logistic Regression

Back (Answer)

The logistic regression is a supervised predictive analysis. Logistic regression is used to describe data and to explain the relationship between one dependent categorical variable and one or more nominal, ordinal, interval or ratio-level independent variables by estimating probabilities using a logistic function.

#2
Front (Question)

What type of output variable comes from Logistic Regression

Back (Answer)

When the outcome variable is categorical in nature, logistic regression can be used to predict the likelihood of an outcome based on the input variables.

#3
Front (Question)

Name four use cases for Logistic Regression

Back (Answer)

Medical Finance Marketing Engineering

#4
Front (Question)

What shape is the common Logistic Curve

Back (Answer)

An S Shape curve. Bottom left is zero, top right is One, with an S Shape joining the two corners

#5
Front (Question)

What is the Logistic Function (equation)

Back (Answer)

f(y) = e^y / (1+e^y) for -infinity < y < +infinity

#6
Front (Question)

What is MLE in terms of Logistic Regression

Back (Answer)

MLE stands for Maximum Likelihood Estimation

#7
Front (Question)

What does churn mean

Back (Answer)

Churn refers to the likelihood of a customer will switch to another company

#8
Front (Question)

Which function should you use for Logistic Regression in R

Back (Answer)

The Generalised Linear Model function glm() OutputDF = glm (Churned ~ Age + Married + Cust_Years+Churned_Contacts, data=churn_input, family=bionomial(link=”logit”))

#9
Front (Question)

Describe Odds

Back (Answer)

The Odds of something happening are the chances of A happening divided by the chances of B happening.

#10
Front (Question)

Describe Probability

Back (Answer)

The Probablity of something happening are the chances of A happening divided by the chances of all possible results.

#11
Front (Question)

Once you have calculated the Generalised Linear Model for y which equation should you use to calculate the probability

Back (Answer)

p = e^y / (1-e^y)

#12
Front (Question)

What is the Akaike Information Criteria (AIC)

Back (Answer)

You can look at AIC as counterpart of adjusted r square in multiple linear regression. It’s an important indicator of model fit. It follows the rule: Smaller the better. AIC penalises increasing number of coefficients in the model. It helps to avoid over-fitting.

#13
Front (Question)

In Logistic Regression what is the Null Deviance

Back (Answer)

The Null Deviance is the value where the likelihood function is based only on the intercept term

#14
Front (Question)

In Logistic Regression what is the Residual Deviance

Back (Answer)

The Residual Deviance is the value where the likelihood function is based on the parameters in the specified logistic model

#15
Front (Question)

In Logistic Regression how do you calculate a Pseudo - R squared

Back (Answer)

Pseudo R Squared = 1 - (residual dev. / null dev.)

#16
Front (Question)

The Deviance of an observation is calculated how

Back (Answer)

-2 * log (likelihood of that observation)

#17
Front (Question)

What is a confusion matrix

Back (Answer)

A table of Actual Class (AC) against Predicted Class (PC) showing false and true PC Positives (1) Negatives (0) Positives (1) True Pos False Neg AC Negatives (0) False Pos True Neg A good classifer should have high True (Pos&Neg) and low False (Pos & Neg)

#18
Front (Question)

What is the true positive rate (TPR)

Back (Answer)

TPR = TP / (TP +FN) All the TP divided by all the actual Positives

#19
Front (Question)

What is the false positive rate (FPR)

Back (Answer)

FPR = FP / ( FP + TN) All the FP divided by all the actual Negatives

#20
Front (Question)

What is the true negative rate (TNR)

Back (Answer)

TNR = TN / (FP + TN) All the TN divided by all the actual Negatives

#21
Front (Question)

What is the false negative rate (FNR)

Back (Answer)

FNR = FN / (TP + FN) All of the FN divided by all the actual Positives

#22
Front (Question)

What is Accuracy of a Confusion Matrix

Back (Answer)

Accuracy = TP + TN / (TP + TN + FP + FN) So the correct ones / everything

#23
Front (Question)

What is Precision of a Confusion Matrix

Back (Answer)

Precision = TP / ( TP + FP) P for Precsion all of the P’s! TP / all of the positives

#24
Front (Question)

What is Recall of a Confusion Matrix

Back (Answer)

Recall = TP / ( TP + FN ) Which is the same as the TPR