Specialty · Data, analytics and markets

Actuarial data science

The data scientist builds models that learn from millions of records; the actuary answers for the financial consequences of those models. This specialty brings the two together: data engineering and machine learning with the rigor of someone who signs a technical note and knows that a calibration error is paid for in claims, reserves and capital.

2025
New LFPDPPP published in the DOF
Annex III
AI Act: life and health
MLOps
From notebook to production
OverviewFunctionsTechniquesRegulationCase studyCareerSkillsCertificationTrendsFAQFurther reading
01

Overview of the specialty

Actuarial data science is the disciplined application of statistical learning and machine learning to risk problems: pricing, underwriting, reserving, claims, collections, fraud and retention. What sets it apart from generic data science is the loss function that matters. A movie recommendation model only needs to get the ranking right; a claim frequency model must have an aggregate level that reconciles with experience, be stable under changes in portfolio mix and produce results that can be justified to a regulator, an auditor and a board of directors.

The actuarial profession has always worked with data: Bühlmann credibility is a form of regularization, and generalized linear models have been used in pricing for decades. What is new is the scale (policy, claim and event databases with hundreds of millions of rows), the variety (text from medical reports, damage images, vehicle telemetry, geolocation) and the velocity (models that are refit every week and consumed via API in the quoting engine). That calls for skills that used to live in IT departments: version control, process orchestration, containers and cloud computing.

In Mexico the specialty is growing on three fronts. Large insurers and financial groups have built advanced analytics units that feed pricing, automated underwriting in medical expense and auto insurance, and collections and retention models. Insurtechs and bancassurance platforms sell online and depend on real-time models. And the risk-based supervisory framework of the LISF (Insurance and Surety Institutions Law) requires every material model to sit within the institution's corporate governance system, with controls, documentation and clear ownership.

That is why the convergence between actuary and data scientist is real but asymmetric. The data scientist usually has stronger software engineering skills; the actuary brings risk theory, product knowledge, regulation and professional responsibility for the result. The strongest teams combine both profiles, and an actuary who codes fluently becomes the natural bridge between model, business and supervisor. To go deeper into the fundamentals, see Actuar.IA.

02

Key functions

01

Data engineering and pipelines

Designs reproducible flows that extract policies, claims, collections and external sources, clean them and consolidate them into analytical tables at exposure granularity (policy by period). Defines automated quality tests: counts against accounting, written premiums against the financial statements, valid ranges and duplicates. A pipeline without these tests produces models that fail silently.

02

Feature engineering

Turns raw data into predictors with risk meaning: customer tenure, claims history over rolling windows, geographic indices by postal code, payment behavior variables. Guards against target leakage, for example using a variable that only exists after the claim, which is the most common cause of models that look brilliant in development and are useless in production.

03

Training and validation

Trains GLMs, GAMs, random forests, gradient boosting or neural networks and chooses among them with cross-validation, out-of-time temporal splits and metrics aligned with the problem: Poisson or Tweedie deviance for frequency and severity, AUC and calibration for probabilities. Controls overfitting with regularization, early stopping and complexity limits.

04

Deployment and MLOps

Takes the model from notebook to production: packaging, versioning of both the model and the data, unit tests, batch or API deployment, and traceability of which version scored each policy. Automates retraining and leaves a rollback path in case the new version misbehaves.

05

Model monitoring and governance

Monitors data drift (PSI by variable and by score), calibration against actual experience and performance by segment. Maintains the model inventory, each model's risk tier, its documentation and the evidence of independent validation required by the institution's corporate governance system.

06

Bias, fairness and explainability

Measures whether the model produces systematically different outcomes for protected groups or through variables that act as proxies, and documents the technical justification for each variable. Uses SHAP, partial dependence and permutation importance to explain individual and global decisions to underwriters, auditors and customers.

03

Techniques, models and formulas

The technical repertoire runs from classical statistics to deep learning, but in insurance the practical rule is clear: use the simplest model that captures the signal, and any gain from a complex model must be demonstrated out of sample and outweigh its cost of explanation and maintenance. Many teams use a GBM to discover interactions and then build them into a GLM or GAM that can be filed and audited.

