Analysis report

Election Spatial Data

Data from StatLib, Carnegie Mellon University, published under https://diafunc.com/licences/view-only.

Target
ln(VOTES/POP)
Analyzed
2026-10-24 18:11 UTC

Summary

The model predicts ln(VOTES/POP), with the strongest reliance on YCOORD, and tracks patterns in the data less effectively than a straight line through the data. While YCOORD is the most relied-on input, six pairs of inputs contribute nearly identical information, which can make the formula less stable and harder to interpret. In certain slices, such as when YCOORD is in the lowest quarter or POP is in the highest quarter, the model's output aligns with its target much less closely than elsewhere.

Because the model does not improve on the strongest simple alternative and falls short in several segments, including for YCOORD in the lowest quarter (6.6% of variation explained) and POP in the highest quarter (25%), there is no evidence it adds value over basic approaches for decisions about individual rows. The formula is also difficult for non-specialists to interpret due to its complexity and specialist functions. The next step is to review the formula, simplify the input columns if possible, and validate any new version on a fresh sample before using it for decisions.

Formula

ln(VOTES/POP) = -0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)ln(VOTES/POP)=−0.5652−0.05×4.367−0.2948×INCOME+0.3343×POP+3.645e-8×XCOORD+0.1698×EDUCATION+0.1189×HOUSES−8.7e-8×YCOORD+0.1197×tanh−14.3−0.1889×INCOME−0.266×POP−6e-8×XCOORD+0.6618×EDUCATION−0.04004×HOUSES+2.107e-7×YCOORD−0.1×tanh−10.45−0.1786×INCOME+0.522×POP−3.802e-8×XCOORD+0.1×EDUCATION+0.37×HOUSES+1.891e-9×YCOORD
ln(VOTES/POP) = -0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)
9 terms · additively decomposable

Held-out diagnostics

TargetQualityErrorR²MAEGeneralizationRows
ln(VOTES/POP)37.15 %59.24 %0.40760.1072generalizing621
  • ln(VOTES/POP) · Quality 95 % CI 24.43 % – 51.72 %
  • ln(VOTES/POP) · Error 95 % CI 45.51 % – 71.24 %
  • ln(VOTES/POP) · R² 95 % CI 0.2876 – 0.5449
  • ln(VOTES/POP) · MAE 95 % CI 0.09818 – 0.1178

Concerns

CRITICAL model

6 pairs of inputs carry nearly the same information

6 pairs of the model's inputs move together so closely that the weight the model gives either one of a pair could as well belong to the other; all of them are almost identical. The closest are HOUSES and POP (Spearman's rho = 0.994 (Pearson r = 0.994)), EDUCATION and INCOME (Pearson r = 0.993 (Spearman's rho = 0.991)) and INCOME and POP (Pearson r = 0.993 (Spearman's rho = 0.991)). Consider dropping one input of each pair or combining the two.

