← Back to Publications

Predictive Analytics

What Will Happen?

Predictive analytics, stated honestly, is this: use the past to estimate the future, then measure how wrong you are. It builds on diagnostic work — once you understand which factors drive an outcome, you can train a model to project that outcome onto new, unseen cases. The headline lesson is that the workflow matters more than the algorithm. A simple model evaluated honestly beats a sophisticated one you can't trust.

This is a four-chapter mini-series. Every model is trained in scikit-learn on the shared synthetic retail dataset, and every metric quoted — R², MAE, AUC, precision, recall — is computed on a held-out test set and rendered in the charts. Where the synthetic data has no real outcome to predict (churn), that is stated plainly and a constructed label is used to illustrate the workflow.

Fit on the past, score on held-out data, then project Labeled history features + outcome Train / test split hold data back Fit model learn the pattern Evaluate on unseen test set Predict new cases

The predictive workflow: split the labeled history, fit on the training part, score on the held-out part, and only then project onto new cases.

The Four Chapters

Reference Code

The split → fit → evaluate → persist flow shown here is packaged in the Data Analytics Library's predictiveanalysis and machinelearning modules. Predictive analytics builds on Diagnostic ("why") and feeds Prescriptive ("what should we do").

← Back to Publications