Middle-point bias mitigation in silicon sampling — WVS Q130
Generated by src/analyze_q130_bias.py (seed 42, 2000 bootstrap reps).
1. Methods
LLM-simulated (“silicon”) response distributions for WVS Wave 7 Q130 (government policy toward labor immigration, 4-point ordinal scale with no neutral midpoint) are compared against empirical WVS distributions for Argentina, Uruguay and the United States. Because the scale has no midpoint, middle-point bias is operationalized as interior-category concentration: excess mass on the two interior categories (“Let people come as long as there are jobs available” + “Place strict limits on the number of foreigners who can come here”), i.e. avoidance of the extremes.
Categories outside the 4-point scale (e.g. invalid/no answer) were dropped
and distributions renormalized over the 4 substantive categories (discarded
mass reported in §2). All distributions sum to 1 within 1e-6 after
renormalization (asserted in code). Category order is fixed as the ordinal
vector [Let anyone come who wants to; Let people come as long as there are jobs available; Place strict limits on the number of foreigners who can come here; Prohibit people coming here from other countries] at positions 1-4.
Metrics per model x country x prompt: normalized Shannon entropy
H_norm = −Σ p·log2 p / log2 4; entropy ratio vs WVS; interior mass
IM = p2 + p3 and ΔIM = IM_model − IM_WVS; extreme mass EM = p1 + p4;
Jensen-Shannon divergence (base 2) vs WVS; ordinal Wasserstein-1
W1 = Σ|CDF_model − CDF_WVS|; per-category signed errors; mean scale
position μ = Σ k·p_k and Δμ. Per-cell response counts are available in
the inputs, so 95% multinomial bootstrap CIs (resampling both model and WVS
counts) are reported for IM, H_norm and JSD.
Paired mitigation effects (prompt 2 − prompt 1) are computed within-model,
restricted to the set M_both of models run under both prompts. Wilcoxon
signed-rank tests (one-sided, per hypothesis direction) with matched-pairs
rank-biserial correlation are run pooled — aggregating each model to its
mean across countries first, so no independence is assumed across the three
country cells of one model — and per country; a sign test is the robustness
check. Given n = 3 models, effect sizes and per-model tables
carry more weight than p-values.
Model sets. M_both = {gpt-4o, gpt-oss-120B, gpt-oss-20B}. Models only under prompt 1: none; only under prompt 2: none. The two prompt conditions cover the same 3 models, so all comparisons below are within-model and paired; no compositionally non-comparable summaries are needed.
2. Data validation
WVS reference values (after keeping the 4 substantive categories):
| country | H_norm (WVS) | IM (WVS) | mean position (WVS) | N |
|---|---|---|---|---|
| Argentina | 0.841 | 0.806 | 2.357 | 759 |
| United States | 0.810 | 0.814 | 2.294 | 1470 |
| Uruguay | 0.873 | 0.662 | 2.043 | 786 |
Discarded mass (categories outside the 4-point scale, e.g.
invalid/no answer), per model x country x prompt — all other cells had
zero discarded mass:
| prompt | model | country | discarded_n | discarded_mass |
|---|---|---|---|---|
| prompt 1 | gpt-4o | Argentina | 2 | 0.002 |
| prompt 1 | gpt-4o | United States | 6 | 0.004 |
| prompt 2 | gpt-4o | United States | 457 | 0.314 |
Caveat: the gpt-4o x United States x prompt 2 cell discards 31.4% of its responses as invalid. Its renormalized distribution rests on the remaining valid answers and should be read with caution wherever it appears below.
3. Metrics
One row per model x country x prompt (full table incl. per-category signed
errors and bootstrap CIs in results/metrics.csv):
| prompt | country | model | N_valid | H_norm | entropy_ratio | IM | dIM | EM | JSD | W1 | mu | dmu |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| prompt 1 | Argentina | gpt-4o | 914 | 0.415 | 0.494 | 1.000 | 0.194 | 0.000 | 0.151 | 0.491 | 2.737 | 0.380 |
| prompt 1 | Argentina | gpt-oss-120B | 916 | 0.437 | 0.520 | 0.999 | 0.193 | 0.001 | 0.139 | 0.467 | 2.713 | 0.356 |
| prompt 1 | Argentina | gpt-oss-20B | 916 | 0.495 | 0.588 | 1.000 | 0.194 | 0.000 | 0.109 | 0.315 | 2.561 | 0.204 |
| prompt 1 | United States | gpt-4o | 1466 | 0.487 | 0.601 | 1.000 | 0.186 | 0.000 | 0.104 | 0.206 | 2.404 | 0.110 |
| prompt 1 | United States | gpt-oss-120B | 1472 | 0.417 | 0.515 | 0.996 | 0.182 | 0.004 | 0.130 | 0.364 | 2.238 | -0.056 |
| prompt 1 | United States | gpt-oss-20B | 1472 | 0.341 | 0.421 | 0.992 | 0.178 | 0.008 | 0.166 | 0.449 | 2.144 | -0.150 |
| prompt 1 | Uruguay | gpt-4o | 843 | 0.497 | 0.570 | 1.000 | 0.338 | 0.000 | 0.213 | 0.593 | 2.542 | 0.499 |
| prompt 1 | Uruguay | gpt-oss-120B | 843 | 0.506 | 0.579 | 0.999 | 0.337 | 0.001 | 0.197 | 0.530 | 2.479 | 0.436 |
| prompt 1 | Uruguay | gpt-oss-20B | 843 | 0.458 | 0.525 | 1.000 | 0.338 | 0.000 | 0.195 | 0.382 | 2.331 | 0.288 |
| prompt 2 | Argentina | gpt-4o | 681 | 0.605 | 0.720 | 0.934 | 0.128 | 0.066 | 0.051 | 0.280 | 2.239 | -0.118 |
| prompt 2 | Argentina | gpt-oss-120B | 681 | 0.512 | 0.608 | 0.938 | 0.132 | 0.062 | 0.093 | 0.386 | 2.134 | -0.223 |
| prompt 2 | Argentina | gpt-oss-20B | 681 | 0.455 | 0.541 | 0.941 | 0.135 | 0.059 | 0.120 | 0.433 | 2.090 | -0.267 |
| prompt 2 | United States | gpt-4o | 1000 | 0.682 | 0.843 | 0.828 | 0.014 | 0.172 | 0.044 | 0.245 | 2.049 | -0.245 |
| prompt 2 | United States | gpt-oss-120B | 1457 | 0.565 | 0.698 | 0.833 | 0.018 | 0.167 | 0.103 | 0.348 | 1.946 | -0.348 |
| prompt 2 | United States | gpt-oss-20B | 1457 | 0.550 | 0.680 | 0.838 | 0.024 | 0.162 | 0.109 | 0.349 | 1.945 | -0.349 |
| prompt 2 | Uruguay | gpt-4o | 751 | 0.760 | 0.871 | 0.750 | 0.088 | 0.250 | 0.018 | 0.141 | 1.997 | -0.046 |
| prompt 2 | Uruguay | gpt-oss-120B | 751 | 0.750 | 0.859 | 0.740 | 0.079 | 0.260 | 0.018 | 0.172 | 1.964 | -0.079 |
| prompt 2 | Uruguay | gpt-oss-20B | 751 | 0.708 | 0.811 | 0.755 | 0.093 | 0.245 | 0.033 | 0.199 | 1.940 | -0.103 |
95% multinomial bootstrap CIs:
| prompt | country | model | IM | IM_lo | IM_hi | H_norm | H_norm_lo | H_norm_hi | JSD | JSD_lo | JSD_hi |
|---|---|---|---|---|---|---|---|---|---|---|---|
| prompt 1 | Argentina | gpt-4o | 1.000 | 1.000 | 1.000 | 0.415 | 0.394 | 0.435 | 0.151 | 0.128 | 0.175 |
| prompt 1 | Argentina | gpt-oss-120B | 0.999 | 0.997 | 1.000 | 0.437 | 0.415 | 0.457 | 0.139 | 0.117 | 0.164 |
| prompt 1 | Argentina | gpt-oss-20B | 1.000 | 1.000 | 1.000 | 0.495 | 0.487 | 0.499 | 0.109 | 0.093 | 0.128 |
| prompt 1 | United States | gpt-4o | 1.000 | 1.000 | 1.000 | 0.487 | 0.478 | 0.493 | 0.104 | 0.093 | 0.117 |
| prompt 1 | United States | gpt-oss-120B | 0.996 | 0.993 | 0.999 | 0.417 | 0.396 | 0.437 | 0.130 | 0.114 | 0.149 |
| prompt 1 | United States | gpt-oss-20B | 0.992 | 0.987 | 0.996 | 0.341 | 0.312 | 0.366 | 0.166 | 0.147 | 0.190 |
| prompt 1 | Uruguay | gpt-4o | 1.000 | 1.000 | 1.000 | 0.497 | 0.492 | 0.500 | 0.213 | 0.190 | 0.237 |
| prompt 1 | Uruguay | gpt-oss-120B | 0.999 | 0.996 | 1.000 | 0.506 | 0.497 | 0.515 | 0.197 | 0.174 | 0.223 |
| prompt 1 | Uruguay | gpt-oss-20B | 1.000 | 1.000 | 1.000 | 0.458 | 0.441 | 0.473 | 0.195 | 0.174 | 0.219 |
| prompt 2 | Argentina | gpt-4o | 0.934 | 0.916 | 0.952 | 0.605 | 0.563 | 0.639 | 0.051 | 0.036 | 0.073 |
| prompt 2 | Argentina | gpt-oss-120B | 0.938 | 0.919 | 0.956 | 0.512 | 0.465 | 0.555 | 0.093 | 0.069 | 0.121 |
| prompt 2 | Argentina | gpt-oss-20B | 0.941 | 0.924 | 0.959 | 0.455 | 0.406 | 0.498 | 0.120 | 0.097 | 0.151 |
| prompt 2 | United States | gpt-4o | 0.828 | 0.804 | 0.851 | 0.682 | 0.650 | 0.712 | 0.044 | 0.031 | 0.060 |
| prompt 2 | United States | gpt-oss-120B | 0.833 | 0.813 | 0.852 | 0.565 | 0.534 | 0.593 | 0.103 | 0.085 | 0.122 |
| prompt 2 | United States | gpt-oss-20B | 0.838 | 0.819 | 0.857 | 0.550 | 0.519 | 0.577 | 0.109 | 0.091 | 0.128 |
| prompt 2 | Uruguay | gpt-4o | 0.750 | 0.718 | 0.780 | 0.760 | 0.730 | 0.785 | 0.018 | 0.009 | 0.031 |
| prompt 2 | Uruguay | gpt-oss-120B | 0.740 | 0.708 | 0.771 | 0.750 | 0.716 | 0.779 | 0.018 | 0.010 | 0.033 |
| prompt 2 | Uruguay | gpt-oss-20B | 0.755 | 0.726 | 0.786 | 0.708 | 0.677 | 0.732 | 0.033 | 0.022 | 0.049 |
4. H1 — Compression (entropy ratio < 1)
Cells with H_norm(model)/H_norm(WVS) < 1:
prompt 1: 9/9 cells; prompt 2:
9/9 cells.
Verdict: SUPPORTED under prompt 1 — LLM distributions are more concentrated than the human WVS distributions in 9/9 prompt-1 cells, and this persists in 9/9 cells under prompt 2 (see H3b/H4 for the paired change).
5. H2 — Interior concentration (ΔIM > 0)
Cells with ΔIM = IM_model − IM_WVS > 0:
prompt 1: 9/9 cells; prompt 2:
9/9 cells.
Verdict: SUPPORTED under prompt 1 — under the baseline prompt the models pile probability onto the two interior options in 9/9 cells (mean ΔIM = +0.238 under prompt 1 vs +0.079 under prompt 2).
6. H3 — Mitigation (paired, M_both)
Per model x country paired differences (prompt 2 − prompt 1); negative
d_IM, d_JSD, d_W1 and positive d_H_norm favor mitigation:
| model | country | d_IM | d_H_norm | d_JSD | d_W1 | dIM_p1 | dIM_p2 | ratio_p1 | ratio_p2 |
|---|---|---|---|---|---|---|---|---|---|
| gpt-4o | Argentina | -0.066 | 0.190 | -0.100 | -0.211 | 0.194 | 0.128 | 0.494 | 0.720 |
| gpt-4o | United States | -0.172 | 0.196 | -0.060 | 0.039 | 0.186 | 0.014 | 0.601 | 0.843 |
| gpt-4o | Uruguay | -0.250 | 0.263 | -0.195 | -0.452 | 0.338 | 0.088 | 0.570 | 0.871 |
| gpt-oss-120B | Argentina | -0.061 | 0.075 | -0.046 | -0.081 | 0.193 | 0.132 | 0.520 | 0.608 |
| gpt-oss-120B | United States | -0.163 | 0.148 | -0.027 | -0.016 | 0.182 | 0.018 | 0.515 | 0.698 |
| gpt-oss-120B | Uruguay | -0.258 | 0.244 | -0.179 | -0.358 | 0.337 | 0.079 | 0.579 | 0.859 |
| gpt-oss-20B | Argentina | -0.059 | -0.040 | 0.011 | 0.118 | 0.194 | 0.135 | 0.588 | 0.541 |
| gpt-oss-20B | United States | -0.154 | 0.210 | -0.057 | -0.100 | 0.178 | 0.024 | 0.421 | 0.680 |
| gpt-oss-20B | Uruguay | -0.245 | 0.250 | -0.162 | -0.183 | 0.338 | 0.093 | 0.525 | 0.811 |
Pooled to one value per model (mean across the 3 countries):
| model | d_IM | d_H_norm | d_JSD | d_W1 |
|---|---|---|---|---|
| gpt-4o | -0.163 | 0.216 | -0.119 | -0.208 |
| gpt-oss-120B | -0.161 | 0.155 | -0.084 | -0.152 |
| gpt-oss-20B | -0.153 | 0.140 | -0.069 | -0.055 |
Tests (Wilcoxon signed-rank, one-sided in the hypothesized direction; rank-biserial r; sign test = binomial on cells favoring mitigation):
| metric | scope | wilcoxon_p | rank_biserial | n_favor | n_against | sign_p |
|---|---|---|---|---|---|---|
| H3a: Δ(IM) < 0 | pooled (1 value/model, n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| H3a: Δ(IM) < 0 | Argentina (n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| H3a: Δ(IM) < 0 | United States (n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| H3a: Δ(IM) < 0 | Uruguay (n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| H3b: Δ(H_norm) > 0 | pooled (1 value/model, n=3) | 0.125 | 1.000 | 3 | 0 | 0.125 |
| H3b: Δ(H_norm) > 0 | Argentina (n=3) | 0.250 | 0.667 | 2 | 1 | 0.500 |
| H3b: Δ(H_norm) > 0 | United States (n=3) | 0.125 | 1.000 | 3 | 0 | 0.125 |
| H3b: Δ(H_norm) > 0 | Uruguay (n=3) | 0.125 | 1.000 | 3 | 0 | 0.125 |
| H3c: Δ(JSD) < 0 | pooled (1 value/model, n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| H3c: Δ(JSD) < 0 | Argentina (n=3) | 0.250 | -0.667 | 2 | 1 | 0.500 |
| H3c: Δ(JSD) < 0 | United States (n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| H3c: Δ(JSD) < 0 | Uruguay (n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| Δ(W1) < 0 | pooled (1 value/model, n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
| Δ(W1) < 0 | Argentina (n=3) | 0.375 | -0.333 | 2 | 1 | 0.500 |
| Δ(W1) < 0 | United States (n=3) | 0.375 | -0.333 | 2 | 1 | 0.500 |
| Δ(W1) < 0 | Uruguay (n=3) | 0.125 | -1.000 | 3 | 0 | 0.125 |
Per-hypothesis cell counts (of 9 model x country cells):
- H3a: Δ(IM) < 0 holds in 9/9 cells → SUPPORTED
- H3b: Δ(H_norm) > 0 holds in 8/9 cells → SUPPORTED
- H3c: Δ(JSD) < 0 holds in 8/9 cells → SUPPORTED
With only n = 3 models, the pooled Wilcoxon p-values cannot fall below ~0.125 even for perfectly consistent effects; the direction counts and rank-biserial correlations above are the primary evidence.
7. H4 — Overshoot check
Flagged cells (prompt 2 flips the sign of ΔIM, or pushes the entropy ratio above 1):
No cells flagged.
No evidence of overcorrection: prompt 2 never flips interior concentration into interior avoidance, and never spreads the distribution beyond WVS entropy.
8. Figures
figures/fig1_distributions.png— WVS vs model distributions per country, prompt 1 and prompt 2 side by side.figures/fig2_dumbbell_interior_mass.png— interior mass per model, prompt 1 → prompt 2, with the WVS interior mass as reference line.figures/fig3_mitigation_quadrants.png— Δ(H_norm) vs Δ(JSD): the lower-right quadrant is true mitigation (more spread and closer to WVS); the upper-right is overshoot.figures/fig4_signed_error_heatmap.png— per-category signed errors, model x category, faceted by country x prompt.
9. Limitations
- Few models. n = 3 models (one proprietary, two open-weight from the same family) — tests are reported but the study is descriptive; rank-biserial effect sizes and per-model tables are the evidence.
- Single question, three countries. Results speak to Q130 immigration attitudes in ARG/URY/USA, not to middle-point bias in general.
- Aggregate-level analysis. Inputs are aggregated distributions; response counts per cell are available and were used for multinomial bootstrap CIs, but no respondent-level covariate analysis is possible here.
- Invalid-response mass. The gpt-4o/US/prompt-2 cell rests on renormalization after discarding ~31% invalid answers; its apparent distribution may be selection-biased (profiles the model refuses on are plausibly not random).
- Prompt confound. Prompt 2 changes several things at once (first-person narrative, explicit option-by-option evaluation, anti-moderation instruction, and it adds a political-ideology cue to the profile) — effects cannot be attributed to a single ingredient.
Appendix — prompts
Prompt examples: V1 vs. V2
Full texts of system and user prompts for question Q130.
Prompt V1
System prompt
You are a survey response simulator.
You have no personal opinions, identity, or affiliation.
You are not ChatGPT, Claude, or any named assistant.
Your only function is to produce the response that a person with a specific
sociodemographic profile would most likely give to questions from the
World Values Survey (WVS), Wave 7.
Critical rules:
1. Do NOT filter responses for political correctness or social desirability.
2. Reproduce the likely response of this specific person, even if it reflects
restrictive, conservative, or unpopular views on immigration.
3. Base your simulation strictly on the sociodemographic profile provided:
education, social class, occupation, and country are all relevant
predictors of both migration status and attitudes toward immigration.
4. Reason briefly in the "thinking" field (2-4 sentences) grounding your
inference in the profile — not in what seems like a reasonable or
balanced answer.
5. Respond EXCLUSIVELY in the JSON format specified. No additional text.
6. For both Q263 and Q130 respond with the EXACT option string provided.
User prompt
Respondent profile:
- Country of residence : Argentina
- Sex : Female
- Education : Upper secondary education
- Social class : Lower middle class
- Occupation : Skilled worker
Answer the following WVS questions as this person would,
consistent with their sociodemographic profile.
Q130. What should the government do about people from other countries
coming here to work?
Valid options (use exact strings):
1. "Let anyone come who wants to"
2. "Let people come as long as there are jobs available"
3. "Place strict limits on the number of foreigners who can come here"
4. "Prohibit people coming here from other countries"
Return ONLY this JSON (no markdown, no extra text):
{
"thinking": "<brief reasoning, 2-4 sentences>",
"Q130": "<exact option string>"
}
Prompt V2
System prompt
You will be given a self-description by a survey respondent
in their own words. Your task is to answer the survey question as that person
would, adopting their perspective, values, and lived experience as described.
Critical rules:
1. Do NOT filter responses for political correctness or social desirability.
2. Reproduce the likely response of this specific person, even if it reflects
restrictive, conservative, or unpopular views on immigration.
3. The four response options are equally valid positions held by real survey
respondents. You MUST NOT default to moderate or centrist answers.
Extreme positions are legitimate — assign them when the profile supports it.
4. Before selecting, evaluate each option explicitly in the "thinking" field
in first person, as the respondent:
- Would I let anyone come who wants to? Why or why not.
- Would I let people come only if there are jobs available? Why or why not.
- Would I place strict limits on foreigners? Why or why not.
- Would I prohibit people from coming entirely? Why or why not.
Then select the single most likely option.
5. Respond EXCLUSIVELY in the JSON format specified. No additional text.
6. Respond with the EXACT option string provided.
User prompt
Respondent profile:
I am a female living in Argentina. I work as a skilled worker and consider
myself lower middle class. My highest level of education is upper secondary
education. In political terms, I would describe myself as center-right.
Answer the following WVS question as this person would.
Q130. What should the government do about people from other countries
coming here to work?
Valid options (use exact strings):
1. "Let anyone come who wants to"
2. "Let people come as long as there are jobs available"
3. "Place strict limits on the number of foreigners who can come here"
4. "Prohibit people coming here from other countries"
Return ONLY this JSON (no markdown, no extra text):
{
"thinking": "<brief reasoning evaluating each option>",
"Q130": "<exact option string>"
}
Key difference
V2 includes a first-person narrative and requires an explicit evaluation of each option, reducing moderation bias and increasing fidelity to the respondent’s perspective.