Complete list (6)
InputsAssociationReading
houses · popSpearman's rho = 0.994 (Pearson r = 0.994)Almost identical
education · incomePearson r = 0.993 (Spearman's rho = 0.991)Almost identical
income · popPearson r = 0.993 (Spearman's rho = 0.991)Almost identical
houses · incomePearson r = 0.988 (Spearman's rho = 0.987)Almost identical
education · popPearson r = 0.987 (Spearman's rho = 0.982)Almost identical
education · housesPearson r = 0.984 (Spearman's rho = 0.981)Almost identical

CRITICAL model

The model loses to a straight line through the data on `ln(VOTES/POP)`

The model explains 41% of the variation on the held-out rows, where a straight line through the data explains 62%: 21 points less. The reference predictor is the better choice unless a readable formula is the point. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Row by row the two are about level.

CRITICAL implications

Weaker quality on 11 slices of the data

On 11 of the 24 slices compared the model is weaker than on all held-out rows (R² 0.408). The largest gaps: YCOORD in the lowest quarter (26,493,711 to 34,655,859) (R² 0.0655 against 0.408 on all rows, on 151 rows) and XCOORD in the third quarter (-89,940,116 to -83,384,249) (R² 0.16 against 0.408 on all rows, on 157 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.

Complete list (11)
SegmentRowsR²Against all rowsVerdict
YCOORD in the lowest quarter (26,493,711 to 34,655,859)1510.0655-0.342Much weaker
XCOORD in the third quarter (-89,940,116 to -83,384,249)1570.16-0.247Weaker
POP in the third quarter (9.64 to 10.5)1610.182-0.226Weaker
XCOORD in the highest quarter (-83,321,826 to -67,609,990)1550.191-0.217Weaker
EDUCATION in the second quarter (8.09 to 8.85)1440.195-0.212Weaker
INCOME in the second quarter (10.9 to 11.7)1560.212-0.195Weaker
POP in the highest quarter (10.5 to 14.2)1590.254-0.153Weaker
INCOME in the highest quarter (12.7 to 16.7)1520.266-0.141Weaker
HOUSES in the highest quarter (9.45 to 12.9)1550.269-0.139Weaker
EDUCATION in the highest quarter (9.79 to 13.7)1510.277-0.13Weaker
HOUSES in the lowest quarter (3.97 to 7.91)1520.294-0.114Weaker

Analysis

The report opens with the Headline and the Concerns, followed by the Discovered Relations when the analysis has targets and by Questions & Answers when questions were asked. Three sections carry the detail: Model presents one model per target, Implications states where the models hold and what to weigh before relying on them, and Data describes the table as supplied, column by column, for reference.

Generated 2026-10-24 18:11 UTC, analysis 665d4680-48b7-11f1-8087-d378640fe787, 1 target, time budget 1 h 0 min, compute budget 500 credits, 3,107 rows. The Provenance & Audit chapter holds the full record.

Validity

Validity: valid. Nothing in the data or the formula speaks against relying on this result.

How to read this

Whether this result is one to rely on. Quality says how closely the formula follows the data; validity says whether that closeness means anything. A formula that only restates its target, or that reads a column which already holds the answer, can reach a very high quality and still tell you nothing new.

What it found

ln rises with YCOORD and INCOME, falls with POP, HOUSES and XCOORD, and is highest at a middle value of EDUCATION.

  1. YCOORD and POP carry the model. YCOORD accounts for 36% of what the formula explains and POP for 32%. EDUCATION adds 12%, HOUSES 10% and XCOORD 7.5%.
  2. ln is highest at a middle value of EDUCATION. With the other inputs at typical values, the formula gives -0.506 at EDUCATION 11.2, against -0.598 at 3.64 and -0.557 at 14.9.
  3. ln falls with HOUSES. For each additional unit of HOUSES, the model's output for ln is lower by 0.0326. This holds with the other inputs at typical values.
  4. INCOME points one way in the table and another in the formula. Across all rows, more INCOME goes with less ln (correlation -0.34). In the formula, with the other inputs at typical values, more INCOME goes with more ln.
  5. The formula does worse than a straight line. The formula explains 41% of ln; a straight line explains more, 62%. That was measured on 621 rows it never saw. The formula typically misses ln by 0.107. It is weakest where YCOORD is between 26,500,000 and 34,700,000, where it explains 6.6%.

Summary

What to do next: The model loses to a straight line through the data on ln(VOTES/POP).

5 chapters, each headed by what it found.

YCOORD and POP carry 68% of the formula

What the formula relies on. Shares of the formula: YCOORD 36%, POP 32%, EDUCATION 12%, HOUSES 10%.

InputShare of importancePermutation importanceSensitivityResidual correlationOccurrences
YCOORD36.15 %0.77881.609e-080.011891
POP31.99 %0.68910.06686-0.11361
EDUCATION12.4 %0.26720.02612-0.13991
HOUSES10.03 %0.21620.03313-0.15581
XCOORD7.46 %0.16072.858e-09-0.0092551
INCOME1.97 %0.04230.01662-0.1321

The formula decomposes into 9 additive terms, a substantial decomposition. The Term Ablation chapter finds the load-bearing terms; many of these may be small decoration the formula could afford to lose.

Additive
Yes
Terms in the formula
9
Notation
-0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)
Target
ln(VOTES/POP)

A straight line does better here: R² 0.41 against 0.62

How well it holds. The formula explains 41% of ln; a straight line explains more, 62%.

R² of 0.408: weak. The model captures only a small part of the variance; either the relevant inputs are missing, or the target depends on interactions the formula did not recover. Mean absolute error is 0.107 on the target's scale.

Error
59.24 % (95 % CI 45.51 % – 71.24 %)
MAE
0.1072 (95 % CI 0.09818 – 0.1178)
N
621
Training rows
2486
Quality
37.15 % (95 % CI 24.43 % – 51.72 %)
R²
0.4076 (95 % CI 0.2876 – 0.5449)
Target
ln(VOTES/POP)

The model does not beat the simple yardsticks: a straight line through the data is ahead by 21 points of variance explained on the held-out rows. The model's complexity is not buying anything yet. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Of the 621 held-out rows where the two differ, the model is closer on 44% (95% interval 40% to 48%).

Best yardstick's score
0.6213 (95 % CI 0.5618 – 0.6581)
Best baseline R²
0.6213
Effect size d
-0.1436 (95 % CI -0.2143 – -0.07953)
Effect size d magnitude
negligible
Margin over the best yardstick
-0.2137 (95 % CI -0.3541 – -0.06572)
Margin's interval stays above zero
No
Model MAE
0.1072 (95 % CI 0.09818 – 0.1178)
Model
0.4076 (95 % CI 0.2876 – 0.5449)
Model R²
0.4076 (95 % CI 0.2876 – 0.5449)
Held-out rows
621
Held-out rows without an answer
0
Target
ln(VOTES/POP)
Rows where the model is closer
44.12 % (95 % CI 40.27 % – 48.05 %)
Rows compared
621
Rows level
0
Regression yardstick trained with gaps filled (too few complete rows)
No
Training rows of the regression yardstick
2486

The model explains held-out rows about as well as training rows (held-out R² 0.408, gap between training and held-out R² 0.0461): it generalizes. The structure the formula encodes carries from the training rows to the held-out rows.

Generalization gap
0.04607
N test
621
Target
ln(VOTES/POP)
Test error
0.1072 (95 % CI 0.09818 – 0.1178)
Test R²
0.4076 (95 % CI 0.2876 – 0.5449)
Train error
0.5126
Train R²
0.4537
Verdict
Generalizing

Weaker on 11 slices of the data, most in the lowest quarter of YCOORD

Where it is weak. The largest miss on a held-out row is 2.43 (recorded -3.06, predicted -0.624). 6.6% of the held-out rows are unlike the rows it learned from.

Segment ycoord in the lowest quarter (26,493,711 to 34,655,859) is much weaker than the aggregate (151 held-out rows): segment R² 0.0655 against aggregate R² 0.408 (gap -0.342). A drop this large means the model describes this slice of the data poorly; an input interaction or a missing column may be specific to this subset.

SegmentRowsR²Gap to all rowsVerdict
YCOORD = q11510.0655-0.3421Much weaker than on all rows
XCOORD = q31570.1602-0.2474Weaker than on all rows
POP = q31610.1819-0.2257Weaker than on all rows
XCOORD = q41550.1907-0.2169Weaker than on all rows
EDUCATION = q21440.1951-0.2125Weaker than on all rows
INCOME = q21560.2121-0.1955Weaker than on all rows
POP = q41590.2544-0.1532Weaker than on all rows
INCOME = q41520.2664-0.1412Weaker than on all rows
HOUSES = q41550.2686-0.1390Weaker than on all rows
EDUCATION = q41510.2775-0.1301Weaker than on all rows

The first 10 rows of 24. The other 14 are in the notebook.

Aggregate R²
0.4076
Measure
r2
Target
ln(VOTES/POP)

The worst held-out row was missed by 2.43 (target's scale). The 10 rows with the largest absolute residuals out of 621 held-out rows are shown. Each card breaks the failure down into per-term contributions and input values, so the failure mode is inspectable. A large residual with one concentrated term contribution means one term got this row wrong; a large residual with balanced contributions means a structural mismatch.

ActualPredictedResidualEDUCATIONHOUSESINCOMEPOPXCOORDYCOORD
-3.0570-0.6237-2.43338.6736.15911.569.68-84,787,80232,347,545
-1.7262-0.7216-1.00459.2228.45412.1310.18-81,461,92031,800,000
-1.4226-0.7557-0.66699.7498.91712.5510.62-97,797,88631,391,048
-1.2015-0.7002-0.501310.199.67213.0911.04-85,963,41837,696,424
-1.1593-0.7004-0.45889.0238.85612.079.981-79,480,26834,841,482
-0.2349-0.6630+0.42808.0558.05310.899.125-87,308,88731,990,903
-1.1391-0.7111-0.428011.8711.3314.7512.65-106,241,14531,769,320
-1.0206-0.6074-0.413210.19.74113.1811-115,352,91733,038,512
-1.1102-0.6990-0.41129.8979.32312.7710.76-87,491,86836,895,050
-0.7483-0.3413-0.40707.5336.91710.058.31-100,728,88343,179,627
Additive
Yes
N extrapolated
0
Held-out rows
621
Held-out rows for the interval
621
Residual P5
-0.2335
Residual P95
0.2006
Residual std
0.1714

41 of 621 held-out rows (6.6%) lie further from the training rows than 99 in 100 rows like them would, measured on the 6 inputs the model reads (education, houses, income, pop, xcoord, ycoord). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.

TargetInputs measuredLineHeld-out rowsBeyond the lineShare
ln(VOTES/POP)EDUCATION, HOUSES, INCOME, POP, XCOORD, YCOORD4.1621416.6 %
Score bins · 24 of 30 rows shown
CountFromTo
000.239
100.2390.478
200.4780.717
490.7170.955
530.9551.194
541.1941.433
731.4331.672
621.6721.911
471.9112.15
462.152.389

The first 10 rows of 24. The other 14 are in the notebook.

Not ready to use yet: 3 critical concerns

What to watch. First: 6 pairs of inputs carry nearly the same information.

SeveritySectionConcernDetail
CriticalModel6 pairs of inputs carry nearly the same information6 pairs of the model's inputs move together so closely that the weight the model gives either one of a pair could as well belong to the other; all of them are almost identical. The closest are HOUSES and POP (Spearman's rho = 0.994 (Pearson r = 0.994)), EDUCATION and INCOME (Pearson r = 0.993 (Spearman's rho = 0.991)) and INCOME and POP (Pearson r = 0.993 (Spearman's rho = 0.991)). Consider dropping one input of each pair or combining the two.
CriticalModelThe model loses to a straight line through the data on ln(VOTES/POP)The model explains 41% of the variation on the held-out rows, where a straight line through the data explains 62%: 21 points less. The reference predictor is the better choice unless a readable formula is the point. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Row by row the two are about level.
CriticalImplicationsWeaker quality on 11 slices of the dataOn 11 of the 24 slices compared the model is weaker than on all held-out rows (R² 0.408). The largest gaps: YCOORD in the lowest quarter (26,493,711 to 34,655,859) (R² 0.0655 against 0.408 on all rows, on 151 rows) and XCOORD in the third quarter (-89,940,116 to -83,384,249) (R² 0.16 against 0.408 on all rows, on 157 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.

The analysis ran with the configuration below. The checks and the verdict of this chapter are read against it.

  • Targets: 1 target: ln_votes_pop
  • Rows: 3,107 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: not assessed, because the data has no categorical column other than the target
  • Out-of-Distribution: held-out rows are scored against the training rows; predictions made outside this report are not scored
  • Provenance & Audit: recorded in the chapter of that name

Across 5 checks (3 pass, 1 warns, 1 fails, 3 critical concerns), at least one check fails or a critical concern is open: Not ready. The failing checks need addressing first; they typically indicate data leakage, severe miscalibration, or a model that loses to its baseline.

NameStatusDetail
GeneralizationPassheld-out quality holds up against training quality
Prediction Interval CoverageWarnintervals are wider than their level requires, largest gap 15.2 percentage points
Baseline Lift for ln(VOTES/POP)Failloses to the best baseline, R² lift -0.214
Model ConstraintsPassevery held-out prediction is finite and within the training range
Out-of-DistributionPass6.6% of held-out rows are out of distribution
N critical concerns
3
N fail
1
N pass
3
N warn
1
Overall verdict
Not ready

More rows in the lowest quarter of YCOORD would help most

What to collect next. Its R² there is 0.07 against 0.41 on all rows, on 151 held-out rows.

  • Collect more rows where YCOORD is in the lowest quarter (26,493,711 to 34,655,859). Reason: the model is far less accurate on the 151 held-out rows in this segment, explaining only 6.6% of the variation there.
  • Collect more rows where XCOORD is in the third quarter (-89,940,116 to -83,384,249) and the highest quarter (-83,321,826 to -67,609,990). Reason: the model is less accurate in these segments, explaining 16% of the variation on 157 rows and 19% on 155 rows.
  • Collect more rows where POP is in the third quarter (9.64 to 10.5) and highest quarter (10.5 to 14.2). Reason: the model is less accurate on these 161 and 159 rows, explaining 18% and 25% of the variation in these segments.
  • Collect more rows where EDUCATION is in the second quarter (8.09 to 8.85) and INCOME is in the second quarter (10.9 to 11.7) and highest quarter (12.7 to 16.7). Reason: the model is less accurate in these education and income segments, explaining 20% of the variation on 144 rows, 21% on 156 rows, and 27% on 152 rows.
  • Inspect the formulas and input columns used to reduce redundancy between columns carrying nearly the same information. Reason: diagnostics flag 6 pairs of inputs as nearly collinear, which can make the model less stable.

Evidence

Every chapter of the analysis in full: the figures the story rests on, and everything else the analysis measured.

Headline

The model explains less than half of its target: Diafunc modeled ln(VOTES/POP) from 6 columns, and the model explains 41% of its output, relying most on YCOORD.

  • One target was modeled; 621 rows were held out for checking.
  • A straight line through the data already explained 62%; the model lost by 21 points of variance explained.
  • Six pairs of inputs carry nearly the same information, a Critical concern.
Best R²
0.4076
Best quality
37.15 %
Best target
ln_votes_pop
Targets
1

Concerns

SeveritySectionConcernDetail
CriticalModel6 pairs of inputs carry nearly the same information6 pairs of the model's inputs move together so closely that the weight the model gives either one of a pair could as well belong to the other; all of them are almost identical. The closest are HOUSES and POP (Spearman's rho = 0.994 (Pearson r = 0.994)), EDUCATION and INCOME (Pearson r = 0.993 (Spearman's rho = 0.991)) and INCOME and POP (Pearson r = 0.993 (Spearman's rho = 0.991)). Consider dropping one input of each pair or combining the two.
CriticalModelThe model loses to a straight line through the data on ln(VOTES/POP)The model explains 41% of the variation on the held-out rows, where a straight line through the data explains 62%: 21 points less. The reference predictor is the better choice unless a readable formula is the point. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Row by row the two are about level.
CriticalImplicationsWeaker quality on 11 slices of the dataOn 11 of the 24 slices compared the model is weaker than on all held-out rows (R² 0.408). The largest gaps: YCOORD in the lowest quarter (26,493,711 to 34,655,859) (R² 0.0655 against 0.408 on all rows, on 151 rows) and XCOORD in the third quarter (-89,940,116 to -83,384,249) (R² 0.16 against 0.408 on all rows, on 157 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.

How to read this

Data-quality, model-quality, and deployment-risk issues detected during the analysis appear below, ordered by severity. Critical concerns are listed first; Warning and Info entries follow.

Discovered Relations

Quality and error measured on the 621 held-out rows
TargetFormulaQualityComplexityError
ln(VOTES/POP)ln(VOTES/POP) = -0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)37.15 %76.3 %59.24 %

How to read this

One model per target, each a formula with its quality, complexity and error. Higher quality at lower complexity describes the data most clearly. The findings below read the models together; the per-target chapters in the Model section carry each formula, its predictions and its diagnostics.

Model

The model's quality on held-out rows shows test share of variation explained at 0.408, well below the best baseline at 0.621. Six pairs of inputs carrying nearly identical information and weaker quality compared to a straight line are flagged in the Concerns chapter.

Nothing in the Model section's numbers stood out as unusual.

How to read this

The Model section presents one model per target: its formula, its predictions on held-out rows, the inputs it relies on, the baselines it is measured against, and diagnostics of how it behaves. With more than one target, the Composite Model, Multi-Output and Leaderboard chapters read the models as a set.

ln(VOTES/POP)

The Model section builds one model for ln(VOTES/POP): a formula that expresses it through the other columns. Diafunc searches the space of mathematical expressions for the formula that balances accuracy against simplicity, so the result is not a black box but an expression that can be read, evaluated and questioned. The chapters that follow show the formula, score it on rows it never saw during training, and take it apart term by term.

ln(VOTES/POP) Model

The model's output relies on YCOORD, POP and EDUCATION most: it depends on the range of YCOORD, rises as POP rises, and rises as EDUCATION rises, according to the formula given. HOUSES and XCOORD also contribute with smaller importance shares.

ln(VOTES/POP) = -0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)f:EDUCATION,HOUSES,INCOME,POP,XCOORD,YCOORD↦ln(VOTES/POP)EDUCATION,HOUSES,INCOME,POP,XCOORD,YCOORD,ln(VOTES/POP)∈Rln(VOTES/POP)=−0.5652−0.05×4.367−0.2948×INCOME+0.3343×POP+3.645e-8×XCOORD+0.1698×EDUCATION+0.1189×HOUSES−8.7e-8×YCOORD+0.1197×tanh−14.3−0.1889×INCOME−0.266×POP−6e-8×XCOORD+0.6618×EDUCATION−0.04004×HOUSES+2.107e-7×YCOORD−0.1×tanh−10.45−0.1786×INCOME+0.522×POP−3.802e-8×XCOORD+0.1×EDUCATION+0.37×HOUSES+1.891e-9×YCOORD
ln(VOTES/POP) = -0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)
Quality 37.15 % · Error 59.24 % on 621 held-out rows · Complexity 76.3 %
Held out R²
0.4076 (95 % CI 0.2876 – 0.5449)
Training rows
2486
Held-out rows
621
Inputs the formula reads
6
Terms in the formula
9

How to read this

The three gauges score the model on the held-out rows: rows that were set aside before the search and that the model never saw. They are the figures to quote for how the model does on new data.

MetricMeaning
QualityHow well the model predicts on the held-out rows, marked down for the size of its formula: 100% is an exact prediction, 0% is no better than always predicting the average. It is not R², and sits at or just below it
ErrorHow far the predictions lie from the held-out values, as a share of the miss of always predicting the average: 0% is an exact prediction, 100% is no better than the average
ComplexityThe size of the formula as a share of the complexity the search was allowed: a low figure is a short formula

The figures under During the search are the same measures on the training rows. They are what the search ranked its candidates by, so they describe the search and tend to flatter the model it chose. The Generalization chapter sets the training rows beside the held-out rows, and the Baselines chapter sets the model beside its baselines. The time and credit gauges account for the computation that produced the model, not for the model itself.

Prediction

The model predicts ln(VOTES/POP) for any row that supplies the other columns. This chapter applies it to the held-out rows, the rows set aside before training, so that the predictions can be compared with values the model never saw. The rows themselves and the function that predicts them are kept as reference under Foundation, with the processed data.

Prediction Chart

R² of 0.408: weak. The model captures only a small part of the variance; either the relevant inputs are missing, or the target depends on interactions the formula did not recover. Mean absolute error is 0.107 on the target's scale.

Error
59.24 % (95 % CI 45.51 % – 71.24 %)
MAE
0.1072 (95 % CI 0.09818 – 0.1178)
N
621
Training rows
2486
Quality
37.15 % (95 % CI 24.43 % – 51.72 %)
R²
0.4076 (95 % CI 0.2876 – 0.5449)
Target
ln(VOTES/POP)

How to read this

Actual ln(VOTES/POP) on the horizontal axis against the model's predicted value on the vertical axis, for the held-out rows the model never saw during training. Points on the diagonal are perfect predictions; systematic vertical offsets reveal bias, vertical spread reveals noise, and points far from the diagonal are rows the model handles poorly. With 10,000 held-out rows or more, the rows are counted instead of drawn one point each: each cell is a range of the actual and a range of the predicted value, its colour the number of rows that fall in both, and the cells whose two ranges match hold the rows the model predicts well.

Residual Distribution
Bias
-0.003629 (95 % CI -0.0184 – 0.009647)
N
621
P50
0.005482 (95 % CI -0.004674 – 0.01749)
P90
0.162 (95 % CI 0.1426 – 0.1825)
P95
0.2006 (95 % CI 0.1863 – 0.2309)
P99
0.2982 (95 % CI 0.2637 – 0.3265)
Std
0.1714 (95 % CI 0.1306 – 0.2235)

How to read this

How the held-out residuals (actual ln(VOTES/POP) minus predicted) are distributed. Bias is their mean: a value away from zero means the model is systematically high or low rather than merely imprecise. The standard deviation and the percentiles describe the spread, and the tail percentiles say how large the worst misses get. Every figure carries a bootstrap 95% confidence interval; with a small held-out set those intervals are wide, and that width is itself the finding.

Which inputs matter most
InputShare of importancePermutation importanceSensitivityResidual correlationOccurrences
YCOORD36.15 %0.77881.609e-080.011891
POP31.99 %0.68910.06686-0.11361
EDUCATION12.4 %0.26720.02612-0.13991
HOUSES10.03 %0.21620.03313-0.15581
XCOORD7.46 %0.16072.858e-09-0.0092551
INCOME1.97 %0.04230.01662-0.1321

How to read this

The chart ranks the inputs of the ln(VOTES/POP) model by permutation importance: how much the model's error rises when that input's values are shuffled across rows so that it carries no information. A longer bar means the model relies on the input more. The order says which columns the model reads most, and those are the columns where measurement quality and data collection matter most. A short bar marks an input the model barely uses, which is a fact about this model and not a verdict on the column. Importance describes the model's reliance and nothing more: an input can rank high because it stands in for something the data does not contain. Where the search measured it, an input also carries the direction in which the model's output moves as the input rises, counted on the rows the search trained on, and the change of the output when the input alone goes from its first to its third quartile; both describe the formula inside the observed range and say nothing about causes.

Baselines

The model does not beat the simple yardsticks: a straight line through the data is ahead by 21 points of variance explained on the held-out rows. The model's complexity is not buying anything yet. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Of the 621 held-out rows where the two differ, the model is closer on 44% (95% interval 40% to 48%).

Best yardstick's score
0.6213 (95 % CI 0.5618 – 0.6581)
Best baseline R²
0.6213
Effect size d
-0.1436 (95 % CI -0.2143 – -0.07953)
Effect size d magnitude
negligible
Margin over the best yardstick
-0.2137 (95 % CI -0.3541 – -0.06572)
Margin's interval stays above zero
No
Model MAE
0.1072 (95 % CI 0.09818 – 0.1178)
Model
0.4076 (95 % CI 0.2876 – 0.5449)
Model R²
0.4076 (95 % CI 0.2876 – 0.5449)
Held-out rows
621
Held-out rows without an answer
0
Target
ln(VOTES/POP)
Rows where the model is closer
44.12 % (95 % CI 40.27 % – 48.05 %)
Rows compared
621
Rows level
0
Regression yardstick trained with gaps filled (too few complete rows)
No
Training rows of the regression yardstick
2486

How to read this

The table scores the model for ln(VOTES/POP) against simple yardsticks on the same held-out rows. A yardstick is a predictor simple enough to need no explanation: a constant (the average, the middle value, the most common class or level, the average count), a plain regression on the numeric inputs (a straight line, a logistic regression, a Poisson regression), and for a series over time a forecast from its own past (the last value, the value one season back, the recent trend extended). Which of them appear depends on what kind of column ln(VOTES/POP) is. They are yardsticks only: the analysis has one model, and it is the last row. A regression yardstick answers every row the model answers: where one of its numeric inputs is empty, it reads the average of that input over the training rows. Nothing is filled in for the model. A yardstick whose row is empty could not be scored, and the summary then says what the margin is measured against.

Read the columns from top to bottom. Each kind of target is scored by the measure it is judged on: R² and MAE for a continuous value, with MASE added for a series (below 1 means a typical miss is smaller than the series' usual step from one row to the next); accuracy and balanced accuracy for a yes/no value, with the Brier score where a probability is predicted; accuracy and macro F1 for a class; weighted kappa and the distance in levels for an ordered level; Poisson deviance and RMSE for a count. When the model clears every yardstick by a wide margin, its structure earns its place. When it is level with the regression yardstick, a plain regression describes the data as well. When it is level with the constant, the inputs carry no usable signal for ln(VOTES/POP).

The margin over the best yardstick comes with an interval. When that interval includes zero, the lead is not settled on this many held-out rows. The share of rows on which the model is closer than the best yardstick is counted only on the rows where the two differ; for a yes/no value or a class these are the rows where the two disagree.

Generalization

The model explains held-out rows about as well as training rows (held-out R² 0.408, gap between training and held-out R² 0.0461): it generalizes. The structure the formula encodes carries from the training rows to the held-out rows.

Generalization gap
0.04607
N test
621
Target
ln(VOTES/POP)
Test error
0.1072 (95 % CI 0.09818 – 0.1178)
Test R²
0.4076 (95 % CI 0.2876 – 0.5449)
Train error
0.5126
Train R²
0.4537
Verdict
Generalizing

How to read this

The chart sets the score of the ln(VOTES/POP) model on the rows it trained on beside its score on the held-out rows it never saw, and the gap between the two bars is the finding. The score is the one that suits the target: R² for a quantity, balanced accuracy for a yes/no target, weighted kappa for ordered levels. The held-out figure carries a bootstrap 95% confidence interval, which says how far it could move with a different held-out draw; the training bar has none, because it is measured on the rows that shaped the model.

The verdict reads from the two figures. Generalizing: the held-out score is strong, or training and held-out agree closely; the structure the formula encodes carries to new rows. Overfit: training is far ahead of held-out and the held-out score is not strong on its own; the formula has absorbed noise from the training rows, and the training figure overstates what to expect on new data. Underfit or noisy: held-out is far ahead of training; this is not strength, it usually means an outlier or a flat region in the training rows that the held-out rows happen to avoid. Insufficient: fewer than 30 held-out rows and no strong held-out score, too little evidence for a negative verdict. A model that predicts the same value for every held-out row gets no verdict: there is nothing that could carry over. In every case the width of the held-out interval says how much weight the gap can bear.

How each term responds to its inputs

The formula decomposes into 9 additive terms, a substantial decomposition. The Term Ablation chapter finds the load-bearing terms; many of these may be small decoration the formula could afford to lose.

Additive
Yes
Terms in the formula
9
Notation
-0.5652 − 0.05 × (4.367 − 0.2948 × INCOME + 0.3343 × POP + (3.645 × 10^-8) × XCOORD + 0.1698 × EDUCATION + 0.1189 × HOUSES − (8.7 × 10^-8) × YCOORD) + 0.1197 × tanh(-14.3 − 0.1889 × INCOME − 0.266 × POP − (6 × 10^-8) × XCOORD + 0.6618 × EDUCATION − 0.04004 × HOUSES + (2.107 × 10^-7) × YCOORD) − 0.1 × tanh(-10.45 − 0.1786 × INCOME + 0.522 × POP − (3.802 × 10^-8) × XCOORD + 0.1 × EDUCATION + 0.37 × HOUSES + (1.891 × 10^-9) × YCOORD)
Target
ln(VOTES/POP)

How to read this

The formula for ln(VOTES/POP) is split into its additive terms, and each term is traced as one of its inputs moves across the training range while the other inputs stay at their medians. Each curve is therefore a profile of the term at the typical row, not an average over the data: it shows what the term contributes at every value of that input when everything else is ordinary.

A term that depends on several inputs gets one curve per input; a constant term gets none. Terms the formula subtracts are drawn with their sign, so a curve below zero pulls the prediction down. At any fixed row, the terms add up to the model's prediction. Where the search measured it, a term also carries its share of the variation of the model's output on the rows the search trained on; that is a share of what the formula returns, not of ln(VOTES/POP) itself. The notebook lets the reader trim each range to the central 95% of the input. When the formula has no additive structure, the chapter traces the whole formula as a single term along each of its inputs, and the Sensitivity chapter is the better read for how the inputs combine.

How the formula behaves outside the data

The model diverges beyond the observed range of income, pop, xcoord, education, houses, ycoord: predictions there are not supported by the formula's shape. Extrapolate with caution.

Bounded at infinity
No
Inputs the formula reads
6
N singularities
0
Risky inputs
income, pop, xcoord, education, houses, ycoord
Target
ln(VOTES/POP)
Limits at neg infinity
InputKind
INCOMENegative infinity
POPPositive infinity
XCOORDPositive infinity
EDUCATIONPositive infinity
HOUSESPositive infinity
YCOORDNegative infinity
Limits at pos infinity
InputKind
INCOMEPositive infinity
POPNegative infinity
XCOORDNegative infinity
EDUCATIONNegative infinity
HOUSESNegative infinity
YCOORDPositive infinity

How to read this

The formula for ln(VOTES/POP) is read as a mathematical object, without data, to state how it behaves beyond the range it was trained on. A black box cannot answer that question; a formula can. For each input the chapter reports the limit as the input grows without bound in either direction (whether the formula diverges, settles to a finite value or oscillates, with the sign tracked exactly, so that a term like minus two times the cube of the input is reported as diverging downward on the right and upward on the left), whether the formula stays finite in every direction, and any singularity with its solved location: a division whose denominator reaches zero, a logarithm or square root whose argument leaves its domain, or a periodic pole.

The inputs along which the formula diverges or meets a singularity are listed as the risky ones; along them the formula's shape gives no support for extrapolation. A formula that stays finite everywhere with no singularity carries no structural hazard when extrapolated; the data still ends where it ends, and a prediction outside the training range remains unsupported by evidence. The plain-language summary at the end states the same facts in one paragraph.

Contributions per term
Additive
Yes
N rows
5

The notebook draws this chapter's figure from each held-out row; the row-by-row detail is there.

How to read this

For up to five representative held-out rows, the chapter draws one bar chart showing how each additive term of the formula builds that row's prediction of ln(VOTES/POP). The five rows are the worst prediction (largest absolute residual), the best (smallest), the median miss, the row with the smallest prediction and the row with the largest. When two roles fall on the same row, which is common with few held-out rows, the earlier role keeps it and fewer than five charts appear.

In each chart the bars stack the terms' contributions at the row's input values, terms the formula subtracts sit below zero, and the bars sum to the prediction. The dashed line marks the actual value; the distance between it and the top of the stack is the residual. The bars are evaluated at the same precision as the predictions, so they agree with the Prediction Chart. When the formula has no additive structure, each chart holds one bar for the whole formula, and the Sensitivity chapter is the better read for how individual inputs move it.

What each term is worth

Full-formula R² is 0.408. Each bar below shows how much R² drops when that term is replaced by its mean contribution. Large drop: load-bearing term; near zero: decoration the formula could lose; negative: overfit signal (ablation improves R²).

Additive
Yes
Baseline R²
0.4076
Held-out rows
621

The notebook draws this chapter's figure from each held-out row; the row-by-row detail is there.

How to read this

For each additive term of the formula for ln(VOTES/POP), the chart shows how much the held-out R² drops when that term is replaced by its mean contribution, so that it no longer varies from row to row. The bars are sorted from the largest drop down, and the dashed line marks the R² of the full model.

A large drop means the term carries real predictive work; the complexity it adds is paid for. A small drop means the term adds little beyond its average value: it may refine a stronger term, or its curve in the chapter "How each term responds to its inputs" may be nearly flat. A negative drop means the held-out R² rises without the term, which is a sign that the term tracks noise in the training rows. Each figure describes what a term contributes inside the model as discovered; the chart diagnoses the model, it is not a guide to removing terms. When the formula has no additive structure, the chart shows one bar for the whole formula.

What-If
The prediction at the typical row: every input at its median or most common value
ItemValue
EDUCATION8.837
HOUSES8.628
INCOME11.73
POP9.622
XCOORD-90,194,126
YCOORD38,417,629
Term 1 adds-0.7835
Term 2 adds0.1729
Term 3 adds-0.1608
Term 4 adds0.1644

The first 10 rows of 16. The other 6 are in the notebook.

Additive
Yes
Held-out rows for the interval
621
Terms in the formula
9
Residual P5
-0.2335
Residual P95
0.2006
Residual std
0.1714

How to read this

The chapter shows the model's prediction for ln(VOTES/POP) at one input combination, with the contribution of each term stacked beneath it. The inputs start at their training medians, so the first view is the prediction for a typical row, and each input can move within the range the training rows cover; the notebook lets the reader change the inputs and watch the prediction and the stack update.

In the stack, a long bar marks the term that dominates at this input combination, often the one whose removal costs most in the chapter "What each term is worth". A short bar marks a term that makes a small adjustment here; the chapter "How each term responds to its inputs" shows whether it stays small everywhere or grows toward the edges of the range. A negative bar marks a term that pulls the prediction down at this point, either because the formula subtracts it or because it evaluates below zero.

The inputs stay inside the training range for a reason: the formula computes a value anywhere, but outside that range no training row supports it. When the formula has no additive structure, the stack holds a single bar for the whole formula and the inputs move the prediction directly.

Sensitivity

The prediction responds to 6 inputs. The formula is additive: each curve below shows the change in the prediction per unit of one input (∂ŷ/∂xᵢ) independently. Flat curves mean a constant linear response, bent curves a non-linear response that depends on the position in the range, and zero crossings a response that reverses sign between regions.

Additive
Yes
Terms in the formula
9

How to read this

For each input, the chart traces the rate at which the predicted ln(VOTES/POP) changes as that input moves across its training range, with the other inputs held at their medians. The rate is the local slope of the prediction with respect to the input, measured by a small finite difference at each point. A table summarizes each input with the mean, minimum and maximum of the absolute slope, which ranks the inputs by how strongly the prediction responds to them.

A flat curve means the model is close to linear in that input: the prediction responds at the same rate everywhere in the observed range, which is easy to state and says nothing about values beyond that range. A curve that grows or shrinks marks diminishing or accelerating returns, and whether that is plausible is a question for the domain. A curve that crosses zero means the prediction rises with the input in one part of the range and falls in another, which is either a real optimum or a sign that the formula bends around a few rows. A curve with a large magnitude marks an input to which the prediction is highly responsive; the chapter "What each term is worth" says whether the term behind it also carries predictive work.

In the table, the mean absolute slope ranks the inputs by typical responsiveness. A minimum close to the maximum means the responsiveness is nearly constant; a wide gap means it varies strongly across the range. The chapter reads the whole formula, so it applies whether or not the formula splits into terms.

How two inputs act together

Some terms couple multiple inputs within a single term: genuine interactions exist. The heatmaps below show how the prediction's response to one input depends on another (the others held at the median). Curved isocontours mean genuine interaction; parallel stripes mean the two inputs act separately.

The prediction across EDUCATION (columns) and HOUSES (rows), the other inputs at their typical values
HOUSES \ EDUCATION3.6385.6947.7499.80511.8613.92
3.135-0.5102-0.5237-0.4888-0.3673-0.3496-0.3673
5.128-0.5265-0.5427-0.5169-0.3986-0.3817-0.4066
7.121-0.5554-0.5792-0.5677-0.4596-0.4476-0.4813
9.114-0.6165-0.6508-0.652-0.5488-0.5291-0.5559
11.11-0.6985-0.7289-0.7263-0.6151-0.5784-0.595
13.1-0.7512-0.772-0.7652-0.6508-0.6023-0.6145
The prediction across EDUCATION (columns) and INCOME (rows), the other inputs at their typical values
INCOME \ EDUCATION3.6385.6947.7499.80511.8613.92
7.587-0.7283-0.7501-0.6779-0.6018-0.6142-0.637
9.47-0.6681-0.6991-0.665-0.5668-0.5717-0.5978
11.35-0.609-0.6418-0.6371-0.5333-0.5219-0.5512
13.24-0.5567-0.5865-0.5979-0.5066-0.4671-0.4964
15.12-0.5127-0.5384-0.5557-0.4897-0.4144-0.4364
17-0.4753-0.4976-0.5163-0.4784-0.3735-0.378
The prediction across EDUCATION (columns) and POP (rows), the other inputs at their typical values
POP \ EDUCATION3.6385.6947.7499.80511.8613.92
4.369-0.4509-0.4283-0.3048-0.2727-0.2865-0.3045
6.395-0.4894-0.4925-0.4005-0.3227-0.3324-0.355
8.421-0.5415-0.5621-0.5297-0.4246-0.4282-0.4632
10.45-0.6517-0.6876-0.698-0.5997-0.5591-0.5798
12.47-0.7664-0.7903-0.8031-0.7366-0.6358-0.6356
14.5-0.8202-0.8385-0.8532-0.8291-0.7054-0.6752
The prediction across EDUCATION (columns) and XCOORD (rows), the other inputs at their typical values
XCOORD \ EDUCATION3.6385.6947.7499.80511.8613.92
-124,230,000-0.6355-0.5675-0.4778-0.4835-0.5032-0.523
-114,073,000-0.636-0.6264-0.5146-0.494-0.5143-0.5362
-103,917,000-0.6211-0.6438-0.571-0.5022-0.5187-0.5442
-93,760,000-0.6029-0.6353-0.6203-0.517-0.5144-0.5436
-83,603,400-0.5922-0.6226-0.6384-0.5552-0.5052-0.5325
-73,446,800-0.5921-0.6178-0.6408-0.6084-0.5076-0.5151
The prediction across EDUCATION (columns) and YCOORD (rows), the other inputs at their typical values
YCOORD \ EDUCATION3.6385.6947.7499.80511.8613.92
25,117,100-0.654-0.6892-0.7263-0.7616-0.7654-0.6615
29,424,700-0.6359-0.6711-0.7074-0.7305-0.6588-0.5921
33,732,400-0.6178-0.6528-0.6839-0.6556-0.5572-0.5626
38,040,100-0.5996-0.6325-0.6367-0.5361-0.5136-0.5426
42,347,800-0.5806-0.6013-0.5301-0.4669-0.4909-0.5241
46,655,400-0.5569-0.5262-0.4286-0.4377-0.472-0.5059
The prediction across HOUSES (columns) and INCOME (rows), the other inputs at their typical values
INCOME \ HOUSES3.1355.1287.1219.11411.1113.1
7.587-0.4224-0.477-0.5635-0.6331-0.6701-0.6938
9.47-0.4126-0.4549-0.5329-0.6194-0.6717-0.7019
11.35-0.4171-0.4512-0.5139-0.6055-0.6755-0.7135
13.24-0.4293-0.4575-0.504-0.5856-0.6698-0.7181
15.12-0.4389-0.4618-0.4951-0.5578-0.6457-0.7079
17-0.4387-0.4573-0.4813-0.5254-0.6043-0.6807
Additive
Yes
Terms in the formula
9

How to read this

When a single term of the formula combines two or more inputs, the prediction's response to one of them depends on the value of the other. This chapter draws one surface for each such pair: the predicted ln(VOTES/POP) across the plane of the two inputs, with every other input held at its training median. Pairs that never share a term have no interaction by construction, and the curves in the chapter "How each term responds to its inputs" already say everything about them. Where the search tested a pair, the summary says on how many pairs of rows the two inputs acted together in the model's output; that is a statement about the formula, not a finding that the data hold no other interaction.

Parallel stripes mean the two inputs act almost independently, so the surface is close to a sum of two one-input curves. Curved contours mean a real interaction, where the slope along one input changes with the other; the location of the peak or trough matters. A saddle, rising along one axis and falling along the other, marks a trade-off between the two. A sharp edge or cliff means the formula encodes a change of regime, and the curve for the same input in the chapter "How each term responds to its inputs" shows whether the bend appears there too.

The grid is deliberately coarse, and the color scale runs from low to high predictions. When the formula has no additive structure, the single whole-formula term holds every input, so every pair appears; the number of surfaces is capped for models with many inputs.

Worst Predictions

The worst held-out row was missed by 2.43 (target's scale). The 10 rows with the largest absolute residuals out of 621 held-out rows are shown. Each card breaks the failure down into per-term contributions and input values, so the failure mode is inspectable. A large residual with one concentrated term contribution means one term got this row wrong; a large residual with balanced contributions means a structural mismatch.

ActualPredictedResidualEDUCATIONHOUSESINCOMEPOPXCOORDYCOORD
-3.0570-0.6237-2.43338.6736.15911.569.68-84,787,80232,347,545
-1.7262-0.7216-1.00459.2228.45412.1310.18-81,461,92031,800,000
-1.4226-0.7557-0.66699.7498.91712.5510.62-97,797,88631,391,048
-1.2015-0.7002-0.501310.199.67213.0911.04-85,963,41837,696,424
-1.1593-0.7004-0.45889.0238.85612.079.981-79,480,26834,841,482
-0.2349-0.6630+0.42808.0558.05310.899.125-87,308,88731,990,903
-1.1391-0.7111-0.428011.8711.3314.7512.65-106,241,14531,769,320
-1.0206-0.6074-0.413210.19.74113.1811-115,352,91733,038,512
-1.1102-0.6990-0.41129.8979.32312.7710.76-87,491,86836,895,050
-0.7483-0.3413-0.40707.5336.91710.058.31-100,728,88343,179,627
Additive
Yes
N extrapolated
0
Held-out rows
621
Held-out rows for the interval
621
Residual P5
-0.2335
Residual P95
0.2006
Residual std
0.1714

How to read this

The held-out rows on which the model misses ln(VOTES/POP) by the most, sorted by absolute residual with the largest first and capped at ten. Each card shows the row's actual value, the prediction, the residual, the contribution of every additive term at that row and the row's input values. R² and MAE say how good the model is on average; these cards say where it fails and let each failure be read input by input and term by term.

A large residual with one dominant term means that term produced the wrong value at this row; the row's value for that input, read against its curve in the chapter "How each term responds to its inputs", shows whether it fell in a region the formula models poorly. A large residual with balanced contributions means every term was a little off and the sum still missed, which points to a shape the formula cannot represent in that region. Residuals that change sign from card to card mean the misses are not a consistent bias but scattered errors on particular rows. When the formula has no additive structure, each card shows a single whole-formula contribution.

Prediction Interval Coverage

Across 621 held-out rows, the 95% prediction interval actually covers 97.3% of the rows. The normal band is wider than needed for this residual distribution (worst gap 15.2 percentage points), often because a few large residuals inflate σ above what the bulk requires. Real uncertainty for typical rows is tighter than the interval suggests.

Nominal levelHalf-widthEmpirical coverage
50 %0.115665.22 %
80 %0.219690.18 %
90 %0.281995.33 %
95 %0.335997.26 %
Largest miss (percentage points)
15.22
Held-out rows
621
Residual P2.5
-0.3272
Residual P97.5
0.2502
Verdict
Underconfident

How to read this

Each held-out prediction of ln(VOTES/POP) carries a prediction interval, and this chapter checks whether that interval covers the actual value as often as it claims. The interval reported with each prediction is built from the held-out residuals themselves: its bounds are the 2.5th and 97.5th percentiles of the residuals added to the prediction, so it is asymmetric when the residuals are skewed and assumes no particular error distribution.

The coverage table checks a second, simpler band: the symmetric interval that a normal error distribution with the residuals' standard deviation would give. At four nominal levels (50%, 80%, 90% and 95%) it lists the half-width of that normal band and the share of held-out rows whose actual value falls inside it. Empirical coverage close to nominal means the residuals are close enough to normal that the two bands agree and the interval can be taken at face value. Empirical coverage below nominal means the normal band is too narrow, the residuals have heavier tails than a normal distribution, and the percentile-based interval is the one to trust. Empirical coverage above nominal means the normal band is wider than the data needs, usually because a few large residuals inflate the standard deviation. Every figure comes from the same held-out residuals the intervals are built from.

Regression Diagnostics

621 held-out residuals, with a spread up to 2.43 in absolute terms. Mean residual is -0.00363, close to zero. The model is approximately unbiased on these held-out rows (a small held-out set makes this less reliable; the Prediction Chart chapter states R² and the mean absolute error with their 95% confidence intervals). The charts below check whether the errors look like noise: a pattern in residuals-vs-fitted or a curving Q-Q means a structural miss. The held-out rows are a random draw, so their order carries no time and the autocorrelation of the residuals is not assessed.

Abs residual vs predicted r
-0.1367
Bias
-0.003629
Bias over residual sd
-0.02118
Held-out rows
621
Order
shuffled
Residual sd
0.1714
Share within normal band
0.9726

The notebook draws this chapter's figure from each held-out row; the row-by-row detail is there.

How to read this

Four residual diagnostics for ln(VOTES/POP), all computed from the held-out residuals. Each asks in its own way whether the model's errors look like noise, which is what remains when a model has captured all the structure the data holds.

Residuals against predicted values: Each held-out row is plotted with the model's prediction on the horizontal axis and its residual on the vertical axis, around a zero line. A symmetric cloud around zero means errors of similar size across the predicted range and no systematic bias. A funnel or fan means the size of the errors depends on the predicted value: the model is more uncertain in some regions than in others, and its prediction interval is not equally trustworthy everywhere. A curved pattern, a smile or a frown, means the model misses a structural component; the chapters "How each term responds to its inputs" and "How two inputs act together" show the shapes the formula does capture.

Normal Q-Q plot: The sorted residuals are plotted against the quantiles of a normal distribution, with the diagonal marking a perfectly normal set of residuals. Points that hug the line mean approximately normal residuals, so the normal band in the Prediction Interval Coverage chapter will hold. An S-shape means heavier or lighter tails than normal; heavier tails (below the line at the left, above it at the right) mean the model occasionally produces large errors. A banana or arc means skewed residuals: the model is systematically high or low in part of the range.

Histogram: The residuals binned into equal-width intervals. A bell centered on zero means symmetric errors with no bias. An off-center bell means the model is biased, with a mean error away from zero. A long tail or two peaks mean outliers or two regimes inside the prediction range.

Autocorrelation: For each lag, the correlation of the residual sequence with itself shifted by that many rows, with the band that pure noise would stay inside at plus or minus 1.96 divided by the square root of the row count. Bars inside the band mean uncorrelated residuals with no order-dependent structure left. A bar at lag 1 outside the band means the residuals of neighbouring dates correlate: structure in time that the model has not captured. A wave across the lags means periodic structure remains, and the Time Series chapter in the Data section is where to look for its period.

Autocorrelation carries meaning only when the row order itself does. When the data has a date column, the held-out rows are the most recent ones in date order, and the autocorrelation is assessed. Without a date column the held-out rows are a random draw: the row after a held-out row is an arbitrary other row, so the autocorrelation is not assessed and the summary above says so.

Search Progress

The search ran for 10 generations, ending at quality 0.565 (gain +0.0528 from generation 2). The curve shows a substantial climb; if the last generations are still rising, a longer time limit is likely to produce a better model.

First generation
2
First quality
51.19 %
Last generation
12
Last quality
56.47 %
Max quality
56.47 %
N points
10
N total generations
10

How to read this

The line traces the best quality the search for the ln(VOTES/POP) model had reached at each generation, from the first generation to the last. Quality is the technology's combined score on the training rows, the figure the Model Metrics chapter defines. A curve that flattens well before the last generation means the search converged: the budget was more than enough, and the model is the one the search settled on. A curve still rising at the last generation means the budget ended before the search settled, and the model is the best the search reached within it. The chart describes the search, not the data: it says whether the search had time to settle, not whether more rows would help.

Model Constraints

Across 621 held-out predictions, the formula is mathematically well-behaved: every output is finite, stays inside the training-target ±2σ band, and no prediction runs away beyond the bounded-prediction limit. It is safe to consume downstream at face value.

NameStatusDetail
Output coherentPassno non-finite predictions across 621 rows
Within domainPassno rows outside the training target's ±2σ range across 621 rows
Bounded predictionsPassno runaway predictions beyond ±10σ across 621 rows
Held-out rows
621
N non finite
0
N outside domain
0
N runaway
0
Verdict
Clean

How to read this

Sanity checks on the ln(VOTES/POP) formula, run against the held-out rows. Three checks: every prediction is a finite number (output coherent), predictions stay within the range of the training target widened by two standard deviations on each side (within domain), and no single prediction runs away more than ten standard deviations from the training mean (bounded predictions).

These are pass or fail guards, not quality measures: a formula can clear all three and still predict poorly. A failure is the stronger signal. It means the formula misbehaves numerically somewhere in the data it was shown, and any downstream use of it should wait until that is understood.

Modeling

Measured during the search, on the rows the model was trained on

Error
51.26 %
N train
2486
Quality
40.57 %

How to read this

The function below trains the model for ln(VOTES/POP) on the processed data. Its output is the model that every other chapter of this section scores and dissects.

Findings

2 findings from the model diagnostics (2 Critical) are listed in the Concerns chapter at the top of the analysis.

Data

Several pairs such as HOUSES and POP, and EDUCATION and INCOME, move together closely, with all columns complete, no duplicates found, and weak clustering quality. All numeric columns were assessed for outliers, with the highest at 3.15 percent in pop.

Most notable in the Data section:

  • HOUSES and POP move together (correlation 0.994)
  • EDUCATION and INCOME move together (correlation 0.993)
  • INCOME and POP move together (correlation 0.993)

How to read this

The Data section describes the table as supplied, before any modeling: the Column Profiles overview of every column and its role, one chapter per column with its distribution and correlations, a closer look at columns with notable characteristics, Duplicate Rows, Leakage Suspicion, a map for paired coordinate columns, and the General chapter with descriptive statistics, correlations, missing values, outlier ranges, clusters and segments across all columns.

Column Profiles

Profiled 7 columns across 3,107 rows (7 numeric, 0 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 1 column is strongly skewed: the mean of such a column is pulled toward its long tail, so the median is the better guide to a typical value.

Columns
NameRoleTypeNMissingMeanStdMinP25MedianP75MaxSkewnessCV
ln(VOTES/POP)Targetnumber31070-0.57620.1981-3.0570-0.6999-0.5658-0.44170.1001-1.02
EDUCATIONInputnumber310709.0211.3763.6388.0908.8469.77414.9450.58790.1525
HOUSESInputnumber310708.7381.2723.1357.9288.6369.45414.0960.33930.1456
INCOMEInputnumber3107011.891.417.5910.9411.7312.6617.940.55980.1187
POPInputnumber310709.7571.3204.3698.9019.63210.48215.5100.46180.1353
XCOORDInputinteger31070-91,638,84711,475,690-124,229,902-98,025,277-90,171,689-83,369,520-67,609,990-0.7277
YCOORDInputinteger3107038,281,0924,838,50225,117,06734,687,43738,327,04941,691,11748,833,747-0.013760.1264
N columns
7
N high missing
0
N rows
3107
N strongly skewed
1
Table branch
main
Table ID
1f233102-5bbd-47f9-8b01-4b137020ee24

How to read this

One row per column of the analyzed table: its role in the analysis (the target being predicted, an input it is predicted from, or the segment column), its type, value count and missing count, and for numeric columns the mean, standard deviation, minimum, quartiles, maximum and interquartile range. A column with 25% or more missing values is flagged; its mean and quartiles describe only the rows that have a value.

Two further figures describe the shape of a numeric column. The skewness says whether the values lean to one side: close to zero the column is symmetric, from 0.5 it is moderately skewed and from 1 strongly skewed, with the longer tail on the high side when the figure is positive and on the low side when it is negative. In a strongly skewed column the mean is pulled toward the tail, and the median is the better guide to a typical value. The coefficient of variation is the standard deviation divided by the mean: it compares how widely columns spread regardless of their units, and is given only for a column whose mean is positive.

These are the columns as supplied, before any modeling: the reference against which every later chapter reads.

EDUCATION

EDUCATION: 3.64 to 14.9, median 8.85; moves with INCOME most (r 0.993).

How to read this

A column chapter profiles one column: its distribution in figures and charts, and how it relates to the other columns. It opens with one line on what the column holds. The Description chapter carries its figures, with every other column summarized for each of its values where it has few, and its association with every other column where it is numeric. The Visualization chapter carries its charts. A table with a date column adds an Over Time and a Time Series chapter; a target with classes adds a Class Balance chapter.

Description
EDUCATION
StatisticValue
Typenumber
Values present3107
Distinct values2914
Continuousyes
Decimal places16
Minimum3.638
Maximum14.95
Mean9.021
Median8.846
Mode8.1101268019411

The first 10 rows of 17. The other 7 are in the notebook.

How to read this

The figures below summarize EDUCATION in numbers: where its values center (mean, median, mode), how far they spread (range, variance, standard deviation, interquartile range) and how they are distributed across percentiles. They are the reference for every chart in the Visualization chapter and for the correlation measures further down.

The figures for EDUCATION are grouped: the column itself first, then where its values center, how far they spread, the shape of their distribution and its percentiles. Each statistic is explained in the Description chapter under General in the Data section.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
INCOMEtwo numbers0.99310.99310.9926 to 0.99360.99110.9218< 0.0013107
POPtwo numbers0.98750.98750.9866 to 0.98830.98220.8905< 0.0013107
HOUSEStwo numbers0.98440.98440.9832 to 0.98540.98090.8872< 0.0013107
ln(VOTES/POP)two numbers0.3067-0.2875-0.3194 to -0.2549-0.3067-0.2075< 0.0013107
XCOORDtwo numbers0.2810.19910.1651 to 0.23270.2810.2008< 0.0013107
YCOORDtwo numbers0.082580.047420.01228 to 0.082450.082580.055930.0081973107

How to read this

Each row pairs EDUCATION with one other column, numeric or categorical, and reports how strongly the two go together on an association from 0 to 1, and whether an association this strong could be chance. For another numeric column the row adds the direction: Pearson's coefficient measures a straight-line relationship, and Spearman's rho and Kendall's tau measure a monotonic relationship on ranks, which makes them resistant to outliers and lets them see a curved but consistently rising or falling pattern. For a categorical column the association is the correlation ratio η, which has no direction. A strong association is not an explanation: two columns can go together when a third one moves both.

The table lists every other numeric or categorical column against EDUCATION, with the pair's kind and association, three correlation coefficients and a confidence interval where the other column is numeric, the q-value and the rows the pair was measured on.

MeasureMeaning
KindWhat the other column holds: a number (numeric) or categories (numeric_categorical). A categorical column is one that is not numeric and holds between 2 and 50 distinct values
AssociationThe strength of the pair from 0 to 1. With a numeric column: the stronger of Pearson's coefficient and Spearman's ρ, without its sign. With a categorical column: the correlation ratio η, the square root of the share of EDUCATION's spread that lies between the categories
CovarianceNumeric partner only. The direction of the relationship (positive or negative) in the units of the two columns. It is not standardized, so its size says little about strength without the columns' own spread
Pearson's Correlation CoefficientNumeric partner only. The strength and direction of a linear relationship, from -1 (a perfect falling line) through 0 (no linear relationship) to 1 (a perfect rising line)
Spearman's ρNumeric partner only. The strength and direction of a monotonic relationship, computed on ranks rather than values, from -1 to 1. It follows a curved pattern as long as it rises or falls consistently, and outliers move it little
Kendall's τNumeric partner only. The strength and direction of association from the agreement and disagreement of rank order across pairs of rows, from -1 to 1. It is the steadier of the two rank measures when the rows are few
q-valueHow likely a pair this strong is among unrelated columns, adjusted for the number of pairs involving EDUCATION (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)Numeric partner only. The lower and upper bounds of the 95% confidence interval on the Pearson coefficient, from the Fisher z-transform. An interval that contains 0 leaves the direction of the relationship open
RowsThe rows in which both columns hold a value. The q-value and the interval of a pair rest on this count
Visualization

The rows of EDUCATION are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.01 between each value and the next), so the order carries no pattern to show.

How to read this

The charts in this chapter were chosen from the type of EDUCATION and of the columns it is compared with: a numeric column gets a histogram, a box plot and, when its row order carries a pattern, a value sequence, a categorical column gets a frequency chart, and its relation to each target of the analysis, and to the segment column when there is one, gets the chart that suits the pair, with the target on the vertical axis where it is a number. A column is not charted against every other column; which columns move together is shown under Strongest Correlations. The charts complement the figures in the Description chapter; the shape of a distribution and the position of its outliers are easier to see than to read.

HOUSES

HOUSES: 3.14 to 14.1, median 8.64; moves with POP most (r 0.994).

Description
HOUSES
StatisticValue
Typenumber
Values present3107
Distinct values2832
Continuousyes
Decimal places16
Minimum3.135
Maximum14.1
Mean8.738
Median8.636
Mode8.39072252736229

The first 10 rows of 17. The other 7 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
POPtwo numbers0.99420.9940.9936 to 0.99440.99420.9454< 0.0013107
INCOMEtwo numbers0.98810.98810.9872 to 0.98890.9870.9093< 0.0013107
EDUCATIONtwo numbers0.98440.98440.9832 to 0.98540.98090.8872< 0.0013107
ln(VOTES/POP)two numbers0.3683-0.3322-0.3631 to -0.3005-0.3683-0.2505< 0.0013107
XCOORDtwo numbers0.35040.26870.2358 to 0.3010.35040.2522< 0.0013107
YCOORDtwo numbers0.03078-0.03078-0.06588 to 0.004387-0.01013-0.0064560.086243107
Visualization

The rows of HOUSES are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.00 between each value and the next), so the order carries no pattern to show.

INCOME

INCOME: 7.59 to 17.9, median 11.7; moves with EDUCATION most (r 0.993).

Description
INCOME
StatisticValue
Typenumber
Values present3107
Distinct values3097
Continuousyes
Decimal places15
Minimum7.587
Maximum17.94
Mean11.89
Median11.73
Mode10.228754385315181

The first 10 rows of 17. The other 7 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
EDUCATIONtwo numbers0.99310.99310.9926 to 0.99360.99110.9218< 0.0013107
POPtwo numbers0.99290.99290.9924 to 0.99340.99070.9212< 0.0013107
HOUSEStwo numbers0.98810.98810.9872 to 0.98890.9870.9093< 0.0013107
ln(VOTES/POP)two numbers0.3707-0.3396-0.3703 to -0.3081-0.3707-0.2521< 0.0013107
XCOORDtwo numbers0.31640.23130.1978 to 0.26440.31640.2256< 0.0013107
YCOORDtwo numbers0.0207-0.008157-0.04331 to 0.027020.02070.014690.64953107
Visualization

The rows of INCOME are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.01 between each value and the next), so the order carries no pattern to show.

ln(VOTES/POP)

ln(VOTES/POP): -3.06 to 0.1, median -0.566; moves with YCOORD most (r 0.519).

Description
ln(VOTES/POP)
StatisticValue
Typenumber
Values present3107
Distinct values3105
Continuousyes
Decimal places17
Minimum-3.057
Maximum0.1001
Mean-0.5762
Median-0.5658
Mode-0.3606966965852809

The first 10 rows of 17. The other 7 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
YCOORDtwo numbers0.55950.5190.4928 to 0.54420.55950.3915< 0.0013107
POPtwo numbers0.4055-0.3764-0.4062 to -0.3458-0.4055-0.2769< 0.0013107
XCOORDtwo numbers0.401-0.3343-0.3652 to -0.3027-0.401-0.2727< 0.0013107
INCOMEtwo numbers0.3707-0.3396-0.3703 to -0.3081-0.3707-0.2521< 0.0013107
HOUSEStwo numbers0.3683-0.3322-0.3631 to -0.3005-0.3683-0.2505< 0.0013107
EDUCATIONtwo numbers0.3067-0.2875-0.3194 to -0.2549-0.3067-0.2075< 0.0013107
Visualization

The rows of ln(VOTES/POP) are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.03 between each value and the next), so the order carries no pattern to show.

POP

POP: 4.37 to 15.5, median 9.63; moves with HOUSES most (r 0.994).

Description
POP
StatisticValue
Typenumber
Values present3107
Distinct values3001
Continuousyes
Decimal places16
Minimum4.369
Maximum15.51
Mean9.757
Median9.632
Mode8.101374671228582

The first 10 rows of 17. The other 7 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
HOUSEStwo numbers0.99420.9940.9936 to 0.99440.99420.9454< 0.0013107
INCOMEtwo numbers0.99290.99290.9924 to 0.99340.99070.9212< 0.0013107
EDUCATIONtwo numbers0.98750.98750.9866 to 0.98830.98220.8905< 0.0013107
ln(VOTES/POP)two numbers0.4055-0.3764-0.4062 to -0.3458-0.4055-0.2769< 0.0013107
XCOORDtwo numbers0.35330.26770.2348 to 0.30010.35330.2541< 0.0013107
YCOORDtwo numbers0.0406-0.0406-0.07566 to -0.005443-0.02214-0.014510.023633107
Visualization

The rows of POP are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.01 between each value and the next), so the order carries no pattern to show.

XCOORD

XCOORD: -124,229,902 to -67,609,990, median -90,171,689; moves opposite to ln(VOTES/POP) most (r -0.334).

Description
XCOORD
StatisticValue
Typeinteger
Values present3107
Distinct values3107
Continuousyes
Decimal places0
Minimum-124,229,902
Maximum-67,609,990
Mean-91,638,847
Median-90,171,689
Mode-124229902

The first 10 rows of 17. The other 7 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
ln(VOTES/POP)two numbers0.401-0.3343-0.3652 to -0.3027-0.401-0.2727< 0.0013107
POPtwo numbers0.35330.26770.2348 to 0.30010.35330.2541< 0.0013107
HOUSEStwo numbers0.35040.26870.2358 to 0.3010.35040.2522< 0.0013107
INCOMEtwo numbers0.31640.23130.1978 to 0.26440.31640.2256< 0.0013107
EDUCATIONtwo numbers0.2810.19910.1651 to 0.23270.2810.2008< 0.0013107
YCOORDtwo numbers0.1932-0.1932-0.2268 to -0.1591-0.1391-0.08315< 0.0013107
Visualization

The rows of XCOORD are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.01 between each value and the next), so the order carries no pattern to show.