Cross-validation and out-of-time validation

K-fold cross-validation estimates the generalization error by training K times and evaluating on the held-out fold. In insurance it is complemented with an out-of-time sample (the most recent year), because inflation, product changes and portfolio mix mean the future does not resemble a random draw from the past.

Regularization (Lasso, Ridge, elastic net)

Penalizes the size of the coefficients to reduce variance and select variables. It is the modern equivalent of credibility: it pulls estimates based on little information toward the collective mean. It is used in GLMs with many levels (vehicle makes and models, postal codes).

Gradient boosting (XGBoost, LightGBM, CatBoost)

Tree ensembles that sequentially correct the errors of the previous model. They are the standard for tabular data and support Poisson, Gamma and Tweedie loss functions. They require strict control of depth, learning rate and number of iterations to avoid memorizing noise.

Interpretable models (GAM, EBM)

Generalized additive models and explainable boosting machines capture nonlinearities with per-variable curves that an underwriter can read. They are a natural choice when the rate must be filed in a technical note or when the decision affects customer rights.

Explainability (SHAP, PDP, ICE)

SHAP values allocate the prediction among the variables based on cooperative game theory; partial dependence plots show the average effect of a variable. They help validate that the model learned plausible risk relationships and answer why an application was declined or surcharged.

Text processing and generative AI

Language models extract information from medical reports, claim statements and emails and turn it into structured variables. Their use requires additional controls: sensitive personal data, hallucinations and source traceability.

K-fold cross-validation error
\[\mathrm{CV}_{(K)}=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{i\in F_k}L\big(y_i,\hat f^{(-k)}(x_i)\big)\]

Fk is the k-th fold with nk observations, f̂(-k) is the model trained without that fold and L is the loss function (for example, Poisson deviance). A training error much lower than the CV error indicates overfitting.

Population stability index (PSI)
\[\mathrm{PSI}=\sum_{i=1}^{B}(a_i-e_i)\ln\frac{a_i}{e_i}\]

ei is the proportion of cases in bin i during development, ai the proportion observed in production and B the number of bins. By industry convention, below 0.10 is considered stable, 0.10 to 0.25 warrants review and above 0.25 indicates a major shift.

Penalized estimation (elastic net)
\[\hat\beta=\arg\min_{\beta}\Big\{-\ell(\beta)+\lambda\big[\alpha\lVert\beta\rVert_1+\tfrac{1-\alpha}{2}\lVert\beta\rVert_2^2\big]\Big\}\]

The first term is the negative GLM log-likelihood, λ controls the strength of the penalty and α blends Lasso (α = 1, selects variables) and Ridge (α = 0, shrinks coefficients). Both parameters are chosen by cross-validation.

04

Regulatory framework in Mexico

LISF art. 69 · Corporate governance and the actuarial function

The LISF requires institutions to maintain an effective corporate governance system with explicit policies on enterprise risk management, internal control, the actuarial function and outsourcing to third parties. A model that prices, underwrites or reserves falls within that system: it must have an owner, documentation, validation and controls, and if it runs on a vendor's cloud, the outsourcing arrangement is governed as well.

LISF arts. 200 and 201 · Technical notes

Net risk premiums must be determined on technical bases, and the technical note must be prepared by an actuary with a cédula profesional and current certification. If a machine learning model plays a role in the premium, the actuary must be able to describe its procedure and justify adequacy: a model that cannot be explained can hardly be filed.

LFPDPPP 2025 · Personal data protection

The new Ley Federal de Protección de Datos Personales en Posesión de los Particulares (Federal Law on the Protection of Personal Data Held by Private Parties) was published in the DOF on March 20, 2025 and transferred the supervisory authority to the Secretaría Anticorrupción y Buen Gobierno (Ministry of Anti-Corruption and Good Governance). It recognizes the right to object when automated processing, without human intervention, evaluates aspects such as economic situation or health status and produces significant effects: exactly the case of automated underwriting.

EU AI Regulation · Annex III

The AI Act classifies as high-risk the AI systems intended for risk assessment and pricing of natural persons in life and health insurance. It affects European insurance groups with subsidiaries in Mexico and has become a benchmark for good practice: risk management, data quality, technical documentation and human oversight.

IAA · AI governance framework (2025)

In November 2025 the International Actuarial Association published an educational AI governance framework covering the full life cycle: design, development, approval, implementation, monitoring and retirement, with human oversight at every stage. It is not a mandatory standard, but it gives structure to the work of the actuary who validates models.

05

Case study: validating and monitoring a lapse model in medical expense insurance

An insurer has 40,000 individual major medical expense policies and wants to predict which ones will not renew in order to target retention actions. The team compares two gradient boosting models with 5-fold cross-validation, puts the winner into production and reviews its behavior six months later. The performance metrics are illustrative; the monitoring arithmetic is exact.

  1. Comparison in development: the deep GBM (trees of depth 10, no early stopping) achieves an AUC of 0.91 in training and 0.74 in cross-validation, a gap of 0.17. The regularized GBM (depth 3, learning rate 0.05, early stopping) achieves 0.79 and 0.77, a gap of 0.02. The regularized model is chosen: it generalizes better and is more stable.
  2. Score drift at six months: in development each score quintile held 20% of the portfolio; in production the proportions are 12%, 17%, 20%, 23% and 28%. The terms (ai-ei)ln(ai/ei) are 0.0409, 0.0049, 0, 0.0042 and 0.0269, so the PSI is 0.077: below 0.10, the score distribution is considered stable.
  3. Calibration: the model predicted an average lapse rate of 8.0%, that is, 3,200 policies out of 40,000. The observed rate was 10.4%, that is, 4,160 policies: 960 more lapses than expected and an actual-to-expected ratio of 1.30.
  4. Diagnosis: the population did not change much, but the relationship between the variables and the outcome did (concept drift). At renewal, a premium adjustment for medical inflation was applied that was larger than anything seen in the training data, and the premium increase variable fell outside its historical range.
  5. Immediate action: recalibrate the intercept of the logistic model. The odds go from 0.08/0.92 = 0.0870 to 0.104/0.896 = 0.1161, so ln(0.1161/0.0870) = 0.289 is added to the logit. Structural action: retrain with the new experience, register the version, record the incident in the model inventory and present the validation to the relevant committee.
Lesson: A low PSI does not guarantee that the model is still correct: it measures changes in the population, not in the relationship between the variables and the outcome. Actuarial monitoring always compares predicted against observed, by segment and in monetary terms.
06

Where they work and how they grow

Data analyst (0 to 3 years)

Builds SQL extracts, cleans policy and claim databases, prepares analytical tables and trains baseline models under supervision. Learns version control, data quality testing and how to document each step so that someone else can reproduce it.

Data scientist (3 to 6 years)

Owns end-to-end models: defines the problem with the business, designs features, chooses and validates the model and deploys it with engineering. Presents results to underwriting, claims or sales and takes part in validating other people's models.

Lead or senior data scientist (6 to 10 years)

Coordinates a team and a portfolio of models, sets validation and MLOps standards, prioritizes use cases by economic value and answers to audit and the corporate governance system for the models in their area.

Head of analytics or data (10 years or more)

Defines the institution's data and AI strategy, the technology architecture and the model governance framework. Translates analytical capabilities into advantages in pricing, underwriting and customer experience, and engages with the board and the supervisor.

Typical employers in Mexico
  • Life, medical expense, auto and property insurers with advanced analytics units
  • Banks and financial groups (credit risk, collections, bancassurance)
  • Reinsurers and reinsurance brokers with modeling teams
  • Actuarial consultancies and audit and advisory firms (Big Four)
  • Insurtechs, fintechs and digital insurance distribution platforms
  • Afores and fund managers (saver behavior models)
  • Regulators and the central bank (CNSF, CNBV, Banxico, CONSAR) in risk and statistics units
  • Retail, telecommunications and healthcare companies with risk and retention problems
Common job titles
Actuarial data scientistActuarial data analystMachine learning engineerData engineerIndependent model validatorModel risk managerAdvanced analytics leadChief Data Officer
07

