By MCP Analytics Team | Published , updated
Upload your data and get a classification report. Free.
We email you the report link. Leave it empty and the report opens on this page. If today's runs without an email are used up, we will ask for your email.
Free up to 10,000 rows. Encrypted in transit.
Running classification analysis...
The practical guide behind this tool: when it applies, how to read the output, and the traps that make it say the wrong thing.
The numbers below come from made-up data, made by the code on this page. They show the method. They are not output from this tool and not a finding about your data.
Question: Which columns predict whether a customer churns, how well do they rank churners above stayers on rows the model never saw, and where do the predictions fail?
Inputs: Simulated customers, not real data. Seed 42 makes 600 customers with three standardised columns. Built in by construction: the chance of churn is logistic(-1.0 + 1.2 x tickets - 0.8 x tenure), and a third column, noise, has no effect. A stratified 70/30 split gives 419 training rows and 181 held-out rows. The split-seed check reuses the same 600 customers with seeds 100 to 299.
Method: Logistic regression fitted on the training rows, one coefficient per column, then scored on the held-out rows only. AUC is the chance that a randomly chosen churner gets a higher score than a randomly chosen stayer (0.5 is a coin flip, 1.0 is perfect ranking). A confusion table counts hits and misses at a 0.5 cut-off. A model scores best on the rows it was fitted to, so the held-out AUC is shown next to the in-sample one. This sketch is a binary example only and does not claim to match every option of the tool.
Result: The coefficients came out at -0.95, 1.26, -1.02 and -0.05 against built-in -1.0, 1.2, -0.8 and 0, so tickets and tenure were picked out and noise was not. Held-out AUC was 0.794, below the in-sample 0.827. At the 0.5 cut-off the held-out table was 27 churners caught, 37 missed, 18 stayers flagged wrongly and 99 correctly left alone. Accuracy was 0.696 but always saying 'stays' scores 0.646, and only 0.422 of churners were caught, so accuracy alone hides where it fails. Across 200 different splits of the same customers the held-out AUC ran from 0.747 to 0.870 (middle 95%), so one split gives a rough figure.
Limit: Two real drivers, a clean logistic shape and no missing values, no correlated columns and no categories. Real data breaks these. It shows one method only, not the other models or options a classification tool may offer, and not how the tool reports its results. The tool chooses its own cut-off from the training rows instead of 0.5, so its hit and miss counts will differ from this table. Predicting a class is not evidence of what causes it.
Python script (numpy and scipy only):
import numpy as np
# Simulated data. Built in: 600 customers, churn probability = logistic(-1.0 + 1.2*tickets_z - 0.8*tenure_z); 'noise' has no effect.
rng = np.random.default_rng(42)
n = 600
tick, ten, noise = rng.normal(size=(3, n))
p = 1 / (1 + np.exp(-(-1.0 + 1.2 * tick - 0.8 * ten)))
y = (rng.uniform(size=n) < p).astype(float)
X = np.column_stack([np.ones(n), tick, ten, noise])
def fit(X, y, it=25): # logistic regression by Newton steps
b = np.zeros(X.shape[1])
for _ in range(it):
mu = 1 / (1 + np.exp(-X @ b)); W = mu * (1 - mu)
b += np.linalg.solve(X.T @ (X * W[:, None]) + 1e-8 * np.eye(len(b)), X.T @ (y - mu))
return b
def auc(s, y): # share of (churner, stayer) pairs ranked correctly
r = np.argsort(np.argsort(s)) + 1
n1 = y.sum(); n0 = len(y) - n1
return (r[y == 1].sum() - n1 * (n1 + 1) / 2) / (n1 * n0)
# stratified 70/30 split
tr = np.zeros(n, bool)
for c in (0, 1):
idx = rng.permutation(np.where(y == c)[0]); tr[idx[:int(0.7 * len(idx))]] = True
b = fit(X[tr], y[tr]); te = ~tr
sc = X[te] @ b; pred = (1 / (1 + np.exp(-sc)) >= 0.5).astype(float); yt = y[te]
print("train %d, test %d, churn rate %.3f" % (tr.sum(), te.sum(), y.mean()))
print("coefficients (built in -1.0, 1.2, -0.8, 0):", np.round(b, 2))
print("held-out AUC %.3f, in-sample AUC %.3f" % (auc(sc, yt), auc(X[tr] @ b, y[tr])))
tp = int(((pred == 1) & (yt == 1)).sum()); fn = int(((pred == 0) & (yt == 1)).sum())
fp = int(((pred == 1) & (yt == 0)).sum()); tn = int(((pred == 0) & (yt == 0)).sum())
print("held-out confusion: TP %d FN %d FP %d TN %d" % (tp, fn, fp, tn))
print("accuracy %.3f, always-say-stays accuracy %.3f, recall %.3f" % ((tp + tn) / len(yt), 1 - yt.mean(), tp / (tp + fn)))
# how far does AUC move with the split seed?
a = []
for s in range(200):
r = np.random.default_rng(100 + s); t2 = np.zeros(n, bool)
for c in (0, 1):
i = r.permutation(np.where(y == c)[0]); t2[i[:int(0.7 * len(i))]] = True
bb = fit(X[t2], y[t2]); a.append(auc(X[~t2] @ bb, y[~t2]))
print("held-out AUC over 200 split seeds: middle 95%% %.3f to %.3f" % tuple(np.percentile(a, [2.5, 97.5])))
Printed output from running the code above:
train 419, test 181, churn rate 0.353
coefficients (built in -1.0, 1.2, -0.8, 0): [-0.95 1.26 -1.02 -0.05]
held-out AUC 0.794, in-sample AUC 0.827
held-out confusion: TP 27 FN 37 FP 18 TN 99
accuracy 0.696, always-say-stays accuracy 0.646, recall 0.422
held-out AUC over 200 split seeds: middle 95% 0.747 to 0.870
Which factors predict the outcome class, how clearly they separate, and where predictions fail.
Analysis with charts and tables.
Plain-English reading of the results.
See our FAQ for pricing, privacy and how the analysis works.
By MCP Analytics Team. Last updated 5 November 2026. Cite as: MCP Analytics Team (2026). Classification. Free tool. https://mcpanalytics.ai/free/standard_classification_v2. Accessed the date you used it.
Tell us what went wrong, in your own words. We capture the page you're on automatically, so no need to describe where you are.