Analysis report
Guns Violence
Data from R package AER (CRAN), published under https://diafunc.com/licences/view-only.
- Target
- Violent
- Analyzed
- 2026-10-20 19:50 UTC
Summary
The model for Violent relies chiefly on Robbery, with the model's output rising as Robbery increases, and moving Robbery from 74.8 to 189 raises the model's output by about 137 on average with every other input as observed. Murder is the second strongest input and its increase also raises the model's output. While the formula is short and uses only two inputs, Robbery carries 71% of the model's reliance and Murder 29%, drawing the entire pattern from these two columns alone.
Since the model does not outperform a straight line through the data, the result offers no practical gain over this baseline and cannot be relied on for more accurate prediction or deeper insight. The model is notably less accurate for segments with lower or mid-range Robbery and Murder levels, and residual variance grows with higher predicted values. The next step is to re-express the target or inputs and reconstruct the model before committing to use in decisions.
Formula
Violent = 1.2 × Robbery + 120 × sqrt(Murder)Held-out diagnostics
| Target | Quality | Error | R² | MAE | Generalization | Rows |
|---|---|---|---|---|---|---|
| Violent | 81.31 % | 18.21 % | 0.8179 | 93.42 | generalizing | 235 |
- Violent · Quality 95 % CI 73.23 % – 87.28 %
- Violent · Error 95 % CI 12.39 % – 26.08 %
- Violent · R² 95 % CI 0.7392 – 0.8761
- Violent · MAE 95 % CI 83.27 – 103.3
Concerns
CRITICAL model
The model loses to a straight line through the data on `Violent`
The model explains 82% of the variation on the held-out rows, where a straight line through the data explains 86%: 4.2 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 18 slices of the data
On 18 of the 42 slices compared the model is weaker than on all held-out rows (R² 0.818). The largest gaps: Robbery in the lowest quarter (6.40 to 70.2) (R² 0.0506 against 0.818 on all rows, on 62 rows) and Robbery in the third quarter (124 to 193) (R² 0.0839 against 0.818 on all rows, on 60 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.
| Segment | Rows | R² | Against all rows | Verdict |
|---|---|---|---|---|
| Robbery in the lowest quarter (6.40 to 70.2) | 62 | 0.0506 | -0.767 | Much weaker |
| Robbery in the third quarter (124 to 193) | 60 | 0.0839 | -0.734 | Much weaker |
| Robbery in the second quarter (71.2 to 124) | 55 | 0.185 | -0.633 | Much weaker |
| Afam in the second quarter (2.22 to 4.01) | 65 | 0.312 | -0.506 | Much weaker |
| Murder in the third quarter (6.40 to 9.70) | 57 | 0.395 | -0.423 | Much weaker |
| Murder in the second quarter (3.80 to 6.30) | 60 | 0.479 | -0.339 | Much weaker |
| Murder in the lowest quarter (0.2 to 3.60) | 61 | 0.519 | -0.298 | Much weaker |
| Cauc in the second quarter (60.1 to 64.9) | 51 | 0.526 | -0.292 | Much weaker |
| Afam in the lowest quarter (0.248 to 2.12) | 61 | 0.53 | -0.288 | Much weaker |
| Population in the highest quarter (5.73 to 32.7) | 52 | 0.568 | -0.25 | Weaker |
| Afam in the third quarter (4.06 to 6.70) | 56 | 0.584 | -0.234 | Weaker |
| Population in the third quarter (3.28 to 5.65) | 73 | 0.598 | -0.22 | Weaker |
| Income in the lowest quarter (8,659 to 11,912) | 64 | 0.642 | -0.176 | Weaker |
| Cauc in the third quarter (65.2 to 69.1) | 68 | 0.643 | -0.175 | Weaker |
| Density in the third quarter (0.0816 to 0.165) | 62 | 0.647 | -0.171 | Weaker |
| Prisoners in the second quarter (115 to 184) | 64 | 0.685 | -0.133 | Weaker |
| Population in the second quarter (1.21 to 3.27) | 53 | 0.704 | -0.114 | Weaker |
| Prisoners in the lowest quarter (32 to 113) | 58 | 0.716 | -0.102 | Weaker |
WARNING model
Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions
Across 235 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 135, against 82.8 in the bottom third, 1.63 times as large. The bottom third holds predictions up to 390 and the top third predictions from 543. The residual spread is 1.63 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them.
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-20 19:51 UTC, analysis fab09e90-48b7-11f1-8087-d378640fe787, 1 target, time budget 1 h 0 min, compute budget 500 credits, 1,173 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
Violent rises with Robbery and Murder.
- Robbery carries most of the model. Robbery accounts for 71% of what the formula explains and Murder for 29%.
- Violent rises with Robbery. For each additional 100 units of Robbery, the model's output for Violent is higher by 120. This holds with the other inputs at typical values.
- Prisoners is not in the formula. It has the third-strongest correlation with Violent in the table (0.7). Rows with more of it have more Murder (correlation 0.71), and Murder is in the formula.
- The formula does worse than a straight line. The formula explains 82% of Violent; a straight line explains more, 86%. That was measured on 235 rows it never saw. The formula typically misses Violent by 93.4. It is weakest where Robbery is between 6.4 and 70.2, where it explains 5.1%.
Summary
What to do next: The model loses to a straight line through the data on Violent.
5 chapters, each headed by what it found.
Robbery carries most of the formula
What the formula relies on. Shares of the formula: Robbery 71%, Murder 29%.
The model's output rises with Robbery on every one of the 470 measured rows (exact derivative). The model's output rises with Murder on every one of the 470 measured rows (exact derivative). Moving Robbery from 74.8 to 189, its first and third quartile, with every other input as observed raises the model's output by 137 on average. These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.
| Input | Share of importance | Permutation importance | Sensitivity | Residual correlation | Occurrences | Model's output as the input rises | Change, first to third quartile |
|---|---|---|---|---|---|---|---|
| Robbery | 71.19 % | 6.889 | 1.2 | -0.2415 | 1 | Rises (470 of 470 rows) | +137.4 (74.8 to 189.3) |
| Murder | 28.81 % | 2.787 | 25.81 | -0.1082 | 1 | Rises (470 of 470 rows) | +150.5 (3.7 to 10.1) |
- Rows the search trained on, measured
- 470
- Inputs the formula does not read
- Afam, Cauc, Density, Income, Law, Male, Population, Prisoners, State, Year
Read as a sum, the formula has 2 additive terms. All of them are needed to reach 100% of the variation of the model's output on the 470 rows the search trained on: the largest are 1.2 × Robbery (68%) and 120 × sqrt(Murder) (32%). A share describes the model's output, not the target. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median.
- Additive
- Yes
- Rows the search trained on, measured
- 470
- Terms in the formula
- 2
- Notation
- 1.2 × Robbery + 120 × sqrt(Murder)
- Target
- Violent
It holds on new rows: R² 0.82 held out, 0.88 on the training rows
How well it holds. The formula explains 82% of Violent; a straight line explains more, 86%.
R² of 0.818: good. The model captures most of the variation; individual predictions still carry uncertainty; the Prediction Interval Coverage chapter shows how wide it is. Mean absolute error is 93.4 on the target's scale.
- Error
- 18.21 % (95 % CI 12.39 % – 26.08 %)
- MAE
- 93.42 (95 % CI 83.27 – 103.3)
- N
- 235
- Training rows
- 938
- Quality
- 81.31 % (95 % CI 73.23 % – 87.28 %)
- R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Target
- Violent
The model does not beat the simple yardsticks: a straight line through the data is ahead by 4.2 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 235 held-out rows where the two differ, the model is closer on 37% (95% interval 31% to 43%).
- Best yardstick's score
- 0.8595 (95 % CI 0.7981 – 0.9038)
- Best baseline R²
- 0.8595
- Effect size d
- -0.2538 (95 % CI -0.3844 – -0.1343)
- Effect size d magnitude
- small
- Margin over the best yardstick
- -0.04159 (95 % CI -0.07018 – -0.01851)
- Margin's interval stays above zero
- No
- Model MAE
- 93.42 (95 % CI 83.27 – 103.3)
- Model
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Model R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Held-out rows
- 235
- Held-out rows without an answer
- 0
- Target
- Violent
- Rows where the model is closer
- 36.6 % (95 % CI 30.7 % – 42.92 %)
- Rows compared
- 235
- Rows level
- 0
- Regression yardstick trained with gaps filled (too few complete rows)
- No
- Training rows of the regression yardstick
- 938
The model explains held-out rows about as well as training rows (held-out R² 0.818, gap between training and held-out R² 0.0585): it generalizes. The structure the formula encodes carries from the training rows to the held-out rows.
- Generalization gap
- 0.05853
- N test
- 235
- Target
- Violent
- Test error
- 93.42 (95 % CI 83.27 – 103.3)
- Test R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Train error
- 0.1414
- Train R²
- 0.8764
- Verdict
- Generalizing
Weaker on 18 slices of the data, most in the lowest quarter of Robbery
Where it is weak. The largest miss on a held-out row is 435 (recorded 1030, predicted 595). 1.3% of the held-out rows are unlike the rows it learned from.
Segment robbery in the lowest quarter (6.40 to 70.2) is much weaker than the aggregate (62 held-out rows): segment R² 0.0506 against aggregate R² 0.818 (gap -0.767). 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.
| Segment | Rows | R² | Gap to all rows | Verdict |
|---|---|---|---|---|
| Robbery = q1 | 62 | 0.0506 | -0.7674 | Much weaker than on all rows |
| Robbery = q3 | 60 | 0.0839 | -0.7341 | Much weaker than on all rows |
| Robbery = q2 | 55 | 0.1852 | -0.6327 | Much weaker than on all rows |
| Afam = q2 | 65 | 0.3124 | -0.5056 | Much weaker than on all rows |
| Murder = q3 | 57 | 0.3951 | -0.4228 | Much weaker than on all rows |
| Murder = q2 | 60 | 0.4792 | -0.3387 | Much weaker than on all rows |
| Murder = q1 | 61 | 0.5195 | -0.2984 | Much weaker than on all rows |
| Cauc = q2 | 51 | 0.5260 | -0.2919 | Much weaker than on all rows |
| Afam = q1 | 61 | 0.5300 | -0.2879 | Much weaker than on all rows |
| Population = q4 | 52 | 0.5680 | -0.2499 | Weaker than on all rows |
The first 10 rows of 24. The other 14 are in the notebook.
- Aggregate R²
- 0.8179
- Measure
- r2
- Target
- Violent
The worst held-out row was missed by 435 (target's scale). The 10 rows with the largest absolute residuals out of 235 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.
| Actual | Predicted | Residual | Murder | Robbery |
|---|---|---|---|---|
| 1030.5 | 595.1 | +435.4 | 9.6 | 186.1 |
| 996.9 | 566.4 | +430.5 | 9 | 172 |
| 976.6 | 584.5 | +392.1 | 11.2 | 152.4 |
| 903.2 | 525.3 | +377.9 | 8 | 154.9 |
| 804.9 | 447.8 | +357.1 | 3.9 | 175.7 |
| 1411.7 | 1762.5 | -350.8 | 28 | 939.6 |
| 644.2 | 296.3 | +347.9 | 1.9 | 109.1 |
| 834.8 | 533.2 | +301.6 | 10.5 | 120.3 |
| 813.7 | 518.2 | +295.5 | 9.1 | 130.2 |
| 871.7 | 595.9 | +275.8 | 11 | 164.9 |
- Additive
- Yes
- N extrapolated
- 0
- Held-out rows
- 235
- Held-out rows for the interval
- 235
- Residual P5
- -156.8
- Residual P95
- 202.9
- Residual std
- 122.2
3 of 235 held-out rows (1.3%) lie further from the training rows than 99 in 100 rows like them would, measured on the 2 inputs the model reads (murder, robbery). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.
| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
|---|---|---|---|---|---|
| Violent | Murder, Robbery | 3.035 | 235 | 3 | 1.28 % |
| Count | From | To |
|---|---|---|
| 40 | 0 | 0.322 |
| 82 | 0.322 | 0.643 |
| 57 | 0.643 | 0.965 |
| 44 | 0.965 | 1.287 |
| 7 | 1.287 | 1.608 |
| 1 | 1.608 | 1.93 |
| 1 | 1.93 | 2.252 |
| 0 | 2.252 | 2.573 |
| 0 | 2.573 | 2.895 |
| 0 | 2.895 | 3.217 |
The first 10 rows of 24. The other 14 are in the notebook.
Not ready to use yet: 2 critical concerns
What to watch. First: The model loses to a straight line through the data on Violent.
| Severity | Section | Concern | Detail |
|---|---|---|---|
| Critical | Model | The model loses to a straight line through the data on Violent | The model explains 82% of the variation on the held-out rows, where a straight line through the data explains 86%: 4.2 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 18 slices of the data | On 18 of the 42 slices compared the model is weaker than on all held-out rows (R² 0.818). The largest gaps: Robbery in the lowest quarter (6.40 to 70.2) (R² 0.0506 against 0.818 on all rows, on 62 rows) and Robbery in the third quarter (124 to 193) (R² 0.0839 against 0.818 on all rows, on 60 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice. |
| Warning | Model | Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions | Across 235 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 135, against 82.8 in the bottom third, 1.63 times as large. The bottom third holds predictions up to 390 and the top third predictions from 543. The residual spread is 1.63 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them. |
The analysis ran with the configuration below. The checks and the verdict of this chapter are read against it.
- Targets: 1 target:
violent - Rows: 1,173 rows
- Per-Segment Predictions: not produced, because no segment column was chosen
- Fairness: compared across 2 categorical columns (
law,state); which of them are protected attributes is not decided here - 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 6 checks (3 pass, 2 warn, 1 fails, 2 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.
| Name | Status | Detail |
|---|---|---|
| Generalization | Pass | held-out quality holds up against training quality |
| Prediction Interval Coverage | Warn | intervals are wider than their level requires, largest gap 5.11 percentage points |
| Baseline Lift for Violent | Fail | loses to the best baseline, R² lift -0.0416 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Warn | 1 column compared, 1 flagged: Law (a group receives systematically smaller predictions) |
| Out-of-Distribution | Pass | 1.3% of held-out rows are out of distribution |
- N critical concerns
- 2
- N fail
- 1
- N pass
- 3
- N warn
- 2
- Overall verdict
- Not ready
Column Law splits the held-out rows into 2 groups. The prediction-parity ratio is 0.668 (smallest over largest mean prediction), the largest absolute group residual mean is 9.03 (0.0739 times the overall residual standard deviation). Parity gap: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking.
- Aggregate residual std
- 122.2
- N columns
- 1
- N proxies
- 0
- Proxy threshold
- 0.5
| Bias max abs residual mean | Column | Groups | Interpretation | N groups | Prediction parity ratio | Verdict |
|---|---|---|---|---|---|---|
| 9.032 | Law | false, true | Column Law splits the held-out rows into 2 groups. The prediction-parity ratio is 0.668 (smallest over largest mean prediction), the largest absolute group residual mean is 9.03 (0.0739 times the overall residual standard deviation). Parity gap: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking. | 2 | 0.6682 | Prediction parity gap |
More rows in the lowest quarter of Robbery would help most
What to collect next. Its R² there is 0.05 against 0.82 on all rows, on 62 held-out rows.
- Collect more rows where Robbery is in the lowest quarter (6.40 to 70.2), the second quarter (71.2 to 124), or the third quarter (124 to 193). Reason: the model is far less accurate on these segments, explaining only 5.1% to 19% of the variation in those rows.
- Collect more rows where Murder is in the lowest quarter (0.2 to 3.60), the second quarter (3.80 to 6.30), or the third quarter (6.40 to 9.70). Reason: the model explains just 40% to 52% of the variation in these rows, much less than its overall performance.
- Collect more rows where Afam is in the second quarter (2.22 to 4.01) and where Cauc is in the second quarter (60.1 to 64.9). Reason: the model is far less accurate for these segments, explaining only 31% and 53% of the variation there.
- Inspect the Law column for differences between groups and collect additional rows if needed. Reason: the diagnostics reported a prediction parity gap by Law.
- Revise the model and gather more data for rows with higher predicted values. Reason: model accuracy degrades as predicted value rises, as residual variance increases with the magnitude of the model's output.
Evidence
Every chapter of the analysis in full: the figures the story rests on, and everything else the analysis measured.
Headline
Diafunc modeled Violent from 12 columns, using 2 of them. The model explains 82% of the variation in Violent and relies most on Robbery, with which the model's output rises.
- One target was modeled; 235 rows were held out for checking.
- A straight line through the data already explained 86%; the model did not beat this baseline, trailing it by 4.2 points of variance explained.
- The model loses to a straight line through the data on Violent (Critical, 235 rows).
- Best R²
- 0.8179
- Best quality
- 81.31 %
- Best target
- violent
- Targets
- 1
Concerns
| Severity | Section | Concern | Detail |
|---|---|---|---|
| Critical | Model | The model loses to a straight line through the data on Violent | The model explains 82% of the variation on the held-out rows, where a straight line through the data explains 86%: 4.2 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 18 slices of the data | On 18 of the 42 slices compared the model is weaker than on all held-out rows (R² 0.818). The largest gaps: Robbery in the lowest quarter (6.40 to 70.2) (R² 0.0506 against 0.818 on all rows, on 62 rows) and Robbery in the third quarter (124 to 193) (R² 0.0839 against 0.818 on all rows, on 60 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice. |
| Warning | Model | Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions | Across 235 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 135, against 82.8 in the bottom third, 1.63 times as large. The bottom third holds predictions up to 390 and the top third predictions from 543. The residual spread is 1.63 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them. |
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
| Target | Formula | Quality | Complexity | Error |
|---|---|---|---|---|
| Violent | Violent = 1.2 × Robbery + 120 × sqrt(Murder) | 81.31 % | 8.8 % | 18.21 % |
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 findings show that robbery dominates the model's reliance on inputs, while overall quality on held-out rows is 0.818 by share of variation explained. There are flagged concerns about degraded quality at higher predictions and that the model underperforms a linear regression for violent, noted in the Concerns chapter.
Most notable in the Model section:
Robberycarries most of the model (71% of its reliance on inputs)
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.
Violent
The Model section builds one model for Violent: 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.
Violent Model
The model's output relies most on Robbery, which it rises with, and also rises with Murder.
Violent = 1.2 × Robbery + 120 × sqrt(Murder)| Value | Role | Input | Unit |
|---|---|---|---|
| 1.2 | Slope | Robbery | Output units per unit of Robbery |
| 120 | Coefficient |
- Share of the output's variation they carry
- 100 %
- Rows the search trained on, measured
- 470
- Rows the search trained on
- 470
- Held out R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Constants in the formula
- 2
- Terms that reach 95% of the output's variation
- 2
- Training rows
- 938
- Held-out rows
- 235
- Inputs the formula reads
- 2
- Terms in the formula
- 2
- Inputs the formula does not read
- Afam, Cauc, Density, Income, Law, Male, Population, Prisoners, State, Year
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.
| Metric | Meaning |
|---|---|
| Quality | How 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 |
| Error | How 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 |
| Complexity | The 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 Violent 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.818: good. The model captures most of the variation; individual predictions still carry uncertainty; the Prediction Interval Coverage chapter shows how wide it is. Mean absolute error is 93.4 on the target's scale.
- Error
- 18.21 % (95 % CI 12.39 % – 26.08 %)
- MAE
- 93.42 (95 % CI 83.27 – 103.3)
- N
- 235
- Training rows
- 938
- Quality
- 81.31 % (95 % CI 73.23 % – 87.28 %)
- R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Target
- Violent
How to read this
Actual Violent 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. The lowest and the highest half percent of each axis's values are counted in its first or last range.
Residual Distribution
- Bias
- 4.781 (95 % CI -12.23 – 20.27)
- N
- 235
- P50
- -9.446 (95 % CI -29.45 – 7.894)
- P90
- 146.4 (95 % CI 123 – 183.7)
- P95
- 202.9 (95 % CI 167.8 – 297.3)
- P99
- 387.3 (95 % CI 288.8 – 433.7)
- Std
- 122.2 (95 % CI 106.3 – 135)
How to read this
How the held-out residuals (actual Violent 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
The model's output rises with Robbery on every one of the 470 measured rows (exact derivative). The model's output rises with Murder on every one of the 470 measured rows (exact derivative). Moving Robbery from 74.8 to 189, its first and third quartile, with every other input as observed raises the model's output by 137 on average. These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.
| Input | Share of importance | Permutation importance | Sensitivity | Residual correlation | Occurrences | Model's output as the input rises | Change, first to third quartile |
|---|---|---|---|---|---|---|---|
| Robbery | 71.19 % | 6.889 | 1.2 | -0.2415 | 1 | Rises (470 of 470 rows) | +137.4 (74.8 to 189.3) |
| Murder | 28.81 % | 2.787 | 25.81 | -0.1082 | 1 | Rises (470 of 470 rows) | +150.5 (3.7 to 10.1) |
- Rows the search trained on, measured
- 470
- Inputs the formula does not read
- Afam, Cauc, Density, Income, Law, Male, Population, Prisoners, State, Year
How to read this
The chart ranks the inputs of the Violent 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 4.2 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 235 held-out rows where the two differ, the model is closer on 37% (95% interval 31% to 43%).
- Best yardstick's score
- 0.8595 (95 % CI 0.7981 – 0.9038)
- Best baseline R²
- 0.8595
- Effect size d
- -0.2538 (95 % CI -0.3844 – -0.1343)
- Effect size d magnitude
- small
- Margin over the best yardstick
- -0.04159 (95 % CI -0.07018 – -0.01851)
- Margin's interval stays above zero
- No
- Model MAE
- 93.42 (95 % CI 83.27 – 103.3)
- Model
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Model R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Held-out rows
- 235
- Held-out rows without an answer
- 0
- Target
- Violent
- Rows where the model is closer
- 36.6 % (95 % CI 30.7 % – 42.92 %)
- Rows compared
- 235
- Rows level
- 0
- Regression yardstick trained with gaps filled (too few complete rows)
- No
- Training rows of the regression yardstick
- 938
How to read this
The table scores the model for Violent 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 Violent 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 Violent.
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.818, gap between training and held-out R² 0.0585): it generalizes. The structure the formula encodes carries from the training rows to the held-out rows.
- Generalization gap
- 0.05853
- N test
- 235
- Target
- Violent
- Test error
- 93.42 (95 % CI 83.27 – 103.3)
- Test R²
- 0.8179 (95 % CI 0.7392 – 0.8761)
- Train error
- 0.1414
- Train R²
- 0.8764
- Verdict
- Generalizing
How to read this
The chart sets the score of the Violent 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
Read as a sum, the formula has 2 additive terms. All of them are needed to reach 100% of the variation of the model's output on the 470 rows the search trained on: the largest are 1.2 × Robbery (68%) and 120 × sqrt(Murder) (32%). A share describes the model's output, not the target. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median.
- Additive
- Yes
- Rows the search trained on, measured
- 470
- Terms in the formula
- 2
- Notation
- 1.2 × Robbery + 120 × sqrt(Murder)
- Target
- Violent
How to read this
The formula for Violent 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 Violent 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 robbery, murder: predictions there are not supported by the formula's shape. It has a square-root domain edge at murder = 0. Extrapolate with caution.
- Bounded at infinity
- No
- Rows the search trained on, measured
- 470
- Inputs the formula reads
- 2
- N singularities
- 1
- Risky inputs
- robbery, murder
- Target
- Violent
| Input | Kind |
|---|---|
| Robbery | Negative infinity |
| Murder | Unknown |
| Input | Kind |
|---|---|
| Robbery | Positive infinity |
| Murder | Positive infinity |
| At | Input | Kind |
|---|---|---|
| 0 | Murder | Sqrt domain |
How to read this
The formula for Violent 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 Violent. 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.818. 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.8179
- Held-out rows
- 235
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 Violent, 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
| Item | Value |
|---|---|
| Murder | 6.5 |
| Robbery | 124.2 |
| Term 1 adds | 149 |
| Term 2 adds | 305.9 |
| Prediction | 454.9 |
- Additive
- Yes
- Held-out rows for the interval
- 235
- Terms in the formula
- 2
- Residual P5
- -156.8
- Residual P95
- 202.9
- Residual std
- 122.2
How to read this
The chapter shows the model's prediction for Violent 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 2 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
- 2
How to read this
For each input, the chart traces the rate at which the predicted Violent 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
Robbery enters linearly. No term reads two inputs, so the grid below renders empty; each input's contribution can be read independently in the chapter "How each term responds to its inputs".
- Additive
- Yes
- Inputs in different terms act separately
- Yes
- Rows the search trained on, measured
- 470
- Inputs the formula is linear in
- Robbery
- Terms in the formula
- 2
- Input pairs not tested
- 0
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 Violent 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 435 (target's scale). The 10 rows with the largest absolute residuals out of 235 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.
| Actual | Predicted | Residual | Murder | Robbery |
|---|---|---|---|---|
| 1030.5 | 595.1 | +435.4 | 9.6 | 186.1 |
| 996.9 | 566.4 | +430.5 | 9 | 172 |
| 976.6 | 584.5 | +392.1 | 11.2 | 152.4 |
| 903.2 | 525.3 | +377.9 | 8 | 154.9 |
| 804.9 | 447.8 | +357.1 | 3.9 | 175.7 |
| 1411.7 | 1762.5 | -350.8 | 28 | 939.6 |
| 644.2 | 296.3 | +347.9 | 1.9 | 109.1 |
| 834.8 | 533.2 | +301.6 | 10.5 | 120.3 |
| 813.7 | 518.2 | +295.5 | 9.1 | 130.2 |
| 871.7 | 595.9 | +275.8 | 11 | 164.9 |
- Additive
- Yes
- N extrapolated
- 0
- Held-out rows
- 235
- Held-out rows for the interval
- 235
- Residual P5
- -156.8
- Residual P95
- 202.9
- Residual std
- 122.2
How to read this
The held-out rows on which the model misses Violent 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 235 held-out rows, the 95% prediction interval actually covers 95.3% of the rows. The normal band is wider than needed for this residual distribution (worst gap 5.11 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 level | Half-width | Empirical coverage |
|---|---|---|
| 50 % | 82.39 | 53.19 % |
| 80 % | 156.5 | 85.11 % |
| 90 % | 200.9 | 93.19 % |
| 95 % | 239.4 | 95.32 % |
- Largest miss (percentage points)
- 5.106
- Held-out rows
- 235
- Residual P2.5
- -190.5
- Residual P97.5
- 308.5
- Verdict
- Underconfident
How to read this
Each held-out prediction of Violent 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
235 held-out residuals, with a spread up to 435 in absolute terms. Mean residual is 4.78, 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.2341
- Bias
- 4.781
- Bias over residual sd
- 0.03914
- Held-out rows
- 235
- Order
- shuffled
- Residual sd
- 122.2
- Share within normal band
- 0.9532
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 Violent, 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 231 generations, ending at quality 0.847 (gain +0.22 from generation 2). The curve shows a substantial climb. The last improvement came after 100% of the search time: the search was still improving when it stopped, so a longer time limit is likely to find a better model.
- First generation
- 2
- First quality
- 62.74 %
- Last generation
- 232
- Last improvement ms
- 3,603,726
- Last quality
- 84.74 %
- Max quality
- 84.74 %
- N points
- 200
- N total generations
- 231
- Search time ms
- 3,603,726
- Stop reason
- Maximum runtime reached
How to read this
The line traces the best quality the search for the Violent 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 235 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.
| Name | Status | Detail |
|---|---|---|
| Output coherent | Pass | no non-finite predictions across 235 rows |
| Within domain | Pass | no rows outside the training target's ±2σ range across 235 rows |
| Bounded predictions | Pass | no runaway predictions beyond ±10σ across 235 rows |
- Held-out rows
- 235
- N non finite
- 0
- N outside domain
- 0
- N runaway
- 0
- Verdict
- Clean
How to read this
Sanity checks on the Violent 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
- MAE of a straight line through the inputs (same rows)
- 76.45
- RMSE of a straight line through the inputs (same rows)
- 98.74
- Training MAE (rows the search trained on)
- 89.6
- MAE of always predicting the mean (same rows)
- 228.4
- RMSE of always predicting the mean (same rows)
- 345.4
- Training R² (rows the search trained on)
- 0.8863
- Training RMSE (rows the search trained on)
- 116.5
- Rows the search trained on, measured
- 470
- Error
- 14.14 %
- Inputs the straight line used
- 10
- N train
- 938
- Quality
- 84.91 %
How to read this
The function below trains the model for Violent 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 (1 Critical, 1 Warning) are listed in the Concerns chapter at the top of the analysis.
Data
The findings describe very strong pairwise associations and entirely complete data, with outliers identified in ten columns and the strongest in density. No issues were flagged for this section.
Most notable in the Data section:
AfamandCaucmove oppositely (correlation -0.982)RobberyandViolentmove together (correlation 0.907)MaleandYearmove oppositely (correlation -0.866)
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 13 columns across 1,173 rows (11 numeric, 2 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 8 columns are 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.
| Name | Role | Type | N | Missing | Mean | Std | Min | P25 | Median | P75 | Max | Skewness | CV |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Violent | Target | number | 1173 | 0 | 503.1 | 334.3 | 47.0 | 283.1 | 443.0 | 650.9 | 2921.8 | 2.542 | 0.6645 |
| Afam | Input | number | 1173 | 0 | 5.336 | 4.886 | 0.248 | 2.202 | 4.026 | 6.851 | 26.980 | 2.355 | 0.9156 |
| Cauc | Input | number | 1173 | 0 | 62.95 | 9.76 | 21.78 | 59.94 | 65.06 | 69.20 | 76.53 | -2.226 | 0.1551 |
| Density | Input | number | 1173 | 0 | 0.3520 | 1.3555 | 0.0007 | 0.0319 | 0.0816 | 0.1777 | 11.1021 | 6.703 | 3.85 |
| Income | Input | number | 1173 | 0 | 13,725 | 2555 | 8555 | 11,935 | 13,402 | 15,271 | 23,647 | 0.7352 | 0.1861 |
| Law | Input | bool | 1173 | 0 | |||||||||
| Male | Input | number | 1173 | 0 | 16.08 | 1.73 | 12.21 | 14.65 | 15.90 | 17.53 | 22.35 | 0.2679 | 0.1077 |
| Murder | Input | number | 1173 | 0 | 7.665 | 7.523 | 0.200 | 3.700 | 6.400 | 9.800 | 80.600 | 5.793 | 0.9814 |
| Population | Input | number | 1173 | 0 | 4.816 | 5.252 | 0.403 | 1.188 | 3.271 | 5.686 | 33.145 | 2.434 | 1.09 |
| Prisoners | Input | integer | 1173 | 0 | 226.6 | 178.9 | 19 | 114 | 187 | 291 | 1913 | 3.887 | 0.7895 |
The first 10 rows of 13. The other 3 are in the notebook.
- N columns
- 13
- N high missing
- 0
- N rows
- 1173
- N strongly skewed
- 8
- Table branch
- main
- Table ID
- 9153a8aa-1adb-4d00-8cc3-a6ff82536db9
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.
Afam
Afam: 0.248 to 27.0, median 4.03, skewed to high values; moves opposite to Cauc most (r -0.982).
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
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1173 |
| Continuous | yes |
| Decimal places | 7 |
| Minimum | 0.2482 |
| Maximum | 26.98 |
| Mean | 5.336 |
| Median | 4.026 |
| Mode | 0.2482066 |
The first 10 rows of 17. The other 7 are in the notebook.
How to read this
The figures below summarize Afam 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 Afam 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
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Cauc | two numbers | 0.982 | -0.982 | -0.9839 to -0.9798 | -0.9499 | -0.8142 | < 0.001 | 1173 |
| Murder | two numbers | 0.7427 | 0.6018 | 0.564 to 0.6371 | 0.7427 | 0.5471 | < 0.001 | 1173 |
| Violent | two numbers | 0.6797 | 0.5698 | 0.5298 to 0.6072 | 0.6797 | 0.5031 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.6424 | 0.5308 | 0.4884 to 0.5707 | 0.6424 | 0.4673 | < 0.001 | 1173 |
| Robbery | two numbers | 0.642 | 0.5812 | 0.542 to 0.6179 | 0.642 | 0.4597 | < 0.001 | 1173 |
| Density | two numbers | 0.5432 | 0.5432 | 0.5016 to 0.5824 | 0.4311 | 0.2872 | < 0.001 | 1173 |
| Population | two numbers | 0.3526 | 0.05808 | 0.00084 to 0.1149 | 0.3526 | 0.2541 | 0.05142 | 1173 |
| Income | two numbers | 0.2627 | 0.2627 | 0.2086 to 0.3152 | 0.229 | 0.1683 | < 0.001 | 1173 |
| Law | a number and a category | 0.1839 | < 0.001 | 1173 | ||||
| Year | two numbers | 0.1265 | 0.06861 | 0.01141 to 0.1254 | 0.1265 | 0.08999 | 0.02295 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
How to read this
Each row pairs Afam 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 Afam, 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.
| Measure | Meaning |
|---|---|
| Kind | What 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 |
| Association | The 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 Afam's spread that lies between the categories |
| Covariance | Numeric 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 Coefficient | Numeric 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-value | How likely a pair this strong is among unrelated columns, adjusted for the number of pairs involving Afam (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 |
| Rows | The 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 Afam are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.04 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 Afam 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.
Cauc
Cauc: 21.8 to 76.5, median 65.1, skewed to low values; moves opposite to Afam most (r -0.982).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1173 |
| Continuous | yes |
| Decimal places | 5 |
| Minimum | 21.78 |
| Maximum | 76.53 |
| Mean | 62.95 |
| Median | 65.06 |
| Mode | 21.78043 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Afam | two numbers | 0.982 | -0.982 | -0.9839 to -0.9798 | -0.9499 | -0.8142 | < 0.001 | 1173 |
| Murder | two numbers | 0.6939 | -0.6154 | -0.6497 to -0.5785 | -0.6939 | -0.5011 | < 0.001 | 1173 |
| Violent | two numbers | 0.6091 | -0.573 | -0.6102 to -0.5333 | -0.6091 | -0.4396 | < 0.001 | 1173 |
| Robbery | two numbers | 0.5842 | -0.5842 | -0.6207 to -0.5452 | -0.5776 | -0.406 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.5693 | -0.5271 | -0.5672 to -0.4845 | -0.5693 | -0.4032 | < 0.001 | 1173 |
| Density | two numbers | 0.5551 | -0.5551 | -0.5935 to -0.5142 | -0.404 | -0.2557 | < 0.001 | 1173 |
| Population | two numbers | 0.3354 | -0.06544 | -0.1222 to -0.00823 | -0.3354 | -0.2229 | 0.03057 | 1173 |
| Law | a number and a category | 0.2123 | < 0.001 | 1173 | ||||
| Income | two numbers | 0.1912 | -0.1912 | -0.2457 to -0.1354 | -0.1007 | -0.06961 | < 0.001 | 1173 |
| Year | two numbers | 0.05465 | -0.03346 | -0.09052 to 0.02383 | -0.05465 | -0.04095 | 0.2775 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Cauc are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.05 between each value and the next), so the order carries no pattern to show.
Density
Density: 0.000707 to 11.1, median 0.0816; moves with Robbery most (r 0.782).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1173 |
| Continuous | yes |
| Decimal places | 7 |
| Minimum | 0.0007071 |
| Maximum | 11.1 |
| Mean | 0.352 |
| Median | 0.08157 |
| Mode | 0.0007071 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Robbery | two numbers | 0.7818 | 0.7818 | 0.7585 to 0.8031 | 0.6007 | 0.4277 | < 0.001 | 1173 |
| Murder | two numbers | 0.7486 | 0.7486 | 0.7223 to 0.7727 | 0.2389 | 0.1475 | < 0.001 | 1173 |
| Violent | two numbers | 0.6647 | 0.6647 | 0.6315 to 0.6955 | 0.4036 | 0.2772 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.5593 | 0.5593 | 0.5187 to 0.5974 | 0.1975 | 0.1386 | < 0.001 | 1173 |
| Cauc | two numbers | 0.5551 | -0.5551 | -0.5935 to -0.5142 | -0.404 | -0.2557 | < 0.001 | 1173 |
| Afam | two numbers | 0.5432 | 0.5432 | 0.5016 to 0.5824 | 0.4311 | 0.2872 | < 0.001 | 1173 |
| Population | two numbers | 0.5411 | -0.07802 | -0.1347 to -0.02088 | 0.5411 | 0.4589 | 0.009177 | 1173 |
| Income | two numbers | 0.42 | 0.3433 | 0.2918 to 0.3928 | 0.42 | 0.2964 | < 0.001 | 1173 |
| Male | two numbers | 0.2047 | -0.06372 | -0.1205 to -0.0065 | -0.2047 | -0.1437 | 0.03201 | 1173 |
| Law | a number and a category | 0.1126 | < 0.001 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Density are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.06 between each value and the next), so the order carries no pattern to show.
Income
Income: 8,555 to 23,647, median 13,402; moves opposite to Male most (r -0.528).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1170 |
| Continuous | yes |
| Decimal places | 12 |
| Minimum | 8554.9 |
| Maximum | 23646.7 |
| Mean | 13724.8 |
| Median | 13401.6 |
| Mode | 11661.75 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Male | two numbers | 0.5615 | -0.5279 | -0.5679 to -0.4853 | -0.5615 | -0.3979 | < 0.001 | 1173 |
| Year | two numbers | 0.5419 | 0.5252 | 0.4825 to 0.5655 | 0.5419 | 0.3802 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.4615 | 0.4615 | 0.4152 to 0.5053 | 0.4107 | 0.2797 | < 0.001 | 1173 |
| Density | two numbers | 0.42 | 0.3433 | 0.2918 to 0.3928 | 0.42 | 0.2964 | < 0.001 | 1173 |
| Robbery | two numbers | 0.4148 | 0.4148 | 0.3663 to 0.4611 | 0.4067 | 0.27 | < 0.001 | 1173 |
| Violent | two numbers | 0.408 | 0.408 | 0.3591 to 0.4546 | 0.3516 | 0.2348 | < 0.001 | 1173 |
| Afam | two numbers | 0.2627 | 0.2627 | 0.2086 to 0.3152 | 0.229 | 0.1683 | < 0.001 | 1173 |
| Murder | two numbers | 0.2206 | 0.2206 | 0.1654 to 0.2743 | -0.02032 | -0.01449 | < 0.001 | 1173 |
| Population | two numbers | 0.2152 | 0.2152 | 0.1599 to 0.2691 | 0.1851 | 0.132 | < 0.001 | 1173 |
| Cauc | two numbers | 0.1912 | -0.1912 | -0.2457 to -0.1354 | -0.1007 | -0.06961 | < 0.001 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
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.04 between each value and the next), so the order carries no pattern to show.
Law
Law: 2 distinct values, most often no.
Description
| Statistic | Value |
|---|---|
| Type | bool |
| Values present | 1173 |
| Distinct values | 2 |
| Continuous | no |
| Mode | false |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Law | false | 888 | 75.7 % |
| Law | true | 285 | 24.3 % |
By Value
| Law | Rows | Income | Violent | Murder | Cauc | Density | Year | Prisoners | Robbery | Population | Afam | Male |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| false | 888 | 13724.9 | 542.2 | 8.429 | 61.77 | 0.4385 | 1986.6 | 222.3 | 182.3 | 5.186 | 5.845 | 16.35 |
| true | 285 | 13724.6 | 381.1 | 5.284 | 66.6 | 0.08272 | 1992.4 | 240 | 97.9 | 3.664 | 3.751 | 15.23 |
How to read this
The rows are grouped by the value of Law, and every other column is summarized within each group with the same descriptive statistics. A statistic that shifts from group to group marks a column that moves with Law; one that stays level marks a column that does not. Groups with few rows produce unstable figures, so the row count of each group is the first thing to read. Where the groups differ in a target by more than chance would give, the chapter states by how much; it states that the two go together, not that one brings the other about.
Male
Male: 12.2 to 22.4, median 15.9; moves opposite to Year most (r -0.866).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1173 |
| Continuous | yes |
| Decimal places | 5 |
| Minimum | 12.21 |
| Maximum | 22.35 |
| Mean | 16.08 |
| Median | 15.9 |
| Mode | 12.21368 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Year | two numbers | 0.8765 | -0.8658 | -0.8795 to -0.8508 | -0.8765 | -0.7094 | < 0.001 | 1173 |
| Income | two numbers | 0.5615 | -0.5279 | -0.5679 to -0.4853 | -0.5615 | -0.3979 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.5412 | -0.4463 | -0.491 to -0.3993 | -0.5412 | -0.3698 | < 0.001 | 1173 |
| Law | a number and a category | 0.2772 | < 0.001 | 1173 | ||||
| Density | two numbers | 0.2047 | -0.06372 | -0.1205 to -0.0065 | -0.2047 | -0.1437 | 0.04002 | 1173 |
| Violent | two numbers | 0.1696 | -0.1696 | -0.2247 to -0.1135 | -0.1529 | -0.1008 | < 0.001 | 1173 |
| Murder | two numbers | 0.1395 | 0.01498 | -0.0423 to 0.07216 | 0.1395 | 0.09474 | 0.6663 | 1173 |
| Population | two numbers | 0.1389 | -0.0975 | -0.1539 to -0.04049 | -0.1389 | -0.09863 | 0.001515 | 1173 |
| Robbery | two numbers | 0.1092 | -0.08604 | -0.1426 to -0.02894 | -0.1092 | -0.07149 | 0.005009 | 1173 |
| Afam | two numbers | 0.04857 | 0.01619 | -0.04109 to 0.07336 | -0.04857 | -0.03772 | 0.6663 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Male are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.02 between each value and the next), so the order carries no pattern to show.
Murder
Murder: 0.2 to 80.6, median 6.40; moves with Violent most (r 0.827).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 184 |
| Continuous | yes |
| Decimal places | 1 |
| Minimum | 0.2 |
| Maximum | 80.6 |
| Mean | 7.665 |
| Median | 6.4 |
| Mode | 2.0 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Violent | two numbers | 0.8265 | 0.8265 | 0.8075 to 0.8438 | 0.7614 | 0.5748 | < 0.001 | 1173 |
| Robbery | two numbers | 0.7976 | 0.7976 | 0.7758 to 0.8175 | 0.7009 | 0.5163 | < 0.001 | 1173 |
| Density | two numbers | 0.7486 | 0.7486 | 0.7223 to 0.7727 | 0.2389 | 0.1475 | < 0.001 | 1173 |
| Afam | two numbers | 0.7427 | 0.6018 | 0.564 to 0.6371 | 0.7427 | 0.5471 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.7096 | 0.7096 | 0.68 to 0.7369 | 0.484 | 0.331 | < 0.001 | 1173 |
| Cauc | two numbers | 0.6939 | -0.6154 | -0.6497 to -0.5785 | -0.6939 | -0.5011 | < 0.001 | 1173 |
| Population | two numbers | 0.3946 | 0.09992 | 0.04293 to 0.1563 | 0.3946 | 0.2789 | < 0.001 | 1173 |
| Income | two numbers | 0.2206 | 0.2206 | 0.1654 to 0.2743 | -0.02032 | -0.01449 | < 0.001 | 1173 |
| Law | a number and a category | 0.1794 | < 0.001 | 1173 | ||||
| Male | two numbers | 0.1395 | 0.01498 | -0.0423 to 0.07216 | 0.1395 | 0.09474 | 0.6083 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Murder are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.09 between each value and the next), so the order carries no pattern to show.
Population
Population: 0.403 to 33.1, median 3.27, skewed to high values; moves with Violent most (r 0.319).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1173 |
| Continuous | yes |
| Decimal places | 6 |
| Minimum | 0.4028 |
| Maximum | 33.15 |
| Mean | 4.816 |
| Median | 3.271 |
| Mode | 0.402753 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Robbery | two numbers | 0.6091 | 0.3172 | 0.2648 to 0.3678 | 0.6091 | 0.4677 | < 0.001 | 1173 |
| Density | two numbers | 0.5411 | -0.07802 | -0.1347 to -0.02088 | 0.5411 | 0.4589 | 0.01033 | 1173 |
| Violent | two numbers | 0.4747 | 0.319 | 0.2666 to 0.3695 | 0.4747 | 0.3527 | < 0.001 | 1173 |
| Murder | two numbers | 0.3946 | 0.09992 | 0.04293 to 0.1563 | 0.3946 | 0.2789 | 0.001342 | 1173 |
| Afam | two numbers | 0.3526 | 0.05808 | 0.00084 to 0.1149 | 0.3526 | 0.2541 | 0.04675 | 1173 |
| Cauc | two numbers | 0.3354 | -0.06544 | -0.1222 to -0.00823 | -0.3354 | -0.2229 | 0.03057 | 1173 |
| Prisoners | two numbers | 0.2315 | 0.09534 | 0.03831 to 0.1518 | 0.2315 | 0.1657 | 0.001694 | 1173 |
| Income | two numbers | 0.2152 | 0.2152 | 0.1599 to 0.2691 | 0.1851 | 0.132 | < 0.001 | 1173 |
| Male | two numbers | 0.1389 | -0.0975 | -0.1539 to -0.04049 | -0.1389 | -0.09863 | 0.001515 | 1173 |
| Law | a number and a category | 0.1244 | < 0.001 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Population 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.
Prisoners
Prisoners: 19 to 1,913, median 187, skewed to high values; moves with Murder most (r 0.71).
Description
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 1173 |
| Distinct values | 436 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 19 |
| Maximum | 1913 |
| Mean | 226.6 |
| Median | 187 |
| Mode | 98 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Murder | two numbers | 0.7096 | 0.7096 | 0.68 to 0.7369 | 0.484 | 0.331 | < 0.001 | 1173 |
| Violent | two numbers | 0.7027 | 0.7027 | 0.6725 to 0.7305 | 0.614 | 0.4351 | < 0.001 | 1173 |
| Year | two numbers | 0.6443 | 0.5041 | 0.4601 to 0.5456 | 0.6443 | 0.4683 | < 0.001 | 1173 |
| Afam | two numbers | 0.6424 | 0.5308 | 0.4884 to 0.5707 | 0.6424 | 0.4673 | < 0.001 | 1173 |
| Cauc | two numbers | 0.5693 | -0.5271 | -0.5672 to -0.4845 | -0.5693 | -0.4032 | < 0.001 | 1173 |
| Robbery | two numbers | 0.5669 | 0.5669 | 0.5267 to 0.6045 | 0.4498 | 0.309 | < 0.001 | 1173 |
| Density | two numbers | 0.5593 | 0.5593 | 0.5187 to 0.5974 | 0.1975 | 0.1386 | < 0.001 | 1173 |
| Male | two numbers | 0.5412 | -0.4463 | -0.491 to -0.3993 | -0.5412 | -0.3698 | < 0.001 | 1173 |
| Income | two numbers | 0.4615 | 0.4615 | 0.4152 to 0.5053 | 0.4107 | 0.2797 | < 0.001 | 1173 |
| Population | two numbers | 0.2315 | 0.09534 | 0.03831 to 0.1518 | 0.2315 | 0.1657 | 0.001186 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Prisoners are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.05 between each value and the next), so the order carries no pattern to show.
Robbery
Robbery: 6.40 to 1,635, median 124, skewed to high values; moves with Violent most (r 0.907).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 947 |
| Continuous | yes |
| Decimal places | 1 |
| Minimum | 6.4 |
| Maximum | 1635.1 |
| Mean | 161.8 |
| Median | 124.1 |
| Mode | 70.7 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Violent | two numbers | 0.9071 | 0.9071 | 0.8964 to 0.9167 | 0.8812 | 0.7056 | < 0.001 | 1173 |
| Murder | two numbers | 0.7976 | 0.7976 | 0.7758 to 0.8175 | 0.7009 | 0.5163 | < 0.001 | 1173 |
| Density | two numbers | 0.7818 | 0.7818 | 0.7585 to 0.8031 | 0.6007 | 0.4277 | < 0.001 | 1173 |
| Afam | two numbers | 0.642 | 0.5812 | 0.542 to 0.6179 | 0.642 | 0.4597 | < 0.001 | 1173 |
| Population | two numbers | 0.6091 | 0.3172 | 0.2648 to 0.3678 | 0.6091 | 0.4677 | < 0.001 | 1173 |
| Cauc | two numbers | 0.5842 | -0.5842 | -0.6207 to -0.5452 | -0.5776 | -0.406 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.5669 | 0.5669 | 0.5267 to 0.6045 | 0.4498 | 0.309 | < 0.001 | 1173 |
| Income | two numbers | 0.4148 | 0.4148 | 0.3663 to 0.4611 | 0.4067 | 0.27 | < 0.001 | 1173 |
| Law | a number and a category | 0.2125 | < 0.001 | 1173 | ||||
| Male | two numbers | 0.1092 | -0.08604 | -0.1426 to -0.02894 | -0.1092 | -0.07149 | 0.003506 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Robbery 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.
State
State: 51 distinct values, most often North Carolina.
Description
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 1173 |
| Distinct values | 51 |
| Continuous | no |
| Mode | North Carolina |
| Variable | Value | Rows | Share |
|---|---|---|---|
| State | Alabama | 23 | 1.961 % |
| State | Alaska | 23 | 1.961 % |
| State | Arizona | 23 | 1.961 % |
| State | Arkansas | 23 | 1.961 % |
| State | California | 23 | 1.961 % |
| State | Colorado | 23 | 1.961 % |
| State | Connecticut | 23 | 1.961 % |
| State | Delaware | 23 | 1.961 % |
| State | District of Columbia | 23 | 1.961 % |
| State | Florida | 23 | 1.961 % |
The first 10 rows of 51. The other 41 are in the notebook.
Violent
Violent: 47 to 2,922, median 443; moves with Robbery most (r 0.907).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 1173 |
| Distinct values | 1101 |
| Continuous | yes |
| Decimal places | 1 |
| Minimum | 47 |
| Maximum | 2921.8 |
| Mean | 503.1 |
| Median | 443 |
| Mode | 256.8 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Robbery | two numbers | 0.9071 | 0.9071 | 0.8964 to 0.9167 | 0.8812 | 0.7056 | < 0.001 | 1173 |
| Murder | two numbers | 0.8265 | 0.8265 | 0.8075 to 0.8438 | 0.7614 | 0.5748 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.7027 | 0.7027 | 0.6725 to 0.7305 | 0.614 | 0.4351 | < 0.001 | 1173 |
| Afam | two numbers | 0.6797 | 0.5698 | 0.5298 to 0.6072 | 0.6797 | 0.5031 | < 0.001 | 1173 |
| Density | two numbers | 0.6647 | 0.6647 | 0.6315 to 0.6955 | 0.4036 | 0.2772 | < 0.001 | 1173 |
| Cauc | two numbers | 0.6091 | -0.573 | -0.6102 to -0.5333 | -0.6091 | -0.4396 | < 0.001 | 1173 |
| Population | two numbers | 0.4747 | 0.319 | 0.2666 to 0.3695 | 0.4747 | 0.3527 | < 0.001 | 1173 |
| Income | two numbers | 0.408 | 0.408 | 0.3591 to 0.4546 | 0.3516 | 0.2348 | < 0.001 | 1173 |
| Law | a number and a category | 0.2069 | < 0.001 | 1173 | ||||
| Male | two numbers | 0.1696 | -0.1696 | -0.2247 to -0.1135 | -0.1529 | -0.1008 | < 0.001 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Violent 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.
Year
Year: 1,977 to 1,999, median 1,988, 23 distinct values; moves opposite to Male most (r -0.866).
Description
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 1173 |
| Distinct values | 23 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1977 |
| Maximum | 1999 |
| Mean | 1988 |
| Median | 1988 |
| Mode | 1977 |
The first 10 rows of 17. The other 7 are in the notebook.
By Value
| Year | Rows | Income | Violent | Murder | Cauc | Density | Prisoners | Robbery | Population | Afam | Male |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1977 | 51 | 11858 | 392.8 | 7.843 | 64.01 | 0.3665 | 105.3 | 141.9 | 4.309 | 4.792 | 18.54 |
| 1978 | 51 | 12336.7 | 412 | 7.971 | 63.94 | 0.3634 | 110 | 146.5 | 4.355 | 4.84 | 18.38 |
| 1979 | 51 | 12278.7 | 455 | 8.427 | 63.84 | 0.3594 | 118.8 | 162.7 | 4.403 | 4.89 | 18.23 |
| 1980 | 51 | 11897.7 | 485.2 | 8.627 | 63.65 | 0.3503 | 122.3 | 185.8 | 4.455 | 4.98 | 18.09 |
| 1981 | 51 | 11973.8 | 489.3 | 8.437 | 63.65 | 0.3508 | 125.5 | 194.1 | 4.499 | 5.005 | 17.93 |
| 1982 | 51 | 11912.6 | 470.4 | 7.898 | 63.43 | 0.3506 | 139 | 177.7 | 4.542 | 5.051 | 17.68 |
| 1983 | 51 | 12136.7 | 439.6 | 7.094 | 63.15 | 0.351 | 155.9 | 158.3 | 4.584 | 5.086 | 17.39 |
| 1984 | 51 | 12761.8 | 438.7 | 6.618 | 62.89 | 0.3524 | 164.9 | 146.3 | 4.624 | 5.123 | 17.07 |
| 1985 | 51 | 13074.1 | 450.5 | 6.68 | 62.61 | 0.3539 | 174.1 | 146.1 | 4.665 | 5.16 | 16.76 |
| 1986 | 51 | 13398.8 | 479 | 7.251 | 62.31 | 0.3563 | 185.1 | 154 | 4.708 | 5.2 | 16.43 |
The first 10 rows of 23. The other 13 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Male | two numbers | 0.8765 | -0.8658 | -0.8795 to -0.8508 | -0.8765 | -0.7094 | < 0.001 | 1173 |
| Prisoners | two numbers | 0.6443 | 0.5041 | 0.4601 to 0.5456 | 0.6443 | 0.4683 | < 0.001 | 1173 |
| Income | two numbers | 0.5419 | 0.5252 | 0.4825 to 0.5655 | 0.5419 | 0.3802 | < 0.001 | 1173 |
| Law | a number and a category | 0.3794 | < 0.001 | 1173 | ||||
| Violent | two numbers | 0.1366 | 0.1215 | 0.06466 to 0.1775 | 0.1366 | 0.092 | < 0.001 | 1173 |
| Murder | two numbers | 0.1279 | -0.03301 | -0.09008 to 0.02427 | -0.1279 | -0.08755 | 0.316 | 1173 |
| Afam | two numbers | 0.1265 | 0.06861 | 0.01141 to 0.1254 | 0.1265 | 0.08999 | 0.03442 | 1173 |
| Population | two numbers | 0.06633 | 0.05936 | 0.002128 to 0.1162 | 0.06633 | 0.04943 | 0.06614 | 1173 |
| Cauc | two numbers | 0.05465 | -0.03346 | -0.09052 to 0.02383 | -0.05465 | -0.04095 | 0.316 | 1173 |
| Density | two numbers | 0.04989 | -0.003956 | -0.06118 to 0.0533 | 0.04989 | 0.03828 | 0.8923 | 1173 |
The first 10 rows of 11. The other 1 is in the notebook.
Visualization
The rows of Year are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.05 between each value and the next), so the order carries no pattern to show.
Column · State
State is profiled on its own because it may hold free text.
Scanned 1,173 non-null values in state, extracted 1,426 content tokens (54 unique) after dropping 23 English stopword instances. The most frequent content word is new (92 occurrences, 6.5% of all kept tokens). The table maps the column's content vocabulary; a heavy concentration on one or two tokens may signal a near-constant column or a categorical disguised as free text. The stopword filter is English-only: in a non-English column its own function words dominate the top.
This section continues in the notebook.
Implications
The findings highlight that model quality drops sharply with lower, middle and upper-middle values of robbery, though nearly all held-out rows were covered and two inputs were used. Critical concerns were flagged regarding accuracy across slices, which are detailed in the Concerns chapter.
Most notable in the Implications section:
- The model is far less accurate on rows with
Robberyin the lowest quarter (6.40 to 70.2) (77 points less variance explained than overall) - The model is far less accurate on rows with
Robberyin the third quarter (124 to 193) (73 points less variance explained than overall) - The model is far less accurate on rows with
Robberyin the second quarter (71.2 to 124) (63 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 for Violent relies chiefly on Robbery, with the model's output rising as Robbery increases, and moving Robbery from 74.8 to 189 raises the model's output by about 137 on average with every other input as observed. Murder is the second strongest input and its increase also raises the model's output. While the formula is short and uses only two inputs, Robbery carries 71% of the model's reliance and Murder 29%, drawing the entire pattern from these two columns alone.
Since the model does not outperform a straight line through the data, the result offers no practical gain over this baseline and cannot be relied on for more accurate prediction or deeper insight. The model is notably less accurate for segments with lower or mid-range Robbery and Murder levels, and residual variance grows with higher predicted values. The next step is to re-express the target or inputs and reconstruct the model before committing to use in decisions.
Recommended Next Data
- Collect more rows where Robbery is in the lowest quarter (6.40 to 70.2), the second quarter (71.2 to 124), or the third quarter (124 to 193). Reason: the model is far less accurate on these segments, explaining only 5.1% to 19% of the variation in those rows.
- Collect more rows where Murder is in the lowest quarter (0.2 to 3.60), the second quarter (3.80 to 6.30), or the third quarter (6.40 to 9.70). Reason: the model explains just 40% to 52% of the variation in these rows, much less than its overall performance.
- Collect more rows where Afam is in the second quarter (2.22 to 4.01) and where Cauc is in the second quarter (60.1 to 64.9). Reason: the model is far less accurate for these segments, explaining only 31% and 53% of the variation there.
- Inspect the Law column for differences between groups and collect additional rows if needed. Reason: the diagnostics reported a prediction parity gap by Law.
- Revise the model and gather more data for rows with higher predicted values. Reason: model accuracy degrades as predicted value rises, as residual variance increases with the magnitude of the model's output.
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.
Violent by Input Range
Segment robbery in the lowest quarter (6.40 to 70.2) is much weaker than the aggregate (62 held-out rows): segment R² 0.0506 against aggregate R² 0.818 (gap -0.767). 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.
| Segment | Rows | R² | Gap to all rows | Verdict |
|---|---|---|---|---|
| Robbery = q1 | 62 | 0.0506 | -0.7674 | Much weaker than on all rows |
| Robbery = q3 | 60 | 0.0839 | -0.7341 | Much weaker than on all rows |
| Robbery = q2 | 55 | 0.1852 | -0.6327 | Much weaker than on all rows |
| Afam = q2 | 65 | 0.3124 | -0.5056 | Much weaker than on all rows |
| Murder = q3 | 57 | 0.3951 | -0.4228 | Much weaker than on all rows |
| Murder = q2 | 60 | 0.4792 | -0.3387 | Much weaker than on all rows |
| Murder = q1 | 61 | 0.5195 | -0.2984 | Much weaker than on all rows |
| Cauc = q2 | 51 | 0.5260 | -0.2919 | Much weaker than on all rows |
| Afam = q1 | 61 | 0.5300 | -0.2879 | Much weaker than on all rows |
| Population = q4 | 52 | 0.5680 | -0.2499 | Weaker than on all rows |
The first 10 rows of 24. The other 14 are in the notebook.
- Aggregate R²
- 0.8179
- Measure
- r2
- Target
- Violent
Rows unlike the ones the model learned from
3 of 235 held-out rows (1.3%) lie further from the training rows than 99 in 100 rows like them would, measured on the 2 inputs the model reads (murder, robbery). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.
| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
|---|---|---|---|---|---|
| Violent | Murder, Robbery | 3.035 | 235 | 3 | 1.28 % |
| Count | From | To |
|---|---|---|
| 40 | 0 | 0.322 |
| 82 | 0.322 | 0.643 |
| 57 | 0.643 | 0.965 |
| 44 | 0.965 | 1.287 |
| 7 | 1.287 | 1.608 |
| 1 | 1.608 | 1.93 |
| 1 | 1.93 | 2.252 |
| 0 | 2.252 | 2.573 |
| 0 | 2.573 | 2.895 |
| 0 | 2.895 | 3.217 |
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.
Fairness
This chapter checks the held-out predictions for uneven treatment of groups. For every categorical column with two to ten distinct values, other than the target, it reports per group the row count, mean actual value, mean prediction and mean residual, with R² and MAE for a number or accuracy, the share of rows classified correctly, for a yes-or-no target, and two measures across the groups.
- Prediction parity ratio: the smallest group mean prediction divided by the largest, in absolute value. A ratio of 1.0 is perfect parity. Below 0.80, the four-fifths rule, some group receives systematically different predictions.
- Largest mean residual: the largest absolute mean residual of any group. Above 30% of the overall residual standard deviation, at least one group is systematically over- or under-predicted.
The verdict combines the two: balanced when neither measure trips, parity gap or residual bias when one does, parity gap and residual bias when both do, and insufficient data when fewer than two groups have enough held-out rows.
Diafunc does not decide which columns are protected attributes; it reports every plausible one. A flagged column matters where it is a protected attribute in the decision the model supports, and can be set aside where it is not.
Violent Fairness
Column Law splits the held-out rows into 2 groups. The prediction-parity ratio is 0.668 (smallest over largest mean prediction), the largest absolute group residual mean is 9.03 (0.0739 times the overall residual standard deviation). Parity gap: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking.
- Aggregate residual std
- 122.2
- N columns
- 1
- N proxies
- 0
- Proxy threshold
- 0.5
| Bias max abs residual mean | Column | Groups | Interpretation | N groups | Prediction parity ratio | Verdict |
|---|---|---|---|---|---|---|
| 9.032 | Law | false, true | Column Law splits the held-out rows into 2 groups. The prediction-parity ratio is 0.668 (smallest over largest mean prediction), the largest absolute group residual mean is 9.03 (0.0739 times the overall residual standard deviation). Parity gap: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking. | 2 | 0.6682 | Prediction parity gap |
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.
| Name | Summary |
|---|---|
| Controlled experiment | Randomize the input to be acted on, then analyze again. Randomization breaks confounding, so any change in the target is attributable to the input. |
| Natural experiment | Find a setting where the input varied for reasons unrelated to the target, an instrumental variable. Variation of that kind supports causal inference. |
| Causal graph | Write out what plausibly causes what, then check whether the model's terms are consistent with the conditional independences the graph implies. |
| Control for confounders | If 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:
violent - Rows: 1,173 rows
- Per-Segment Predictions: not produced, because no segment column was chosen
- Fairness: compared across 2 categorical columns (
law,state); which of them are protected attributes is not decided here - 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 6 checks (3 pass, 2 warn, 1 fails, 2 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.
| Name | Status | Detail |
|---|---|---|
| Generalization | Pass | held-out quality holds up against training quality |
| Prediction Interval Coverage | Warn | intervals are wider than their level requires, largest gap 5.11 percentage points |
| Baseline Lift for Violent | Fail | loses to the best baseline, R² lift -0.0416 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Warn | 1 column compared, 1 flagged: Law (a group receives systematically smaller predictions) |
| Out-of-Distribution | Pass | 1.3% of held-out rows are out of distribution |
- N critical concerns
- 2
- N fail
- 1
- N pass
- 3
- N warn
- 2
- 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.
| Item | Value |
|---|---|
| Analysis ID | fab09e90-48b7-11f1-8087-d378640fe787 |
| Run time | 2026-10-20 20:56 UTC |
| Total rows | 1,173 |
| Modeled targets | Violent |
| Segment column | not available |
| Time limit | 1 h 0 min |
| Time taken | 1 h 3 min |
| Credit budget | 500 credits |
| Ufinq version | 0.3.41 |
Findings
1 finding from the implications diagnostics (1 Critical) is listed in the Concerns chapter at the top of the analysis.
The report continues in the notebook.