Skills and tools

Technical

Statistics and inference, GLM and GAMSupervised learning: trees, ensembles and neural networksCross-validation, calibration and business metricsFeature engineering and leakage preventionBias measurement and explainability (SHAP, PDP)Risk theory, pricing and reservingDrift monitoring and model governance

Tools

Python (pandas, scikit-learn, XGBoost, LightGBM)R (tidyverse, glmnet, mgcv)SQL and analytical databases (PostgreSQL, Snowflake, BigQuery)Spark or Databricks for large volumesGit, Docker and orchestrators (Airflow)MLflow or another model registryCloud: AWS, Azure or Google Cloud

Personal

Translating a business problem into a measurable objective functionCommunicating results to non-technical audiencesSkepticism toward results that look too goodRigorous, reproducible documentationEthical judgment on the use of personal data
08

Certification and training

SOA · ATPA and the Data Science for Actuaries micro-credential

The Society of Actuaries replaced the IFM exam with Advanced Topics in Predictive Analytics (ATPA) on the path to ASA, in response to employer demand for analytics. Passing ATPA and its e-Learning module earns the Data Science for Actuaries micro-credential.

CAS Institute · Certified Specialist in Predictive Analytics (CSPA)

A credential from the Casualty Actuarial Society's affiliate with three exams (property and casualty insurance fundamentals, data and visualization, predictive modeling), a case study project and an ethics course.

Master's in Data Science

Programs such as ITAM's Master's in Data Science go deeper into machine learning, large-scale computing and advanced methods. They complement an undergraduate actuarial degree with engineering and software skills.

CONAC certification

Although it is not a data science credential, certification by the Colegio Nacional de Actuarios remains essential for signing technical notes and reserve valuations: it is what turns a good model into a product that can be filed. See Certification.

09

Trends that are changing the field

01

AI-specific regulation

The European AI Act, the NAIC model bulletin and the IAA's AI governance framework converge on the same requirements: model inventory, discrimination testing, documentation and human oversight. The CNSF and CONDUSEF (National Commission for the Protection of Financial Services Users) can be expected to develop similar criteria, and the actuary who already documents this way will have an advantage.

02

Generative AI in actuarial processes

Language models are already used to read medical reports, classify claims, draft technical notes and generate code. The actuarial challenge is to validate their outputs, control sensitive data and measure the error of a component that is not deterministic.

03

Interpretable-by-design models

The use of GAMs, EBMs and GLMs enriched with interactions discovered through boosting is growing, in place of black boxes explained after the fact. The reason is practical: they are easier to file, audit and defend before a customer exercising the right to object.

04

Privacy and synthetic data

The new LFPDPPP and restrictions on health data are driving anonymization techniques, synthetic data and federated learning, which make it possible to train models without moving personal data between entities in the same group or between insurer and vendor.

10

Frequently asked questions

Do I need to be an actuary to work in data science in insurance?
It is not required to code or train models, but it is required to sign technical notes and regulated valuations. In practice, an actuary with programming skills has an advantage because they understand the structure of policy and claim data, exposure and the regulatory implications of a model.
Python or R?
Both are used in the industry. R retains advantages in statistics and in actuarial packages such as ChainLadder or StMoMo; Python dominates in engineering, deployment and deep learning. The best approach is to master one thoroughly, read the other comfortably and handle SQL without depending on anyone.
What is overfitting and how do I detect it?
It is when the model learns the noise in the training sample and loses the ability to generalize. It is detected by comparing the training error with the error in cross-validation or in an out-of-time sample: a large gap is the signal. It is controlled with regularization, early stopping and simpler models.
Can a machine learning model discriminate even if it does not use sex or age?
Yes. Variables such as postal code, device type or payment behavior can act as proxies for protected characteristics. That is why outcomes are measured by group, the risk rationale for each variable is documented and fairness is reviewed before and after deployment.
11

Further reading

PreviousHuman CapitalNextPredictive Analytics

Explore all 16 specialties

Each field has its own theory, regulation and growth path. Compare them and find yours.

Specialties overviewInteractive calculators