YCOORD

YCOORD: 25,117,067 to 48,833,747, median 38,327,049; moves with ln(VOTES/POP) most (r 0.519).

Description
YCOORD
StatisticValue
Typeinteger
Values present3107
Distinct values3106
Continuousyes
Decimal places0
Minimum25,117,067
Maximum48,833,747
Mean38,281,092
Median38,327,049
Mode39917000

The first 10 rows of 17. The other 7 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
ln(VOTES/POP)two numbers0.55950.5190.4928 to 0.54420.55950.3915< 0.0013107
XCOORDtwo numbers0.1932-0.1932-0.2268 to -0.1591-0.1391-0.08315< 0.0013107
EDUCATIONtwo numbers0.082580.047420.01228 to 0.082450.082580.055930.016393107
POPtwo numbers0.0406-0.0406-0.07566 to -0.005443-0.02214-0.014510.035443107
HOUSEStwo numbers0.03078-0.03078-0.06588 to 0.004387-0.01013-0.0064560.10353107
INCOMEtwo numbers0.0207-0.008157-0.04331 to 0.027020.02070.014690.64953107
Visualization

The rows of YCOORD are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.01 between each value and the next), so the order carries no pattern to show.

Duplicate Rows

Across 3,107 rows the table has no exact duplicates: every row's value vector is unique across all columns, so the row count reflects distinct rows.

