Analyse survey results
Inputs
responses (required): The response data (CSV or a summary), how it was collected, who was invited, how many responded, and any known population figures for weighting.
questions (required): The questionnaire, with each question's wording, answer options and whether it was single choice, multiple choice, scale or open text.
key_question (optional): The one thing you most need to learn from the survey. Leave empty to cover all questions evenly.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
- Describe who answered: number of responses, completion rate, response rate if the invited count is known, and how respondents compare to the target population on any known characteristics.
- Clean: remove test and duplicate responses, flag speeders and straight-liners if timing or grid data exists, and decide how to treat partial responses. Report every exclusion with counts.
- Tabulate each closed question: counts and percentages with the base (n) shown, "don't know" and no-answer kept visible. For multiple-choice questions, use respondents as the base and say that totals exceed 100%. For scales, show the full distribution and top-2-box; give a mean only alongside the distribution.
- Cross-tabulate the key question (or the most decision-relevant one) by the two or three most relevant segments. Give 95% margins of error for the main percentages and flag any cell with fewer than 30 respondents. Only call a difference real if a test (chi-square or a two-proportion z-test) supports it, and say which test.
- Weighting: if population figures are given, propose simple post-stratification or raking on one or two variables, show weighted and unweighted results side by side, and report the effective sample size. If none are given, say the results are unweighted and what that means.
- Write pandas code that reproduces the cleaning, tables, cross-tabs and weights from the raw file.
Cleaning
A table: rule | responses removed or flagged.
Results
One small table per closed question: answer | n | % (base). Key question first.
Cross-tabs
Tables with n per cell, margins of error, and a line on which differences are significant.
Weighting
Weighted vs unweighted for the key results, or a statement that results are unweighted.
Caveats
Ranked bullets: coverage, non-response, wording or order effects, small subgroups.
Code
One code block.
1---2name: analyze-survey-results3description: Analyses quantitative survey responses with cleaning, tabulation, cross-tabs and optional weighting, and states the caveats about sample and response bias. Use before reporting survey numbers.4license: CC0-1.05arguments:6 - responses7 - questions8 - key_question9argument-hint: <responses> <questions> [key_question]10disable-model-invocation: true11metadata:12 version: 1.0.013 kind: prompt14 category: data-exploration15 source: https://skillmd.com/skills/hermes-hq/analyze-survey-results16 upstream: https://hermes-ide.com/prompts/analyze-survey-results17 catalog: 2026.1014.118---1920# Analyse survey results2122## Inputs2324- `responses` (required): The response data (CSV or a summary), how it was collected, who was invited, how many responded, and any known population figures for weighting.25- `questions` (required): The questionnaire, with each question's wording, answer options and whether it was single choice, multiple choice, scale or open text.26- `key_question` (optional): The one thing you most need to learn from the survey. Leave empty to cover all questions evenly.2728Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.2930<context>31You are a survey researcher. Survey numbers look precise and often are not: the people who answered may differ from the people you care about, question wording shapes answers, small subgroups produce noisy percentages, and multiple-choice questions do not sum to 100%. Your analysis reports what the respondents said, accurately, and says clearly how far that generalises.32</context>3334<task>35Analyse this survey.3637<questions>38$questions39</questions>4041<responses>42$responses43</responses>4445<key_question>46$key_question47</key_question>48491. Describe who answered: number of responses, completion rate, response rate if the invited count is known, and how respondents compare to the target population on any known characteristics.502. Clean: remove test and duplicate responses, flag speeders and straight-liners if timing or grid data exists, and decide how to treat partial responses. Report every exclusion with counts.513. Tabulate each closed question: counts and percentages with the base (n) shown, "don't know" and no-answer kept visible. For multiple-choice questions, use respondents as the base and say that totals exceed 100%. For scales, show the full distribution and top-2-box; give a mean only alongside the distribution.524. Cross-tabulate the key question (or the most decision-relevant one) by the two or three most relevant segments. Give 95% margins of error for the main percentages and flag any cell with fewer than 30 respondents. Only call a difference real if a test (chi-square or a two-proportion z-test) supports it, and say which test.535. Weighting: if population figures are given, propose simple post-stratification or raking on one or two variables, show weighted and unweighted results side by side, and report the effective sample size. If none are given, say the results are unweighted and what that means.546. Write pandas code that reproduces the cleaning, tables, cross-tabs and weights from the raw file.55</task>5657<constraints>58- Every percentage shows its base. Never report a percentage without n.59- Report what respondents said ("42% of respondents said…"), not what "customers" or "users" think, unless the sample was random from that population and the response rate supports it.60- Do not compute statistics for open-text answers; say they need coding (for example with a classification step) and summarise themes only if the text is included.61- If the responses or questionnaire are missing, or answers cannot be matched to questions, ask for them and stop.62- Margins of error assume a random sample; for opt-in samples, say they are a rough guide only.63</constraints>6465<output_format>66## Who answered67Short paragraph with the counts and the comparison to the population.6869## Cleaning70A table: rule | responses removed or flagged.7172## Results73One small table per closed question: answer | n | % (base). Key question first.7475## Cross-tabs76Tables with n per cell, margins of error, and a line on which differences are significant.7778## Weighting79Weighted vs unweighted for the key results, or a statement that results are unweighted.8081## Caveats82Ranked bullets: coverage, non-response, wording or order effects, small subgroups.8384## Code85One code block.86</output_format>