Bachelors Program in Business Analytics
Predictive Analytics
•
Bachelor
Foundations of Predictive Analytics
Introduction and Context
Organizations collect large volumes of data from transactions, websites, sensors, mobile applications, customer interactions, employees, and external markets. The value of these data does not arise simply from storing them. Value is created when data support better decisions. Predictive analytics is the set of statistical, computational, and business practices used to estimate what is likely to happen in the future or what outcome is likely for a particular case.
Predictive analytics is therefore neither fortune-telling nor a guarantee of future events. It is an evidence-based estimation activity performed under uncertainty. A predictive model identifies patterns in historical or currently available data and uses those patterns to produce forecasts, probabilities, scores, rankings, or classifications. The quality of a prediction depends on the data, the modeling method, the stability of the environment, and the decision process in which the prediction is used.
For a business analyst, predictive analytics is important because it connects data analysis with action. A retailer may estimate next month’s demand, a bank may estimate the probability that an applicant will default, and a hospital may estimate the risk that a patient will be readmitted. In each case, the prediction is useful only when it improves a decision, such as ordering inventory, approving credit, or arranging follow-up care.
Learning Objectives
By the end of this chapter, you should be able to:
Define predictive analytics and distinguish it from related forms of analytics.
Explain key terminology, including outcome, predictor, model, training data, validation data, score, probability, and forecast.
Distinguish prediction from explanation and causal inference.
Identify common business use cases and assess whether predictive analytics is appropriate.
Explain the basic predictive-analytics workflow and its governance requirements.
Recognize important sources of error, bias, uncertainty, and model failure.
The Analytics Continuum
Business analytics is often organized into four related questions:
Type of analytics
Central question
Typical output
Example
Descriptive
What happened?
Reports, dashboards, summaries
Last quarter’s sales by region
Diagnostic
Why did it happen?
Drill-downs, correlations, root-cause hypotheses
Reasons for a decline in sales
Predictive
What is likely to happen?
Forecasts, probabilities, risk scores
Probability that a customer will churn
Prescriptive
What should be done?
Recommendations, optimized actions, policies
Which retention offer should be sent?
These categories are useful distinctions rather than completely separate systems. A predictive project normally begins with descriptive work: analysts inspect distributions, missing values, trends, and unusual observations. Diagnostic analysis may then identify variables associated with the outcome. Prediction produces an estimate, and prescriptive analysis may use that estimate in an optimization or decision rule.
Descriptive analytics
Descriptive analytics summarizes observed data. Measures such as the mean, median, count, percentage, and standard deviation describe a population or sample. A dashboard showing weekly revenue is descriptive. It does not, by itself, estimate future revenue.
Diagnostic analytics
Diagnostic analytics investigates possible reasons for an observed result. It may use segmentation, time comparisons, correlation analysis, process analysis, or controlled investigation. Diagnostic findings are often suggestive rather than conclusive. A correlation between delivery delays and customer complaints does not establish that delays caused every complaint.
Predictive analytics
Predictive analytics estimates an unknown or future outcome using available information. The unknown outcome may be numerical, such as demand of 10,500 units, or categorical, such as “likely to churn.” A prediction may concern a future period, a new customer, an unseen transaction, or a hypothetical event under specified conditions.
Prescriptive analytics
Prescriptive analytics evaluates possible actions and their consequences. It may combine predictions with costs, constraints, business rules, and optimization. For example, a demand forecast can be an input to an inventory policy. The forecast predicts demand; the policy recommends an order quantity. Confusing these functions can lead to poor decisions, because a highly accurate forecast does not automatically identify the best action.
Predictive Analytics Terminology
Unit of analysis and outcome
The unit of analysis is the entity represented by one observation: a customer, invoice, loan, product, employee, machine, or day. The outcome, also called the target, response, or dependent variable, is the quantity to be predicted.
Outcomes may be:
Continuous: revenue, delivery time, temperature, or demand.
Binary: default versus no default, renewal versus cancellation.
Multiclass: product category, claim type, or customer segment.
Count: number of purchases, defects, or support calls.
Time-to-event: time until failure or cancellation.
Time series: a sequence such as daily sales, where order and timing matter.
Predictors and features
A predictor, explanatory variable, input, or feature is information used by a model to generate a prediction. In a customer model, predictors might include tenure, purchase frequency, service interactions, and plan type. A feature can be numerical, categorical, textual, geographical, or derived from time.
A predictor must be available at the time the prediction is intended to be made. Using information that becomes available only after the outcome occurs creates target leakage. For example, using a “closed account” transaction code to predict cancellation would produce an apparently strong but operationally useless model.
Observation, population, and sample
A population is the complete set of cases about which an organization wants to make statements. A sample is the subset used for analysis. A model trained on a sample should generalize to new cases from the relevant population. Generalization is threatened when the sample is unrepresentative, the data-generating process changes, or the model memorizes accidental patterns.
Model and algorithm
A model is a formal representation of a relationship between inputs and an outcome. An algorithm is a procedure used to estimate model parameters or generate predictions. Linear regression, logistic regression, decision trees, random forests, and neural networks are examples of modeling approaches. The word “model” may refer both to the fitted mathematical object and, more broadly, to the complete predictive system.
Training, validation, and test data
Training data are used to estimate the model. Validation data support choices such as feature selection, algorithm selection, and tuning. Test data provide a final, relatively unbiased assessment when they have not influenced model development. In time-dependent problems, a chronological split is often more appropriate than a random split because future observations should not be used to predict the past.
Score, probability, forecast, and interval
A score is a numerical output used to rank or classify cases. A probability is a value between 0 and 1 representing an estimated chance under a defined population, time horizon, and event definition. A forecast is a prediction about a future quantity or event. A prediction interval communicates a range of plausible future values and therefore expresses uncertainty rather than only a point estimate.
A probability is not automatically a calibrated probability. If a group of cases is assigned a probability of 0.70, calibration means that approximately 70% of comparable cases experience the event, subject to sampling variation and a clearly defined prediction setting.
Prediction, Explanation, and Causation
One of the most important conceptual distinctions in analytics is the difference between predicting an outcome and explaining why it occurs.
Prediction
Prediction focuses on performance for unseen cases. A useful predictive feature is one that improves out-of-sample estimates, even if it is not a cause of the outcome. For example, the time at which a customer contacts a call center might help predict churn because it reflects frustration or operational conditions. It may not itself cause cancellation.
Explanation
Explanation seeks to describe relationships, mechanisms, or reasons. An explanatory analysis may ask why sales changed or which factors are associated with employee turnover. It requires careful interpretation of measurement, confounding, timing, and alternative explanations. A feature can be predictive without providing a satisfactory explanation.
Causal inference
Causal inference asks what would happen if an intervention or condition were changed. For example, “What would be the effect of offering a discount?” is causal, whereas “Which customers are likely to buy?” is predictive. Causal conclusions generally require stronger design and assumptions than prediction, such as randomization or a credible observational identification strategy.
A variable can be highly predictive but unsuitable for intervention. A customer’s past complaint count may predict churn, but reducing the count artificially would not necessarily prevent churn. Conversely, a variable can have a causal effect but add little predictive accuracy if its effect is small relative to other sources of variation.
Question
Main objective
Appropriate evidence
What happened?
Summarize the past
Reports and descriptive statistics
Why might it have happened?
Identify plausible drivers
Diagnostic analysis and domain investigation
What is likely to happen?
Estimate an outcome
Out-of-sample predictive validation
What will happen if we intervene?
Estimate an intervention effect
Experiment or credible causal design
What should we do?
Select an action
Prediction plus costs, constraints, and objectives
A practical rule is to state the question before choosing the method. Calling a predictive association a causal effect can produce harmful policies, unfair decisions, and misleading management conclusions.
A Basic Predictive-Analytics Workflow
A predictive project is iterative rather than strictly linear.
Predictive analytics workflow from business question through monitoring
Figure: Predictive analytics workflow from business question through monitoring
Figure: A predictive-analytics workflow, including the iterative feedback from monitoring to problem definition.
1. Define the decision and prediction target
The project should begin with a decision, not with a fashionable algorithm. Analysts should specify who will use the output, what action may follow, the prediction horizon, the unit of analysis, and the cost of errors. “Predict churn” is incomplete. A stronger definition might be: “Estimate whether an active subscriber will cancel within the next 30 days, using information available at the start of each week, so that the service team can prioritize outreach.”
2. Assemble and understand the data
Data preparation includes joining sources, defining observation dates, identifying missing values, checking duplicates, documenting measurement procedures, and examining whether the data represent the intended population. Data quality is part of modeling, not a clerical afterthought.
3. Establish a baseline
A baseline is a simple reference method, such as predicting the historical average, the majority class, or the value from the previous period. A complex model should demonstrate improvement over a credible baseline after considering cost, interpretability, maintenance, and fairness.
4. Develop candidate models
Candidate methods should be selected according to the outcome, data structure, sample size, operational needs, and acceptable level of complexity. Feature engineering may transform raw data into meaningful measures, such as purchases per active month or average delivery delay.
5. Validate out of sample
Performance must be evaluated on observations not used to fit or tune the model. For classification, analysts may use accuracy, precision, recall, specificity, the F1 score, the area under a receiver operating characteristic curve, and calibration. For numerical prediction, common measures include mean absolute error and root mean squared error.
For observed values yᵢ and predictions ŷᵢ across n cases, mean absolute error is:
MAE = (1/n) ∑ᵢ₌₁ⁿ |yᵢ − ŷᵢ|
Here, n is the number of evaluated cases, yᵢ is the observed value, and ŷᵢ is the predicted value. MAE has the same units as the outcome and gives each absolute error equal weight. It is applicable when numerical errors can reasonably be compared on their original scale.
Root mean squared error is:
RMSE = √[(1/n) ∑ᵢ₌₁ⁿ (yᵢ − ŷᵢ)²]
RMSE also has the outcome’s units but gives relatively greater influence to large errors because errors are squared. Neither measure is universally superior; the choice should reflect the decision costs.
For a binary outcome, a confusion matrix classifies cases according to actual and predicted classes:
Actual positive
Actual negative
Predicted positive
True positive
False positive
Predicted negative
False negative
True negative
Accuracy is (TP + TN)/(TP + TN + FP + FN), where TP, TN, FP, and FN denote the four cell counts. Accuracy can be misleading when one class is rare. Precision, TP/(TP + FP), measures the proportion of predicted positives that are actually positive. Recall, TP/(TP + FN), measures the proportion of actual positives detected. These measures depend on a classification threshold and should be interpreted with the business consequences of false positives and false negatives.
6. Deploy, monitor, and govern
Deployment may involve a dashboard, an application programming interface, a batch score, or an embedded workflow. Monitoring should examine data quality, prediction performance, calibration, changes in the population, fairness indicators, latency, and user behavior. A model can degrade when customer behavior, prices, regulations, products, or data-collection systems change. This phenomenon is commonly called concept drift or data drift, depending on whether the relationship or the input distribution has changed.
Common Business Use Cases
Marketing and customer management
Organizations predict customer acquisition, response to campaigns, churn, lifetime value, and next-best offers. A churn model can help prioritize limited retention resources. It should not automatically determine who receives worse service or be interpreted as proof that a particular intervention will prevent cancellation.
Finance and insurance
Credit-risk models estimate default probability, loss risk, or fraud likelihood. Insurance models estimate claim frequency or severity. These applications require documentation, monitoring, explainability appropriate to the context, security, and compliance with applicable law. Historical decisions can encode discrimination, so predictive accuracy alone is insufficient.
Operations and supply chains
Demand forecasting supports purchasing, staffing, production, and logistics. Predictive maintenance estimates the likelihood of equipment failure within a time window. Forecasts should account for seasonality, promotions, stockouts, lead times, and changes in operating conditions.
Human resources
Organizations may predict hiring needs, absenteeism, or turnover. Employment applications are particularly sensitive because predictions can affect opportunity and livelihood. Models should use job-relevant information, be tested for disparate effects, and remain subject to human review and appeal.
Health and public services
Risk models can support triage, readmission prevention, and resource planning. They must account for unequal access, differences in measurement, privacy, and the danger that a model’s output becomes a self-fulfilling label. A model should support professional judgment rather than conceal accountability.
Worked Example: A Churn Classification Decision
Suppose a subscription company evaluates 1,000 customers. A model labels 120 customers as likely to churn. Of those, 72 actually churn. Among the 880 customers not labeled likely to churn, 28 churn.
The confusion matrix is therefore:
TP = 72
FP = 48
FN = 28
TN = 852
The model’s precision is 72/(72 + 48) = 0.60, or 60%. Its recall is 72/(72 + 28) = 0.72, or 72%. Its accuracy is (72 + 852)/1000 = 0.924, or 92.4%.
The high accuracy should not be considered alone. The population churn rate is 10%, so a model that predicted “no churn” for everyone would have 90% accuracy while detecting no likely churners. The proposed model identifies 72% of churners, but 40% of its outreach list does not churn. Whether that is acceptable depends on the cost of outreach, the value of retaining a customer, and whether the intervention is effective.
This example also illustrates a threshold decision. A probability model may assign each customer a risk between 0 and 1. The organization chooses a threshold above which outreach occurs. Lowering the threshold usually increases the number of customers contacted and may increase recall, but it can also reduce precision and increase cost. The threshold is a decision-policy choice, not a universal property of the model.
Illustrative Case: Predictive Maintenance at Northstar Manufacturing
The following is a fictional illustrative case designed to demonstrate the reasoning process.
Background
Northstar Manufacturing operates 240 industrial pumps. Unexpected failures interrupt production and create emergency repair costs. The maintenance department records vibration, temperature, operating hours, pressure, repair history, and failure events.
Problem
Managers want to identify pumps likely to fail within the next 14 days. The objective is not merely to maximize a statistical score. A missed failure may cause a costly shutdown, while an unnecessary inspection consumes technician time.
Analysis
The analytics team first defines one observation per pump per day and labels whether failure occurs in the following 14 days. This time definition prevents the target from being confused with the present condition. The team uses only measurements available at the scoring time. It discovers that some repair records were entered after failures were resolved; these fields are excluded because they would create leakage.
The data are divided chronologically: earlier months are used for training and later months for testing. A simple baseline uses the previous month’s failure rate. Candidate models include a regularized logistic regression and a tree-based model. The team assesses recall, precision, calibration, inspection workload, and performance across pump types rather than relying on one metric.
Approach and solution
The selected system produces a risk probability and an explanation report showing recent vibration change, temperature level, and operating hours as contributing signals. A maintenance rule schedules inspection when predicted risk exceeds a threshold chosen with operations managers. The system does not automatically shut down equipment. Engineers retain authority to override the recommendation and record the reason.
Outcome
During a controlled pilot, the company compares the predictive workflow with its existing schedule. It observes fewer emergency failures, but also finds that a sensor replacement program improves data completeness and contributes to the result. Consequently, managers avoid claiming that the model alone caused all improvement. The model is placed under monthly monitoring, with retraining review when sensor behavior or equipment design changes.
Learning points
A precise outcome definition is essential.
Features must be available before the prediction event.
Chronological validation is appropriate when predicting the future.
Operational costs determine the useful threshold.
Human oversight and monitoring remain necessary after deployment.
Improvements should be evaluated against a comparison process, not assumed to result from the model.
Challenges and Limitations
Overfitting and underfitting
Overfitting occurs when a model captures random variation or peculiarities of training data and performs poorly on new data. Underfitting occurs when the model is too simple to represent important structure. Validation, regularization, simpler baselines, and careful feature design help address both problems.
Data leakage
Leakage makes evaluation look better than real-world performance. It may arise from future information, duplicate entities appearing in training and test sets, post-outcome variables, or preprocessing performed using the full dataset. Leakage prevention must be designed into the workflow.
Sampling and selection bias
Historical data may exclude people who never applied, customers who left before being measured, or events that were never reported. A model can be accurate for the observed sample but inappropriate for the intended population.
Measurement and label problems
An outcome may be a proxy rather than the concept of interest. “Employee performance rating,” for example, may reflect managerial preferences as well as performance. Inconsistent labels limit both accuracy and fairness.
Distribution shift
Relationships can change because of economic conditions, new competitors, policy changes, technological upgrades, or behavioral adaptation. A model should be treated as a managed product with an owner, version history, retraining criteria, and retirement conditions.
Interpretability and uncertainty
Complex models may be difficult to explain, but simple models are not automatically correct or fair. Explanations should distinguish model associations from causal reasons. Outputs should communicate uncertainty, limitations, and the population to which they apply.
Ethics, Governance, and Responsible Use
Predictive systems can amplify historical inequality. Responsible practice includes data minimization, lawful and transparent data use, access control, security, documentation, bias assessment, performance monitoring, and mechanisms for correction or appeal. Analysts should ask:
Is the purpose legitimate and clearly defined?
Are the data relevant, accurate, and collected lawfully?
Could protected groups experience disparate error rates or harmful effects?
Is the prediction being used for a decision that requires human review?
Can affected people understand, challenge, or correct the result?
Are retention, deletion, and security practices appropriate?
Legal obligations vary by jurisdiction and sector. Privacy and equality laws, sector-specific rules, contractual duties, and organizational policies may all apply. Compliance is a minimum requirement, not a substitute for ethical judgment.
Generative artificial intelligence can assist with feature documentation, code drafting, or natural-language interfaces, but it does not remove the need for data validation, reproducible testing, privacy controls, or expert review. An automatically generated explanation may sound plausible while failing to describe the actual model. Predictive systems should therefore be evaluated as socio-technical systems involving data, software, people, incentives, and institutions.
Best Practices for Beginning Analysts
Start with a clearly defined decision, outcome, horizon, and population.
Build a simple baseline before adopting a complex algorithm.
Separate training, validation, and final testing carefully.
Prevent leakage by respecting the information available at prediction time.
Select metrics that reflect the consequences of errors.
Examine calibration, subgroup performance, and operational workload.
Document data sources, transformations, assumptions, versions, and limitations.
Treat prediction as probabilistic evidence, not certainty or causation.
Include domain experts and affected stakeholders in design and review.
Monitor the system after deployment and define when it should be revised or retired.
Chapter Summary
Predictive analytics uses data and models to estimate unknown or future outcomes under uncertainty. It differs from descriptive analytics, which summarizes what happened; diagnostic analytics, which investigates why it may have happened; prescriptive analytics, which recommends action; and causal inference, which estimates the effect of an intervention. Predictive models can support numerical forecasts, classifications, probabilities, rankings, and risk scores.
A sound predictive project defines its unit of analysis, outcome, prediction horizon, and decision context. It uses appropriate data, prevents target leakage, validates performance on unseen cases, compares against a baseline, and selects metrics according to business costs. Prediction is not the same as explanation, and predictive association is not proof of causation. Common applications include marketing, credit, fraud, supply chains, maintenance, human resources, and health services.
Finally, predictive analytics is a governed socio-technical activity. Bias, data quality, distribution shift, privacy, security, interpretability, and human accountability must be addressed throughout the model lifecycle. The central professional principle is that a prediction is valuable only when it is sufficiently reliable, responsibly used, and connected to a well-defined decision.
Key Terms
Analytics: The systematic use of data, methods, and reasoning to support understanding or decisions.
Baseline: A simple reference method against which a predictive model is compared.
Calibration: The agreement between predicted probabilities and observed event frequencies.
Causal inference: Analysis of the effects of interventions or changes in conditions.
Classification: Prediction of a categorical outcome.
Concept drift: Change over time in the relationship between inputs and the outcome.
Diagnostic analytics: Analysis intended to investigate why an observed result occurred.
Feature: An input variable used by a predictive model.
Forecast: An estimate concerning a future value or event.
Leakage: Use of information in model development that would not be available at prediction time.
Model: A formal representation used to generate estimates or predictions.
Outcome: The target or response variable to be predicted.
Prescriptive analytics: Analysis that recommends actions under objectives and constraints.
Predictive analytics: Use of data and models to estimate likely future or unknown outcomes.
Precision: The proportion of predicted positives that are actually positive.
Probability: An estimated chance of an event under a specified context.
Recall: The proportion of actual positives correctly identified.
Target leakage: Leakage involving information derived from or revealed by the outcome.
Training data: Data used to estimate model parameters.
Validation data: Data used to select or tune a model during development.
Review Questions
5 Short Answer Questions
What is predictive analytics, and why does it not guarantee future outcomes?
Distinguish descriptive analytics from diagnostic analytics.
What are the unit of analysis and the outcome variable?
Explain target leakage and give one example.
Why is a baseline useful in predictive modeling?
5 Long Answer Questions
Compare descriptive, diagnostic, predictive, and prescriptive analytics, using a single business problem to illustrate their relationships.
Explain the difference between prediction, explanation, and causal inference. Why can a predictive feature fail to be a cause?
Describe the major stages of a predictive-analytics workflow, from problem definition through monitoring.
Discuss the principal sources of predictive-model failure, including overfitting, sampling bias, measurement error, leakage, and distribution shift.
Explain why ethical governance, fairness assessment, privacy, and human accountability are necessary in business predictive analytics.
3 Analytical / Application Questions
A retailer wants to predict product demand during a period containing a major promotion. Design the outcome, predictors, validation strategy, and performance measures. Explain how you would avoid using information that would not be known at forecast time.
A bank’s model identifies 80% of defaulters but sends offers to many customers who repay their loans. Analyze whether recall alone is sufficient for evaluating the model. What additional measures and business information are required?
An employer wants to predict employee turnover using historical performance ratings, absence records, and manager evaluations. Identify possible leakage, measurement, fairness, and causal-interpretation problems, and propose safeguards before deployment.
Multiple Choice Questions with Answers
Question 1
Which question is most directly associated with predictive analytics?
A. What happened to revenue last quarter?
B. Why did revenue decline last quarter?
C. What revenue is likely next quarter?
D. Which pricing action should management choose?
Correct Answer: C. What revenue is likely next quarter?
Question 2
What is the outcome variable in a predictive model?
A. The target that the model is designed to estimate
B. The software used to train the model
C. The population excluded from analysis
D. The rule used to format a dashboard
Correct Answer: A. The target that the model is designed to estimate
Question 3
Which situation is an example of target leakage?
A. Using customer tenure to predict churn
B. Using a post-cancellation account code to predict cancellation
C. Using last month’s sales to forecast next month’s sales
D. Using product category to predict product demand
Correct Answer: B. Using a post-cancellation account code to predict cancellation
Question 4
Which statement best distinguishes prediction from causal inference?
A. Prediction always requires a randomized experiment
B. Causal inference estimates what would happen under an intervention
C. Prediction can use only numerical variables
D. Causal inference does not require assumptions
Correct Answer: B. Causal inference estimates what would happen under an intervention
Question 5
A model produces 72 true positives and 48 false positives. What is its precision?
A. 40%
B. 60%
C. 72%
D. 80%
Correct Answer: B. 60%
Question 6
Why can accuracy be misleading for a rare-event classification problem?
A. Accuracy cannot be calculated for classifications
B. A model can achieve high accuracy by predicting the common class for nearly everyone
C. Accuracy measures only false positives
D. Accuracy is expressed in units of the outcome
Correct Answer: B. A model can achieve high accuracy by predicting the common class for nearly everyone
Question 7
Which data split is often most appropriate when predicting future demand from historical time series?
A. A chronological split
B. A split based only on alphabetical order
C. A split using future data to train the past
D. No split at all
Correct Answer: A. A chronological split
Question 8
What does calibration of predicted probabilities mean?
A. The model has the greatest possible number of features
B. Predicted probabilities correspond reasonably to observed event frequencies
C. Every prediction is exactly correct
D. The model has no false positives
Correct Answer: B. Predicted probabilities correspond reasonably to observed event frequencies
Question 9
Which is a prescriptive-analytics output?
A. A record of last month’s orders
B. A probability that a customer will churn
C. A recommendation for how much inventory to order
D. A chart of historical delivery delays
Correct Answer: C. A recommendation for how much inventory to order
Question 10
Why should a predictive model be monitored after deployment?
A. Models never change after deployment
B. New data and relationships may differ from those used during development
C. Monitoring eliminates the need for validation
D. Monitoring guarantees causal interpretation
Correct Answer: B. New data and relationships may differ from those used during development