Worked Examples
Apply survey instrument validity — Catalyst Grit
Learn how to apply survey instrument validity principles in Catalyst Grit using construct definitions, psychometric methods, and reproducible research evidence. This guide provides practical procedures, Python analysis, and developer validation tools to evaluate survey quality, measurement limitations, and scientifically defensible interpretations.
Application: Catalyst Grit
Article: Apply survey instrument validity
Status: Draft research-methods reference — installation and scientific verification pending
Last source-reviewed version: v2.0.0 (pinned GitHub source)
Last verified version: Not established
Header summary: Apply a reproducible survey-validity workflow in Catalyst Grit, from construct definition and item review to scoring, reliability diagnostics, and ethical reporting. This guide provides Python examples and fictional pilot data while showing why technical reliability alone cannot establish scientifically valid psychological measurement.
Goal
Objective: Apply a transparent, reproducible validation workflow to a proposed survey instrument before using its results to make research claims. Define what an item is supposed to measure, preserve the item wording and response process, verify coding and missingness, and document limitations and independent review needs.
Primary acceptance criterion: pilot findings, intended score uses, validity evidence and measurement limitations are traceable to the protocol. A functioning calculation, high reliability coefficient, or a passing software test is not scientific validation.
Requirements
- Authorization: A lawful and ethical research or service purpose; applicable IRB/ethics determination, participant information/consent or documented authorization, instrument rights and approved data access.
- Instrument specification: Construct definition, target population, time frame, item map, exact wording, response labels, languages, permitted missing codes, reverse keys, intended and prohibited uses.
- Evaluation plan: Prespecified hypotheses, required sample, recruitment and missingness plan, assessor qualifications, content-review and cognitive-interview plan, data security, response burden and participant safeguards.
- Development environment: Python 3, this package’s
fixtures/,code/andtests/folders. The sample uses only the standard library and fictional responses; no production credentials are necessary. - Publication: Independent scientific and editorial review of the instrument, score interpretations, limitations and any proposed public reporting.
Scope: what is being measured?
This example proposes a five-item perceived recovery-planning support check-in for research-methods training. It asks about planning clarity, awareness of support, flexibility, and finding assistance during the last seven days. It is not a validated measure of grit, resilience, mental illness, personality or clinical recovery.
The scale is only a prototype. Respondent comprehension, dimensionality, and whether a composite score is justified remain untested. Items C1 and C2 describe contextual factors and are excluded from the proposed composite score.
Construct-to-item map
| ID | Example item (original wording) | Proposed domain | Scoring |
|---|---|---|---|
| Q1 | I could identify a practical next step after a disruption. | Planning clarity | 1–5 |
| Q2 | I could identify appropriate support for that next step. | Support knowledge | 1–5 |
| Q3 | I had a feasible way to adjust a plan when circumstances changed. | Plan flexibility | 1–5 |
| Q4 | I knew whom to ask when a plan was blocked. | Help-seeking navigation | 1–5 |
| Q5 | I did not know how to restart when a plan changed. | Planning uncertainty | Reverse-coded (6 − response) |
| C1 / C2 | Unusually heavy workload / technology access | Context only | Never included in composite |
Response scale: 1 strongly disagree; 2 disagree; 3 neither; 4 agree; 5 strongly agree. Empty means missing—not zero. Reverse-wording can increase respondent confusion and method effects; cognitive interviewing must assess Q5 before fielding.
Procedure
- Define the interpretation: Write the construct, target respondents, recall period, intended decision, inappropriate uses and competing explanations. Do not begin with a convenient set of questions and invent a construct afterward.
- Map content: Link every item to an operational domain and check gaps and redundancy; engage actual domain experts and target users before claiming content coverage.
- Check rights and approvals: Use original items here; for any existing psychological inventory verify copyright, license, scoring instructions, translations and whether reuse requires permission.
- Test response processes: Plan and document genuine cognitive interviews in the intended languages, reading levels and accessibility contexts; revise confusing response anchors and recall windows.
- Lock the protocol: Version item text, inclusion criteria, sample size justification, scored domains, missing-data handling, hypotheses and planned psychometric analyses before data collection.
- Check the fixture: Run
python3 code/survey_validity.py auditto reject duplicated IDs, out-of-range responses, mixed versions, cross-project references and unapproved visibility. - Reproduce coding: Verify
Q5 = 6 − raw Q5, exclude context items, calculate only complete-case illustration scores, and preserve item-level counts. - Explore measurement behavior: Use the example
reliability,item-analysisandsensitivitycommands. These are demonstrations; a real study still needs structural validity, uncertainty estimates and an appropriate ordinal-data model. - Independently review claims: Evaluate content, cognitive-response, structure, relationships, measurement fairness and consequences; keep failures and disagreements visible.
- Report limits: State denominators, sample selection, exclusions, item revisions, uncertain interpretations, participant protections, funding and conflicts of interest. Seek scientific sign-off before production use.
Run the reproducible pilot
Extract the ZIP and open a terminal in its root directory. These commands are packaged standalone examples, not Catalyst Grit production commands:
python3 --version
python3 code/survey_validity.py audit
python3 code/survey_validity.py score
python3 code/survey_validity.py reliability
python3 code/survey_validity.py item-analysis
python3 code/survey_validity.py sensitivity
python3 code/survey_validity.py manifest
python3 -m unittest discover -s tests -v
For a direct coding check, the original item Q5 is scored in the opposite direction:
# Illustrative coding only: not authorization for individual assessment.
def reverse_1_to_5(raw):
if not isinstance(raw, int) or not 1 <= raw <= 5:
raise ValueError("Expected an integer from 1 to 5")
return 6 - raw
assert reverse_1_to_5(2) == 4
assert reverse_1_to_5(5) == 1
Synthetic pilot observations and denominators
The fixture contains 48 fictional respondents with two simulated time points (T0 and T1), for 96 response rows. It includes deliberately missing item responses to test reporting rules.
| Metric | Baseline (T0) | Follow-up (T1) |
|---|---|---|
| Total fictional records | 48 | 48 |
| Complete composite rows | 46 | 44 |
| Rows with at least one missing scored item | 2 | 4 |
| Mean of five-item scores, complete cases | 2.99 | 2.99 |
| Illustrative Pearson-based Cronbach’s alpha | 0.972 | 0.954 |
Paired complete cases: 42; illustrative Pearson correlation of paired scores: 0.964. These values are artifacts of the simulation and must not be reported as evidence that a real instrument is valid, stable or responsive.
How to interpret reliability statistics
Cronbach’s alpha is a covariance-based measure of internal consistency under assumptions. A high alpha can arise from redundant questions, highly correlated simulated latent variables or shared response style, and it does not prove one-dimensionality, content adequacy or validity. COSMIN recommends assessing structural validity before interpreting internal consistency.
The included script calculates the conventional formula alpha = k/(k−1) × [1−sum(item variances)/variance(total score)] from complete records, treating 1–5 ordinal responses numerically for illustration. Appropriate real-data analysis may require ordinal factor models and polychoric correlations, confidence intervals, omega, or other prespecified methods justified by dimensionality and design.
Similarly, a Pearson retest correlation is not a substitute for an appropriate agreement/reliability estimate, measurement-error analysis or evidence that the construct should remain stable across the interval. The example includes no valid real-person test-retest evidence.
Scientific validity evidence plan
| Evidence family | What a real study must establish | Status in this package |
|---|---|---|
| Content | Relevance, comprehensiveness and comprehensibility for intended users and setting | Not evaluated |
| Response process | Participants understand each question, reference period and response option as intended | No real cognitive interviews |
| Internal structure | Factor structure and proposed score composition are defensible | No factor analysis |
| Reliability and error | Appropriate reliability indices, interval estimates and error under specified conditions | Only simulated calculations |
| Relations to other variables | Preregistered convergent, discriminant or criterion hypotheses | No independent measures |
| Fairness / invariance | Items behave comparably across relevant groups, versions, languages and time | Not evaluated |
| Responsiveness | Meaningful changes in the intended construct can be detected when appropriate | Not evaluated |
| Consequences | Expected benefits, adverse impacts and misuse restrictions are reviewed | Prohibited high-stakes use listed |
See the packaged docs/validity_evidence_plan.csv to assign reviewers and record independent evidence for each category.
Data quality, missingness and sensitivity
Never equate an empty response, “prefer not to answer,” not applicable, unavailable data and a numeric zero. The fixture permits blank entries as missing in the two time waves; its instructional scoring rule uses complete cases for the five composite items and reports denominators separately. No automatic imputation is performed.
In real research, investigate whether missingness relates to participant characteristics, distress, accessibility, survey burden, language, technology or study disengagement. Prespecify sensitivity analyses and explain any excluded responses. Comparing complete cases across waves without addressing selection can mislead; treating an ordinal response as interval-scaled also requires justification.
python3 code/survey_validity.py sensitivity
python3 code/survey_validity.py inject --case zero_as_missing
python3 code/survey_validity.py inject --case loss_of_response
Access, versioning and implementation contract
Proposed contract, not an existing API: each record is project-scoped, private, versioned, and tied to an approved purpose and appropriate participant authorization. The adapter rejects mixed instrument versions, cross-project records, unexpected identifying fields, non-fictitious participant IDs, invalid response codes and records falsely labeled scientifically validated.
For real deployments, require authentication, permission checks on every operation, change control for instruments, a complete audit history, a privacy-preserving deletion/retention procedure, and separate human approval for any publication or reuse. A source hash attests bytes, not that an instrument is valid.
The package includes docs/candidate_survey_schema.json as a JSON Schema 2020-12 reference. Its fictional ID rules and SYNTHETIC-ONLY constant intentionally prevent treating it as a production contract.
Verification
The unit suite checks scoring direction, missing-value behavior, item-version consistency, permissible response ranges, context exclusion, internal calculations, and rejection of forbidden use claims. The fault-injection matrix includes 30 deliberate failures.
python3 code/survey_validity.py inject --case duplicate_response
python3 code/survey_validity.py inject --case unmark_reverse
python3 code/survey_validity.py inject --case score_context_item
python3 code/survey_validity.py inject --case mixed_version
python3 code/survey_validity.py inject --case wrong_project
python3 code/survey_validity.py inject --case public_record
python3 code/survey_validity.py inject --case fake_expert_review
python3 code/survey_validity.py inject --case set_review_validated
python3 -m unittest discover -s tests -v
Each injected case should be detected, not accepted as a valid response. A passing offline matrix verifies only the local reference algorithm and synthetic fixtures. It does not verify the installed Catalyst Grit runtime, public search, live permissions, or a scientific measurement instrument.
Troubleshooting
| Symptom | Possible cause | First diagnostic |
|---|---|---|
| Score direction reverses unexpectedly | Reverse-coded Q5 handled as positive | inject --case unmark_reverse; check key in instrument version |
| High alpha but contradictory item meanings | Construct mismatch, shared-method variance or redundant items | Review construct map and independent factor evidence; do not claim validity |
| Missing answers appear as 0 | Incorrect data-import or coercion rule | inject --case zero_as_missing; preserve blank distinct from valid scale range |
| Contextual questions change the score | Incorrect composite definition | inject --case score_context_item |
| Different revisions are pooled | Instrument drift or undocumented score-key changes | inject --case mixed_version; separate versions |
| Survey results appear in public output | Incorrect permissions or export controls | inject --case public_record; stop unsafe publication |
| Review status says “validated” with no evidence | Draft automatically promoted to scientific sign-off | inject --case set_review_validated; restore correct status |
Resolution
- Freeze the current version and preserve original anonymous/authorized evidence, item text, scoring key, source hashes, and analysis provenance.
- Reconcile expected versus observed schema, item direction, missing-value encoding, respondent exclusions, and project permissions using synthetic reproductions.
- Correct the new version of the instrument or score transformation, not silently overwritten historical responses; document why the change was necessary.
- Re-run the automated test matrix and independent quality review. Compare old and revised calculations without treating them as directly equivalent when measurement properties change.
- For scientific validity gaps, engage relevant target users, methodologists and independent reviewers; obtain sample-size justification and real pilot data before analyzing structure, reliability, DIF or responsiveness.
- Document unresolved construct ambiguity, review disagreements, adverse-use risks and restrictions. Restore any export or publication only after distinct authorization.
Resolution boundary: “Data pipeline fixed” is not “scientifically validated.” A new measurement instrument needs independent evidence for its intended population, interpretation and use.
Source-reviewed Catalyst Grit documentation
Reviewed repository source: f9617160ffd276c6a6fd847b1e846bb5f73b07ae, whose README describes Catalyst Grit v2.0.0. This is a source review, not proof of the installed runtime version or a verified survey-analysis module.
- README: documented release capabilities and prohibited assessment uses
- Methodology profile: explicit method/version provenance and limits
- Persistent workspace: private records and append-only revisions
- Institutional API: scoped access and audit
- Connected platform: human-reviewed publication and provenance
The reviewed repository does not establish this tutorial’s proposed five-item survey, commands, fields, item codes, or a deployed survey-validation service. Those are local instructional artifacts in the ZIP.
Scientific references
- COSMIN perspective on content relevance, comprehensiveness and comprehensibility (2025).
- COSMIN guideline: evaluate structural validity before internal consistency (2018).
- COSMIN systematic review guidance, version 2.0 (2024).
- Validity evidence: content, response processes, structure, relations, consequences (2016).
- NCES statistical standard 2-6 on validity and reliability evidence.
Use the cited frameworks as methodological guidance rather than claiming the fictional instrument has been reviewed or certified under them.
Reporting, limitations and editorial metadata
Example research report: “An original, unvalidated five-item research-development prototype was run against 48 fictional respondents at two simulated occasions. Item coding, incomplete responses and descriptive internal-consistency calculations were reproducible. No cognitive interviews, expert panel, actual participant pilot, factorial assessment, validity testing, cross-cultural analysis, real consent review, or clinical interpretation was performed.”
Last source-reviewed version: Catalyst Grit v2.0.0 at pinned GitHub commit.
Last verified version: Not established — no installed-release verification evidence.
Editorial status: Substantive instructional guide; scientific and staging verification pending.
Estimated reading time: 27–35 minutes.
For WordPress, Last verified version may be a separate editorial metadata field; adding text to the article does not establish the deployed value or necessarily satisfy that quality check.