Largest group size
0
N exact duplicates
0
N exact groups
0
N rows
3107
N unique
3107
Pct exact duplicates
0
Verdict
Clean

How to read this

This chapter counts rows that repeat another row exactly, value for value: how many rows take part in a duplicate group, how many groups exist, and how large the largest group is.

Duplicate rows inflate the apparent row count and can place identical rows on both sides of the training and held-out split, which flatters every quality figure in this report. Only exact repeats are detected here; rows that differ by a rounding digit or a whitespace variant count as distinct.

Leakage Suspicion

Nothing to check. No column that awaits an answer tracks a target at 0.95 or more, so no column on its own gives a target away.

Critical threshold
0.999
N confirmed
0
N critical
0
N suspects
0
Threshold
0.95
Verdict
Clean

How to read this

For every column that is not a target, this chapter reads how closely the column tracks each target, on an association from 0 to 1, and lists any pair at 0.95 or more. For two numeric columns the association is the stronger of Pearson's r and Spearman's rho; when the column or the target is categorical it is the correlation ratio η, or Cramér's V when both are. At 0.999 or more the column reproduces the target: that is what a copy or a rescaled copy of it looks like.

A listed column poses one question: is its value known before the target's value exists? If it is, the column is a strong input and the quality stated in this report is real. If it was computed from the target or recorded after it, a formula that reads it looks right on these rows and will not hold on new data. The coefficients read the same in both cases; the answer needs someone who knows where the column came from.

