← All nodes
Analytics

Logistic Regression

Fits a logistic model that gives the probability of a yes/no outcome from other columns, plus a 1/0 prediction at the threshold you choose.

When to use it

Use it for churn, conversion, default or any other yes/no question, when you want a probability rather than a hard rule.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Predict (yes/no column)selectYesSelect column…
Value that means yestext—Default: 1, true, yes or y
From columns (features)selectYesPick the columns that explain it
Yes from probabilitynumber—0.5
Probability column nametext—Default: Probability
Prediction column nametext—Default: Predicted
Add a Model column (JSON for Score Model)checkbox—false

Example

Churn probability from support tickets

  • Predict (yes/no column)=Churned
  • From columns (features)=Tickets
Customers
CustomerTicketsChurned
A0no
B1no
C2yes
D3no
E4yes
F5yes
Probability and prediction
CustomerTicketsChurnedProbabilityPredicted
A0no0.04590
B1no0.13930
C2yes0.35280
D3no0.64731
E4yes0.86071
F5yes0.95411

Worth knowing

  • Yes is 1, true, yes or y and no is 0, false, no or n — or type the Value that means yes, and every other value counts as no.
  • Fitted by Newton's method with a tiny ridge, so even perfectly separated data gives an answer; the note reports training accuracy.
  • Lower Yes from probability to catch more of the yes cases at the cost of more false alarms.
  • The model is JSON in the notes (or the Model column) for Score Model; nothing is stored.

Others in Analytics