Analysis report

U.S. Wages 1976

Data from R package wooldridge (CRAN), published under https://diafunc.com/licences/view-only.

Target
Wage
Analyzed
2026-11-07 13:10 UTC

Summary

The model for Wage explains 42% of the variation, relying most strongly on Years of education. Moving Years of education from 12.0 to 14.0 raises the model's output by about 1.14 on average, with everything else as observed. The model reaches the same share of variation as a straight line through the data, coming out ahead by less than 0.1 points, a margin too small to show row by row, with the two about level.

The model did not beat the baseline, so its formula offers no real performance gain over ordinary regression. It is also less accurate for those with Years of education in the highest quarter (14 to 18) and for rows where Profocc = yes. Validation on a fresh sample is the next step before using this model for decisions.

Formula

Wage = 2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)Wage=2+0.011×Years of education×1.8×Years of education+Tenure
Wage = 2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)
2 terms · additively decomposable

Held-out diagnostics

TargetQualityErrorR²MAESearch rowsGeneralizationRows
Wage38.67%58.19%0.41811.957421generalizing105
  • Wage · Quality 95% CI 26.35% to 50.98%
  • Wage · Error 95% CI 46.52% to 69.89%
  • Wage · R² 95% CI 0.3011 to 0.5348
  • Wage · MAE 95% CI 1.606 to 2.386

Concerns

WARNING model

The model barely beats a straight line through the data on `Wage`

The model explains 42% of the variation on the held-out rows, where a straight line through the data explains 42%, a margin of <0.1 points. The formula adds little over the reference predictor; whether it is worth its complexity depends on the use. Row by row the two are about level.

INFO model

Residuals grow in proportion to the predicted value

Across 105 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 4.28, against 1.61 in the bottom third, 2.66 times as large. The bottom third holds predictions up to 4.85 and the top third predictions from 6.34. Relative to the predictions, the typical miss is 38% of the value in the bottom third and 56% in the top third: the errors grow with the value, as they do for a quantity whose errors scale with its size, and the model is about as accurate at both ends relative to it. Where the same absolute accuracy matters across the range, a log transform of the target evens the spread.

INFO model

`Lwage` reproduces `Wage`

Spearman's rho = 1 (Pearson r = 0.937) between Lwage and the target Wage. A match this exact is what a copy or a rescaled copy of the target looks like. The coefficients read the same for a strong input and for a leak. If Lwage is known before Wage exists, it is the strongest input and the quality stated in this report is real. If it was computed from Wage or recorded after it, a formula that reads it will not hold on new data. The model does not read this column, so its predictions do not depend on the answer.

INFO implications

Weaker quality on 2 slices of the data

On 2 of the 56 slices compared the model is weaker than on all held-out rows (R² 0.418). The largest gaps: Years of education in the highest quarter (14 to 18) (a typical miss 1.50 times that on all rows, on 34 rows) and Profocc = yes (a typical miss 1.25 times that on all rows, on 37 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.

Complete list (2)
SegmentRowsR²Against all rowsVerdict
Years of education in the highest quarter (14 to 18)340.265-0.153Weaker
Profocc = yes370.291-0.127Weaker

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-11-07 13:11 UTC, analysis 09beaf30-48b8-11f1-8087-d378640fe787, 1 target, time budget 1 h 0 min, compute budget 500 credits, 526 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 high quality and still say nothing new about the data.

What it found

Wage starts from a base of 2, rises with Tenure, and rises ever more steeply with Years of education.

  1. Years of education carries most of the model. Years of education accounts for 64% of what the formula explains and Tenure for 36%.
  2. Wage rises with Years of education. With the other inputs at typical values, the formula gives 2 at Years of education 0 and 8.81 at 18. The change is not even across the range.
  3. Profocc is not in the formula. It has the third-strongest association with Wage in the table (0.44).
  4. The formula is level with a straight line. The formula explains 42% of Wage; a straight line explains 42%, so treat them as level. That was measured on 105 rows it never saw. The formula typically misses Wage by 1.96.

Summary

What to do next: Intervals are wider than their level requires: the 50% intervals hold 64% of the held-out rows, 13.8 points more.

6 chapters, each headed by what it found.

S.1 Years of education carries most of the formula

What the formula relies on. Shares of the formula: Years of education 64%, Tenure 36%.

Measured on 42 of the 421 rows the model was found on, which the search set apart for it. The model's output rises with Educ on every one of the 3,165 steps between observed values. The model's output rises with Tenure on every one of the 5,064 steps between observed values. Moving Educ from 12.0 to 14.0, its first and third quartile, with every other input as observed raises the model's output by 1.14 on average (by between 1.03 and 2.00 on single rows). These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.

Table 5.1.3 · Which inputs matter most
InputShare of importancePermutation importanceSensitivityResidual correlationOccurrencesModel's output as the input risesChange, first to third quartile
Years of education64.46%0.83660.56730.10371Rises (3165 of 3165 steps)+1.142 (12 to 14)
Tenure35.54%0.46130.1414-0.2651Rises (5064 of 5064 steps)+0.962 (0 to 7)
Rows the search trained on, measured
211
N rows
42
Inputs the formula does not read
Clerocc, Construc, Years potential experience, Expersq, Female, Married, Ndurman, Nonwhite, Northcen, Number of dependents, Profocc, Profserv, Services, Servocc, Smsa, South, Tenursq, Trade, Trcommpu, West

The formula decomposes into 2 additive terms: clean separable structure. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median. Steep curves carry the prediction; flat curves are decorative.

Additive
Yes
Rows the search trained on, measured
211
Terms in the formula
2
Notation
2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)
Target
Wage

S.2 It holds on new rows: R² 0.42 held out, 0.30 on the training rows

How well it holds. The formula explains 42% of Wage; a straight line explains 42%, so treat them as level.

How this was checked

  • Measured on 105 rows the formula never saw (20% of 526); the other 421 built it.
  • Compared on the same rows against always guessing the average, always guessing the median and a straight line.
  • Intervals from 1,000 bootstrap resamples of those rows.

R² of 0.418 on 105 rows the search never saw (95% interval 0.301 to 0.535): weak. The model captures only a small part of the variance; either the relevant inputs are missing, or the target depends on interactions the formula did not recover. Mean absolute error is 1.96 on the target's scale.

Error
58.19% (95% CI 46.52% to 69.89%)
MAE
1.957 (95% CI 1.606 to 2.386)
N
105
Training rows
421
Quality
38.67% (95% CI 26.35% to 50.98%)
R²
0.4181 (95% CI 0.3011 to 0.5348)
Rows found on
421
Target
Wage

The model beats the strongest simple yardstick, a straight line through the data, by <0.1 points of variance explained on the 105 held-out rows. Row by row the margin is negligible: the model reads as roughly level with the yardstick. Of the 105 held-out rows where the two differ, the model is closer on 48% (95% interval 38% to 57%). The interval of the margin includes zero: on this many held-out rows the lead is not settled.

Best yardstick's score
0.4178 (95% CI 0.3013 to 0.5351)
Best baseline R²
0.4178
Effect size d
-0.148 (95% CI -0.349 to 0.04897)
Effect size d magnitude
negligible
Margin over the best yardstick
0.000329 (95% CI -0.06036 to 0.06359)
Margin's interval stays above zero
No
Model MAE
1.957 (95% CI 1.606 to 2.386)
Model
0.4181 (95% CI 0.3011 to 0.5348)
Model R²
0.4181 (95% CI 0.3011 to 0.5348)
Held-out rows
105
Held-out rows without an answer
0
Target
Wage
Rows where the model is closer
47.62% (95% CI 38.32% to 57.09%)
Rows compared
105
Rows level
0
Regression yardstick trained with gaps filled (too few complete rows)
No
Training rows of the regression yardstick
421

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

Generalization gap
-0.1177
N test
105
Target
Wage
Test error
1.957 (95% CI 1.606 to 2.386)
Test R²
0.4181 (95% CI 0.3011 to 0.5348)
Train error
0.6286
Train R²
0.3004
Verdict
Generalizing

S.3 Weaker on 2 slices of the data, most in the highest quarter of Years of education

Where it is weak. The largest miss on a held-out row is 14.6 (recorded 22.9, predicted 8.3). 2.9% of the held-out rows are unlike the rows it learned from.

Segment educ in the highest quarter (14 to 18) is mildly weaker than the aggregate (34 held-out rows): segment R² 0.265 against aggregate R² 0.418 (gap -0.153). A noticeable but not severe quality drift; worth watching if this slice represents a high-stakes subset of the production data.

Table 6.2.1 · Wage by Input Range
SegmentRowsR²Gap to all rowsVerdict
Years of education = q4340.2654-0.15268Weaker than on all rows
Profocc = true370.2911-0.12698Weaker than on all rows
South = false750.4269+0.00882In line with all rows
Smsa = true760.3993-0.01877In line with all rows
Northcen = false750.3198-0.09824In line with all rows
Trade = false800.4045-0.01356In line with all rows
Years potential experience = q4320.5243+0.10619In line with all rows
Expersq = q4320.5243+0.10619In line with all rows
Servocc = false820.4016-0.01653In line with all rows
Female = false600.3719-0.04613In line with all rows

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