The owner of the analysis can give that answer. A column confirmed as known before the target is listed as confirmed and is no longer a suspect. A column that turns out to be a leak is left out of the model's inputs, and the analysis run again.

General

Clustering found no clear groups. The best grouping of the 3,107 complete rows over 6 numeric columns is into 2 groups, with a silhouette of 0.357 (on a scale where 1 is fully separate groups and 0 is none), below the 0.50 that clear structure shows, so no Clusters chapter is written.

Groupings tried
GroupsSilhouetteInertiaKept
20.3616985.3yes
30.2965437.7
40.26964500.8
50.27793886.8
60.2663504.3
Inertia
11016.2
K
2
N columns used
6
N rows
3107
N rows complete
3107
Silhouette
0.3566
Verdict
Weak

How to read this

The General chapter covers what holds across all columns together: descriptive statistics, correlations, missing values and outlier ranges under Description, the Clusters found among the rows, and, when a segment column was chosen, the Segments.

Description
Columns
VariableTypeValues presentDistinct valuesContinuousDecimal places
POPnumber31073001yes16
INCOMEnumber31073097yes15
XCOORDinteger31073107yes0
EDUCATIONnumber31072914yes16
HOUSESnumber31072832yes16
ln(VOTES/POP)number31073105yes17
YCOORDinteger31073106yes0
Center
VariableMeanMedianMode
POP9.7579.6328.101374671228582
INCOME11.8911.7310.228754385315181
XCOORD-91,638,847-90,171,689-124229902
EDUCATION9.0218.8468.1101268019411
HOUSES8.7388.6368.39072252736229
ln(VOTES/POP)-0.5762-0.5658-0.3606966965852809
YCOORD38,281,09238,327,04939917000
Spread
VariableMinimumMaximumStandard deviationVarianceInterquartile rangeSum
POP4.36915.511.321.7431.58130313.7
INCOME7.58717.941.4111.9921.72136927.2
XCOORD-124,229,902-67,609,99011,475,6901.317e+1414,655,757-284,721,898,088
EDUCATION3.63814.951.3761.8931.68428027.5
HOUSES3.13514.11.2721.6191.52627149.9
ln(VOTES/POP)-3.0570.10010.19810.039230.2582-1790.4
YCOORD25,117,06748,833,7474,838,5022.341e+137,003,680118,939,351,662
Shape
VariableSkewnessKurtosisTotal sum of squares
POP0.46180.80735415.2
INCOME0.55980.6796186.9
XCOORD-0.72770.28094.090e+17
EDUCATION0.58790.69375880.2
HOUSES0.33930.86765027.8
ln(VOTES/POP)-1.028.426121.8
YCOORD-0.01376-0.63357.271e+16

