TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Predictive Analytics: Definition, Methods and Worked Examples

Predictive analytics estimates what is likely to happen next from historical data. It sits between diagnostic and prescriptive analytics; a churn classifier and a held-out forecast show how to check it.

Oliver Reed Reviewed by Emma Collins Also called predictive analysis Last updated Nov 23, 2026 Glossary

Quick answer

Predictive analytics uses historical data, statistics and machine learning to estimate what is likely to happen next, such as which users will churn or how many sessions next week will bring. It sits between diagnostic and prescriptive analytics, and is judged on data it has not seen.

Formula: Precision = TP ÷ (TP + FP); Recall = TP ÷ (TP + FN); MAE = mean of absolute forecast errors

What is predictive analytics?

Predictive analytics is the use of historical data, statistical methods and machine learning to estimate what is likely to happen next, such as which users will churn, which visitors will convert or how many sessions next week will bring. It answers "what is likely?", not "what happened?" and not "what should we do?". Its output is an estimate with an error, either a probability for one case (this user has a 30% chance of cancelling) or a forecast for a quantity (about 10,800 sessions next week).

Two things separate it from reporting. First, it is tested on data it has not seen: a model that fits last month perfectly proves nothing until it is scored on a later period. Second, it is only useful if someone acts differently because of it; a churn score nobody reads is a chart. The rest of this entry places predictive analytics among the other analytics types, shows the two main method families and works through a classification and a forecast with numbers.

Where does predictive analytics sit among the four types?

Analytics is usually described in four steps, each answering a different question. Predictive is the third:

TypeQuestionTypical web-data exampleOutput
DescriptiveWhat happened?Sessions and conversion rate last weekCounts, rates, trends
DiagnosticWhy did it happen?Conversion fell because campaign traffic grew and converts lessBreakdowns by source, device, segment
PredictiveWhat is likely to happen?Probability that a user churns; sessions expected next weekA score or a forecast with an error range
PrescriptiveWhat should we do about it?Which users to contact, with which offer, to reduce churn mostA recommended action, often chosen by optimization

The order matters. Prediction rests on description (without clean past data there is nothing to learn from) and is made useful by prescription (a decision rule for acting on the score). If you already count and break down your data well, the step to a simple forecast is small; if the basics are shaky, a predictive model will only repeat the mistakes with more confidence. For the marketing application in particular, see predictive analytics in marketing.

What methods does predictive analytics use?

Two families cover most web-data work:

FamilyPredictsExampleCommon measures
ClassificationA yes or no for each caseWill this user churn in 30 days?Accuracy, precision, recall
Forecasting (time series)A number over timeSessions next week, signups next monthMAE, RMSE, MAPE

Both follow the same discipline. Split the data into a training period and a test period; fit on the first, score on the second. Forecasting guidance from the text Forecasting: Principles and Practice says to hold out a test set of about 20% of the sample, at least as long as the horizon you need to forecast, and that a good fit on training data does not guarantee a good forecast. Overfitting, a model that memorizes noise, is as harmful as missing a real pattern.

Always compare against a simple baseline. If a complex model cannot beat "predict the same as last week", it is not adding anything. The forecast example below does exactly that.

Worked example 1: a churn classifier and why accuracy misleads

Sample data: 1,000 users, of whom 100 churned within 30 days. A model flags 150 users as likely to churn. Checked against what actually happened:

ChurnedDid not churnTotal
Flagged by the model60 (true positives)90 (false positives)150
Not flagged40 (false negatives)810 (true negatives)850
Total1009001,000

Using the definitions from Google's machine learning course:

  • Accuracy = (TP + TN) ÷ all = (60 + 810) ÷ 1,000 = 87%.
  • Precision = TP ÷ (TP + FP) = 60 ÷ 150 = 40%: of the users flagged, 40% really churned.
  • Recall = TP ÷ (TP + FN) = 60 ÷ 100 = 60%: the model finds 60% of the users who churn.