Aggregate MAE
1.957
Aggregate R²
0.4181
Measure
r2
Target
Wage

The worst held-out row was missed by 14.6 (target's scale). The 10 rows with the largest absolute residuals out of 105 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.

Table 5.1.13 · Worst Predictions
ActualPredictedResidualYears of educationTenure
22.8608.301+14.559167
21.6309.999+11.631188
15.0006.959+8.041147
18.16011.997+6.1631628
13.1607.755+5.4051222
13.9509.885+4.0651616
9.0004.983+4.017121
8.7704.851+3.919120
8.5304.640+3.890106
2.6506.171-3.5211210
Additive
Yes
Expected coverage
0.883
N extrapolated
0
Held-out rows
105
Held-out rows for the interval
105
Rows inside the interval
99
Residual P5
-3.236
Residual P95
4.056
Residual std
2.854

3 of 105 held-out rows (2.9%) lie further from the training rows than 99 in 100 rows like them would, measured on the 2 inputs the model reads (educ, tenure). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.

Table 6.3 · Rows unlike the ones the model learned from
TargetInputs measuredLineHeld-out rowsBeyond the lineShare
WageYears of education, Tenure3.03510532.86%
Table 6.3 · Score bins · 24 of 30 rows shown
CountFromTo
000.121
60.1210.243
20.2430.364
40.3640.486
130.4860.607
90.6070.728
160.7280.85
110.850.971
20.9711.093
71.0931.214

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

S.4 Usable with care: 3 points to watch

What to watch. First: The model barely beats a straight line through the data on Wage.

Table 3 · Concerns
SeveritySectionConcernDetail
WarningModelThe model barely beats a straight line through the data on WageThe model explains 42% of the variation on the held-out rows, where a straight line through the data explains 42%, a margin of <0.1 points. The formula adds little over the reference predictor; whether it is worth its complexity depends on the use. Row by row the two are about level.
InfoModelResiduals grow in proportion to the predicted valueAcross 105 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 4.28, against 1.61 in the bottom third, 2.66 times as large. The bottom third holds predictions up to 4.85 and the top third predictions from 6.34. Relative to the predictions, the typical miss is 38% of the value in the bottom third and 56% in the top third: the errors grow with the value, as they do for a quantity whose errors scale with its size, and the model is about as accurate at both ends relative to it. Where the same absolute accuracy matters across the range, a log transform of the target evens the spread.
InfoModelLwage reproduces WageSpearman's rho = 1 (Pearson r = 0.937) between Lwage and the target Wage. A match this exact is what a copy or a rescaled copy of the target looks like. The coefficients read the same for a strong input and for a leak. If Lwage is known before Wage exists, it is the strongest input and the quality stated in this report is real. If it was computed from Wage or recorded after it, a formula that reads it will not hold on new data. The model does not read this column, so its predictions do not depend on the answer.
InfoImplicationsWeaker quality on 2 slices of the dataOn 2 of the 56 slices compared the model is weaker than on all held-out rows (R² 0.418). The largest gaps: Years of education in the highest quarter (14 to 18) (a typical miss 1.50 times that on all rows, on 34 rows) and Profocc = yes (a typical miss 1.25 times that on all rows, on 37 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.

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

  • Targets: 1 target: wage
  • Rows: 526 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: compared across 16 categorical columns (clerocc, construc, female, married, ndurman, nonwhite, northcen, profocc, profserv, services, servocc, smsa, south, trade, trcommpu, west); 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, 3 warn, 0 fail), the model passes the hard gates but at least one check warns: Usable with care. A limited audience and monitoring of the warning signals come before a broad rollout.

Table 6.6 · Deployment Readiness
NameStatusDetail
GeneralizationPassquality on the held-out rows matches quality on the rows the model was found on
Prediction Interval CoverageWarnintervals are wider than their level requires: the 50% intervals hold 64% of the held-out rows, 13.8 points more
Baseline Lift for WageWarnbarely beats the best baseline, R² lift 0.000329
Model ConstraintsPassevery held-out prediction is finite and within the training range
FairnessWarn16 columns compared, 8 flagged: Clerocc (a group is systematically over- or under-predicted), Female (a group is systematically over- or under-predicted), Ndurman (a group receives systematically smaller predictions), Profocc (a group both receives smaller predictions and is systematically mis-predicted), Services (a group is systematically over- or under-predicted), Servocc (a group is systematically over- or under-predicted), Smsa (a group is systematically over- or under-predicted), Trcommpu (a group receives systematically smaller predictions)
Out-of-DistributionPass2.9% of held-out rows are out of distribution
N critical concerns
0
N fail
0
N pass
3
N warn
3
Overall verdict
Caution

Column Profocc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.724 (smallest over largest mean prediction), the largest absolute group residual mean is 1.39 (0.488 times the overall residual standard deviation). Parity gap and residual bias: the model both predicts systematically lower for some groups and errs systematically against at least one group. This is the worst-case fairness signal on this column; review before deployment.

Aggregate residual std
2.854
N columns
16
N proxies
0
Proxy threshold
0.5
Table 6.4.1 · Columns
Bias max abs residual meanColumnGroupsInterpretationN groupsPrediction parity ratioVerdict
1.632Cleroccfalse, trueColumn Clerocc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.962 (smallest over largest mean prediction), the largest absolute group residual mean is 1.63 (0.572 times the overall residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.20.9618Residual bias
0.1392Construcfalse, trueColumn Construc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.838 (smallest over largest mean prediction), the largest absolute group residual mean is 0.139 (0.0488 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.838Balanced
0.9139Femalefalse, trueColumn Female splits the held-out rows into 2 groups. The prediction-parity ratio is 0.911 (smallest over largest mean prediction), the largest absolute group residual mean is 0.914 (0.32 times the overall residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.20.9111Residual bias
0.6204Marriedtrue, falseColumn Married splits the held-out rows into 2 groups. The prediction-parity ratio is 0.928 (smallest over largest mean prediction), the largest absolute group residual mean is 0.62 (0.217 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.9284Balanced
0.2187Ndurmantrue, falseColumn Ndurman splits the held-out rows into 2 groups. The prediction-parity ratio is 0.798 (smallest over largest mean prediction), the largest absolute group residual mean is 0.219 (0.0766 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.20.7976Prediction parity gap
0.2473Nonwhitetrue, falseColumn Nonwhite splits the held-out rows into 2 groups. The prediction-parity ratio is 0.933 (smallest over largest mean prediction), the largest absolute group residual mean is 0.247 (0.0867 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.933Balanced
0.2695Northcentrue, falseColumn Northcen splits the held-out rows into 2 groups. The prediction-parity ratio is 0.878 (smallest over largest mean prediction), the largest absolute group residual mean is 0.27 (0.0944 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.878Balanced
1.392Profocctrue, falseColumn Profocc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.724 (smallest over largest mean prediction), the largest absolute group residual mean is 1.39 (0.488 times the overall residual standard deviation). Parity gap and residual bias: the model both predicts systematically lower for some groups and errs systematically against at least one group. This is the worst-case fairness signal on this column; review before deployment.20.7243Parity and bias
0.2839Profservfalse, trueColumn Profserv splits the held-out rows into 2 groups. The prediction-parity ratio is 0.923 (smallest over largest mean prediction), the largest absolute group residual mean is 0.284 (0.0995 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.9229Balanced
1.833Servicesfalse, trueColumn Services splits the held-out rows into 2 groups. The prediction-parity ratio is 0.878 (smallest over largest mean prediction), the largest absolute group residual mean is 1.83 (0.642 times the overall residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.20.878Residual bias

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

S.5 More rows in the highest quarter of Years of education would help most

What to collect next. Its R² there is 0.27 against 0.42 on all rows, on 34 held-out rows.

  • Collect more rows where Years of education is in the highest quarter (14 to 18) and where Profocc = yes. Reason: the model is less accurate on these slices, explaining 27% of the variation for Years of education in the highest quarter (14 to 18) and 29% where Profocc = yes.
  • Add or refine columns that describe differences between groups in Clerocc, Female, Ndurman, Profocc, Services, Servocc, Smsa, and Trcommpu. Reason: the model's errors differ between groups for these columns according to the fairness diagnostics, including findings of parity and bias as flagged on Profocc.
  • Collect more features related to Wage that are not captured by Years of education and Tenure. Reason: the model explains 42% of the variation overall and barely beats a straight line through the data, with negligible margin over the baseline.
  • Review or increase the variety of values in Ndurman and Trcommpu. Reason: prediction parity gaps are present between groups in these two columns, indicating potential missing signal or unaccounted-for differences.
  • Inspect the columns and values used for Profocc more closely. Reason: fairness diagnostics flagged parity and bias for Profocc, and accuracy on Profocc = yes rows is weaker than overall.

S.6 It shows how Wage moves with its inputs in these rows, not what causes it

What this model does not show. It was built on Years of education from 0 to 18 and Tenure from 0 to 44; outside those ranges it has not been checked. 23 slices of the data had too few held-out rows to judge.

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.

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

Evidence

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

1 Headline

Diafunc modeled Wage from 23 columns, using 2 in the model. The model explains less than half the variation in Wage, at 42%, and relies most on Years of education, with which the model's output rises.

  • One target was modeled; 105 rows were held out for checking.
  • A straight line through the data already explained 42%; this model added less than 0.1 points of variance explained, a slight margin.
  • Years of education in the highest quarter (14 to 18) shows less accuracy, with the model explaining 27% of the variation there on 34 held-out rows.
Best R²
0.4181
Best quality
38.67%
Best target
wage
Targets
1

2 Stakeholder Summary

The model for Wage explains 42% of the variation, relying most strongly on Years of education. Moving Years of education from 12.0 to 14.0 raises the model's output by about 1.14 on average, with everything else as observed. The model reaches the same share of variation as a straight line through the data, coming out ahead by less than 0.1 points, a margin too small to show row by row, with the two about level.

The model did not beat the baseline, so its formula offers no real performance gain over ordinary regression. It is also less accurate for those with Years of education in the highest quarter (14 to 18) and for rows where Profocc = yes. Validation on a fresh sample is the next step before using this model for decisions.

3 Concerns

Table 3 · Concerns
SeveritySectionConcernDetail
WarningModelThe model barely beats a straight line through the data on WageThe model explains 42% of the variation on the held-out rows, where a straight line through the data explains 42%, a margin of <0.1 points. The formula adds little over the reference predictor; whether it is worth its complexity depends on the use. Row by row the two are about level.
InfoModelResiduals grow in proportion to the predicted valueAcross 105 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 4.28, against 1.61 in the bottom third, 2.66 times as large. The bottom third holds predictions up to 4.85 and the top third predictions from 6.34. Relative to the predictions, the typical miss is 38% of the value in the bottom third and 56% in the top third: the errors grow with the value, as they do for a quantity whose errors scale with its size, and the model is about as accurate at both ends relative to it. Where the same absolute accuracy matters across the range, a log transform of the target evens the spread.
InfoModelLwage reproduces WageSpearman's rho = 1 (Pearson r = 0.937) between Lwage and the target Wage. A match this exact is what a copy or a rescaled copy of the target looks like. The coefficients read the same for a strong input and for a leak. If Lwage is known before Wage exists, it is the strongest input and the quality stated in this report is real. If it was computed from Wage or recorded after it, a formula that reads it will not hold on new data. The model does not read this column, so its predictions do not depend on the answer.
InfoImplicationsWeaker quality on 2 slices of the dataOn 2 of the 56 slices compared the model is weaker than on all held-out rows (R² 0.418). The largest gaps: Years of education in the highest quarter (14 to 18) (a typical miss 1.50 times that on all rows, on 34 rows) and Profocc = yes (a typical miss 1.25 times that on all rows, on 37 rows). Predictions for these rows deserve caution; the Quality by Input Range chapter lists every slice.

How to read this

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

4 Discovered Relations

Table 4 · Quality and error measured on the 105 held-out rows
TargetFormulaQualityComplexityError
WageWage = 2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)38.67%11.1%58.19%

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.

5 Model

Years of education is the strongest input, carrying sixty-four percent of the reliance on inputs. The model shows a share of variation explained of zero point four one eight and contains only two terms. Several issues were flagged; see the Concerns chapter for details.

Most notable in the Model section:

  • Years of education carries most of the model (64% 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.

5.1 Wage

The Model section builds one model for Wage: 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.

5.1.1 Wage Model

The model's output rises with both Years of education and Tenure, relying most on Years of education, which carries 64% of the variation in the model's output, and Tenure, which carries 36%.

Wage = 2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)f:(Years of education,Tenure)↦WageYears of education,Tenure,Wage∈RWage=2+0.011×Years of education×1.8×Years of education+Tenure
Wage = 2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)
Quality 38.67% · Error 58.19% on 105 rows the search never saw · Found on 421 rows · Complexity 11.1%
Table 5.1.1 · Constants of the formula
ValueRoleInputUnit
2InterceptUnit of the model's output
0.011Coefficient
1.8Coefficient
Rows the search trained on, measured
211
Rows the search trained on
211
Held out R²
0.4181 (95% CI 0.3011 to 0.5348)
Constant base
2
Constants in the formula
3
Terms that read an input, constants multiplied in
1
Training rows
421
Held-out rows
105
Inputs the formula reads
2
Terms in the formula
2
Inputs the formula does not read
Clerocc, Construc, Years potential experience, Expersq, Female, Married, Ndurman, Nonwhite, Northcen, Number of dependents, Profocc, Profserv, Services, Servocc, Smsa, South, Tenursq, Trade, Trcommpu, West

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.

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

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

5.1.2 Prediction

The model predicts Wage 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.

5.1.2.1 Prediction Chart

R² of 0.418 on 105 rows the search never saw (95% interval 0.301 to 0.535): weak. The model captures only a small part of the variance; either the relevant inputs are missing, or the target depends on interactions the formula did not recover. Mean absolute error is 1.96 on the target's scale.

Error
58.19% (95% CI 46.52% to 69.89%)
MAE
1.957 (95% CI 1.606 to 2.386)
N
105
Training rows
421
Quality
38.67% (95% CI 26.35% to 50.98%)
R²
0.4181 (95% CI 0.3011 to 0.5348)
Rows found on
421
Target
Wage

How to read this

Actual Wage 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 color the number of rows that fall in both, and the cells whose two ranges match hold the rows the model predicts well.

5.1.2.2 Residual Distribution
Bias
0.1382 (95% CI -0.3877 to 0.7191)
N
105
P50
-0.4112 (95% CI -0.98 to 0.1888)
P90
3.219 (95% CI 1.956 to 4.017)
P95
4.056 (95% CI 2.965 to 8.041)
P99
11.49 (95% CI 4.063 to 14.56)
Std
2.854 (95% CI 2.024 to 3.676)

How to read this

How the held-out residuals (actual Wage 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.

5.1.3 Which inputs matter most

Measured on 42 of the 421 rows the model was found on, which the search set apart for it. The model's output rises with Educ on every one of the 3,165 steps between observed values. The model's output rises with Tenure on every one of the 5,064 steps between observed values. Moving Educ from 12.0 to 14.0, its first and third quartile, with every other input as observed raises the model's output by 1.14 on average (by between 1.03 and 2.00 on single rows). These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.

Table 5.1.3 · Which inputs matter most
InputShare of importancePermutation importanceSensitivityResidual correlationOccurrencesModel's output as the input risesChange, first to third quartile
Years of education64.46%0.83660.56730.10371Rises (3165 of 3165 steps)+1.142 (12 to 14)
Tenure35.54%0.46130.1414-0.2651Rises (5064 of 5064 steps)+0.962 (0 to 7)
Rows the search trained on, measured
211
N rows
42
Inputs the formula does not read
Clerocc, Construc, Years potential experience, Expersq, Female, Married, Ndurman, Nonwhite, Northcen, Number of dependents, Profocc, Profserv, Services, Servocc, Smsa, South, Tenursq, Trade, Trcommpu, West

How to read this

The chart ranks the inputs of the Wage 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.

5.1.4 Baselines

The model beats the strongest simple yardstick, a straight line through the data, by <0.1 points of variance explained on the 105 held-out rows. Row by row the margin is negligible: the model reads as roughly level with the yardstick. Of the 105 held-out rows where the two differ, the model is closer on 48% (95% interval 38% to 57%). The interval of the margin includes zero: on this many held-out rows the lead is not settled.

Best yardstick's score
0.4178 (95% CI 0.3013 to 0.5351)
Best baseline R²
0.4178
Effect size d
-0.148 (95% CI -0.349 to 0.04897)
Effect size d magnitude
negligible
Margin over the best yardstick
0.000329 (95% CI -0.06036 to 0.06359)
Margin's interval stays above zero
No
Model MAE
1.957 (95% CI 1.606 to 2.386)
Model
0.4181 (95% CI 0.3011 to 0.5348)
Model R²
0.4181 (95% CI 0.3011 to 0.5348)
Held-out rows
105
Held-out rows without an answer
0
Target
Wage
Rows where the model is closer
47.62% (95% CI 38.32% to 57.09%)
Rows compared
105
Rows level
0
Regression yardstick trained with gaps filled (too few complete rows)
No
Training rows of the regression yardstick
421

How to read this

The table scores the model for Wage 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 Wage 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 Wage.

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.

5.1.5 Generalization

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

Generalization gap
-0.1177
N test
105
Target
Wage
Test error
1.957 (95% CI 1.606 to 2.386)
Test R²
0.4181 (95% CI 0.3011 to 0.5348)
Train error
0.6286
Train R²
0.3004
Verdict
Generalizing

How to read this

The chart sets the score of the Wage 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.

5.1.6 How each term responds to its inputs

The formula decomposes into 2 additive terms: clean separable structure. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median. Steep curves carry the prediction; flat curves are decorative.

Additive
Yes
Rows the search trained on, measured
211
Terms in the formula
2
Notation
2 + 0.011 × Years of education × (1.8 × Years of education + Tenure)
Target
Wage

How to read this

The formula for Wage 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 Wage 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.

5.1.7 How the formula behaves outside the data

The model diverges beyond the observed range of educ, tenure: predictions there are not supported by the formula's shape. Extrapolate with caution.

Bounded at infinity
No
Rows the search trained on, measured
211
Inputs the formula reads
2
N singularities
0
Risky inputs
educ, tenure
Target
Wage
Table 5.1.7 · Limits at neg infinity
InputKind
Years of educationPositive infinity
TenureDiverges
Table 5.1.7 · Limits at pos infinity
InputKind
Years of educationPositive infinity
TenureDiverges

How to read this

The formula for Wage 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.

5.1.8 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 Wage. 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.

5.1.9 What each term is worth

Full-formula R² is 0.418. 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.4181
Held-out rows
105

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 Wage, 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.

5.1.10 What-If
Table 5.1.10 · The prediction at the typical row: every input at its median or most common value
ItemValue
Years of education12
Tenure2
Term 1 adds2
Term 2 adds3.115
Prediction5.115
Additive
Yes
Expected coverage
0.883
Held-out rows for the interval
105
Rows inside the interval
99
Terms in the formula
2
Residual P5
-3.236
Residual P95
4.056
Residual std
2.854

How to read this

The chapter shows the model's prediction for Wage 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.

5.1.11 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 Wage 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.

5.1.12 How two inputs act together

The formula couples educ and tenure: on 137 of 137 row pairs the mixed difference was not zero, so in the model's output the two act together (measured, not assumed). This describes the formula; it does not say that the data hold no other interaction. The heatmaps below show how the prediction's response to one input depends on another (the others held at the median).

Table 5.1.12 · Input pairs tested inside the formula
InputsIn the model's outputRow pairsPairs with a differenceMean absolute mixed difference
Years of education, TenureAct together1371370.3178
Table 5.1.12 · The prediction across Years of education (columns) and Tenure (rows), the other inputs at their typical values
Tenure \ Years of education037101316
022.1782.973.985.3467.069
822.4423.5864.866.498.477
1622.7064.2025.747.6349.885
2422.974.8186.628.77811.29
3223.2345.4347.59.92212.7
4023.4986.058.3811.0714.11
Additive
Yes
Inputs in different terms act separately
Yes
Rows the search trained on, measured
211
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 Wage 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.

5.1.13 Worst Predictions

The worst held-out row was missed by 14.6 (target's scale). The 10 rows with the largest absolute residuals out of 105 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.

Table 5.1.13 · Worst Predictions
ActualPredictedResidualYears of educationTenure
22.8608.301+14.559167
21.6309.999+11.631188
15.0006.959+8.041147
18.16011.997+6.1631628
13.1607.755+5.4051222
13.9509.885+4.0651616
9.0004.983+4.017121
8.7704.851+3.919120
8.5304.640+3.890106
2.6506.171-3.5211210
Additive
Yes
Expected coverage
0.883
N extrapolated
0
Held-out rows
105
Held-out rows for the interval
105
Rows inside the interval
99
Residual P5
-3.236
Residual P95
4.056
Residual std
2.854

How to read this

The held-out rows on which the model misses Wage 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.

5.1.14 Prediction Interval Coverage

Across 105 held-out rows, the 95% prediction interval actually covers 96.2% of the rows. The normal band is wider than needed for this residual distribution (worst gap 13.8 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.

Table 5.1.14 · Prediction Interval Coverage
Nominal levelHalf-widthEmpirical coverage
50%1.92567 of 105 (63.81%)
80%3.65796 of 105 (91.43%)
90%4.694100 of 105 (95.24%)
95%5.593101 of 105 (96.19%)
Largest miss (percentage points)
13.81
Held-out rows
105
Rows inside the interval
67, 96, 100, 101
Residual P2.5
-3.375
Residual P97.5
6.914
Verdict
Underconfident

How to read this

Each held-out prediction of Wage 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.

5.1.15 Regression Diagnostics

105 held-out residuals, with a spread up to 14.6 in absolute terms. Mean residual is 0.138, 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.4382
Bias
0.1382
Bias over residual sd
0.04842
Held-out rows
105
Order
shuffled
Residual sd
2.854
Share within normal band
0.9619

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 Wage, 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 neighboring 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.

5.1.16 Search Progress

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

First generation
2
First quality
14.31%
Last generation
30
Last improvement ms
595
Last quality
27.71%
Max quality
27.71%
N points
29
N total generations
29
Search time ms
885
Stop reason
Failed due to an unexpected exception: com.ufinq.core.UfinqException: No host available for branch ed0acef12c024f0880421dfb61123e00 (depth=0, delegations=0) at com.ufinq.core.orchestration.orchestrator.StandardOrchestrator.orchestrate(StandardOrchestrator.kt:555) at com.ufinq.core.orchestration.orchestrator.StandardOrchestrator.branch(StandardOrchestrator.kt:482) at com.ufinq.core.evolution.Evolution.launchExecutingBranch(Evolution.kt:874) at com.ufinq.core.evolution.Evolution.launchExecutingBranch$default(Evolution.kt:850) at com.ufinq.core.evolution.Evolution.launchExploratoryBranch(Evolution.kt:836) at com.ufinq.core.evolution.Evolution.access$launchExploratoryBranch(Evolution.kt:69) at com.ufinq.core.evolution.Evolution$evolveCoordinating$2.invokeSuspend(Evolution.kt:382) at com.ufinq.core.evolution.Evolution$evolveCoordinating$2.invoke(Evolution.kt) at com.ufinq.core.evolution.Evolution$evolveCoordinating$2.invoke(Evolution.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:286) at com.ufinq.core.evolution.Evolution.evolveCoordinating(Evolution.kt:252) at com.ufinq.core.evolution.Evolution.access$evolveCoordinating(Evolution.kt:69) at com.ufinq.core.evolution.Evolution$evolve$2.invokeSuspend(Evolution.kt:100) at com.ufinq.core.evolution.Evolution$evolve$2.invoke(Evolution.kt) at com.ufinq.core.evolution.Evolution$evolve$2.invoke(Evolution.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndspatched(Undispatched.kt:66) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:43) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:286) at com.ufinq.core.evolution.Evolution.evolve(Evolution.kt:95) at com.ufinq.core.orchestration.orchestrator.StandardOrchestrator$launchEvolution$1.invokeSuspend(StandardOrchestrator.kt:1004) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)

How to read this

The line traces the best quality the search for the Wage 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.

5.1.17 Model Constraints

Across 105 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.

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

How to read this

Sanity checks on the Wage 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.

5.1.18 Modeling

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

MAE of a straight line through the inputs (same rows)
2.027
RMSE of a straight line through the inputs (same rows)
2.906
Training MAE (rows the search trained on)
2.106
MAE of always predicting the mean (same rows)
2.475
RMSE of always predicting the mean (same rows)
3.384
Training R² (rows the search trained on)
0.2104
Training RMSE (rows the search trained on)
3.007
Rows the search trained on, measured
211
Error
62.86%
Inputs the straight line used
6
N train
421
Quality
28.3%

How to read this

The function below trains the model for Wage on the processed data. Its output is the model that every other chapter of this section scores and dissects.

5.2 Findings

3 findings from the model diagnostics (1 Warning, 2 Info) are listed in the Concerns chapter at the top of the analysis.

6 Implications

The model's output is less reliable for high years of education and for professional occupation rows, with variance explained dropping well below aggregate quality. Two slices with weaker quality have been flagged in the Concerns chapter.

Most notable in the Implications section:

  • The model is less accurate on rows with Years of education in the highest quarter (14 to 18) (15 points less variance explained than overall)
  • The model is less accurate on rows with Profocc = yes (13 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.

6.1 Recommended Next Data

  • Collect more rows where Years of education is in the highest quarter (14 to 18) and where Profocc = yes. Reason: the model is less accurate on these slices, explaining 27% of the variation for Years of education in the highest quarter (14 to 18) and 29% where Profocc = yes.
  • Add or refine columns that describe differences between groups in Clerocc, Female, Ndurman, Profocc, Services, Servocc, Smsa, and Trcommpu. Reason: the model's errors differ between groups for these columns according to the fairness diagnostics, including findings of parity and bias as flagged on Profocc.
  • Collect more features related to Wage that are not captured by Years of education and Tenure. Reason: the model explains 42% of the variation overall and barely beats a straight line through the data, with negligible margin over the baseline.
  • Review or increase the variety of values in Ndurman and Trcommpu. Reason: prediction parity gaps are present between groups in these two columns, indicating potential missing signal or unaccounted-for differences.
  • Inspect the columns and values used for Profocc more closely. Reason: fairness diagnostics flagged parity and bias for Profocc, and accuracy on Profocc = yes rows is weaker than overall.

6.2 Quality by Input Range

Quality by Input Range splits the held-out rows by every usable column besides the target and compares the model's quality on each segment with its quality on all held-out rows. A column the model does not read, such as one left out because it leaks the target, is split as well: its segments show where the predictions are weak, not what the model uses. 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 column is split into quartiles; a categorical column 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.
6.2.1 Wage by Input Range

Segment educ in the highest quarter (14 to 18) is mildly weaker than the aggregate (34 held-out rows): segment R² 0.265 against aggregate R² 0.418 (gap -0.153). A noticeable but not severe quality drift; worth watching if this slice represents a high-stakes subset of the production data.

Table 6.2.1 · Wage by Input Range
SegmentRowsR²Gap to all rowsVerdict
Years of education = q4340.2654-0.15268Weaker than on all rows
Profocc = true370.2911-0.12698Weaker than on all rows
South = false750.4269+0.00882In line with all rows
Smsa = true760.3993-0.01877In line with all rows
Northcen = false750.3198-0.09824In line with all rows
Trade = false800.4045-0.01356In line with all rows
Years potential experience = q4320.5243+0.10619In line with all rows
Expersq = q4320.5243+0.10619In line with all rows
Servocc = false820.4016-0.01653In line with all rows
Female = false600.3719-0.04613In line with all rows

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

Aggregate MAE
1.957
Aggregate R²
0.4181
Measure
r2
Target
Wage

6.3 Rows unlike the ones the model learned from

3 of 105 held-out rows (2.9%) lie further from the training rows than 99 in 100 rows like them would, measured on the 2 inputs the model reads (educ, tenure). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.

Table 6.3 · Rows unlike the ones the model learned from
TargetInputs measuredLineHeld-out rowsBeyond the lineShare
WageYears of education, Tenure3.03510532.86%
Table 6.3 · Score bins · 24 of 30 rows shown
CountFromTo
000.121
60.1210.243
20.2430.364
40.3640.486
130.4860.607
90.6070.728
160.7280.85
110.850.971
20.9711.093
71.0931.214

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.

6.4 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.

6.4.1 Wage Fairness

Column Profocc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.724 (smallest over largest mean prediction), the largest absolute group residual mean is 1.39 (0.488 times the overall residual standard deviation). Parity gap and residual bias: the model both predicts systematically lower for some groups and errs systematically against at least one group. This is the worst-case fairness signal on this column; review before deployment.

Aggregate residual std
2.854
N columns
16
N proxies
0
Proxy threshold
0.5
Table 6.4.1 · Columns
Bias max abs residual meanColumnGroupsInterpretationN groupsPrediction parity ratioVerdict
1.632Cleroccfalse, trueColumn Clerocc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.962 (smallest over largest mean prediction), the largest absolute group residual mean is 1.63 (0.572 times the overall residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.20.9618Residual bias
0.1392Construcfalse, trueColumn Construc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.838 (smallest over largest mean prediction), the largest absolute group residual mean is 0.139 (0.0488 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.838Balanced
0.9139Femalefalse, trueColumn Female splits the held-out rows into 2 groups. The prediction-parity ratio is 0.911 (smallest over largest mean prediction), the largest absolute group residual mean is 0.914 (0.32 times the overall residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.20.9111Residual bias
0.6204Marriedtrue, falseColumn Married splits the held-out rows into 2 groups. The prediction-parity ratio is 0.928 (smallest over largest mean prediction), the largest absolute group residual mean is 0.62 (0.217 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.9284Balanced
0.2187Ndurmantrue, falseColumn Ndurman splits the held-out rows into 2 groups. The prediction-parity ratio is 0.798 (smallest over largest mean prediction), the largest absolute group residual mean is 0.219 (0.0766 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.20.7976Prediction parity gap
0.2473Nonwhitetrue, falseColumn Nonwhite splits the held-out rows into 2 groups. The prediction-parity ratio is 0.933 (smallest over largest mean prediction), the largest absolute group residual mean is 0.247 (0.0867 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.933Balanced
0.2695Northcentrue, falseColumn Northcen splits the held-out rows into 2 groups. The prediction-parity ratio is 0.878 (smallest over largest mean prediction), the largest absolute group residual mean is 0.27 (0.0944 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.878Balanced
1.392Profocctrue, falseColumn Profocc splits the held-out rows into 2 groups. The prediction-parity ratio is 0.724 (smallest over largest mean prediction), the largest absolute group residual mean is 1.39 (0.488 times the overall residual standard deviation). Parity gap and residual bias: the model both predicts systematically lower for some groups and errs systematically against at least one group. This is the worst-case fairness signal on this column; review before deployment.20.7243Parity and bias
0.2839Profservfalse, trueColumn Profserv splits the held-out rows into 2 groups. The prediction-parity ratio is 0.923 (smallest over largest mean prediction), the largest absolute group residual mean is 0.284 (0.0995 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column.20.9229Balanced
1.833Servicesfalse, trueColumn Services splits the held-out rows into 2 groups. The prediction-parity ratio is 0.878 (smallest over largest mean prediction), the largest absolute group residual mean is 1.83 (0.642 times the overall residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.20.878Residual bias

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

6.5 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.

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

6.6 Deployment Readiness

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

  • Targets: 1 target: wage
  • Rows: 526 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: compared across 16 categorical columns (clerocc, construc, female, married, ndurman, nonwhite, northcen, profocc, profserv, services, servocc, smsa, south, trade, trcommpu, west); 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, 3 warn, 0 fail), the model passes the hard gates but at least one check warns: Usable with care. A limited audience and monitoring of the warning signals come before a broad rollout.

Table 6.6 · Deployment Readiness
NameStatusDetail
GeneralizationPassquality on the held-out rows matches quality on the rows the model was found on
Prediction Interval CoverageWarnintervals are wider than their level requires: the 50% intervals hold 64% of the held-out rows, 13.8 points more
Baseline Lift for WageWarnbarely beats the best baseline, R² lift 0.000329
Model ConstraintsPassevery held-out prediction is finite and within the training range
FairnessWarn16 columns compared, 8 flagged: Clerocc (a group is systematically over- or under-predicted), Female (a group is systematically over- or under-predicted), Ndurman (a group receives systematically smaller predictions), Profocc (a group both receives smaller predictions and is systematically mis-predicted), Services (a group is systematically over- or under-predicted), Servocc (a group is systematically over- or under-predicted), Smsa (a group is systematically over- or under-predicted), Trcommpu (a group receives systematically smaller predictions)
Out-of-DistributionPass2.9% of held-out rows are out of distribution
N critical concerns
0
N fail
0
N pass
3
N warn
3
Overall verdict
Caution

6.7 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.

Table 6.7 · Provenance & Audit
ItemValue
Analysis ID09beaf30-48b8-11f1-8087-d378640fe787
Run time2026-11-07 13:12 UTC
Total rows526
Modeled targetsWage
Segment columnnot available
Time limit1 h 0 min
Time taken55 min 16 s
Credit budget500 credits
Ufinq version0.3.57
Left out of the inputsLwage

6.8 Findings

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

7 Data

Strong correlation appears among several variables, with Profocc and Female each accounting for a notable share of variation in wage. Variables have no missing values and the data structure is clean.

Most notable in the Data section:

  • Years potential experience and Expersq move together (correlation 0.961)
  • Lwage and Wage move together (correlation 0.937)
  • Tenure and Tenursq move together (correlation 0.922)

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.

7.1 Column Profiles

Profiled 24 columns across 526 rows (8 numeric, 16 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 5 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.

Table 7.1 · Columns
NameRoleTypeNMissingMeanStdMinP25MedianP75MaxSkewnessCV
WageTargetnumber52605.8963.6930.5303.3304.6506.88024.9802.0130.6264
CleroccInputbool5260
ConstrucInputbool5260
Years of educationInputinteger526012.562.77012121418-0.62130.2204
Years potential experienceInputinteger526017.0213.571513.5026510.70890.7976
ExpersqInputinteger5260473.4616.0125182.567626011.4971.301
FemaleInputbool5260
LwageInputnumber52601.6230.532-0.6351.2031.5371.9293.2180.3920.3274
MarriedInputbool5260
NdurmanInputbool5260

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

N columns
24
N high missing
0
N rows
526
N strongly skewed
5
Table branch
main
Table ID
806080f5-1ec6-4b06-9378-b86ed2a2a53d

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.

7.2 Clerocc

Clerocc: 2 distinct values, most often no.

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.

7.2.1 Description
Table 7.2.1 · Clerocc
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.2.1 · Rows per value
VariableValueRowsShare
Cleroccfalse43883.27%
Clerocctrue8816.73%

How to read this

The figures below summarize Clerocc 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 Clerocc 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.

7.2.1.1 By Value
Table 7.2.1.1 · Mean per value of Clerocc
CleroccRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false43812.5782.4217.261.0274861.6525.346.129
true8812.5156.9115.81.125410.81.4823.9324.737

How to read this

The rows are grouped by the value of Clerocc, 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 Clerocc; 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.

7.2.2 Visualization

The charts in this chapter were chosen from the type of Clerocc 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.

7.3 Construc

Construc: 2 distinct values, most often no.

7.3.1 Description
Table 7.3.1 · Construc
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.3.1 · Rows per value
VariableValueRowsShare
Construcfalse50295.44%
Constructrue244.563%
7.3.1.1 By Value
Table 7.3.1.1 · Mean per value of Construc
ConstrucRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false50212.6179.417.231.04482.41.6215.1455.893
true2411.5851.9212.51.125286.11.6784.255.964

7.4 Years of education

Educ: 0 to 18, median 12, skewed to high values, 18 distinct values; moves with Lwage most (r 0.431).

7.4.1 Description
Table 7.4.1 · Years of education
StatisticValue
Typeinteger
Values present526
Distinct values18
Continuousyes
Decimal places0
Minimum0
Maximum18
Mean12.56
Median12
Mode12

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

7.4.1.1 By Value

Educ accounts for 20% of the spread in Wage: 17 averages 8.17 above 4 (95% interval 5.44 to 10.9). An association, not a cause.

Table 7.4.1.1 · Groups
TargetValueRowsAverage or share95% interval
Wage171211.348.621 to 14.07
Wage181910.687.829 to 13.53
Wage16688.0427.016 to 9.067
Wage15216.3214.845 to 7.798
Wage14536.2325.246 to 7.217
Wage13395.5994.618 to 6.58
Wage121985.3714.938 to 5.805
Wage8225.0383.816 to 6.261
Wage744.3871.994 to 6.781
Wage11294.1863.264 to 5.107

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

Table 7.4.1.1 · Mean per value of Years of education
Years of educationRowsTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
025032111241.24553.53
211693915211.322133.75
319005126011.072302.92
437541217071.15153.17
5134511561.0652.9
6642.3330.531261.21.3594.3333.985
74182.831.252.251011.81.4359.754.387
822239.631.411.1821164.21.47810.865.038
9175315.942439.61.1553.9413.276
103039.614.831.467439.21.2763.0673.836

The first 10 rows of 18. The other 8 are in the notebook.

7.4.1.2 Correlation
Table 7.4.1.2 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Profocca number and a category0.4968< 0.001526
Lwagetwo numbers0.45780.43110.3588 to 0.49820.45780.3407< 0.001526
Wagetwo numbers0.45780.40590.3319 to 0.47490.45780.3407< 0.001526
Expersqtwo numbers0.3313-0.3313-0.4053 to -0.2529-0.199-0.1461< 0.001526
Years potential experiencetwo numbers0.2995-0.2995-0.3754 to -0.2197-0.199-0.1461< 0.001526
Smsaa number and a category0.2243< 0.001526
Number of dependentstwo numbers0.2153-0.2153-0.2954 to -0.1322-0.1736-0.1422< 0.001526
Profserva number and a category0.2142< 0.001526
Servocca number and a category0.1633< 0.001526
Southa number and a category0.11660.01706526

The first 10 rows of 23. The other 13 are in the notebook.

How to read this

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

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

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

The rows of Educ 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.

7.5 Years potential experience

Exper: 1 to 51, median 13.5, skewed to high values; moves with Expersq most (r 0.961).

7.5.1 Description
Table 7.5.1 · Years potential experience
StatisticValue
Typeinteger
Values present526
Distinct values51
Continuousyes
Decimal places0
Minimum1
Maximum51
Mean17.02
Median13.5
Mode2

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

7.5.1.1 Correlation
Table 7.5.1.1 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Expersqtwo numbers10.9610.9538 to 0.96711< 0.001526
Tenuretwo numbers0.49930.49930.4322 to 0.56080.48720.3631< 0.001526
Tenursqtwo numbers0.48720.42290.3501 to 0.49070.48720.3631< 0.001526
Marrieda number and a category0.317< 0.001526
Years of educationtwo numbers0.2995-0.2995-0.3754 to -0.2197-0.199-0.1461< 0.001526
Lwagetwo numbers0.17440.11140.02613 to 0.1950.17440.12420.03043526
Wagetwo numbers0.17440.11290.02768 to 0.19650.17440.12420.03043526
Smsaa number and a category0.11730.02721526
Tradea number and a category0.10460.04185526
Ndurmana number and a category0.10140.04595526

The first 10 rows of 23. The other 13 are in the notebook.

7.5.2 Visualization

The rows of Exper 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.

7.6 Expersq

Expersq: 1 to 2,601, median 183, skewed to high values; moves with Exper most (r 0.961).

7.6.1 Description
Table 7.6.1 · Expersq
StatisticValue
Typeinteger
Values present526
Distinct values51
Continuousyes
Decimal places0
Minimum1
Maximum2601
Mean473.4
Median182.5
Mode4

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

7.6.1.1 Correlation
Table 7.6.1.1 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Years potential experiencetwo numbers10.9610.9538 to 0.96711< 0.001526
Tenuretwo numbers0.48720.45920.389 to 0.52410.48720.3631< 0.001526
Tenursqtwo numbers0.48720.4140.3405 to 0.48240.48720.3631< 0.001526
Years of educationtwo numbers0.3313-0.3313-0.4053 to -0.2529-0.199-0.1461< 0.001526
Marrieda number and a category0.2173< 0.001526
Lwagetwo numbers0.17440.0233-0.06232 to 0.10860.17440.12420.6663526
Wagetwo numbers0.17440.03024-0.0554 to 0.11540.17440.12420.6663526
Number of dependentstwo numbers0.1309-0.1309-0.214 to -0.04592-0.02152-0.01110.01008526
Smsaa number and a category0.11090.03584526
Ndurmana number and a category0.093950.08972526

The first 10 rows of 23. The other 13 are in the notebook.

7.6.2 Visualization

The rows of Expersq 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.

7.7 Female

Female: 2 distinct values, most often no.

7.7.1 Description
Table 7.7.1 · Female
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.7.1 · Rows per value
VariableValueRowsShare
Femalefalse27452.09%
Femaletrue25247.91%
7.7.1.1 By Value

Female accounts for 11% of the spread in Wage: no averages 2.51 above yes (95% interval 1.93 to 3.10). An association, not a cause.

Table 7.7.1.1 · Groups
TargetValueRowsAverage or share95% interval
Wagefalse2747.0996.605 to 7.594
Wagetrue2524.5884.274 to 4.901
Table 7.7.1.1 · Mean per value of Female
FemaleRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false27412.79111.717.561.004489.91.8146.4747.099
true25212.3241.6616.431.087455.61.4163.6154.588

7.8 Lwage

The model does not use this column: it is left out of the model's inputs. Its figures and charts describe the data all the same, and its relation to the target shows what the model is not told.

Lwage: -0.635 to 3.22, median 1.54; moves with Wage most (r 0.937).

7.8.1 Description
Table 7.8.1 · Lwage
StatisticValue
Typenumber
Values present526
Distinct values241
Continuousyes
Decimal places17
Minimum-0.6349
Maximum3.218
Mean1.623
Median1.537
Mode1.0986123085021973

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

7.8.1.1 Correlation
Table 7.8.1.1 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Wagetwo numbers10.93710.9257 to 0.946711< 0.001526
Years of educationtwo numbers0.45780.43110.3588 to 0.49820.45780.3407< 0.001526
Profocca number and a category0.4451< 0.001526
Tenuretwo numbers0.38080.32550.2469 to 0.39990.38080.2762< 0.001526
Tenursqtwo numbers0.38080.23610.1537 to 0.31520.38080.2762< 0.001526
Femalea number and a category0.3737< 0.001526
Servocca number and a category0.3183< 0.001526
Marrieda number and a category0.2707< 0.001526
Tradea number and a category0.2147< 0.001526
Smsaa number and a category0.2001< 0.001526

The first 10 rows of 23. The other 13 are in the notebook.

7.8.2 Visualization

The rows of Lwage 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.

7.9 Married

Married: 2 distinct values, most often yes.

7.9.1 Description
Table 7.9.1 · Married
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modetrue
Table 7.9.1 · Rows per value
VariableValueRowsShare
Marriedtrue32060.84%
Marriedfalse20639.16%
7.9.1.1 By Value
Table 7.9.1.1 · Mean per value of Married
MarriedRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false20612.3336.7211.660.801306.81.4442.9474.844
true32012.72104.820.471.2580.71.7396.4946.573

7.10 Ndurman

Ndurman: 2 distinct values, most often no.

7.10.1 Description
Table 7.10.1 · Ndurman
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.10.1 · Rows per value
VariableValueRowsShare
Ndurmanfalse46688.59%
Ndurmantrue6011.41%
7.10.1.1 By Value
Table 7.10.1.1 · Mean per value of Ndurman
NdurmanRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false46612.5869.1116.521.036452.71.6084.6895.798
true6012.47148.420.851.1634.61.7468.3336.654

7.11 Nonwhite

Nonwhite: 2 distinct values, most often no.

7.11.1 Description
Table 7.11.1 · Nonwhite
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.11.1 · Rows per value
VariableValueRowsShare
Nonwhitefalse47289.73%
Nonwhitetrue5410.27%
7.11.1.1 By Value
Table 7.11.1.1 · Mean per value of Nonwhite
NonwhiteRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false47212.6478.6416.951.011471.51.635.0765.944
true5411.8773.9117.591.333490.41.5625.3525.476

7.12 Northcen

Northcen: 2 distinct values, most often no.

7.12.1 Description
Table 7.12.1 · Northcen
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.12.1 · Rows per value
VariableValueRowsShare
Northcenfalse39474.9%
Northcentrue13225.1%
7.12.1.1 By Value
Table 7.12.1.1 · Mean per value of Northcen
NorthcenRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false39412.4677.116.931.109461.51.6285.0465.958
true13212.8681.2817.270.8485509.11.6095.285.71

7.13 Number of dependents

Numdep: 0 to 6, median 1, 7 distinct values.

7.13.1 Description
Table 7.13.1 · Number of dependents
StatisticValue
Typeinteger
Values present526
Distinct values7
Continuousyes
Decimal places0
Minimum0
Maximum6
Mean1.044
Median1
Mode0

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

7.13.1.1 By Value
Table 7.13.1.1 · Mean per value of Number of dependents
Number of dependentsRowsYears of educationTenursqYears potential experienceExpersqLwageTenureWage
025212.8897.9718.82606.71.6615.6555.972
110512.6644.8714.58350.91.6013.8385.912
29912.766.8614.68305.81.5964.8385.918
34511.7680.6417.363831.6965.8446.336
41611.4451.6914.94304.31.3984.1884.658
577.14373.5717.71506.91.0644.7143.021
627.558.54016811.4927.54.475
7.13.1.2 Correlation
Table 7.13.1.2 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Years of educationtwo numbers0.2153-0.2153-0.2954 to -0.1322-0.1736-0.1422< 0.001526
Marrieda number and a category0.15450.004326526
Expersqtwo numbers0.1309-0.1309-0.214 to -0.04592-0.02152-0.01110.02016526
Profocca number and a category0.12340.02641526
Lwagetwo numbers0.1081-0.0953-0.1793 to -0.009882-0.1081-0.082340.1106526
Wagetwo numbers0.1081-0.05376-0.1386 to 0.03188-0.1081-0.082340.3348526
Smsaa number and a category0.096370.1106526
Northcena number and a category0.089640.1279526
Southa number and a category0.087660.1279526
Nonwhitea number and a category0.07770.1917526

The first 10 rows of 23. The other 13 are in the notebook.

7.13.2 Visualization

The rows of Numdep 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.

7.14 Profocc

Profocc: 2 distinct values, most often no.

7.14.1 Description
Table 7.14.1 · Profocc
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.14.1 · Rows per value
VariableValueRowsShare
Profoccfalse33363.31%
Profocctrue19336.69%
7.14.1.1 By Value

Profocc accounts for 19% of the spread in Wage: yes averages 3.38 above no (95% interval 2.68 to 4.08). An association, not a cause.

Table 7.14.1.1 · Groups
TargetValueRowsAverage or share95% interval
Wagetrue1938.0377.378 to 8.697
Wagefalse3334.6554.417 to 4.893
Table 7.14.1.1 · Mean per value of Profocc
ProfoccRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false33311.5271.5417.081.162490.81.4434.6074.655
true19314.3789.5616.920.8394443.41.9345.9648.037

7.15 Profserv

Profserv: 2 distinct values, most often no.

7.15.1 Description
Table 7.15.1 · Profserv
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.15.1 · Rows per value
VariableValueRowsShare
Profservfalse39074.14%
Profservtrue13625.86%
7.15.1.1 By Value
Table 7.15.1.1 · Mean per value of Profserv
ProfservRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false39012.2187.7617.181.097483.71.5885.3595.71
true13613.5750.616.540.8897443.91.7254.3756.428

7.16 Services

Services: 2 distinct values, most often no.

7.16.1 Description
Table 7.16.1 · Services
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.16.1 · Rows per value
VariableValueRowsShare
Servicesfalse47389.92%
Servicestrue5310.08%
7.16.1.1 By Value
Table 7.16.1.1 · Mean per value of Services
ServicesRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false47312.6379.8516.831.07463.11.6575.2566.071
true5311.9662.9618.70.8113565.51.3263.7554.335

7.17 Servocc

Servocc: 2 distinct values, most often no.

7.17.1 Description
Table 7.17.1 · Servocc
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.17.1 · Rows per value
VariableValueRowsShare
Servoccfalse45285.93%
Servocctrue7414.07%
7.17.1.1 By Value

Servocc accounts for 6.2% of the spread in Wage: no averages 2.69 above yes (95% interval 2.22 to 3.15). An association, not a cause.

Table 7.17.1.1 · Groups
TargetValueRowsAverage or share95% interval
Wagefalse4526.2745.921 to 6.627
Wagetrue743.5883.279 to 3.898
Table 7.17.1.1 · Mean per value of Servocc
ServoccRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false45212.7584.2717.411.015478.61.6925.4346.274
true7411.4540.7414.641.216442.11.2063.0953.588

7.18 Smsa

Smsa: 2 distinct values, most often yes.

7.18.1 Description
Table 7.18.1 · Smsa
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modetrue
Table 7.18.1 · Rows per value
VariableValueRowsShare
Smsatrue38072.24%
Smsafalse14627.76%
7.18.1.1 By Value
Table 7.18.1.1 · Mean per value of Smsa
SmsaRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false14611.5676.7119.581.24583.61.4525.0964.837
true38012.9578.716.030.9684431.11.6895.1086.303

7.19 South

South: 2 distinct values, most often no.

7.19.1 Description
Table 7.19.1 · South
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.19.1 · Rows per value
VariableValueRowsShare
Southfalse33964.45%
Southtrue18735.55%
7.19.1.1 By Value
Table 7.19.1.1 · Mean per value of South
SouthRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false33912.882.4716.510.9617463.71.6595.2396.177
true18712.1370.3217.941.1934911.5594.8615.387

7.20 Tenure

Tenure: 0 to 44, median 2, skewed to high values, 34 distinct values; moves with Tenursq most (r 0.922).

7.20.1 Description
Table 7.20.1 · Tenure
StatisticValue
Typeinteger
Values present526
Distinct values34
Continuousyes
Decimal places0
Minimum0
Maximum44
Mean5.105
Median2
Mode0

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

7.20.1.1 By Value

Tenure accounts for 15% of the spread in Wage: 16 averages 7.99 above 1 (95% interval -3.81 to 19.8). An association, not a cause.

Table 7.20.1.1 · Groups
TargetValueRowsAverage or share95% interval
Wage16412.420.5671 to 24.28
Wage23311.28-9.887 to 32.45
Wage25411.14-4.468 to 26.75
Wage21510.372.957 to 17.78
Wage2059.611.436 to 17.78
Wage7158.7875.395 to 12.18
Wage1387.5864.454 to 10.72
Wage2457.5524.063 to 11.04
Wage8157.3014.725 to 9.876
Wage1197.2724.887 to 9.658

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

Table 7.20.1.1 · Mean per value of Tenure
TenureRowsYears of educationYears potential experienceNumber of dependentsExpersqLwageWageTenursq
016312.0911.361.123261.61.4064.531
15112.6312.650.8431333.51.3624.433
26313.3713.380.873339.41.5925.5394
34213.5516.691.095402.71.7336.2249
42713.5615.810.963414.61.7296.30316
53012.9716.81.3381.91.8687.05325
61511.7320.471.133657.11.6215.43336
71512.818.530.7333531.61.978.78749
81512.825.130.66677751.8477.30164
9912.4417.441.333375.91.7436.36881

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

7.20.1.2 Correlation
Table 7.20.1.2 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Tenursqtwo numbers10.92160.9076 to 0.933511< 0.001526
Years potential experiencetwo numbers0.49930.49930.4322 to 0.56080.48720.3631< 0.001526
Expersqtwo numbers0.48720.45920.389 to 0.52410.48720.3631< 0.001526
Lwagetwo numbers0.38080.32550.2469 to 0.39990.38080.2762< 0.001526
Wagetwo numbers0.38080.34690.2694 to 0.41990.38080.2762< 0.001526
Marrieda number and a category0.2399< 0.001526
Femalea number and a category0.1979< 0.001526
Ndurmana number and a category0.1605< 0.001526
Tradea number and a category0.12620.009548526
Servocca number and a category0.11270.02231526

The first 10 rows of 23. The other 13 are in the notebook.

7.20.2 Visualization

The rows of Tenure 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.

7.21 Tenursq

Tenursq: 0 to 1,936, median 4, skewed to high values, 34 distinct values; moves with Tenure most (r 0.922).

7.21.1 Description
Table 7.21.1 · Tenursq
StatisticValue
Typeinteger
Values present526
Distinct values34
Continuousyes
Decimal places0
Minimum0
Maximum1936
Mean78.15
Median4
Mode0

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

7.21.1.1 By Value

Tenursq accounts for 15% of the spread in Wage: 256 averages 7.99 above 1 (95% interval -3.81 to 19.8). An association, not a cause.

Table 7.21.1.1 · Groups
TargetValueRowsAverage or share95% interval
Wage256412.420.5671 to 24.28
Wage529311.28-9.887 to 32.45
Wage625411.14-4.468 to 26.75
Wage441510.372.957 to 17.78
Wage40059.611.436 to 17.78
Wage49158.7875.395 to 12.18
Wage16987.5864.454 to 10.72
Wage57657.5524.063 to 11.04
Wage64157.3014.725 to 9.876
Wage12197.2724.887 to 9.658

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

Table 7.21.1.1 · Mean per value of Tenursq
TenursqRowsYears of educationYears potential experienceNumber of dependentsExpersqLwageWageTenure
016312.0911.361.123261.61.4064.531
15112.6312.650.8431333.51.3624.433
46313.3713.380.873339.41.5925.5392
94213.5516.691.095402.71.7336.2243
162713.5615.810.963414.61.7296.3034
253012.9716.81.3381.91.8687.0535
361511.7320.471.133657.11.6215.4336
491512.818.530.7333531.61.978.7877
641512.825.130.66677751.8477.3018
81912.4417.441.333375.91.7436.3689

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

7.21.1.2 Correlation
Table 7.21.1.2 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Tenuretwo numbers10.92160.9076 to 0.933511< 0.001526
Years potential experiencetwo numbers0.48720.42290.3501 to 0.49070.48720.3631< 0.001526
Expersqtwo numbers0.48720.4140.3405 to 0.48240.48720.3631< 0.001526
Lwagetwo numbers0.38080.23610.1537 to 0.31520.38080.2762< 0.001526
Wagetwo numbers0.38080.26740.1862 to 0.3450.38080.2762< 0.001526
Femalea number and a category0.1756< 0.001526
Marrieda number and a category0.1668< 0.001526
Ndurmana number and a category0.12650.01056526
Tradea number and a category0.092350.08743526
Profserva number and a category0.081670.1409526

The first 10 rows of 23. The other 13 are in the notebook.

7.21.2 Visualization

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

7.22 Trade

Trade: 2 distinct values, most often no.

7.22.1 Description
Table 7.22.1 · Trade
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.22.1 · Rows per value
VariableValueRowsShare
Tradefalse37571.29%
Tradetrue15128.71%
7.22.1.1 By Value
Table 7.22.1.1 · Mean per value of Trade
TradeRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false37512.6789.8317.921.005505.91.6965.6836.341
true15112.349.1514.781.139392.81.4443.6694.792

7.23 Trcommpu

Trcommpu: 2 distinct values, most often no.

7.23.1 Description
Table 7.23.1 · Trcommpu
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.23.1 · Rows per value
VariableValueRowsShare
Trcommpufalse50395.63%
Trcommputrue234.373%
7.23.1.1 By Value
Table 7.23.1.1 · Mean per value of Trcommpu
TrcommpuRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false50312.575.9417.161.048479.21.6155.0065.852
true2313.96126.413.960.9565347.61.8157.2616.861

7.24 Wage

Wage: 0.53 to 25.0, median 4.65, skewed to high values; moves with Lwage most (r 0.937).

7.24.1 Description
Table 7.24.1 · Wage
StatisticValue
Typenumber
Values present526
Distinct values241
Continuousyes
Decimal places16
Minimum0.53
Maximum24.98
Mean5.896
Median4.65
Mode3.0

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

7.24.1.1 Correlation
Table 7.24.1.1 · Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Lwagetwo numbers10.93710.9257 to 0.946711< 0.001526
Years of educationtwo numbers0.45780.40590.3319 to 0.47490.45780.3407< 0.001526
Profocca number and a category0.4418< 0.001526
Tenuretwo numbers0.38080.34690.2694 to 0.41990.38080.2762< 0.001526
Tenursqtwo numbers0.38080.26740.1862 to 0.3450.38080.2762< 0.001526
Femalea number and a category0.3401< 0.001526
Servocca number and a category0.2531< 0.001526
Marrieda number and a category0.2288< 0.001526
Tradea number and a category0.1898< 0.001526
Smsaa number and a category0.1779< 0.001526

The first 10 rows of 23. The other 13 are in the notebook.

7.24.2 Visualization

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

7.25 West

West: 2 distinct values, most often no.

7.25.1 Description
Table 7.25.1 · West
StatisticValue
Typebool
Values present526
Distinct values2
Continuousno
Modefalse
Table 7.25.1 · Rows per value
VariableValueRowsShare
Westfalse43783.08%
Westtrue8916.92%
7.25.1.1 By Value
Table 7.25.1.1 · Mean per value of West
WestRowsYears of educationTenursqYears potential experienceNumber of dependentsExpersqLwageTenureWage
false43712.5481.8217.121.039479.91.6065.1745.75
true8912.6660.1316.491.067441.91.7084.7646.613

7.26 Duplicate Rows

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

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

How to read this

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

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

7.27 Leakage Suspicion

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

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

How to read this

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

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

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

7.28 General

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

Table 7.28 · Groupings tried
GroupsSilhouetteInertiaKept
20.39972550.8yes
30.36012057.9
40.26411692.9
50.25411498.4
60.24291367.1
Inertia
2550.8
K
2
N columns used
7
N rows
526
N rows complete
526
Silhouette
0.3997
Verdict
Weak

How to read this

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

7.28.1 Description
Table 7.28.1 · Columns
VariableTypeValues presentDistinct valuesContinuousDecimal places
Cleroccbool5262no
Years of educationinteger52618yes0
Trcommpubool5262no
Southbool5262no
Profservbool5262no
Tenursqinteger52634yes0
Servicesbool5262no
Years potential experienceinteger52651yes0
Number of dependentsinteger5267yes0
Tradebool5262no

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

Table 7.28.1 · Center
VariableMeanMedianMode
Cleroccfalse
Years of education12.561212
Trcommpufalse
Southfalse
Profservfalse
Tenursq78.1540
Servicesfalse
Years potential experience17.0213.52
Number of dependents1.04410
Tradefalse

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

Table 7.28.1 · Spread
VariableMinimumMaximumStandard deviationVarianceInterquartile rangeSum
Clerocc
Years of education0182.7697.66726608
Trcommpu
South
Profserv
Tenursq01936199.439774.24941,107
Services
Years potential experience15113.57184.2218951
Number of dependents061.2621.5922549
Trade

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

Table 7.28.1 · Shape
VariableSkewnessKurtosisTotal sum of squares
Clerocc
Years of education-0.62131.9144025.4
Trcommpu
South
Profserv
Tenursq4.38525.1620,881,447
Services
Years potential experience0.7089-0.637396706.8
Number of dependents1.1680.9223836
Trade

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

Table 7.28.1 · Rows per value
VariableValueRowsShare
Cleroccfalse43883.27%
Clerocctrue8816.73%
Trcommpufalse50395.63%
Trcommputrue234.373%
Southfalse33964.45%
Southtrue18735.55%
Profservfalse39074.14%
Profservtrue13625.86%
Servicesfalse47389.92%
Servicestrue5310.08%

The first 10 rows of 32. The other 22 are in the notebook.

How to read this

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

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

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

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

7.28.1.1 Missing Values

No column has a missing value: all 526 rows are complete.

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

How to read this

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

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

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

7.28.1.2 Outliers

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

Table 7.28.1.2 · Outliers
ColumnValuesLower fenceUpper fenceBelowAboveShare
Years of education526917401911.22%
Years potential experience526none belownone above000%
Expersq526none below1652.50407.6%
Lwage5260.11453.0171151.14%
Number of dependents526none below5020.38%
Tenure526none below17.500438.17%
Tenursq526none below122.5007414.07%
Wage526none below12.2050366.84%
N columns
8
N columns assessed
8
N columns with outliers
7
Worst column
tenursq
Worst pct
14.07

How to read this

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

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

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

7.28.1.3 Correlation

276 column pairs analyzed across 526 rows (28 of two numbers, 128 of a number and a category, 120 of two categories); 91 (33%) are unlikely to be chance, after allowing for how many pairs were tested. Any other pair may still show a large association, but one that cannot be told apart from chance on the rows the pair was measured on. Every pair is stated as an association from 0 to 1, whatever its kind, so pairs of different kinds can be ranked against each other. An association states that two columns go together, not that one brings the other about.

N categorical pairs
120
N mixed pairs
128
N numeric pairs
28
N pairs
276
N samples
526
N significant
91
Table 7.28.1.3 · Pairs · 24 of 276 rows shown
Association95% CIColumnEta squaredGroupsKendallKindNOther columnPearsonQ valueSpearman
10.9538, 0.967Years potential experience1numeric526Expersq0.961< 0.0011
10.9257, 0.9467Lwage1numeric526Wage0.9371< 0.0011
10.9076, 0.9335Tenure1numeric526Tenursq0.9216< 0.0011
0.49930.4322, 0.5608Years potential experience0.3631numeric526Tenure0.4993< 0.0010.4872
0.4968Years of education0.24682numeric_categorical526Profocc< 0.001
0.48720.3501, 0.4907Years potential experience0.3631numeric526Tenursq0.4229< 0.0010.4872
0.48720.389, 0.5241Expersq0.3631numeric526Tenure0.4592< 0.0010.4872
0.48720.3405, 0.4824Expersq0.3631numeric526Tenursq0.414< 0.0010.4872
0.45780.3588, 0.4982Years of education0.3407numeric526Lwage0.4311< 0.0010.4578
0.45780.3319, 0.4749Years of education0.3407numeric526Wage0.4059< 0.0010.4578

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

How to read this

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

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

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

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

7.28.1.3.1 Strongest Correlations

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

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

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

7.28.1.3.3 Potential Data Leaks

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

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

Loading Diafunc…