How to read this

This chapter summarizes every column at once: the descriptive statistics table below, then Correlation, Missing Values and Outliers. For a numeric column the table reports its center (mean, median, mode), its spread (standard deviation, variance, interquartile range, percentiles) and its shape (skewness, kurtosis); for a categorical column it reports the count and share of each category.

Each row of the tables describes one column. The statistics are grouped: the column itself, where its values center, how far they spread, what shape their distribution takes, and its percentiles. They read as follows.

StatisticExplanation
VariableName of the column the statistics in the row describe
TypeType assigned during data processing (bool, integer, number, decimal, text or date)
Values presentNumber of rows in which the column holds a value
Distinct valuesNumber of different values the column holds
ContinuousWhether the column can take any value in a range, as opposed to a discrete column limited to a fixed set of values
Decimal placesLength of the fractional part of the values
MeanArithmetic average: the sum of all values divided by the number of values
MedianThe middle value: half of the values lie at or below it and half at or above it. It is also the 50 % percentile
ModeThe value that appears most often
MinimumSmallest numeric value in the column

The first 10 rows of 20. The other 10 are in the notebook.

Missing Values

No column has a missing value: all 3,107 rows are complete.

N columns with missing
0
N complete rows
3107
N rows
3107
Pct complete rows
100

How to read this

