How to Use AI for Baseline and Endline Analysis

Compare baseline and endline measurements using the actual sample design, sufficient inputs, and explicit limits on what observed change can show.

Takeaway

AI can speed up pattern finding in data, but it does not know which patterns matter. Always start with your evaluation questions, not with "analyze this spreadsheet."

The 5-Step Baseline-Endline Workflow

Move from raw survey data to a defensible comparison narrative. Each step builds on the previous one to ensure the analysis answers your actual evaluation questions.

  1. 1. Align Data Structures

    Before any analysis, ask AI to compare your baseline and endline datasets: are the variable names consistent? Are the response options identical? Are the sampling units comparable? Misalignment here invalidates everything that follows.

  2. 2. Set Up the Comparison Matrix

    Create a table mapping each evaluation question to its indicator, the baseline value, the endline value, and the expected direction of change. Ask AI to populate this from your data. This becomes the backbone of your analysis.

  3. 3. Run Statistical Comparisons

    Path A, if you only have two columns of percentages (the usual case for a small team): subtract the baseline percentage from the endline percentage to get the change in percentage points (in a spreadsheet, endline cell minus baseline cell), report both sample sizes, use the actual counts rather than rounded percentages, and ask an analyst before claiming a test result. Path B, if you have the full survey data: establish whether rounds are independent (different people each time), paired (the same people measured twice), or partly matched, and whether sampling uses clusters, strata (groups sampled separately), or weights (adjustments for unequal selection chances). Comparing two averages needs per-round sample sizes and variance (how widely answers spread around the average); for paired averages you need complete pairs and the spread of each person's change between rounds. Yes/no paired comparisons need transition counts (how many people moved from yes to no and from no to yes). A p-value is the chance of seeing a gap this large if nothing had really changed; it is not the size or importance of the change. Use design-aware methods (tests that account for how the sample was drawn) for complex surveys. If required inputs are missing, report descriptive change and mark the test not calculable.

  4. 4. Investigate Anomalies

    Ask AI to flag indicators where the change is unexpected: improvements where you expected decline, no change despite heavy investment, or changes that are statistically significant but practically meaningless. These are the findings worth discussing.

  5. 5. Draft the Comparison Narrative

    For each question, report observed change, denominator, effect size (how big the change is, not only whether it is detectable), uncertainty where calculable, and data limitations. Explain missing pairs, composition differences, and multiple comparisons (testing many indicators at once, which makes some chance "significant" results likely). A pre/post change alone does not identify the causal effect of the program.

Weak vs. Strong Baseline-Endline Analysis

The gap between useful analysis and data theater comes down to whether the analysis answers evaluation questions or just describes numbers.

Data Preparation

Endline-Only Request

You paste the endline dataset into ChatGPT and say "Analyze this data." The AI produces summary statistics for every variable, most of which are irrelevant. You have no comparison baseline and no framework for interpretation.

Mapped Baseline and Endline

You provide both datasets with a mapping table: "Here is my baseline data (n=400) and endline data (n=385). Compare these 12 indicators. Variable X in baseline corresponds to variable X_endline. Flag any variables where coding has changed between rounds."

Statistical Testing

Undifferentiated Tests

The AI runs t-tests (standard tests of whether two averages differ) on everything and reports p-values (the chance of seeing a gap this large if nothing had really changed). You report "statistically significant improvement" for indicators where p < 0.05, ignoring effect size, sample composition changes, and multiple comparison issues.

Design-Aware Testing

The AI recommends the appropriate test per indicator type (percentages vs. averages vs. ranked answers such as agree to disagree), reports both the p-value and the effect size, adjusts for multiple comparisons where relevant, and notes where the sample composition changed between rounds.

Narrative

Unqualified Change

"Indicator X increased from 34% to 42%." No context on whether this is meaningful, no discussion of why, no connection to program activities, no caveats about data quality.

Qualified Descriptive Change

"Reported handwashing knowledge increased from 34% (n=400) to 42% (n=385). The endline sample had higher female representation (62% versus 54%). These summaries show descriptive change; a design-aware test requires the actual counts, sampling design, and matching information. The pre/post comparison alone does not establish a campaign effect."

6 Rules for AI-Assisted Baseline-Endline Analysis

  • Always check data alignment before analysis

    Variable names change between survey rounds. Response options get reworded. New categories get added. Ask AI to produce a variable mapping table before running any comparison. Ten minutes of alignment checking saves days of wrong conclusions.

  • Report effect sizes, not just significance

    Sample size alone does not establish significance. For independent simple random samples of 2,000 per round, a change from 50% to 52% gives a test score (z) of about 1.27 and a p-value of about 0.21, far from the usual 0.05 cutoff, so the gap could easily be chance. Report the magnitude (the effect size, how large the change is) and a design-appropriate confidence interval (the range the true change plausibly falls in); judge practical importance separately.

  • Account for sample composition changes

    If your baseline sample was 50% female and your endline is 65% female, any gender-correlated indicator will show change that has nothing to do with your program. Ask AI to check demographic comparability and flag discrepancies.

  • Connect findings to evaluation questions

    Every finding should answer a question someone actually asked. Structure your analysis around 4-6 evaluation questions, not around 30 indicators. Ask AI to organize the narrative by question, not by variable number.

  • Never paste raw beneficiary data into cloud AI

    Baseline and endline datasets often contain personally identifiable information. Remove names, GPS coordinates, phone numbers, and any combination of village + age + sex that could identify individuals before sharing data with any AI tool.

  • Fix the decision date before you start

    Write down which decision the baseline serves and the date it closes, then plan the analysis backward from that date. A baseline can be analytically sound and still arrive after the targeting or design decisions it was meant to inform. A polished baseline report that lands after the target districts are chosen cannot change that choice. AI can make descriptive analysis faster: summaries, tables and charts that describe what the data show without testing causes. Use the time saved for subgroup differences (results split by sex, age or district) that tight deadlines would otherwise drop, and have an analyst check them. For two percentages with their counts, an analyst can also compare them in a spreadsheet without AI.

Baseline-Endline Analysis Prompt

Use this prompt after cleaning and aligning data. Provide sufficient approved aggregate statistics or approved data for the actual design; a sample of rows is not sufficient for inference about the full dataset.

AI-Assisted Baseline-Endline Comparison

I need to compare baseline and endline data for a program evaluation.

Evaluation questions: [list the questions and intended population]
Definition and timing: [indicator, unit, recall period, baseline and endline dates, expected direction]
Design: [independent rounds / panel / partly matched; sampling frame; clusters, strata, selection probabilities, weights; treatment assignment if any]
Round-specific evidence: [eligible and observed denominators, missingness, composition, recruitment and response rates]

For proportions supply the actual numerator and denominator for each round; for means supply n, mean and variance/SD for each round. Paired means need verified matches, complete-pair n and SD of within-pair differences (or the equivalent for how paired answers move together). Paired yes/no data need a table of how many people moved between yes and no (yes to no, no to yes, and unchanged), including the people who changed answer. Complex surveys need weights and design information or a validated design-based variance estimate. Identify incomplete pairs and missing observations separately.

[PASTE APPROVED DATA OR SUFFICIENT AGGREGATES WITH SOURCE REFERENCES]
Open it, with the prompt already in:ChatGPTClaudeGeminiCopilot

Gemini and Copilot open empty. Copy the prompt, then paste it in.

One-Page Summary

The key point, the steps and the ready prompt from this guide on one sheet.