Welcome to Data Quality Assessment!

Welcome, future actuaries! As you dive into Exam ATPA, you’ll quickly realize that building a fancy model is only half the battle. The real secret to success lies in the data itself. Think of a predictive model like a high-end sports car: even the best engine won't run well if you put "garbage" fuel in the tank. In this chapter, we focus on Assessing the Accuracy and Quality of Data. We are going to learn how to spot "bad fuel" before it ruins your model. Let’s get started!

The Golden Rule: Garbage In, Garbage Out (GIGO)

You might have heard this phrase before. In predictive analytics, it means that if your input data is inaccurate or poorly structured, your model’s predictions will be unreliable, no matter how advanced your algorithms are. Assessing data quality is the process of ensuring your data is "fit for use" in your specific actuarial task.

The Five Dimensions of Data Quality

How do we actually measure "quality"? We look at five key dimensions. You can remember these with the mnemonic "A-C-C-T-V" (like a very "Active" data set!).

1. Accuracy: Does the data reflect reality?
Example: If a policyholder is 45 years old, but the database says they are 450, that data point is inaccurate.

2. Completeness: Are there missing values?
Example: If you are predicting auto insurance claims but 40% of the "Driver Age" column is blank, your data lacks completeness.

3. Consistency: Does the data match across different systems or tables?
Example: If a customer is listed as "Active" in the sales database but "Terminated" in the billing database, you have a consistency issue.

4. Timeliness: Is the data up to date for the decision being made?
Example: Using mortality tables from 1950 to price a life insurance product today would be a failure of timeliness.

5. Validity: Does the data follow the required format or rules?
Example: A "US Zip Code" field that contains letters instead of numbers is invalid.

Quick Review: Before moving on, ask yourself: "If I have a full list of names but half the ages are missing, which dimension is failing?" (Answer: Completeness!)

How to Assess Quality: The Step-by-Step Approach

Don't worry if this seems overwhelming. We can break the assessment into a simple process. Think of this like a doctor giving a patient a check-up.

Step 1: Data Profiling (The "Check-up")

Data profiling involves using summary statistics to get a bird's-eye view of your data. You should look at:
- Mean and Median: Are they what you expect?
- Minimum and Maximum: Do these values make sense? (e.g., \( Min\_Age = -5 \) is a red flag!)
- Standard Deviation: How much does the data spread out?
- Count of Nulls: How many blanks are in each column?

Step 2: Identifying Outliers

An outlier is a data point that is significantly different from the others.
Analogy: If you are measuring the heights of students in a classroom and one student is 11 feet tall, that’s an outlier!
You can identify these using the Interquartile Range (IQR). A common rule is that any value more than \( 1.5 \times IQR \) above the third quartile or below the first quartile is a potential outlier.

Step 3: Checking for Logical Relationships

Sometimes individual numbers look fine, but they don't make sense together.
Example: A record shows a "Date of Birth" in 2010 but a "Policy Start Date" in 1995. Individually, the years are fine, but logically, the person couldn't buy insurance before they were born!

Common Mistakes to Avoid

Mistake #1: Deleting all missing data immediately.
Sometimes, the fact that data is missing is a signal in itself! For example, if "Income" is missing, it might be because the applicant was unemployed. If you delete them, you bias your model.

Mistake #2: Blindly trusting the "Mean".
If you have extreme outliers, the Mean (average) will be pulled toward them. Always look at the Median (the middle value) to see if the average is being "tricked" by a few huge numbers.

Mistake #3: Ignoring the "Metadata".
Metadata is "data about the data." Always check the documentation to see if a value like "999" actually means "Missing" rather than the number nine hundred ninety-nine.

Did You Know?

In the world of predictive analytics, data scientists often spend 80% of their time cleaning and assessing data, and only 20% actually building models. It’s the most important part of the job!

Key Takeaway Summary

1. Quality Dimensions: Assess data based on Accuracy, Completeness, Consistency, Timeliness, and Validity (ACCTV).
2. Profiling: Use summary statistics (Mean, Median, Min/Max) to find obvious errors.
3. Logic Checks: Ensure different variables make sense when compared to each other (e.g., Birth Date vs. Issue Date).
4. Outliers: Investigate extreme values; they could be errors or they could be very important rare events!
5. Purpose: Data quality is not about perfection; it’s about making sure the data is reliable enough for the specific model you are building.

Keep going! You're building the foundation for great predictive models. Once you master the data, the modeling becomes much easier!