The table lists, for each column, the count of present values (Values) beside the row count of the processed table (Rows), the number of missing values and their share. The larger the share, the less any statistic or model built on the column can be trusted.

  • Below 5% missing: safe to use as it is.
  • 5% to 25% missing: usable; filling the gaps or excluding those rows is worth considering.
  • 25% or more missing: the column is flagged and receives its own chapter in the Data section. Verify why so much is missing before trusting any result that depends on it.

A model is computed only on rows that hold a value in every column it reads, so gaps spread over several columns cost more rows than any one column's share suggests. The last column, Complete rows without, shows for each input with gaps how many rows would be complete if that column were left out; it is blank for a column without gaps, for a target, and for a column no model reads. A column that is the only gap in many rows is the one whose removal keeps the most data.

Outliers

6 of 7 numeric columns have values beyond the Tukey fences (1.5 times the interquartile range outside the quartiles). pop has the largest share: 3.2% of its values. Whether such values are rare but real rows or recording errors decides whether they are kept.

Outliers
ColumnValuesLower fenceUpper fenceBelowAboveShare
EDUCATION31075.56312.3007772.7 %
HOUSES31075.63911.74227683.06 %
INCOME31078.35515.2408772.74 %
ln(VOTES/POP)3107-1.08731-0.054322831 %
POP31076.52912.85421773.15 %
XCOORD3107-120,008,912none above9202.96 %
YCOORD3107none belownone above000 %
N columns
7
N columns assessed
7
N columns with outliers
6
Worst column
pop
Worst pct
3.15

How to read this

The table counts the outliers of every numeric column by the Tukey rule. Q1 and Q3 are the values below which 25% and 75% of a column's values fall, and the interquartile range is Q3 minus Q1. The lower fence lies 1.5 times the interquartile range below Q1, the upper fence the same distance above Q3; a value beyond a fence is an outlier. For each column the table gives both fences, how many values lie below and above them, their share of the column's values, and the single value that lies furthest beyond its fence. These are the same fences the box plots draw their whiskers to.

A column is not assessed when it has fewer than four values, or when the middle half of its values sits on a single number: the interquartile range is then zero and the rule would call every other value an outlier.

Extreme values can be real (rare but legitimate rows) or errors (measurement mistakes, data-entry slips). Which case applies decides whether to keep, clip or drop them before trusting a model that uses the column. A strongly skewed column has many values beyond one fence without any of them being wrong.

Correlation

21 column pairs analyzed across 3,107 rows; 19 (90.5%) are unlikely to be chance, after allowing for how many pairs were tested. Any other pair may still show a large association, but one that cannot be told apart from chance on the rows the pair was measured on. An association states that two columns go together, not that one brings the other about.

N categorical pairs
0
N mixed pairs
0
N numeric pairs
21
N pairs
21
N samples
3107
N significant
19
Pairs
Association95 % CIColumnKendallKindNOther columnPearsonQ valueSpearman
0.99420.9936, 0.9944HOUSES0.9454numeric3107POP0.994< 0.0010.9942
0.99310.9926, 0.9936EDUCATION0.9218numeric3107INCOME0.9931< 0.0010.9911
0.99290.9924, 0.9934INCOME0.9212numeric3107POP0.9929< 0.0010.9907
0.98810.9872, 0.9889HOUSES0.9093numeric3107INCOME0.9881< 0.0010.987
0.98750.9866, 0.9883EDUCATION0.8905numeric3107POP0.9875< 0.0010.9822
0.98440.9832, 0.9854EDUCATION0.8872numeric3107HOUSES0.9844< 0.0010.9809
0.55950.4928, 0.5442ln(VOTES/POP)0.3915numeric3107YCOORD0.519< 0.0010.5595
0.4055-0.4062, -0.3458ln(VOTES/POP)-0.2769numeric3107POP-0.3764< 0.001-0.4055
0.401-0.3652, -0.3027ln(VOTES/POP)-0.2727numeric3107XCOORD-0.3343< 0.001-0.401
0.3707-0.3703, -0.3081INCOME-0.2521numeric3107ln(VOTES/POP)-0.3396< 0.001-0.3707

The first 10 rows of 21. The other 11 are in the notebook.

How to read this

This chapter measures how pairs of columns go together: the Correlation Measures table below, the Strongest Correlations, the Correlation Heatmap and, when the analysis has targets, the Potential Data Leaks. Numeric columns and categorical columns are both paired, a categorical column being one that is not numeric and holds between 2 and 50 distinct values. Every pair is stated as an association from 0 (unrelated) to 1 (one column gives the other away), so pairs of different kinds can be compared. An association states that two columns go together, not that one brings the other about.

The table lists every pair of columns once, with its kind, its association, the figures of its kind, its q-value and the number of rows the pair was measured on. A pair is measured on the rows where both columns hold a value.

MeasureExplanation
KindWhat the two columns hold: two numbers (numeric), a number and a category (numeric_categorical), or two categories (categorical)
AssociationStrength of the pair from 0 to 1, whatever its kind. Two numbers: the stronger of Pearson's coefficient and Spearman's ρ, without its sign. A number and a category: the correlation ratio η. Two categories: Cramér's V
CovarianceTwo numbers only. Direction of the relationship (positive or negative) in the units of the two columns. It is not standardized, so its size says little about strength without further context
Pearson's Correlation CoefficientTwo numbers only. Strength and direction of a linear relationship, from -1 (perfect negative) through 0 (no linear relationship) to 1 (perfect positive)
Spearman's ρTwo numbers only. Strength and direction of a monotonic relationship, computed on ranks rather than values. It captures relationships that consistently rise or fall even when they are not linear, and it is less affected by extreme values
Kendall's τTwo numbers only. Strength and direction of a monotonic relationship based on the concordance of ranks between the two columns. More conservative than Spearman's ρ, and steadier on small tables
Correlation ratio ηA number and a category. The square root of the share of the number's spread that lies between the categories, from 0 (every category has the same average) to 1 (the category fixes the number). For a category of two values it equals the absolute Pearson coefficient with the category coded 0 and 1. Its square, η², is that share: an η of 0.6 means the categories account for 36% of the spread
Cramér's VTwo categories. How far the table of counts of the two columns departs from what unrelated columns would give, from 0 (unrelated) to 1 (each value of one column goes with one value of the other), corrected so that columns with many rare values do not read as related
q-valueHow likely a pair this strong is among unrelated columns, adjusted for the number of pairs listed (Benjamini-Hochberg false-discovery rate). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries. The right measure for ranking many pairs
95% CI (Pearson)Two numbers only. Lower and upper bounds of the 95% confidence interval on the Pearson coefficient, via the Fisher z-transform, on the rows the pair was measured on. A narrow interval means the coefficient is well estimated; a wide interval that straddles zero means the relationship is uncertain

