Predictive Analytics, Machine Learning and Generative AIIntroduction and ContextHR analytics has progressed from reporting what happened to estimating what may happen and supporting decisions about what should happen next. Predictive analytics uses historical and current data to estimate future outcomes, such as employee attrition, absence, performance, staffing demand or recruitment success. Machine learning (ML) supplies many of the statistical and computational methods used to create these predictions. Generative artificial intelligence (GenAI), in contrast, produces or transforms content—such as text, summaries, interview guides, learning plans or natural-language answers. These technologies can improve HR decision-making, but they do not remove managerial responsibility. A model identifies statistical patterns; it does not establish causation, understand every organizational circumstance or determine what is ethically appropriate. The central professional challenge is therefore sociotechnical: HR specialists must combine data science with employment law, organizational knowledge, human judgment, employee voice and governance. Learning ObjectivesBy the end of this chapter, students should be able to: - Distinguish supervised, unsupervised and generative learning.
- Explain data preparation, model training, validation and testing.
- Interpret common classification, regression and clustering measures.
- Evaluate HR applications including attrition prediction, skills inference and HR copilots.
- Identify risks involving bias, explainability, privacy, model drift and automation.
- Design a responsible human-oversight and governance process.
1. The Machine-Learning Problem in HRA machine-learning system learns a relationship between input variables and an outcome from data. In HR, inputs may include tenure, role family, pay position, schedule, learning participation, engagement responses or labor-market information. Outcomes may include whether an employee leaves within six months, the number of absence days or a group of similar skills profiles. A useful distinction is between a descriptive variable, which records an observed characteristic, and a target or label, which is the outcome the model is trained to estimate. For example, “manager changes in the past year” may be a feature, while “voluntary resignation within six months” is the target. Features must be available at the moment the prediction is made. Using information created after that moment is data leakage and can make performance appear falsely strong. The analytical objective must also be specified. “Predict flight risk” is too vague. A more defensible objective is: “Estimate the probability that an active employee will voluntarily leave during the next 180 days, using information available on the prediction date, to prioritize supportive retention conversations.” The latter defines the population, time horizon, outcome and intended intervention. 2. Supervised, Unsupervised and Generative LearningSupervised learningIn supervised learning, historical cases contain both features and known outcomes. The algorithm learns a function that maps features to an outcome. Classification predicts categories, such as leave/stay or completed/not completed. Regression predicts a numerical value, such as expected absence days or time to fill. For a binary classifier, the model may output a probability p̂ᵢ that employee i belongs to the positive class. A decision threshold converts probability into an action or category. A threshold of 0.50 is not automatically appropriate: it should reflect intervention capacity, the relative costs of missed cases and false alarms, and fairness considerations. A common classification model is logistic regression. Its general form is: p̂ = 1 ÷ [1 + exp(−(β₀ + β₁x₁ + β₂x₂ + … + βₖxₖ))] Here p̂ is the estimated probability of the outcome, xⱼ is feature j, β₀ is the intercept, βⱼ is the coefficient for feature j, k is the number of features, and exp is the exponential function. The model assumes that the log-odds of the outcome are a linear combination of the predictors; it does not assume that the probability itself is linear. Coefficients describe associations conditional on the other variables, not necessarily causal effects. For regression, a model predicts a numerical value ŷ. Mean absolute error is: MAE = (1 ÷ n) × ∑ᵢ₌₁ⁿ |yᵢ − ŷᵢ| where n is the number of test cases, yᵢ is the observed value and ŷᵢ is the prediction. MAE has the same units as the target, making it relatively easy to interpret. It treats all absolute errors proportionally and is less sensitive to extreme errors than squared-error measures. Unsupervised learningUnsupervised learning uses data without a predefined target. Clustering can identify groups of employees with similar patterns, such as learning preferences or work arrangements. Dimensionality-reduction methods can summarize many correlated variables for exploration or visualization. K-means clustering illustrates the idea. Given k clusters, the algorithm assigns each observation to the nearest centroid and updates each centroid to the mean of its assigned observations. It seeks to minimize within-cluster squared distance: J = ∑ᵢ₌₁ⁿ ||xᵢ − μc(i)||² Here xᵢ is the feature vector for observation i, c(i) is its assigned cluster, μ_{c(i)} is that cluster’s centroid, and ||·||² is squared Euclidean distance. K-means is sensitive to feature scaling, outliers and the selected value of k. Clusters are mathematical groupings, not automatically meaningful employee segments; HR professionals must test whether they are stable, interpretable and useful. Generative AIGenerative models learn statistical structure in data and generate new content. Large language models (LLMs) generate text by predicting tokens in context. An HR copilot may summarize policy documents, draft communications, translate materials or help a practitioner search an approved knowledge base. Generative output is probabilistic and may be fluent but incorrect. Risks include hallucinated facts, disclosure of confidential information, reproduction of biased language, inadequate citation and excessive automation of sensitive decisions. A copilot should therefore assist a qualified user rather than independently make employment decisions. 3. From Data to a Validated ModelA responsible workflow is iterative rather than a one-time technical exercise. Define the decision and the targetSpecify the decision, affected population, prediction horizon, intervention and success criteria. Consider whether prediction is necessary at all. If a simple rule or improved process solves the problem, a complex model may add unjustified risk. Prepare and govern the dataData preparation includes checking missingness, duplicate records, inconsistent coding, outliers, changing definitions and sampling bias. Sensitive attributes may be needed for fairness auditing even when they are excluded from prediction. Removing a protected attribute does not remove its proxies: location, career history or working pattern may encode demographic differences. Data must be collected for a legitimate purpose, accessed only by authorized people and retained according to policy and applicable law. Employee-generated text, collaboration metadata and inferred traits require particular caution because their collection may be unexpected or disproportionate. Partition and trainData is commonly divided into training, validation and test sets. The training set estimates model parameters; the validation set supports model selection and threshold tuning; the test set is held back for final evaluation. For time-dependent HR data, a chronological split is usually more realistic than random splitting: train on earlier periods and test on a later period. Cross-validation repeatedly partitions the training data to estimate performance under different samples. It should not allow records from the future to enter a past training fold. If employees have repeated records, splits should also prevent the same person—or closely related records—from appearing in both training and test data when that would inflate performance. Overfitting occurs when a model learns noise or peculiarities of the training sample rather than general patterns. A model may have high training accuracy and weak performance on new employees. Regularization, simpler models, adequate sample size, careful feature selection and honest validation help reduce this problem. Evaluate discrimination and calibrationA confusion matrix classifies predictions against actual outcomes: | Actual positive | Actual negative |
|---|
| Predicted positive | True positive (TP) | False positive (FP) | | Predicted negative | False negative (FN) | True negative (TN) |
Important measures include: Precision = TP ÷ (TP + FP) Precision is the proportion of flagged cases that are actually positive. Recall = TP ÷ (TP + FN) Recall, also called sensitivity, is the proportion of actual positive cases detected. Specificity = TN ÷ (TN + FP) Specificity is the proportion of actual negative cases correctly not flagged. Accuracy = (TP + TN) ÷ (TP + TN + FP + FN) Accuracy can be misleading with imbalanced outcomes. If only 5% of employees leave, a model that predicts “stay” for everyone has 95% accuracy but zero recall for leavers. Precision, recall, the precision–recall curve and the operational cost of errors are more informative. The F1 score is the harmonic mean of precision and recall: F1 = 2 × (Precision × Recall) ÷ (Precision + Recall) It is useful when both types of error matter, but it does not incorporate monetary or human consequences and should not be treated as a universal objective. Calibration asks whether predicted probabilities correspond to observed frequencies. Among cases assigned a probability near 0.70, approximately 70% should experience the outcome if the model is well calibrated in that population and time period. Discrimination and calibration are different: a model may rank cases well but produce poorly calibrated probabilities. Assess fairnessPerformance should be examined across relevant groups and intersections, subject to privacy and statistical reliability. A selection-rate comparison is often summarized by the disparate-impact ratio: DIR = selection rate for Group A ÷ selection rate for Group B The selection rate is the proportion receiving a positive classification or opportunity. The ratio is descriptive, not a complete legal test; legal standards vary by jurisdiction and context, and legitimate analysis requires expert advice. Fairness criteria can conflict. For example, equalizing error rates, calibration and selection rates simultaneously is generally impossible when groups have different base rates. The appropriate response is not to conceal the conflict but to document the chosen criterion, consult stakeholders and assess consequences. 4. HR Use CasesAttrition predictionAttrition models can identify populations for supportive action, such as career discussions, workload review, manager coaching or development opportunities. They should not label individuals as disloyal, deny promotion or justify surveillance. The model’s output is a risk estimate, not a diagnosis. Interventions should be voluntary where possible and designed to improve conditions rather than pressure employees to remain. A sound evaluation asks whether the intervention changes retention or employee experience, not merely whether the model predicts departures. Randomized or quasi-experimental evaluation may be appropriate when ethical and feasible. Otherwise, pre–post comparisons must be interpreted cautiously because employees who receive support may differ systematically from those who do not. Skills inferenceSkills inference extracts or estimates skills from résumés, job histories, project records, learning activity or work samples. It can support internal mobility and workforce planning, especially where job titles are inconsistent. However, absence of evidence is not evidence of absence. Informal work, caregiving-related interruptions, language variation and unequal access to projects can produce systematically incomplete profiles. Skills taxonomies should be reviewed by job experts and employees. Inferred skills should carry confidence levels and provenance—for example, “self-reported,” “demonstrated in assessed work” or “inferred from text.” Employees should be able to correct records and challenge consequential inferences. HR copilotsAn HR copilot may answer questions from an approved policy repository, draft an onboarding plan, summarize survey comments, produce interview questions or generate a first version of a learning pathway. Retrieval-augmented generation can constrain answers by retrieving relevant organizational documents, but retrieval does not guarantee that the source is current or that the generated answer is correct. Controls should include permission-aware retrieval, source citations, version-controlled policies, logging, prompt and output testing, privacy filtering, human review and a clear escalation path. A copilot should not independently rank candidates, determine disciplinary outcomes, infer protected characteristics or provide definitive legal advice. 5. Explainability, Oversight and Model DriftExplainability has several meanings. A global explanation describes overall model behavior; a local explanation describes why a particular case received an output; and a process explanation describes data sources, governance, limitations and intended use. Feature importance is not automatically a causal explanation. A variable may be predictive because it is a proxy, because it reflects an upstream inequity or because of data artifacts. Human oversight must be substantive, not a rubber stamp. The reviewer needs authority, time, relevant context, training and a way to override the system. The system should present uncertainty, evidence and limitations rather than a single authoritative score. High-impact actions—such as termination, disciplinary sanction, compensation determination or rejection from employment—require heightened review and should not be delegated solely to an algorithm. Model drift occurs when performance changes after deployment. Data drift means the distribution of inputs changes; concept drift means the relationship between inputs and outcomes changes; label drift means the prevalence of the outcome changes. A new pay policy, reorganization, economic shock, remote-work pattern or change in data collection can cause drift. Monitoring should include performance by time period and group, calibration, missingness, input distributions, override rates, complaint patterns and unintended outcomes. A documented response plan should specify alert thresholds, investigation owners, retraining conditions, rollback procedures and communication responsibilities. Retraining is not automatically the remedy: if the underlying process is unfair or the target definition has changed, the organization may need to redesign the intervention or retire the model. 6. Responsible Adoption and GovernanceResponsible adoption combines principles with operational controls. | Governance question | Practical control |
|---|
| Is the use necessary and proportionate? | Document purpose, alternatives and impact assessment. | | Is the data lawful and appropriate? | Establish provenance, access rules, retention and privacy review. | | Can people understand and challenge it? | Provide plain-language notices, explanations and appeal routes. | | Is performance acceptable? | Validate prospectively, test subgroups and monitor after launch. | | Who is accountable? | Name a business owner, technical owner, HR reviewer and escalation authority. | | What happens when it fails? | Maintain logs, incident response, rollback and model retirement procedures. |
A model inventory should record purpose, owner, data sources, target definition, version, affected groups, validation results, known limitations, review date and approved uses. Change management is essential: changing a feature, threshold, vendor, policy source or workflow can change the system’s risk profile. Regulatory requirements differ across countries and may include data-protection, employment, anti-discrimination, automated-decision and records obligations. Organizations should obtain jurisdiction-specific legal advice. Compliance is a minimum condition, not a substitute for ethical judgment. Transparency, contestability, proportionality, data minimization, security and non-discrimination are useful design principles across contexts. Illustrative Case: Northstar Services’ Retention ProgrammeBackgroundNorthstar Services, a fictional customer-support organization, experienced rising voluntary turnover among new supervisors. HR proposed a model to identify supervisors likely to leave within six months. ProblemThe initial dataset included tenure, pay position, overtime, training completion, engagement responses and manager changes. A preliminary model showed strong accuracy but used “complaint escalation” and a location variable that closely tracked a historically disadvantaged site. The target also included all exits, although the proposed intervention was intended for voluntary resignation. AnalysisThe analytics team examined the data chronologically, separated repeated employee records by person, corrected the target definition and tested performance across sites and demographic groups where lawful and statistically feasible. It found that the high accuracy partly reflected leakage: a field entered during the resignation process had been available in historical records but would not be available at the time of intervention. After removal, performance decreased, but calibration improved and the results were more realistic. Approach and solutionNorthstar replaced individual “risk labels” with a team-level diagnostic dashboard and offered supervisors confidential career conversations, workload reviews and development planning. Individual predictions were not shown to line managers. A human review panel evaluated proposed interventions, and employees received a notice explaining that workforce data supported planning and that records could be corrected. The model was piloted for one quarter with a predefined evaluation plan. The organization monitored retention, participation, workload, subgroup outcomes, complaints and false-positive burden. It also compared the programme with similar units that had not yet received the intervention, while recognizing that this was not a fully randomized experiment. OutcomeThe pilot produced fewer intrusive interventions and better documentation than the original proposal. Northstar concluded that the model was useful as an early-warning input, but not sufficiently reliable for individual employment decisions. It retained the dashboard with quarterly review and a sunset clause if benefits did not exceed harms. Learning pointsThe case demonstrates that removing leakage can lower headline performance while increasing validity; that a useful prediction is not necessarily a justified decision; and that governance, target definition, intervention design and evaluation are as important as algorithm selection. Best-Practice Checklist- Define a specific decision, target, horizon and intervention.
- Establish a lawful, necessary and documented data basis.
- Prevent leakage and use time-aware validation where appropriate.
- Compare a transparent baseline with more complex models.
- Report discrimination, calibration, subgroup performance and uncertainty.
- Treat sensitive attributes as important for auditing, even when excluded from prediction.
- Design human review with real authority and an appeal mechanism.
- Use GenAI only with approved sources, access controls and output verification.
- Monitor drift, overrides, complaints and downstream outcomes.
- Set review, retraining, rollback and retirement criteria before deployment.
Chapter SummaryPredictive analytics estimates future HR outcomes, while machine learning provides supervised and unsupervised methods for learning patterns from data. Supervised learning requires defined labels and includes classification and regression; unsupervised learning identifies structure without a target; generative AI produces content and requires especially careful verification. Reliable modelling depends on clear objectives, valid data, leakage prevention, appropriate splitting, training, validation and honest testing. Accuracy alone is inadequate: precision, recall, specificity, F1, calibration and subgroup analysis provide a fuller assessment. Attrition prediction, skills inference and HR copilots can support better decisions when their purposes are limited and their outputs are treated as evidence rather than truth. Explainability, human oversight, privacy, fairness, monitoring and model-drift management are essential. Responsible adoption is an ongoing governance process involving accountability, transparency, contestability and the willingness to modify or retire systems that cause more harm than benefit. Key TermsArtificial intelligence: Computational systems that perform tasks associated with human intelligence. Calibration: Agreement between predicted probabilities and observed outcome frequencies. Classification: Supervised learning that predicts categories. Concept drift: Change in the relationship between predictors and the outcome over time. Data leakage: Use of information unavailable at prediction time or improperly shared across evaluation partitions. Discrimination: A model’s ability to rank or distinguish cases with different outcomes. Feature: An input variable used by a model. Generative AI: AI that creates or transforms content such as text, images or code. Hallucination: Fluent but unsupported or incorrect generated content. Human oversight: Meaningful review and control by accountable people. Machine learning: Methods that learn patterns from data to make predictions or generate outputs. Model drift: Decline or change in model validity after deployment. Precision: The proportion of positive predictions that are correct. Recall: The proportion of actual positive cases detected. Regression: Supervised learning that predicts a numerical outcome. Supervised learning: Learning from examples with known outcomes. Unsupervised learning: Learning patterns from data without a predefined target. Validation set: Data used to select, tune or compare models before final testing. Explainability: The ability to communicate how a model or process produces an output. Review Questions5 Short Answer Questions- What is the difference between a feature and a target?
- Why can accuracy be misleading in attrition prediction?
- Distinguish precision from recall.
- What is data leakage, and why does it matter?
- Name two controls required for a responsible HR copilot.
5 Long Answer Questions- Explain the full workflow from defining an HR prediction problem to post-deployment monitoring.
- Compare supervised learning, unsupervised learning and generative AI, giving one HR example of each.
- Discuss why fairness criteria may conflict and how an HR analytics team should respond.
- Evaluate the benefits and risks of using machine learning for skills inference.
- Explain model drift and develop a monitoring and retirement plan for an attrition model.
3 Analytical / Application Questions- An attrition model has high accuracy but very low recall because only 4% of employees leave. Diagnose the problem and recommend a more informative evaluation approach.
- Design a human-oversight process for an HR copilot that answers questions about leave policies and drafts employee communications.
- Using the Northstar case, identify the leakage risk, the fairness concern and two reasons why team-level interventions may be more responsible than individual risk labels.
Multiple Choice Questions with AnswersQuestion 1Which situation is an example of supervised learning? A. Grouping employees by similarity without an outcome label B. Predicting voluntary resignation from historical cases with known resignation outcomes C. Generating a draft onboarding email from a prompt D. Reducing many survey variables to two dimensions Correct Answer: B. Predicting voluntary resignation from historical cases with known resignation outcomes Question 2What is data leakage in an HR prediction model? A. A missing value in an employee record B. A feature that has been standardized before modelling C. Using information that would not be available when the prediction is made D. A model with too few variables Correct Answer: C. Using information that would not be available when the prediction is made Question 3Recall is the proportion of: A. Predicted positive cases that are truly positive B. Actual positive cases that the model detects C. Actual negative cases that the model detects D. All predictions that are correct Correct Answer: B. Actual positive cases that the model detects Question 4Why may accuracy be inappropriate as the only metric for attrition prediction? A. Accuracy cannot be calculated for classification B. Attrition outcomes may be rare, allowing a trivial model to appear accurate C. Accuracy always measures fairness D. Accuracy is only used for regression Correct Answer: B. Attrition outcomes may be rare, allowing a trivial model to appear accurate Question 5Which statement best describes calibration? A. Whether the model uses a linear algorithm B. Whether predicted probabilities correspond to observed frequencies C. Whether all employee groups have identical sizes D. Whether a model has no missing values Correct Answer: B. Whether predicted probabilities correspond to observed frequencies Question 6What is a principal risk of unsupervised clustering in HR? A. It always requires a legally defined target B. It proves that identified groups have causal meaning C. Mathematical clusters may be unstable or lack a useful organizational interpretation D. It cannot process numerical data Correct Answer: C. Mathematical clusters may be unstable or lack a useful organizational interpretation Question 7Which is the most appropriate role for an HR copilot? A. Making final termination decisions without review B. Independently ranking candidates using undisclosed criteria C. Drafting a policy summary from approved sources for qualified HR review D. Inferring protected characteristics from employee messages Correct Answer: C. Drafting a policy summary from approved sources for qualified HR review Question 8Concept drift occurs when: A. The relationship between predictors and the outcome changes over time B. A file is stored in two locations C. A model has more than one feature D. The training set contains numerical variables Correct Answer: A. The relationship between predictors and the outcome changes over time Question 9Why should a model be evaluated on a time-separated test set for some HR applications? A. To guarantee perfect accuracy B. To simulate prediction on future cases and reduce unrealistic information sharing C. To remove the need for a validation set D. To ensure all outcomes are equally common Correct Answer: B. To simulate prediction on future cases and reduce unrealistic information sharing Question 10Which practice demonstrates substantive human oversight? A. Requiring a manager to click approval without seeing evidence B. Allowing an accountable reviewer to examine context, challenge the output and override it C. Hiding model uncertainty from decision-makers D. Automatically applying the model’s threshold to every employee Correct Answer: B. Allowing an accountable reviewer to examine context, challenge the output and override it
|