Let’s Get Certified
Module 03 / 16 · Fundamentals of generative AI

Check whether a pilot dataset represents the people it will serve

Estimate how sample coverage, labeling and permissions affect a pilot's conclusions.

Check whether a pilot dataset represents the people it will serve

Work through the decision

An evaluation file has 1,000 labeled support calls, all from weekday English shifts. Half of future calls will arrive at weekends or in another language. Does the sample support a broad launch?

Check your reasoning

Inspect coverage by shift, language and call type, not only record count. Add representative cases and agreed labels before estimating those groups' outcomes. Keep unstructured recordings linked to structured metadata and confirm permission to use both.

Watch the source lesson at 52:24

Compare the choices

Check representation and coverage
Compare the evaluation population with the deployment population; report missing groups and uncertainty before drawing conclusions.
Preserve structure and identifiers
Keep typed fields such as timestamps, counts and case IDs alongside unstructured audio, images or prose. Define reliable links between them.
Validate labels and definitions
Labels supply a target for supervised learning or evaluation. Sample disagreements, resolve the rubric and keep assessments independent.
Check access, cost and freshness
Establish rights, availability, retrieval cost, age and delivery format. High-quality data helps only if the intended team can use it in time.

Distinguish an empty field from an observed value

An order file records a refund of zero on one transaction and no refund field on another. Zero is observed. The missing field might mean unknown or inapplicable; verify the data contract. Converting both to zero can make a completeness report falsely optimistic.

Practice the guide skills

  1. Compare completeness, consistency and relevance by language, shift and source. Verify cost, freshness and permission to access the data. Watch 57:00
  2. Classify a structured invoice row, a PDF scan and free-text notes. Explain how each can preserve the original source identifier. Watch 53:20
  3. Label a sample using a shared rubric. Set aside examples that reviewers never used when refining it. Watch 55:10

Official objectives for this lesson

Local lab · Audit the coverage of an evaluation sample

Save the following as coverage.py and run python3 coverage.py. The rows contain language, reviewed cases, acceptable answers and expected traffic share. Predict how the score changes when traffic weights replace sample weights.

groups = [
    ("English", 90, 81, 0.60),
    ("Spanish", 10, 5, 0.40),
]

observed = sum(good for _, _, good, _ in groups) / sum(n for _, n, _, _ in groups)
weighted = sum(share * good / n for _, n, good, share in groups)
for language, n, good, share in groups:
    print(f"{language}: {good}/{n} accepted, expected share {share:.0%}")
print(f"sample {observed:.0%}; traffic-weighted estimate {weighted:.0%}")
Check the result
English: 81/90 accepted, expected share 60%
Spanish: 5/10 accepted, expected share 40%
sample 86%; traffic-weighted estimate 74%

The smaller group is underrepresented in the sample and has a lower acceptance rate. Changing its expected share changes the estimate even with identical answers. Try 50% in each group and collect more Spanish cases before relying on its rate.

Related lesson · Trace data from its source to a business decision

Knowledge check

Check whether a pilot dataset represents the people it will serve quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Check whether a pilot dataset represents the people it will serve