The first 10 rows of 12. The other 2 are in the notebook.

Strongest Correlations

The 20 pairs of columns with the smallest q-values: the associations that remain significant after the Benjamini-Hochberg adjustment for the number of pairs tested. Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries; a pair above 0.05 may be coincidence even when its association looks strong.

A pair with an association above 0.9 often signals a duplicate or derived column. Moderately strong pairs with a low q-value are the relationships most worth investigating.

Each listed pair is drawn below, the picture behind the figure. Two numbers are drawn as a scatter, one point per row, the quickest way to see whether a strong value rests on a trend or on a few rows far from the rest. A number and a category are drawn as the number's box plot per category. Two categories are drawn as a heat map of how many rows hold each combination of values.

Potential Data Leaks

The table lists the association between every column and each target, whatever the two hold, with its q-value. An association close to 1 with a target, together with a q-value near zero, is one of two things: a strong input, or a data leak, a column derived from the target after the fact, such as a tax amount computed from the price being predicted. A leaked column trains a model that looks perfect and fails on new data, because the leak is not available at prediction time.

The Leakage Suspicion chapter in the Data section lists the pairs at 0.95 or more and marks those at 0.999 or more, where a column reproduces the target. For two numbers the association is whichever of Pearson's r and Spearman's rho is the stronger, because a column derived from the target often follows a curve rather than a line: the log of a price tracks the price perfectly, and Pearson alone reads that as weaker than it is. For a number and a category it is the correlation ratio η, and for two categories Cramér's V. Whether a listed column is a strong input or a leak depends on whether it is known before the target exists, which the owner of the analysis can confirm.

Implications

Weaker quality on specific ranges and coverage issues stand out, with accuracy dropping in certain slices and 6.6 percent of held-out rows outside the model's trained range. The Concerns chapter flags weaker quality in 11 slices.

Most notable in the Implications section:

  • The model is far less accurate on rows with YCOORD in the lowest quarter (26,493,711 to 34,655,859) (34 points less variance explained than overall)
  • The model is less accurate on rows with XCOORD in the third quarter (-89,940,116 to -83,384,249) (25 points less variance explained than overall)
  • The model is less accurate on rows with POP in the third quarter (9.64 to 10.5) (23 points less variance explained than overall)

How to read this

The Implications section states how to act on the models: the Stakeholder Summary and the Recommended Next Data, where the models hold and where they weaken (Quality by Input Range, Rows unlike the ones the model learned from, Per-Segment Predictions, Fairness), what to weigh before relying on them (Causal Honesty, Deployment Readiness), and the Provenance & Audit trail a reviewer needs to retrace the analysis.

Stakeholder Summary

The model predicts ln(VOTES/POP), with the strongest reliance on YCOORD, and tracks patterns in the data less effectively than a straight line through the data. While YCOORD is the most relied-on input, six pairs of inputs contribute nearly identical information, which can make the formula less stable and harder to interpret. In certain slices, such as when YCOORD is in the lowest quarter or POP is in the highest quarter, the model's output aligns with its target much less closely than elsewhere.

Because the model does not improve on the strongest simple alternative and falls short in several segments, including for YCOORD in the lowest quarter (6.6% of variation explained) and POP in the highest quarter (25%), there is no evidence it adds value over basic approaches for decisions about individual rows. The formula is also difficult for non-specialists to interpret due to its complexity and specialist functions. The next step is to review the formula, simplify the input columns if possible, and validate any new version on a fresh sample before using it for decisions.

Recommended Next Data

  • Collect more rows where YCOORD is in the lowest quarter (26,493,711 to 34,655,859). Reason: the model is far less accurate on the 151 held-out rows in this segment, explaining only 6.6% of the variation there.
  • Collect more rows where XCOORD is in the third quarter (-89,940,116 to -83,384,249) and the highest quarter (-83,321,826 to -67,609,990). Reason: the model is less accurate in these segments, explaining 16% of the variation on 157 rows and 19% on 155 rows.
  • Collect more rows where POP is in the third quarter (9.64 to 10.5) and highest quarter (10.5 to 14.2). Reason: the model is less accurate on these 161 and 159 rows, explaining 18% and 25% of the variation in these segments.
  • Collect more rows where EDUCATION is in the second quarter (8.09 to 8.85) and INCOME is in the second quarter (10.9 to 11.7) and highest quarter (12.7 to 16.7). Reason: the model is less accurate in these education and income segments, explaining 20% of the variation on 144 rows, 21% on 156 rows, and 27% on 152 rows.
  • Inspect the formulas and input columns used to reduce redundancy between columns carrying nearly the same information. Reason: diagnostics flag 6 pairs of inputs as nearly collinear, which can make the model less stable.

Quality by Input Range

Quality by Input Range splits the held-out rows by every usable input and compares the model's quality on each segment with its quality on all held-out rows. For a number the quality is R², the share of variation explained; for a yes-or-no target it is accuracy, the share of rows classified correctly, the measure the Classification Performance chapter reports. A numeric input is split into quartiles; a categorical input with at most ten values is split by value. A segment with fewer than three held-out rows is left out, because its gap would be noise.

The chart is sorted from the worst gap to the best. Each bar is the segment's figure minus the figure on all held-out rows.

  • Negative bars: the model is weaker on these rows than on all held-out rows. A segment 0.25 or more below the overall value (25 points of accuracy) reads much weaker; a segment 0.10 to 0.25 below reads weaker. These are the segments to treat with caution.
  • Positive bars: the model is stronger on these rows than overall. A strong segment can mask weakness elsewhere, so the negative segments come first.
ln(VOTES/POP) by Input Range

Segment ycoord in the lowest quarter (26,493,711 to 34,655,859) is much weaker than the aggregate (151 held-out rows): segment R² 0.0655 against aggregate R² 0.408 (gap -0.342). A drop this large means the model describes this slice of the data poorly; an input interaction or a missing column may be specific to this subset.

SegmentRowsR²Gap to all rowsVerdict
YCOORD = q11510.0655-0.3421Much weaker than on all rows
XCOORD = q31570.1602-0.2474Weaker than on all rows
POP = q31610.1819-0.2257Weaker than on all rows
XCOORD = q41550.1907-0.2169Weaker than on all rows
EDUCATION = q21440.1951-0.2125Weaker than on all rows
INCOME = q21560.2121-0.1955Weaker than on all rows
POP = q41590.2544-0.1532Weaker than on all rows
INCOME = q41520.2664-0.1412Weaker than on all rows
HOUSES = q41550.2686-0.1390Weaker than on all rows
EDUCATION = q41510.2775-0.1301Weaker than on all rows

The first 10 rows of 24. The other 14 are in the notebook.

Aggregate R²
0.4076
Measure
r2
Target
ln(VOTES/POP)

Rows unlike the ones the model learned from

41 of 621 held-out rows (6.6%) lie further from the training rows than 99 in 100 rows like them would, measured on the 6 inputs the model reads (education, houses, income, pop, xcoord, ycoord). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.

TargetInputs measuredLineHeld-out rowsBeyond the lineShare
ln(VOTES/POP)EDUCATION, HOUSES, INCOME, POP, XCOORD, YCOORD4.1621416.6 %
Score bins · 24 of 30 rows shown
CountFromTo
000.239
100.2390.478
200.4780.717
490.7170.955
530.9551.194
541.1941.433
731.4331.672
621.6721.911
471.9112.15
462.152.389

The first 10 rows of 24. The other 14 are in the notebook.

How to read this

Out-of-distribution detection finds held-out rows that lie far from the training rows of a model. It looks only at the numeric inputs the model reads. Each of them is standardized against the mean and standard deviation of the training rows, and the standardized values are combined into one distance per row. The line a row is read against depends on the number of inputs: it is the distance that 99 in 100 rows like the training rows stay below. A row beyond the line is flagged as out of distribution, and the held-out figures are unlikely to apply to it. When the held-out rows resemble the training rows, about one row in a hundred is flagged.

The chart shows one bar per held-out row in row order; the flagged rows are the bars at or above the line. With more than one target, the chart shows the model with the largest flagged share, and the figures name it.

The check treats inputs independently, so it will not notice a rare combination of values that are each ordinary on their own, such as a large height with a small weight. It is a first screen. A decision that depends on catching unusual inputs needs a dedicated check.

Causal Honesty

Diafunc found a formula that captures the structure in the training data. That structure is correlative: it states what predicts what in this data. It does not establish that any input causes the target.

A correlative model is the right tool for predicting the target on new rows like these, for exploring which inputs carry information about the target, and for an early-stage diagnostic or screening tool.

A correlative model is not the right tool for claiming that intervening on an input will change the target, for attributing a target's values to specific causes for accountability, or for choosing between policies that act on the inputs.

The Quality by Input Range, Fairness and Concerns chapters show the most common confounding patterns in the data.

The model is correlative: it captures which columns predict the target in the training data, not whether changing one would change the other. Predictions are reliable for inputs that look like the training distribution; they are not evidence that intervening on an input will change the target. The 4 upgrade pathways below show what evidence would support a causal claim.

Upgrade pathways
NameSummary
Controlled experimentRandomize the input to be acted on, then analyze again. Randomization breaks confounding, so any change in the target is attributable to the input.
Natural experimentFind a setting where the input varied for reasons unrelated to the target, an instrumental variable. Variation of that kind supports causal inference.
Causal graphWrite out what plausibly causes what, then check whether the model's terms are consistent with the conditional independences the graph implies.
Control for confoundersIf a third variable plausibly moves both the input and the target, stratify by it or condition on it before training again. Gaps in the Quality by Input Range chapter are a clue.

Deployment Readiness

The analysis ran with the configuration below. The checks and the verdict of this chapter are read against it.

  • Targets: 1 target: ln_votes_pop
  • Rows: 3,107 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: not assessed, because the data has no categorical column other than the target
  • Out-of-Distribution: held-out rows are scored against the training rows; predictions made outside this report are not scored
  • Provenance & Audit: recorded in the chapter of that name

Across 5 checks (3 pass, 1 warns, 1 fails, 3 critical concerns), at least one check fails or a critical concern is open: Not ready. The failing checks need addressing first; they typically indicate data leakage, severe miscalibration, or a model that loses to its baseline.

NameStatusDetail
GeneralizationPassheld-out quality holds up against training quality
Prediction Interval CoverageWarnintervals are wider than their level requires, largest gap 15.2 percentage points
Baseline Lift for ln(VOTES/POP)Failloses to the best baseline, R² lift -0.214
Model ConstraintsPassevery held-out prediction is finite and within the training range
Out-of-DistributionPass6.6% of held-out rows are out of distribution
N critical concerns
3
N fail
1
N pass
3
N warn
1
Overall verdict
Not ready

Provenance & Audit

This record captures the inputs and configuration that produced the report, so the analysis can be reproduced or the result defended in an audit.

ItemValue
Analysis ID665d4680-48b7-11f1-8087-d378640fe787
Run time2026-10-24 18:14 UTC
Total rows3,107
Modeled targetsln(VOTES/POP)
Segment columnnot available
Time limit1 h 0 min
Time taken1 min 7 s
Credit budget500 credits
Models kept fromrun 87717680-ae9b-11f1-9bda-6d5d1e225b8a, whose search found them; this report was built again around them

Findings

1 finding from the implications diagnostics (1 Critical) is listed in the Concerns chapter at the top of the analysis.

Loading Diafunc…