Welcome to the Foundation of Predictive Analytics!

Hi there! Before you start writing code or building complex models for Exam PA, you need to understand exactly what kind of problem you are trying to solve. Think of this chapter as the "Blueprinting Phase." Just like an architect wouldn't start building without a plan, an actuary shouldn't start modeling without defining the characteristics of the problem.

In this section, we will learn how to identify the nature of the data, the goal of the model, and the constraints we face. Don't worry if some of these terms are new—we’ll break them down piece by piece!


1. The Heart of the Problem: Supervised vs. Unsupervised Learning

The first thing you need to ask yourself is: "Do I have a specific target I’m trying to predict?"

Supervised Learning

In Supervised Learning, we have a "teacher" (the target variable). We provide the model with inputs (features) and the known outcome (the label). The model learns the relationship between them so it can predict outcomes for new, unseen data.

Analogy: Imagine teaching a child to identify fruit. You show them an apple and say, "This is an apple." You show them an orange and say, "This is an orange." This is supervised learning because you provided the labels.

Unsupervised Learning

In Unsupervised Learning, there is no target variable. We are simply looking for patterns or clusters within the data itself.

Analogy: You give a child a bucket of mixed blocks and tell them to "put things that look alike together." They might group them by color or shape without you telling them what each group is called.

Quick Review: Most Exam PA problems are Supervised Learning tasks because as actuaries, we usually want to predict something specific, like claim costs or policy lapses.


2. Regression vs. Classification (The Target Variable)

Once we know we are doing supervised learning, we must determine the type of target variable we are dealing with. This is one of the most important steps in Exam PA!

Regression (Continuous Targets)

We use Regression when the target variable is numeric and continuous. If you can measure it and it has a meaningful order (like money or time), it’s likely a regression problem.

Examples:
- Predicting the dollar amount of an insurance claim.
- Estimating the time it takes to settle a legal case.
- Calculating the loss ratio for a book of business.

Classification (Categorical Targets)

We use Classification when the target variable belongs to a discrete category or "class."

Examples:
- Will a customer Renew or Lapse? (Binary Classification: Yes/No)
- Is a claim Fraudulent or Legitimate?
- Which "Risk Tier" does a driver fall into: Low, Medium, or High? (Multi-class Classification)

Did you know? Sometimes the lines can blur. For example, you might treat "Age" as a continuous number (Regression) or group it into "Age Brackets" like 18-25, 26-40, etc. (Classification). The choice depends on your business goal!


3. Prediction vs. Interpretation: The Great Trade-off

When defining a predictive modeling problem, you must decide what matters more: Accuracy or Understanding.

The Predictive Goal (The "Black Box")

Sometimes, we only care about getting the most accurate prediction possible. If a model predicts claim costs perfectly but we don't really know why it made those choices, that might be okay for certain automated systems.

The Interpretative Goal (The "Clear Box")

As actuaries, we often need to explain our results to stakeholders or regulators. We need to know which features (like age or location) are driving the prediction and by how much. Simple models like Generalized Linear Models (GLMs) are great for interpretation, while complex models like Random Forests are often better for raw prediction but harder to explain.

Key Takeaway: On Exam PA, you will often be asked to balance these two. Always consider if a regulator would accept a model that you can't explain!


4. Data Structures: Structured vs. Unstructured

Before you can model, you must understand the "shape" of your data.

Structured Data

This is the "classic" data format. Think of a spreadsheet with rows and columns. Each row is an observation (like a policyholder) and each column is a feature (like vehicle age).

Unstructured Data

This includes things like text from claim notes, images of car accidents, or audio recordings of customer service calls. While powerful, unstructured data usually needs to be converted into a structured format before most predictive models can use it.

Mnemonic Aid: Remember "ROC" for Structured Data: Rows, Observations, Columns.


5. Ethical Considerations and Data Privacy

This is a major theme in the SOA curriculum. Not all data is "fair" to use, even if it makes the model more accurate.

When defining your problem, you must screen for Protected Characteristics. These are variables that should not be used for decision-making due to legal or ethical reasons, such as:

- Race or Ethnicity
- Religion
- Health status (in certain types of insurance)
- Gender (depending on the jurisdiction and product)

Common Mistake: Using a "Proxy Variable." Even if you remove "Race," if you use "Zip Code" and that zip code is highly correlated with a specific race, your model might still be biased. This is called indirect discrimination.


Summary Checklist for Problem Definition

Before moving to the next chapter, make sure you can answer these questions for any given scenario:

1. Is there a target? (Supervised vs. Unsupervised)
2. What is the target type? (Regression/Continuous vs. Classification/Categorical)
3. What is the priority? (Accuracy vs. Interpretability)
4. Are there ethical concerns? (Hidden biases or protected classes)

Quick Review Box:
- Regression: Predicts a number (e.g., \( \hat{y} = \$1,250 \)).
- Classification: Predicts a label (e.g., \( \text{Result} = \text{'Lapse'} \)).
- Supervised: We have known outcomes to learn from.
- Unsupervised: We are looking for hidden structures.

Don't worry if this seems a bit theoretical right now! In the next sections, we will start looking at the actual data and how to clean it up for our models. You're doing great!