Now the baseline. A "model" that flags nobody is right for all 900 users who stay: accuracy 900 ÷ 1,000 = 90%, higher than the real model's 87%, and it finds no churner at all. Accuracy is a poor measure when one outcome is rare; precision and recall tell you what you need. Whether 40% precision and 60% recall are good enough depends on the action: a free reminder email to 150 users is cheap even if 90 did not need it, while a 20% discount to the same 150 is not.

Worked example 2: a forecast checked against held-out weeks

Sample data: weekly sessions for eight weeks: 10,200; 10,450; 10,100; 10,800; 11,000; 10,700; 11,300; 11,500. Fit on weeks 1 to 6 and test on weeks 7 and 8, a 25% test set, close to the 20% guidance.

MethodForecast for weeks 7 and 8Errors (11,300 and 11,500)MAEMAPE
Average of last 4 weeks10,650 and 10,650650 and 8507506.57%
Same as last week (naive)10,700 and 10,700600 and 8007006.13%
Last week plus the average weekly change (drift)10,800 and 10,900500 and 6005504.82%

The average weekly change is (10,700 − 10,200) ÷ 5 = 100 sessions. MAE is the mean of the absolute errors; MAPE is the mean of each absolute error divided by the actual value, which the textbook notes is unit-free but unstable when actuals are near zero.

Reading it. The four-week average is worse than doing nothing clever (750 against 700), because it lags a rising series. The simple trend beats both (550). The best decision is not "use the model" but "use the trend, and keep comparing it with the naive forecast every week, because with only eight weeks the difference could change".

What are common misconceptions?

  • "Predictive analytics tells the future." It estimates likelihood from patterns that may not hold; the error range is part of the result.
  • "A fitted model is a good model." Only the score on unseen data counts.
  • "High accuracy means a good churn model." The baseline of flagging no one scored 90%; read precision and recall.
  • "More data and a complex model always win." The simple drift forecast beat the average above.
  • "Prediction replaces decisions." A score needs a rule for what to do with it, which is the prescriptive step.
  • "Descriptive reports are old-fashioned." They are the input; poor descriptions give poor predictions.

How does this relate to TapCub?

TapCub does not train predictive models or output churn probabilities or forecasts. It supplies the descriptive and diagnostic data that predictions are built from, and a few simple pieces you can use around a prediction:

  1. Describe the past clearly. In All-platform analytics › Behavior › Behavior analysis, retention shows how many people from a start cohort return in each period, and lifecycle shows the monthly or weekly mix of new, returning, resurrecting and dormant users. These are the inputs to a churn question.
  2. Find at-risk groups with rules. In All-platform analytics › Users › Segments & tags, rule segments and the RFM buckets (including "at risk" and "about to sleep") group people by past behavior. These are descriptive rules, not probabilities, but they are a transparent baseline to beat.
  3. Get the data out for modeling. All-platform analytics › Behavior › Metrics & SQL lets you query event data directly, and All-platform analytics › Data › Data export produces raw detail exports, so a data team can build and score a model elsewhere.
  4. Back-test a rule. In All-platform analytics › Operations › Monitors, a trial run calculates how many times an alert rule would have fired in the past 30 days without sending anything, a small version of testing on past data.

TapCub's AI assistant answers questions with figures computed from your analytics queries; it does not forecast future values.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Oliver Reed

Product Experience Specialist

Explores usability, user journeys, and feature adoption through practical examples of onboarding and everyday product use.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is predictive analytics in simple terms?

It is using past data to estimate what is likely to happen next, such as the chance a user cancels or the sessions expected next week. The result is an estimate with an error, checked on data the model has not seen.

What is the difference between predictive and prescriptive analytics?

Predictive analytics estimates what is likely to happen. Prescriptive analytics recommends what to do about it, such as which users to contact with which offer. A prediction needs a decision rule before it changes anything.

What are examples of predictive analytics?

Churn prediction, conversion forecasting and sessions or sales forecasts. In the sample here, a churn model had 87% accuracy but only 40% precision and 60% recall, and a simple trend forecast beat a four-week average.

Does TapCub do predictive analytics?

No. TapCub does not train models or output forecasts. It provides retention, lifecycle, segments, SQL access and data export, which are the descriptive inputs a prediction is built from.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics