Data and analytics

Predictive analytics and machine learning

A production model that outperforms a simple baseline and is monitored for drift.

How we do it

Overview

Many predictive models are built and then never used. Typically a data scientist develops a churn model in a notebook and presents promising accuracy figures, after which the work stalls because no one planned how the score would reach the person making the call, how often it would refresh, or what that person would do differently after seeing it. Building the model usually turns out to be the smaller share of the effort.

Models that do reach production run into a different problem, which is that the conditions they were trained on keep changing. Customer behavior shifts, a product is repriced or an upstream field changes its coding, and the model goes on returning scores without any error while its predictions become steadily less accurate. Without monitoring, the first sign is usually a disappointing business result that the people involved do not connect to the model at all.

We treat prediction as a problem of engineering and of decision-making in equal measure. Every project starts with a baseline, such as last year's figure, a moving average or a simple rule, and a model has to beat it on held-out data by a margin that matters, and if it cannot, we tell you so and stop. In many cases a regression or gradient-boosted trees on well-prepared data is the right answer, and much of the improvement comes from fixing the data itself, so we reserve heavier methods for problems that show they need them.

Challenges we address

The failures we are usually called in to fix
  1. Models that never leave the notebook

    The prototype relies on a hand-made extract, an environment on someone's laptop and the person who wrote it. Since there is no pipeline to produce the features on a schedule and no system for the score to land in, moving it to production becomes a second project that was never in the budget.

  2. Accuracy that came from leakage

    The model scored well in testing because one feature contained information from after the event it predicts, or because test rows were shuffled across time periods. That information does not yet exist when the model runs in production, so performance falls apart on the first real run.

  3. No baseline to compare against

    The team reports an accuracy metric with nothing to compare it against, and no check was made on whether last period's value or a two-line rule would have done just as well. As a result the organization maintains a complex model whose advantage over the obvious alternative has never been measured.

  4. Silent decay after launch

    Inputs drift and the relationship between the inputs and the outcome changes, but the model is never retrained and keeps producing scores. Because actual outcomes arrive weeks later and are never joined back to the predictions, the decline stays invisible to the people relying on it.

  5. Scores that are never acted on

    The model outputs a probability, but the sales or operations team was never asked which threshold would change what they do, so the score ends up as one more column in a report. A prediction that has no decision attached to it leaves every outcome exactly as it would have been.

Our approach

How the work runs, in order
  1. Define the decision and the baseline

    We write down who will act on the prediction, what they will do differently and what an error costs in each direction. We then build the simplest reasonable baseline and measure it, which sets the bar the model has to clear, and we choose an evaluation metric that reflects the business cost of errors rather than whichever metric is convenient.

  2. Prepare data without leakage

    Features are produced by pipelines from governed tables and use only what was known at the moment of prediction, and where the problem is temporal we split the training, validation and test sets by time. We also check label quality early, since a model can only be as good as the outcomes it learns from.

  3. Add complexity only on evidence

    We start with linear and tree-based models, and each step up in complexity has to justify itself on the held-out set. Results are reported by segment so that a good average cannot hide a group the model serves badly, and if the baseline turns out to perform best, we recommend keeping it.

  4. Deploy as a pipeline

    Training and scoring run as versioned, scheduled pipelines that share a single feature definition, and each model is registered with its data, code and metrics so that any version can be reproduced. Before a new model replaces the current one it runs in shadow mode or on a slice of traffic, and its rollback has been tested in advance.

  5. Monitor and retrain

    We track input drift and the distribution of scores, and once outcomes arrive we measure real accuracy against the baseline, with alerts going to a named owner. Retraining is triggered by a schedule or by measured decay, and every retrained model passes the same tests before it is promoted. Your team receives the runbook and runs the process itself.

Technical capabilities

What we design, build and operate
  • Demand and time-series forecasting

    Statistical and machine learning forecasts that handle seasonality, holidays, promotions and the product hierarchy explicitly, back-tested over rolling windows and reported together with prediction intervals.

  • Scoring and classification

    Propensity, churn, risk and lead scores with calibrated probabilities and with thresholds set from the cost of each type of error, and performance reported separately for each segment.

  • Anomaly detection

    We detect unusual transactions, sensor readings or process behavior, and tune the detection with the operations team so that the number of alerts matches what people can actually review.

  • Feature pipelines

    Features that are correct at each point in time, built from warehouse tables by tested pipelines and shared between training and scoring, which keeps the two from drifting apart.

  • Batch and real-time scoring

    Batch scores are written to the warehouse or to operational systems, and real-time scoring sits behind an API where a decision cannot wait, with versioning and rollback in both cases.

  • Experiment tracking and registry

    Each run is recorded with its data version, parameters and metrics, and a registry controls which model is in production and keeps a record of who approved it.

  • Drift and accuracy monitoring

    We check input distributions, prediction distributions and realized accuracy against thresholds, send alerts to a named owner and document the path for retraining.

  • Explainability and model records

    Feature attribution, reason codes for individual predictions and a written model record covering data, limits and intended use, prepared for reviewers in risk and compliance.

Where it applies

Business applications
  • Demand and inventory planning

    Forecasts by product and location that feed replenishment and production plans, with intervals that show planners how far each forecast can be trusted.

  • Customer retention

    Scores that rank accounts by how likely they are to leave, delivered into the CRM with the main reasons attached, for a team that only has capacity to contact some of them.

  • Credit and risk scoring

    Models for default, fraud or claims risk, built with the documentation, stability tests and explanations that a model risk function asks for.

  • Predictive maintenance

    Estimating the risk of failure from sensor and maintenance history so that service can be scheduled by condition, in cases where there are enough past failures to learn from.

  • Workforce and capacity planning

    Forecasts of call volumes, admissions or order lines, so that staffing is planned from an expected range in place of last year's rota.

  • Pricing and promotion analysis

    Estimating from historical data how demand responds to price and promotion, along with a clear statement of where the data is too thin to support a conclusion.

In practice

Two situations this service is built for, and what we would do in each.

Retail and consumer goods

A distributor forecasting demand in one planner's spreadsheet

The situation
A consumer goods distributor forecasts demand for several thousand products in a spreadsheet that one planner maintains, starting from last year's sales and adjusting by hand. The business suffers both stockouts and overstock, yet it cannot tell whether a statistical forecast would do better, because the current method has never been measured.
What we would build
We would begin by back-testing the spreadsheet method and a seasonal naive forecast over past periods to set the bar. We would then build forecasts from cleaned sales history, with promotions and holidays as inputs, starting from simple statistical models and adding gradient-boosted models where they perform better. Forecasts would be written to the planning system on a schedule, and every planner override would be logged.
What it is designed to change
The planner would work from a measured forecast and review only the exceptions, where today every line is checked. Each cycle we would track forecast error against the naive baseline by product group, along with whether the logged overrides improved or worsened the result.
Energy and utilities

A churn model that stopped working without notice

The situation
Some time ago an energy retailer built a churn model to target retention offers, and it still runs monthly from a script on an analyst's machine. Since then tariffs and the customer mix have changed and retention results have weakened, so the team cannot tell whether the model, the offer or the market is responsible.
What we would build
We would join past scores to actual outcomes to see how accuracy has moved since launch, and compare the model with a simple rule based on contract end date. The features would be rebuilt as a tested pipeline and the model retrained on recent data, after which scoring would move to a scheduled job with drift checks and outcome tracking.
What it is designed to change
The team would be able to separate model decay from other causes and would know when to retrain. Each month we would report ranking quality on recent outcomes against the simple rule, and an alert would fire when input distributions shift beyond a set threshold.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Modelling libraries
scikit-learn · XGBoost · LightGBM · statsmodels · Prophet · PyTorch
ML platforms and registries
MLflow · Amazon SageMaker · Google Vertex AI · Azure Machine Learning · Databricks · Kubeflow
Feature and data pipelines
dbt · Apache Spark · Apache Airflow · Dagster · Feast
Monitoring and explainability
Evidently · NannyML · SHAP · Prometheus and Grafana

Business outcomes

What changes for the organization
  • A measured gain over the obvious method

    You know by how much the model outperforms the baseline in each segment, which lets you decide whether that margin justifies the cost of running it.

  • Predictions that reach a decision

    Scores arrive in the system where the planner, agent or underwriter already works, arriving on the schedule they need with an agreed threshold for when to act.

  • Decay noticed early

    When the inputs drift or accuracy falls, a named owner receives an alert, so the model is retrained before the problem shows up in business results.

  • Models your team can reproduce

    Any production model can be rebuilt from its recorded data, code and parameters, and its written record gives a risk reviewer what they need to understand it.

What you hold at the end

  • A written definition of the decision and a measured baseline
  • Feature pipelines with point-in-time correctness tests
  • A trained model with back-test results by segment
  • Scheduled training and scoring pipelines in your repository
  • A registry entry recording data, code and metric versions
  • Drift and accuracy monitoring with alerts and thresholds
  • A model record and a retraining runbook for your team

Questions buyers ask

In many cases a simpler method is enough, and we test that before anything else. A seasonal average, a rule on two or three fields or a linear model can capture much of what is predictable in a business problem, while machine learning pays off when there are many interacting inputs and enough history to learn from. We measure the baseline and the model side by side and report the difference, and if it turns out to be small, we would advise you to keep the simple method.

That depends on how rare the outcome is and how many factors drive it. A monthly forecast needs a few years of history before a yearly pattern can be distinguished from noise, and a classification model needs enough examples of the rare outcome, which a large row count does not guarantee. With few recorded failures or churned customers, the model has little to learn from. We check this in the first days of the work and tell you directly if the data cannot support the prediction.

We join the predictions to what actually happened. Each score is stored with its date and model version, and once the outcome is known we compute accuracy and compare it with the baseline and with performance at launch. Until the outcomes are known we treat shifts in the inputs and in the score distribution as early warnings, and all of these checks run on a schedule and send alerts to an owner.

They address different problems. Predicting a number or a category from structured history, such as demand, risk or churn, is usually better handled by classical models, which cost less to run and are easier to test and to explain, whereas large language models suit text, documents and conversation. The two work well together when an assistant needs a forecast or a score, in which case it should call the tested model and use its output rather than produce an estimate of its own.

Yes, provided that requirement shapes the design from the start. Linear models and scorecards can be interpreted directly, and tree-based models can be explained through feature attribution and reason codes for each prediction. We document the training data, the tests performed, the known limits and the intended use in a model record, and where a rule requires that an individual decision be explained, we choose model types that support this from the outset so that explanations do not have to be added afterwards.

Discuss predictive analytics and machine learning with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy