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:
| Type | Question | Typical web-data example | Output |
|---|---|---|---|
| Descriptive | What happened? | Sessions and conversion rate last week | Counts, rates, trends |
| Diagnostic | Why did it happen? | Conversion fell because campaign traffic grew and converts less | Breakdowns by source, device, segment |
| Predictive | What is likely to happen? | Probability that a user churns; sessions expected next week | A score or a forecast with an error range |
| Prescriptive | What should we do about it? | Which users to contact, with which offer, to reduce churn most | A 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:
| Family | Predicts | Example | Common measures |
|---|---|---|---|
| Classification | A yes or no for each case | Will this user churn in 30 days? | Accuracy, precision, recall |
| Forecasting (time series) | A number over time | Sessions next week, signups next month | MAE, 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:
| Churned | Did not churn | Total | |
|---|---|---|---|
| Flagged by the model | 60 (true positives) | 90 (false positives) | 150 |
| Not flagged | 40 (false negatives) | 810 (true negatives) | 850 |
| Total | 100 | 900 | 1,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.
| Method | Forecast for weeks 7 and 8 | Errors (11,300 and 11,500) | MAE | MAPE |
|---|---|---|---|---|
| Average of last 4 weeks | 10,650 and 10,650 | 650 and 850 | 750 | 6.57% |
| Same as last week (naive) | 10,700 and 10,700 | 600 and 800 | 700 | 6.13% |
| Last week plus the average weekly change (drift) | 10,800 and 10,900 | 500 and 600 | 550 | 4.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:
- 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.
- 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.
- 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.
- 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
- Google for Developers, Classification: Accuracy, recall, precision and related metrics: formulas for accuracy, recall and precision.
- Hyndman and Athanasopoulos, Forecasting: Principles and Practice, 3rd edition, Evaluating point forecast accuracy: MAE, RMSE, MAPE and the training/test split.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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