Analysis report

Engine Horsepower

Data from UCI Machine Learning Repository, published under https://creativecommons.org/licenses/by/4.0/.

Target
Engine horsepower
Analyzed
2026-10-25 11:02 UTC

Summary

The Engine horsepower model relies most on Engine size, with the model's output rising as Engine size moves from the first to the third quartile, raising the model's output by about 26.4. City mpg and Peak rpm are also strong inputs: as City mpg increases, the model's output falls, and raising Peak rpm tends to raise the output. Most of the output's variation comes from Engine size and City mpg, and the model captures interactions between Engine type and Peak rpm, as well as Peak rpm and Width. The margin over a straight line through the data means the model describes some structure not picked up by that simpler approach and came out slightly ahead on most cases where its errors differed from the baseline, though the gap may not be clear row by row.

The model is short but is built from functions that take a specialist to read, so direct interpretation requires technical skill. Accuracy is weaker on rows where Drive wheels is fwd, and in this segment the model explains less of the variation than elsewhere. Errors are also less consistent across groups defined by Aspiration, Body style, Engine type, Fuel system, Fuel type and Drive wheels, and some rows tested were less like those the model trained on. Validate on a fresh sample and examine group-level performance before relying on the model for decisions.

Formula

Engine horsepower = -1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / WidthEngine horsepower=−1.94×City mpg+0.55×Engine size+18×Compression ratio<8.05+24׬Engine type∈{l,ohc}∧Peak rpm≥4950+Peak rpmWidth
Engine horsepower = -1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / Width
5 terms · additively decomposable

Held-out diagnostics

TargetQualityErrorR²MAEN without targetGeneralizationRows
Engine horsepower64.51 %20.69 %0.828510.651generalizing40
  • Engine horsepower · Quality 95 % CI 39.69 % – 79.63 %
  • Engine horsepower · Error 95 % CI 11.88 % – 35.16 %
  • Engine horsepower · R² 95 % CI 0.7318 – 0.8927
  • Engine horsepower · MAE 95 % CI 8.306 – 13.01

Concerns

WARNING model

Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions

Across 40 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 18.4, against 11.4 in the bottom third, 1.62 times as large. The bottom third holds predictions up to 84.4 and the top third predictions from 114. The residual spread is 1.62 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them.

WARNING implications

A notable minority of held-out rows are unlike the rows the model was trained on

12% of held-out rows are out of distribution (5 of 41), measured on the inputs the model reads. The held-out figures may not extend to these rows; the chapter "Rows unlike the ones the model learned from" shows which they are.

INFO implications

4 inputs could stand in for a column, if that column must not steer predictions

This matters only for a column that is a characteristic the predictions must not follow, such as a person's age, sex or origin; for ordinary properties of the data it needs no action. For 4 pairs an input a model reads and a column the Fairness chapter compares go together with an association of at least 0.5 on a scale from 0 to 1. The closest: Compression ratio with Fuel system (0.989); Compression ratio with Fuel type (0.984); City mpg with Fuel system (0.748). A model that reads such an input can tell the column's groups apart, so leaving the column out of the inputs would not keep it out of the predictions. The Fairness chapter compares the model across its groups. An association, not a cause.

Complete list (4)
ColumnDetail
fuel_systemCompression ratio goes with it, an association of 0.989 on a scale from 0 to 1
fuel_typeCompression ratio goes with it, an association of 0.984 on a scale from 0 to 1
fuel_systemCity mpg goes with it, an association of 0.748 on a scale from 0 to 1
engine_typeEngine size goes with it, an association of 0.644 on a scale from 0 to 1

INFO implications

Weaker quality on rows with `Drive wheels` = `fwd`

R² on this segment is 0.104 below the overall value, on 26 rows. A gap this size on this many rows is within what a different held-out draw would move; worth watching, not acting on.

Analysis

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

Generated 2026-10-25 11:02 UTC, analysis 1ef07980-48b6-11f1-8087-d378640fe787, 1 target, time budget 1 h 0 min, compute budget 500 credits, 205 rows. The Provenance & Audit chapter holds the full record.

Validity

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

How to read this

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

What it found

Engine horsepower rises with Engine size, falls with City mpg, falls with Compression ratio up to about 8.33 and then levels off, and also changes with Peak rpm.

  1. Engine size and City mpg carry the model. Engine size accounts for 35% of what the formula explains and City mpg for 31%. Peak rpm adds 17%, Engine type 9.3% and Compression ratio 7.6%. Width is in the formula too, with no measurable share.
  2. Engine horsepower levels off once Compression ratio passes 8.33. With the other inputs at typical values, the formula gives 117 at Compression ratio 7, 117 at 7.67 and 98.8 at 8.33. Beyond that it stays near 98.8.
  3. Engine horsepower rises with Engine size and falls with City mpg. For each additional 10 units of Engine size, the model's output for Engine horsepower is higher by 5.5. For each additional unit of City mpg, it is lower by 1.94. Each holds with the other inputs at typical values.
  4. Highway mpg is not in the formula. It has the second-strongest correlation with Engine horsepower in the table (-0.77). Rows with more of it have more City mpg (correlation 0.97), and City mpg is in the formula.
  5. The formula's lead over a straight line is within chance. The formula explains 83% of Engine horsepower; a straight line explains 77%, but on 40 unseen rows that gap is within chance, so treat them as level. The formula typically misses Engine horsepower by 10.6.

Summary

What to do next: Intervals miss more rows than their level allows, largest gap 5.00 percentage points.

5 chapters, each headed by what it found.

Engine size and City mpg carry 66% of the formula

What the formula relies on. Shares of the formula: Engine size 35%, City mpg 31%, Peak rpm 17%, Engine type 9.3%.

The model's output rises with Engine-size on every one of the 4,830 steps between observed values. The model's output falls with City-mpg on every one of the 3,174 steps between observed values. The model's output rises with Peak-rpm on every one of the 2,484 steps between observed values. Moving Engine-size from 98.0 to 146, its first and third quartile, with every other input as observed raises the model's output by 26.4 on average. These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.

InputShare of importancePermutation importanceSensitivityResidual correlationOccurrencesModel's output as the input risesChange, first to third quartile
Engine size35.19 %3.04820.550.14631Rises (4830 of 4830 steps)+26.4 (98 to 146)
City mpg30.71 %2.65971.94-0.21771Falls (3174 of 3174 steps)-19.4 (20 to 30)
Peak rpm17.26 %1.49490.015330.38011Rises (2484 of 2484 steps)+13.97 (4800 to 5400)
Engine type9.27 %0.80251
Compression ratio7.57 %0.655800.15161Falls (138 of 3864 steps)0 (8.6 to 9.4)
Width-0.06281.246-0.17721Falls (138 of 138 rows)-2.942 (64.4 to 66.9)
Rows the search trained on, measured
138
Inputs the formula does not read
Aspiration, Body style, Bore, Curb weight, Drive wheels, Engine location, Fuel system, Fuel type, Height, Highway mpg, Length, Make, Normalized losses, Number of cylinders, Number of doors, Price, Stroke, Symboling, Wheel base

Read as a sum, the formula has 5 additive terms. Four of them carry 100% of the variation of the model's output on the 138 rows the search trained on: the largest are 0.55 × Engine-size (56%), -1.94 × City-mpg (26%) and 24 × [not(Engine-type ∈ {"l", "ohc"}) ∧ Peak-rpm ≥ 4950] (11%). A share describes the model's output, not the target. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median.

Additive
Yes
Rows the search trained on, measured
138
Terms in the formula
5
Notation
-1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / Width
Target
Engine horsepower

It holds on new rows: R² 0.83 held out, 0.89 on the training rows

How well it holds. The formula explains 83% of Engine horsepower; a straight line explains 77%, but on 40 unseen rows that gap is within chance, so treat them as level.

R² of 0.828: good. The model captures most of the variation; individual predictions still carry uncertainty; the Prediction Interval Coverage chapter shows how wide it is. Mean absolute error is 10.6 on the target's scale.

Error
20.69 % (95 % CI 11.88 % – 35.16 %)
MAE
10.65 (95 % CI 8.306 – 13.01)
N
40
Held-out rows offered
41
Training rows
153
Held-out rows scored
4000 %
N without target
1
Quality
64.51 % (95 % CI 39.69 % – 79.63 %)
R²
0.8285 (95 % CI 0.7318 – 0.8927)
Target
Engine horsepower

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

Best yardstick's score
0.774 (95 % CI 0.6746 – 0.8477)
Best baseline R²
0.774
Effect size d
0.1524 (95 % CI -0.146 – 0.4912)
Effect size d magnitude
negligible
Margin over the best yardstick
0.05452 (95 % CI -0.02016 – 0.116)
Margin's interval stays above zero
No
Model MAE
10.65 (95 % CI 8.306 – 13.01)
Model
0.8285 (95 % CI 0.7318 – 0.8927)
Model R²
0.8285 (95 % CI 0.7318 – 0.8927)
Held-out rows
40
Held-out rows without an answer
0
Target
Engine horsepower
Rows where the model is closer
57.5 % (95 % CI 42.2 % – 71.49 %)
Rows compared
40
Rows level
0
Regression yardstick trained with gaps filled (too few complete rows)
No
Training rows of the regression yardstick
153

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

Generalization gap
0.05693
N test
40
Target
Engine horsepower
Test error
10.65 (95 % CI 8.306 – 13.01)
Test R²
0.8285 (95 % CI 0.7318 – 0.8927)
Train error
0.07316
Train R²
0.8854
Verdict
Generalizing

Weaker in Drive wheels = fwd

Where it is weak. The largest miss on a held-out row is 29.6 (recorded 162, predicted 132). 12% of the held-out rows are unlike the rows it learned from.

Segment drive_wheels = fwd is mildly weaker than the aggregate (26 held-out rows): segment R² 0.724 against aggregate R² 0.828 (gap -0.104). A noticeable but not severe quality drift; worth watching if this slice represents a high-stakes subset of the production data.

SegmentRowsR²Gap to all rowsVerdict
Drive wheels = fwd260.7244-0.104Weaker than on all rows
Number of doors = q4240.7592-0.069In line with all rows
Engine type = ohc290.7920-0.036In line with all rows
Body style = sedan210.8144-0.014In line with all rows
Fuel type = gas360.8210-0.007In line with all rows
Number of cylinders = q4390.8280-0.0005In line with all rows
Engine location = front400.8285+0.000In line with all rows
Aspiration = std300.8412+0.013In line with all rows
Highway mpg = q39-3.6247-4.453Too few rows to judge
Engine type = dohc3-2.6821-3.511Too few rows to judge

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

Aggregate R²
0.8285
Measure
r2
Target
Engine horsepower

The worst held-out row was missed by 29.6 (target's scale). The 10 rows with the largest absolute residuals out of 40 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. 2 of these 10 rows have at least one input outside the training range (marked "outside training range"): these are extrapolations, where the model has no anchored evidence; a large residual there reflects missing evidence rather than a failure of the model.

ActualPredictedResidualCity mpgCompression ratioEngine sizeEngine typePeak rpmWidth
162.00132.41+29.59177.5130ohc510067.2
162.00132.41+29.59177.5130ohc510067.2
58.0030.66+27.34499.692ohc480063.9
115.00140.71-25.71188136ohc550066.4
140.00116.10+23.90178.3131ohc550071.4
160.00136.40+23.60199121dohc550066.5
48.0026.95+21.05479.561l510060.3
94.00114.41-20.41259108ohcf520065.4
94.00112.47-18.47269108ohcf520065.4
143.00126.72+16.28199.5151ohc550068.3
Additive
Yes
N extrapolated
2
Held-out rows
40
Held-out rows for the interval
40
Residual P5
-18.57
Residual P95
27.45
Residual std
13.68

5 of 41 held-out rows (12%) lie further from the training rows than 99 in 100 rows like them would, measured on the 5 inputs the model reads (city_mpg, compression_ratio, engine_size, peak_rpm, width). That is a notable minority: predictions on those rows reach beyond the rows the model was trained on. Their accuracy deserves caution; the Worst Predictions chapter often shows these same rows.

TargetInputs measuredLineHeld-out rowsBeyond the lineShare
Engine horsepowerCity mpg, Compression ratio, Engine size, Peak rpm, Width3.88441512.2 %
Score bins · 24 of 30 rows shown
CountFromTo
000.158
00.1580.316
00.3160.474
20.4740.632
30.6320.79
20.790.948
10.9481.106
01.1061.264
31.2641.423
51.4231.581

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

Not ready to use yet: 2 checks failed

What to watch. First: Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions.

SeveritySectionConcernDetail
WarningModelResidual variance grows with predicted value: model accuracy degrades on higher-magnitude predictionsAcross 40 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 18.4, against 11.4 in the bottom third, 1.62 times as large. The bottom third holds predictions up to 84.4 and the top third predictions from 114. The residual spread is 1.62 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them.
WarningImplicationsA notable minority of held-out rows are unlike the rows the model was trained on12% of held-out rows are out of distribution (5 of 41), measured on the inputs the model reads. The held-out figures may not extend to these rows; the chapter "Rows unlike the ones the model learned from" shows which they are.
InfoImplications4 inputs could stand in for a column, if that column must not steer predictionsThis matters only for a column that is a characteristic the predictions must not follow, such as a person's age, sex or origin; for ordinary properties of the data it needs no action. For 4 pairs an input a model reads and a column the Fairness chapter compares go together with an association of at least 0.5 on a scale from 0 to 1. The closest: Compression ratio with Fuel system (0.989); Compression ratio with Fuel type (0.984); City mpg with Fuel system (0.748). A model that reads such an input can tell the column's groups apart, so leaving the column out of the inputs would not keep it out of the predictions. The Fairness chapter compares the model across its groups. An association, not a cause.
InfoImplicationsWeaker quality on rows with Drive wheels = fwdR² on this segment is 0.104 below the overall value, on 26 rows. A gap this size on this many rows is within what a different held-out draw would move; worth watching, not acting on.

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

  • Targets: 1 target: class
  • Rows: 205 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: compared across 9 categorical columns (aspiration, body_style, drive_wheels, engine_location, engine_type, fuel_system, fuel_type, make, normalized_losses); 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 (2 pass, 2 warn, 2 fail), at least one check fails or a critical concern is open: Not ready. The failing checks need addressing first; they typically indicate data leakage, severe miscalibration, or a model that loses to its baseline.

NameStatusDetail
GeneralizationPassheld-out quality holds up against training quality
Prediction Interval CoverageFailintervals miss more rows than their level allows, largest gap 5.00 percentage points
Baseline Lift for Engine horsepowerPassbeats the best baseline, R² lift 0.0545
Model ConstraintsWarnsome held-out predictions need caution (1 non-finite prediction)
FairnessFail6 columns compared, 6 flagged: Aspiration (a group is systematically over- or under-predicted), Body style (a group receives systematically smaller predictions), Drive wheels (a group both receives smaller predictions and is systematically mis-predicted), Engine type (a group both receives smaller predictions and is systematically mis-predicted), Fuel system (a group both receives smaller predictions and is systematically mis-predicted), Fuel type (a group is systematically over- or under-predicted)
Out-of-DistributionWarn12% of held-out rows are out of distribution
N critical concerns
0
N fail
2
N pass
2
N warn
2
Overall verdict
Not ready

Column Drive-wheels splits the held-out rows into 2 groups. The prediction-parity ratio is 0.759 (smallest over largest mean prediction), the largest absolute group residual mean is 6.37 (0.466 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. curb_weight goes closely with drive_wheels (association 0.683 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads curb_weight can tell the groups of drive_wheels apart, so leaving drive_wheels out of the inputs does not keep it out of the predictions.

Aggregate residual std
13.68
Held-out rows offered
41
N columns
6
N proxies
21
N without target
1
Proxy threshold
0.5
Columns
Bias max abs residual meanColumnGroupsInterpretationN groupsN proxiesPrediction parity ratioVerdict
9.984Aspirationturbo, stdColumn Aspiration splits the held-out rows into 2 groups. The prediction-parity ratio is 0.808 (smallest over largest mean prediction), the largest absolute group residual mean is 9.98 (0.73 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. fuel_system goes closely with aspiration (association 0.61 on a scale from 0 to 1): a model that reads fuel_system can tell the groups of aspiration apart, so leaving aspiration out of the inputs does not keep it out of the predictions.210.8081Residual bias
2.531Body stylehatchback, wagon, sedanColumn Body-style splits the held-out rows into 3 groups. The prediction-parity ratio is 0.759 (smallest over largest mean prediction), the largest absolute group residual mean is 2.53 (0.185 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. num_of_doors goes closely with body_style (association 0.759 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads num_of_doors can tell the groups of body_style apart, so leaving body_style out of the inputs does not keep it out of the predictions.330.7588Prediction parity gap
6.366Drive wheelsrwd, fwdColumn Drive-wheels splits the held-out rows into 2 groups. The prediction-parity ratio is 0.759 (smallest over largest mean prediction), the largest absolute group residual mean is 6.37 (0.466 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. curb_weight goes closely with drive_wheels (association 0.683 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads curb_weight can tell the groups of drive_wheels apart, so leaving drive_wheels out of the inputs does not keep it out of the predictions.250.759Parity and bias
7.186Engine typedohc, l, ohc, ohcfColumn Engine-type splits the held-out rows into 4 groups. The prediction-parity ratio is 0.497 (smallest over largest mean prediction), the largest absolute group residual mean is 7.19 (0.525 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. num_of_cylinders goes closely with engine_type (association 0.778 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads num_of_cylinders can tell the groups of engine_type apart, so leaving engine_type out of the inputs does not keep it out of the predictions.450.4968Parity and bias
4.461Fuel systemidi, mpfi, 2bbl, 1bblColumn Fuel-system splits the held-out rows into 4 groups. The prediction-parity ratio is 0.585 (smallest over largest mean prediction), the largest absolute group residual mean is 4.46 (0.326 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. compression_ratio goes closely with fuel_system (association 0.989 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads compression_ratio can tell the groups of fuel_system apart, so leaving fuel_system out of the inputs does not keep it out of the predictions.450.5852Parity and bias
4.461Fuel typediesel, gasColumn Fuel-type splits the held-out rows into 2 groups. The prediction-parity ratio is 0.877 (smallest over largest mean prediction), the largest absolute group residual mean is 4.46 (0.326 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. fuel_system goes closely with fuel_type (association 0.985 on a scale from 0 to 1, and 1 more column at 0.5 or above): a model that reads fuel_system can tell the groups of fuel_type apart, so leaving fuel_type out of the inputs does not keep it out of the predictions.220.8765Residual bias

More rows in Drive wheels = fwd would help most

What to collect next. Its R² there is 0.72 against 0.83 on all rows, on 26 held-out rows.

  • Collect more rows where Drive wheels = fwd. Reason: the model is less accurate on the 26 held-out rows with Drive wheels = fwd, explaining 72% of the variation there.
  • Record the group each row belongs to for the columns Aspiration, Body style, Drive wheels, Engine type, Fuel system, and Fuel type. Reason: fairness checks found that the model's errors differ between groups for these columns, including parity and bias in Drive wheels, Engine type, and Fuel system, and prediction parity gap in Body style.
  • Collect new rows that resemble the held-out rows but differ from the training rows in their inputs. Reason: a notable minority, 12% of the held-out rows, are unlike the rows the model was trained on.
  • Add more rows with higher-magnitude Engine horsepower values. Reason: the model's residual variance grows with predicted value, so accuracy degrades on higher-magnitude predictions.

Evidence

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

Headline

Diafunc modeled Engine horsepower from 25 columns, of which the model uses 6. The model explains 83% of Engine horsepower and relies most on Engine size, with which the model's output rises.

  • One target was modeled; the data was split by class; 40 rows were held out for checking.
  • A straight line through the data already explained 77%; the model added 5.5 points of variance explained, a slight margin, and was closer on 58% of the rows where the errors differed, compared with a baseline where that share could range from 42% to 71%.
  • The model's output grows less accurate as predicted values rise, and 12% of held-out rows were further from the training data than their counterparts.
Best R²
0.8285
Best quality
64.51 %
Best target
class
Targets
1

Concerns

SeveritySectionConcernDetail
WarningModelResidual variance grows with predicted value: model accuracy degrades on higher-magnitude predictionsAcross 40 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 18.4, against 11.4 in the bottom third, 1.62 times as large. The bottom third holds predictions up to 84.4 and the top third predictions from 114. The residual spread is 1.62 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them.
WarningImplicationsA notable minority of held-out rows are unlike the rows the model was trained on12% of held-out rows are out of distribution (5 of 41), measured on the inputs the model reads. The held-out figures may not extend to these rows; the chapter "Rows unlike the ones the model learned from" shows which they are.
InfoImplications4 inputs could stand in for a column, if that column must not steer predictionsThis matters only for a column that is a characteristic the predictions must not follow, such as a person's age, sex or origin; for ordinary properties of the data it needs no action. For 4 pairs an input a model reads and a column the Fairness chapter compares go together with an association of at least 0.5 on a scale from 0 to 1. The closest: Compression ratio with Fuel system (0.989); Compression ratio with Fuel type (0.984); City mpg with Fuel system (0.748). A model that reads such an input can tell the column's groups apart, so leaving the column out of the inputs would not keep it out of the predictions. The Fairness chapter compares the model across its groups. An association, not a cause.
InfoImplicationsWeaker quality on rows with Drive wheels = fwdR² on this segment is 0.104 below the overall value, on 26 rows. A gap this size on this many rows is within what a different held-out draw would move; worth watching, not acting on.

How to read this

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

Discovered Relations

Quality and error measured on the 40 held-out rows
TargetFormulaQualityComplexityError
Engine horsepowerEngine horsepower = -1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / Width64.51 %30.4 %20.69 %

How to read this

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

Model

The Points Model explains eighty-three percent of the share of variation in the model's output for class and shows generalizing quality on held-out rows. Residual variance increases with larger predicted values: the Concerns chapter flags reduced accuracy at higher predictions.

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

How to read this

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

Engine horsepower

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

Engine horsepower Model

The model's output for Engine horsepower rises with Engine size, falls with City mpg, and rises with Peak rpm, while also depending on Engine type and Compression ratio in specific ranges.

Engine horsepower = -1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / Widthf:City mpg,Compression ratio,Engine size,Engine type,Peak rpm,Width↦Engine horsepowerCity mpg,Compression ratio,Engine size,Peak rpm,Width,Engine horsepower∈REngine type∈TEngine horsepower=−1.94×City mpg+0.55×Engine size+18×Compression ratio<8.05+24׬Engine type∈{l,ohc}∧Peak rpm≥4950+Peak rpmWidth
Engine horsepower = -1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / Width
Quality 64.51 % · Error 20.69 % on 40 held-out rows · Complexity 30.4 %
Constants of the formula
ValueRoleInputUnit
-1.94SlopeCity mpgOutput units per unit of City mpg
0.55SlopeEngine sizeOutput units per unit of Engine size
18Condition effectUnit of the model's output
8.05ThresholdCompression ratioUnit of Compression ratio
24Condition effectUnit of the model's output
4950ThresholdPeak rpmUnit of Peak rpm
Share of the output's variation they carry
100.49 %
Rows the search trained on, measured
138
Rows the search trained on
138
How to read the formula
not(...) is true when its argument is false. and(...) is true when both arguments are true. A number inside a logical function counts as true when it is 1 and as false when it is 0; the figure is cut to its whole part first, and any other whole number gives no answer.
Held out R²
0.8285 (95 % CI 0.7318 – 0.8927)
Constants in the formula
6
Terms that reach 95% of the output's variation
4
Training rows
153
Held-out rows
40
Inputs the formula reads
6
Terms in the formula
5
Inputs the formula does not read
Aspiration, Body style, Bore, Curb weight, Drive wheels, Engine location, Fuel system, Fuel type, Height, Highway mpg, Length, Make, Normalized losses, Number of cylinders, Number of doors, Price, Stroke, Symboling, Wheel base

How to read this

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

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

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

Prediction

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

Prediction Chart

R² of 0.828: good. The model captures most of the variation; individual predictions still carry uncertainty; the Prediction Interval Coverage chapter shows how wide it is. Mean absolute error is 10.6 on the target's scale.

Error
20.69 % (95 % CI 11.88 % – 35.16 %)
MAE
10.65 (95 % CI 8.306 – 13.01)
N
40
Held-out rows offered
41
Training rows
153
Held-out rows scored
4000 %
N without target
1
Quality
64.51 % (95 % CI 39.69 % – 79.63 %)
R²
0.8285 (95 % CI 0.7318 – 0.8927)
Target
Engine horsepower

How to read this

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

Residual Distribution
Bias
0.5868 (95 % CI -3.141 – 4.309)
N
40
Held-out rows offered
41
N without target
1
P50
-2.681 (95 % CI -5.715 – 3.537)
P90
23.63 (95 % CI 6.594 – 29.59)
P95
27.45 (95 % CI 16.65 – 29.59)
P99
29.59 (95 % CI 23.78 – 29.59)
Std
13.68 (95 % CI 10.52 – 15.82)

How to read this

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

Which inputs matter most

The model's output rises with Engine-size on every one of the 4,830 steps between observed values. The model's output falls with City-mpg on every one of the 3,174 steps between observed values. The model's output rises with Peak-rpm on every one of the 2,484 steps between observed values. Moving Engine-size from 98.0 to 146, its first and third quartile, with every other input as observed raises the model's output by 26.4 on average. These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.

InputShare of importancePermutation importanceSensitivityResidual correlationOccurrencesModel's output as the input risesChange, first to third quartile
Engine size35.19 %3.04820.550.14631Rises (4830 of 4830 steps)+26.4 (98 to 146)
City mpg30.71 %2.65971.94-0.21771Falls (3174 of 3174 steps)-19.4 (20 to 30)
Peak rpm17.26 %1.49490.015330.38011Rises (2484 of 2484 steps)+13.97 (4800 to 5400)
Engine type9.27 %0.80251
Compression ratio7.57 %0.655800.15161Falls (138 of 3864 steps)0 (8.6 to 9.4)
Width-0.06281.246-0.17721Falls (138 of 138 rows)-2.942 (64.4 to 66.9)
Rows the search trained on, measured
138
Inputs the formula does not read
Aspiration, Body style, Bore, Curb weight, Drive wheels, Engine location, Fuel system, Fuel type, Height, Highway mpg, Length, Make, Normalized losses, Number of cylinders, Number of doors, Price, Stroke, Symboling, Wheel base

How to read this

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

Baselines

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

Best yardstick's score
0.774 (95 % CI 0.6746 – 0.8477)
Best baseline R²
0.774
Effect size d
0.1524 (95 % CI -0.146 – 0.4912)
Effect size d magnitude
negligible
Margin over the best yardstick
0.05452 (95 % CI -0.02016 – 0.116)
Margin's interval stays above zero
No
Model MAE
10.65 (95 % CI 8.306 – 13.01)
Model
0.8285 (95 % CI 0.7318 – 0.8927)
Model R²
0.8285 (95 % CI 0.7318 – 0.8927)
Held-out rows
40
Held-out rows without an answer
0
Target
Engine horsepower
Rows where the model is closer
57.5 % (95 % CI 42.2 % – 71.49 %)
Rows compared
40
Rows level
0
Regression yardstick trained with gaps filled (too few complete rows)
No
Training rows of the regression yardstick
153

How to read this

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

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

Generalization

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

Generalization gap
0.05693
N test
40
Target
Engine horsepower
Test error
10.65 (95 % CI 8.306 – 13.01)
Test R²
0.8285 (95 % CI 0.7318 – 0.8927)
Train error
0.07316
Train R²
0.8854
Verdict
Generalizing

How to read this

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

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

How each term responds to its inputs

Read as a sum, the formula has 5 additive terms. Four of them carry 100% of the variation of the model's output on the 138 rows the search trained on: the largest are 0.55 × Engine-size (56%), -1.94 × City-mpg (26%) and 24 × [not(Engine-type ∈ {"l", "ohc"}) ∧ Peak-rpm ≥ 4950] (11%). A share describes the model's output, not the target. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median.

Additive
Yes
Rows the search trained on, measured
138
Terms in the formula
5
Notation
-1.94 × City mpg + 0.55 × Engine size + (18 when Compression ratio < 8.05) + (24 when not(Engine type ∈ {"l", "ohc"}) and Peak rpm ≥ 4950) + Peak rpm / Width
Target
Engine horsepower

How to read this

The formula for Engine horsepower 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 Engine horsepower itself. The notebook lets the reader trim each range to the central 95% of the input. When the formula has no additive structure, the chapter traces the whole formula as a single term along each of its inputs, and the Sensitivity chapter is the better read for how the inputs combine.

How the formula behaves outside the data

The model diverges beyond the observed range of city_mpg, engine_size: predictions there are not supported by the formula's shape. How the model behaves beyond the observed range of compression_ratio, engine_type, peak_rpm could not be determined from the formula, so extrapolation there is not assessed. It has a pole at width = 0. Extrapolate with caution.

Bounded at infinity
No
Rows the search trained on, measured
138
Inputs the formula reads
6
N singularities
1
Risky inputs
city_mpg, engine_size, width
Target
Engine horsepower
Limits at neg infinity
InputKind
City mpgPositive infinity
Engine sizeNegative infinity
Compression ratioUnknown
Engine typeUnknown
Peak rpmUnknown
WidthFinite
Limits at pos infinity
InputKind
City mpgNegative infinity
Engine sizePositive infinity
Compression ratioUnknown
Engine typeUnknown
Peak rpmUnknown
WidthFinite
Singularities
AtInputKind
0WidthPole

How to read this

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

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

Contributions per term
Additive
Yes
N rows
5

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

How to read this

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

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

What each term is worth

Full-formula R² is 0.828. 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.8285
Held-out rows offered
41
Held-out rows
40
N without target
1

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 Engine horsepower, the chart shows how much the held-out R² drops when that term is replaced by its mean contribution, so that it no longer varies from row to row. The bars are sorted from the largest drop down, and the dashed line marks the R² of the full model.

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

What-If
The prediction at the typical row: every input at its median or most common value
ItemValue
City mpg24
Compression ratio9
Engine size120
Engine typeohc
Peak rpm5200
Width65.5
Term 1 adds-46.56
Term 2 adds66
Term 3 adds0
Term 4 adds0

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

Additive
Yes
Held-out rows for the interval
40
Terms in the formula
5
Residual P5
-18.57
Residual P95
27.45
Residual std
13.68

How to read this

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

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

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

Sensitivity

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

Additive
Yes
Terms in the formula
5

How to read this

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

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

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

How two inputs act together

The formula couples engine_type and peak_rpm: on 20 of 50 row pairs the mixed difference was not zero, so in the model's output the two act together (measured, not assumed). The formula couples peak_rpm and width: on 114 of 114 row pairs the mixed difference was not zero, so in the model's output the two act together (measured, not assumed). City_mpg and engine_size enter linearly. 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).

Input pairs tested inside the formula
InputsIn the model's outputRow pairsPairs with a differenceMean absolute mixed difference
Engine type, Peak rpmAct together50209.6
Peak rpm, WidthAct together1141140.289
The prediction across Peak rpm (columns) and Width (rows), the other inputs at their typical values
Width \ Peak rpm415045955041548659326377
61.886.5993.79101108.2115.4122.6
63.7184.5891.5698.57105.6112.6119.5
65.6282.6889.4796.26103109.8116.6
67.5380.987.4994.09100.7107.3113.9
69.4479.2185.6292.0498.45104.9111.3
71.3577.6183.8490.196.33102.6108.8
Additive
Yes
Inputs in different terms act separately
Yes
Rows the search trained on, measured
138
Inputs the formula is linear in
City mpg, Engine size
Terms in the formula
5
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 Engine horsepower across the plane of the two inputs, with every other input held at its training median. Pairs that never share a term have no interaction by construction, and the curves in the chapter "How each term responds to its inputs" already say everything about them. Where the search tested a pair, the summary says on how many pairs of rows the two inputs acted together in the model's output; that is a statement about the formula, not a finding that the data hold no other interaction.

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

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

Worst Predictions

The worst held-out row was missed by 29.6 (target's scale). The 10 rows with the largest absolute residuals out of 40 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. 2 of these 10 rows have at least one input outside the training range (marked "outside training range"): these are extrapolations, where the model has no anchored evidence; a large residual there reflects missing evidence rather than a failure of the model.

ActualPredictedResidualCity mpgCompression ratioEngine sizeEngine typePeak rpmWidth
162.00132.41+29.59177.5130ohc510067.2
162.00132.41+29.59177.5130ohc510067.2
58.0030.66+27.34499.692ohc480063.9
115.00140.71-25.71188136ohc550066.4
140.00116.10+23.90178.3131ohc550071.4
160.00136.40+23.60199121dohc550066.5
48.0026.95+21.05479.561l510060.3
94.00114.41-20.41259108ohcf520065.4
94.00112.47-18.47269108ohcf520065.4
143.00126.72+16.28199.5151ohc550068.3
Additive
Yes
N extrapolated
2
Held-out rows
40
Held-out rows for the interval
40
Residual P5
-18.57
Residual P95
27.45
Residual std
13.68

How to read this

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

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

Prediction Interval Coverage

Across 40 held-out rows, the 95% prediction interval actually covers 92.5% of the rows. The normal band is too narrow for this residual distribution (worst gap 5.00 percentage points): the per-row prediction interval is a lower bound on uncertainty, and the true risk is higher than stated.

Nominal levelHalf-widthEmpirical coverage
50 %9.22455 %
80 %17.5377.5 %
90 %22.4985 %
95 %26.892.5 %
Largest miss (percentage points)
5
Held-out rows offered
41
Held-out rows
40
N without target
1
Residual P2.5
-20.54
Residual P97.5
29.59
Verdict
Overconfident

How to read this

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

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

Regression Diagnostics

40 held-out residuals, with a spread up to 29.6 in absolute terms. Mean residual is 0.587, 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.1438
Bias
0.5868
Bias over residual sd
0.04291
Held-out rows
40
Order
shuffled
Residual sd
13.68
Share within normal band
0.95

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 Engine horsepower, all computed from the held-out residuals. Each asks in its own way whether the model's errors look like noise, which is what remains when a model has captured all the structure the data holds.

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

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

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

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

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

Search Progress

The search ran for 595 generations, ending at quality 0.867 (gain +0.14 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
72.66 %
Last generation
596
Last improvement ms
1,924,316
Last quality
86.7 %
Max quality
86.7 %
N points
200
N total generations
595
Search time ms
2,988,139
Stop reason
Out of budget

How to read this

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

Model Constraints

Across 41 held-out predictions, the formula has minor hygiene caveats (1 non-finite). Predictions are usable but the flagged rows deserve inspection before the model is wired into a critical downstream pipeline.

NameStatusDetail
Output coherentWarn1 of 41 (2.4%) non-finite prediction
Within domainPassno rows outside the training target's ±2σ range across 41 rows
Bounded predictionsPassno runaway predictions beyond ±10σ across 41 rows
Held-out rows
41
N non finite
1
N outside domain
0
N runaway
0
Verdict
Caveats

How to read this

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

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

Modeling

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

MAE of a straight line through the inputs (same rows)
8.663
RMSE of a straight line through the inputs (same rows)
11.59
Training MAE (rows the search trained on)
7.939
MAE of always predicting the mean (same rows)
31.39
RMSE of always predicting the mean (same rows)
39.83
Training R² (rows the search trained on)
0.9232
Training RMSE (rows the search trained on)
11.04
Rows the search trained on, measured
138
Error
7.32 %
Inputs the straight line used
16
N train
164
Quality
86.69 %

How to read this

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

Findings

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

Data

Several pairs of columns are highly correlated, with both categorical and numeric predictors accounting for much of the spread in class. The strongest association between system columns is nearly one. The data have no missing high-value columns or cases with insufficient rows.

Most notable in the Data section:

  • Compression ratio and Fuel system go together (association 0.989)
  • City mpg and Highway mpg move together (correlation 0.971)
  • Fuel-system accounts for 48% of the spread in Class: mpfi averages 58.9 above 2bbl (95% interval 50.4 to 67.3)

How to read this

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

Column Profiles

Profiled 26 columns across 205 rows (17 numeric, 9 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 6 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.

Columns
NameRoleTypeNMissingMeanStdMinP25MedianP75MaxSkewnessCV
Engine horsepowerTargetinteger2032 (0.98 %)104.2639.714870951162881.3910.3809
AspirationInputtext2050
Body styleInputtext2050
BoreInputnumber2014 (1.95 %)3.3300.2742.5403.1503.3103.5903.9400.020020.08215
City mpgInputinteger205025.226.5413192430490.66370.2594
Compression ratioInputnumber205010.1433.9727.0008.6009.0009.40023.0002.6110.3916
Curb weightInputinteger20502556521148821452414293540660.68140.2037
Drive wheelsInputtext2050
Engine locationInputtext2050
Engine sizeInputinteger2050126.941.661971201413261.9480.3281

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

N columns
26
N high missing
0
N rows
205
N strongly skewed
6
Table branch
main
Table ID
cd306868-c566-4598-a0be-c5b704d312bd

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.

Aspiration

Aspiration: 2 distinct values, most often std.

How to read this

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

Description
Aspiration
StatisticValue
Typetext
Values present205
Distinct values2
Continuousno
Modestd
Rows per value
VariableValueRowsShare
Aspirationstd16881.95 %
Aspirationturbo3718.05 %

How to read this

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

By Value
Mean per value of Aspiration
AspirationRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine size
std1683.1029.5934.40512542.22476.425.8499.7631.5753.635166.998.03172.73.2223.3020.86965.61124.8
turbo373.22212.644.2716254.82915.222.41124.427.0354.184939.2102.1180.23.4043.4520.675767.28136.5

How to read this

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

Visualization

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

Body style

Body-style: 5 distinct values, most often sedan.

Description
Body style
StatisticValue
Typetext
Values present205
Distinct values5
Continuousno
Modesedan
Rows per value
VariableValueRowsShare
Body stylesedan9646.83 %
Body stylehatchback7034.15 %
Body stylewagon2512.2 %
Body stylehardtop83.902 %
Body styleconvertible62.927 %
By Value
Mean per value of Body style
Body styleRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine size
convertible628.933521890.52801.720.5131.72651.435158.392.7170.43.0433.4922.83365.58157.2
hardtop8210.735.12522208.52810.621.63142.327.2552.855031.398.5176.93.3233.6091.87566.61176.3
hatchback702.2869.0274.1149957.42348.226.31101.332.1752.115232.695.54166.63.283.2391.58665.25114.4
sedan963.68110.944.5114459.82610.625.32103.130.8354.345081.8100.6177.63.2673.3390.333366.26130.8
wagon25410.324.24123722784.224.0497.7528.7256.735014.6102.2181.33.1763.406-0.1666.26123.8

Bore

Bore: 2.54 to 3.94, median 3.31, 38 distinct values, 2% missing; moves with Curb-weight most (r 0.649).

Description
Bore
StatisticValue
Typenumber
Values present201
Distinct values38
Continuousyes
Decimal places2
Minimum2.54
Maximum3.94
Mean3.33
Median3.31
Mode3.62

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

By Value

Bore accounts for 53% of the spread in Class: 3.74 averages 145 above 3.05 (95% interval 145 to 145). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepower3.743207207 to 207
Engine horsepower3.54615289.88 to 214.1
Engine horsepower3.593145145 to 145
Engine horsepower3.438142.3107.8 to 176.7
Engine horsepower3.586128.5118.8 to 138.2
Engine horsepower3.788127.4106.4 to 148.3
Engine horsepower3.27711768.81 to 165.2
Engine horsepower3.173116116 to 116
Engine horsepower3.6223113.197.17 to 129
Engine horsepower3.46711386.45 to 139.5

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

Mean per value of Bore
BoreRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeSymbolingWidthEngine sizeNormalized losses
029.4213,0202411.316.75109.52349.6600095.3169365.772.5150
2.54129.3415,0402707211102856.1525099.1186.62.07366.5121150
2.68129616,5002823191542652.4500094.5171.23.4765.5152
2.9172.2869.4293.8576405.31823.336.4367.1441.2952.445628.691.31149.13.3071.28663.4485.71115.4
2.92149.247295202430763458.3600096.5157.13.4163.99278
2.971239.40146402.3196932.56838.7550.73550093.71593.231.2563.9591.17145.3
2.991221.947099201745555054.5480094.5165.33.4763.8103128
3.0153.6234.412,31625283469.239.855.544680100.3176.83.4166.46106.6
3.03122.5458.73346981.11983.230.928036.4252.28530093.71158.33.21763.8793
3.0563.333946961.32286.730.33623656.8480095.7164.23.0363.69282.83

The first 10 rows of 39. The other 29 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Makea number and a category0.7672< 0.001201
Engine sizetwo numbers0.72470.59410.4965 to 0.67680.72470.5587< 0.001201
Curb weighttwo numbers0.70050.6490.561 to 0.72250.70050.5348< 0.001201
Pricetwo numbers0.64930.54340.4368 to 0.6350.64930.4928< 0.001197
Engine horsepowertwo numbers0.64660.57730.4764 to 0.66310.64660.478< 0.001199
Lengthtwo numbers0.64170.60750.5121 to 0.6880.64170.4974< 0.001201
Highway mpgtwo numbers0.6266-0.5946-0.6772 to -0.4971-0.6266-0.4673< 0.001201
City mpgtwo numbers0.6195-0.5946-0.6773 to -0.4971-0.6195-0.4625< 0.001201
Widthtwo numbers0.6110.55920.4561 to 0.64750.6110.4494< 0.001201
Drive wheelsa number and a category0.6018< 0.001201

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

How to read this

Each row pairs Bore 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 Bore, with the pair's kind and association, three correlation coefficients and a confidence interval where the other column is numeric, the q-value and the rows the pair was measured on.

MeasureMeaning
KindWhat the other column holds: a number (numeric) or categories (numeric_categorical). A categorical column is one that is not numeric and holds between 2 and 50 distinct values
AssociationThe strength of the pair from 0 to 1. With a numeric column: the stronger of Pearson's coefficient and Spearman's ρ, without its sign. With a categorical column: the correlation ratio η, the square root of the share of Bore'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 Bore (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)Numeric partner only. The lower and upper bounds of the 95% confidence interval on the Pearson coefficient, from the Fisher z-transform. An interval that contains 0 leaves the direction of the relationship open
RowsThe rows in which both columns hold a value. The q-value and the interval of a pair rest on this count
Visualization

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

City mpg

City-mpg: 13 to 49, median 24, 29 distinct values; moves with Highway-mpg most (r 0.971).

Description
City mpg
StatisticValue
Typeinteger
Values present205
Distinct values29
Continuousyes
Decimal places0
Minimum13
Maximum49
Mean25.22
Median24
Mode31

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

By Value

City-mpg accounts for 73% of the spread in Class: 15 averages 115 above 37 (95% interval 106 to 125). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepower153178169.4 to 186.6
Engine horsepower1713167.7135.1 to 200.2
Engine horsepower166161.5142.6 to 180.4
Engine horsepower20314691.86 to 200.1
Engine horsepower1927134.1123.8 to 144.4
Engine horsepower183130.395.88 to 164.8
Engine horsepower224123123 to 123
Engine horsepower218113108.9 to 117.1
Engine horsepower2310108.5100.7 to 116.3
Engine horsepower2422102.496.77 to 108

The first 10 rows of 19. The other 9 are in the notebook.

Mean per value of City mpg
City mpgRowsNumber of doorsCompression ratioNormalized lossesNumber of cylindersPriceCurb weightEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine size
131211.51236,00039502621747.85000102191.72.763.5470.6326
14238843,1803807.51841656.054500116.5203.73.353.871.85306
15348.067634893.3387917819.3353.974966.7112198.73.913.62770.03241.7
1662.6678.1675.83331,3923264.7161.520.8353.055300102.3185.53.2763.4580.833368.43182.8
17132.7698.9084.84620738.42895.5167.723.3152.665596.296.87176.73.1323.5821.53867.01148.4
18347.933140519028.32988.7130.32355.275533.3105.51843.163.460.333367.87147.7
19273.0378.4154.59316248.92938.7134.124.7453.775192.6102182.13.2853.4681.22267.58144.7
2033.3339.167618937.7305414624.3353.934883.3103.6186.83.2973.283167.03168.7
2182.759.1514.515,8302673.611327.7553.834937.597179.72.8783.34265.48134
2243.521.593528,3943632.51232556.64350110.61933.643.58-0.7570.65183

The first 10 rows of 29. The other 19 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Highway mpgtwo numbers0.97130.97130.9624 to 0.97820.96770.8925< 0.001205
Engine horsepowertwo numbers0.9125-0.8036-0.8475 to -0.7488-0.9125-0.7672< 0.001203
Pricetwo numbers0.8313-0.6866-0.7534 to -0.6057-0.8313-0.6613< 0.001201
Curb weighttwo numbers0.8129-0.7574-0.8103 to -0.6922-0.8129-0.6533< 0.001205
Fuel systema number and a category0.7479< 0.001205
Engine sizetwo numbers0.7301-0.6537-0.7257 to -0.5675-0.7301-0.5925< 0.001205
Widthtwo numbers0.6877-0.6427-0.7166 to -0.5545-0.6877-0.5216< 0.001205
Lengthtwo numbers0.6709-0.6709-0.7399 to -0.5879-0.67-0.5073< 0.001205
Makea number and a category0.6634< 0.001205
Boretwo numbers0.6195-0.5946-0.6773 to -0.4971-0.6195-0.4625< 0.001201

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

Visualization

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

Engine horsepower

Class: 48 to 288, median 95, skewed to high values, 1% missing; moves with Engine-size most (r 0.811).

Description
Engine horsepower
StatisticValue
Typeinteger
Values present203
Distinct values59
Continuousyes
Decimal places0
Minimum48
Maximum288
Mean104.3
Median95
Mode68

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

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
City mpgtwo numbers0.9125-0.8036-0.8475 to -0.7488-0.9125-0.7672< 0.001203
Highway mpgtwo numbers0.8844-0.7709-0.8214 to -0.7084-0.8844-0.7283< 0.001203
Pricetwo numbers0.85050.81050.7568 to 0.85340.85050.6665< 0.001199
Engine sizetwo numbers0.81950.81080.7577 to 0.85320.81950.6576< 0.001203
Curb weighttwo numbers0.8070.7510.6841 to 0.80540.8070.6186< 0.001203
Makea number and a category0.7289< 0.001203
Fuel systema number and a category0.702< 0.001203
Widthtwo numbers0.69210.64250.5538 to 0.71680.69210.514< 0.001203
Number of cylinderstwo numbers0.69160.69160.6122 to 0.75720.5780.4752< 0.001203
Lengthtwo numbers0.66310.5550.4518 to 0.64350.66310.4771< 0.001203

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

Visualization

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

Compression ratio

Compression-ratio: 7 to 23, median 9, skewed to high values, 32 distinct values; moves opposite to Peak-rpm most (r -0.436).

Description
Compression ratio
StatisticValue
Typenumber
Values present205
Distinct values32
Continuousyes
Decimal places2
Minimum7
Maximum23
Mean10.14
Median9
Mode9.0

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

By Value

Compression-ratio accounts for 39% of the spread in Class: 8 averages 104 above 22.5 (95% interval 76.8 to 131). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepower88165.5140.6 to 190.4
Engine horsepower103163.3-104.9 to 431.5
Engine horsepower8.33150128.5 to 171.5
Engine horsepower77146.7141.2 to 152.2
Engine horsepower7.55134.4103.1 to 165.7
Engine horsepower9.513127.797.1 to 158.3
Engine horsepower21.54123123 to 123
Engine horsepower9.311122.5109.6 to 135.4
Engine horsepower8.8311264.67 to 159.3
Engine horsepower7.64102102 to 102

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

Mean per value of Compression ratio
Compression ratioRowsNumber of doorsNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine sizeNormalized losses
7.072.2864.14314310.82927.418.43146.723.7151.295157.198.14175.83.7073.5272.14366.81149.3
7.553.6413177.42675.620.6134.426.853.26534099.5179.13.3363.35066.12118118.4
7.64248040.32148241023050.75550093.53157.33.393.0363.898136.5
7.724411476.5258023.51112654.6480096.95172.82.643.6265.410893.5
7.812619,6993139172002349.7520091.3170.73.273.43367.9181194
8.083.255.87530943.53266.816.38165.521.1355.165087.5107.1189.63.3193.6490.568.74206.9
8.124633,9004066151761952.84750113199.64.173.6369.6258
8.333.333731038.33503.716.3315018.6754.45000106191.93.23.35171.2199.7
8.454414,64931371996.22457.15000110.4191.62.793.4668.4120
8.5143.4294.28610,9682469.423.2195.1429.2954.415228.698.93175.23.4193.2750.928665.84123.1

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

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Fuel systema number and a category0.9894< 0.001205
Fuel typea number and a category0.9844< 0.001205
City mpgtwo numbers0.47890.32470.1964 to 0.44210.47890.3769< 0.001205
Makea number and a category0.46020.003691205
Highway mpgtwo numbers0.44510.26520.133 to 0.38810.44510.337< 0.001205
Peak rpmtwo numbers0.4362-0.4362-0.5414 to -0.3176-0.02566-0.002317< 0.001203
Engine horsepowertwo numbers0.3554-0.2059-0.3341 to -0.07015-0.3554-0.27420.007707203
Aspirationa number and a category0.2955< 0.001205
Heighttwo numbers0.26120.26120.1288 to 0.38450.000231-0.01883< 0.001205
Engine typea number and a category0.25420.05027205

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

Visualization

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

Curb weight

Curb-weight: 1,488 to 4,066, median 2,414, skewed to high values; moves with Length most (r 0.878).

Description
Curb weight
StatisticValue
Typeinteger
Values present205
Distinct values171
Continuousyes
Decimal places0
Minimum1488
Maximum4066
Mean2555.6
Median2414
Mode2385

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

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Pricetwo numbers0.91380.83440.7869 to 0.87210.91380.7443< 0.001201
Lengthtwo numbers0.89040.87770.842 to 0.90580.89040.7231< 0.001205
Engine sizetwo numbers0.87770.85060.8077 to 0.88450.87770.7249< 0.001205
Widthtwo numbers0.8670.8670.8284 to 0.89740.86380.6872< 0.001205
Highway mpgtwo numbers0.8344-0.7975-0.8424 to -0.7415-0.8344-0.6734< 0.001205
Makea number and a category0.8265< 0.001205
City mpgtwo numbers0.8129-0.7574-0.8103 to -0.6922-0.8129-0.6533< 0.001205
Engine horsepowertwo numbers0.8070.7510.6841 to 0.80540.8070.6186< 0.001203
Wheel basetwo numbers0.77640.77640.7155 to 0.82560.76530.6073< 0.001205
Boretwo numbers0.70050.6490.561 to 0.72250.70050.5348< 0.001201

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

Visualization

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

Drive wheels

Drive-wheels: 3 distinct values, most often fwd.

Description
Drive wheels
StatisticValue
Typetext
Values present205
Distinct values3
Continuousno
Modefwd
Rows per value
VariableValueRowsShare
Drive wheelsfwd12058.54 %
Drive wheelsrwd7637.07 %
Drive wheels4wd94.39 %
By Value

Drive-wheels accounts for 33% of the spread in Class: rwd averages 47.7 above fwd (95% interval 37.2 to 58.3). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepowerrwd76133.7124.2 to 143.2
Engine horsepower4wd995.3370.82 to 119.8
Engine horsepowerfwd11885.9781.4 to 90.55
Mean per value of Drive wheels
Drive wheelsRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine size
4wd93.5568.3444.22210,2412609.123.1195.3327.2255.44911.196.82171.42.8963.3910.444465.21110.1
fwd1203.1539.9344.0839244.82264.428.3285.9734.2353.525176.396.43168.83.2883.1970.941765.06108.8
rwd763.02610.694.86819757.63008.920.58133.725.6853.855071.7102.7182.73.2463.5430.710567.33157.5

Engine location

Engine-location: 2 distinct values, most often front.

Description
Engine location
StatisticValue
Typetext
Values present205
Distinct values2
Continuousno
Modefront
Rows per value
VariableValueRowsShare
Engine locationfront20298.54 %
Engine locationrear31.463 %
By Value

Engine-location accounts for 9.6% of the spread in Class: rear averages 104 above front (95% interval 99.0 to 110). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepowerrear3207207 to 207
Engine horsepowerfront200102.797.42 to 108
Mean per value of Engine location
Engine locationRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine size
front2023.1410.154.35612884.12552.425.34102.730.8453.765113.898.89174.13.2613.3240.80265.92125.9
rear329.5634,5282770.7172072551.6590089.5168.92.93.74365194

Engine size

Engine-size: 61 to 326, median 120, 44 distinct values; moves with Price most (r 0.872).

Description
Engine size
StatisticValue
Typeinteger
Values present205
Distinct values44
Continuousyes
Decimal places0
Minimum61
Maximum326
Mean126.9
Median120
Mode92

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

By Value

Engine-size accounts for 85% of the spread in Class: 194 averages 141 above 97 (95% interval 137 to 144). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepower1943207207 to 207
Engine horsepower2093182182 to 182
Engine horsepower1816162.7143 to 182.3
Engine horsepower1713159.3152.2 to 166.5
Engine horsepower1565145145 to 145
Engine horsepower1304136.589.65 to 183.4
Engine horsepower1216126.799.57 to 153.8
Engine horsepower1834123123 to 123
Engine horsepower1643121121 to 121
Engine horsepower1417120.6104.5 to 136.7

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

Mean per value of Engine size
Engine sizeRowsNumber of doorsCompression ratioNormalized lossesNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreWidthSymboling
61129.512135151148847485353.2510088.4141.13.032.9160.32
70329.4150212,1452381.7171012349.6600095.316965.73
791210.110145399183738604252.6550093.71503.072.9164
80129.4150215,6452500161352349.6600095.316965.73
90123.1679.46846384.21928.134.3368.6740.1751.135466.793.97157.93.192.9963.73
9152.89107.646435191830.86836.654.1500093.1162.23.153.0464.2
92152.89.187109.646773.12069.932.0767.637.454.19534093.93157.83.2222.97963.91
9714313.2647815.62088.432.4366.4338.6454.435021.495.51167.73.2553.14464.361.286
98142.9238.686130.548170.92161.927.938533.7952.045307.194.59164.53.1543.13664.07
1031221.912847099201745555054.5480094.5165.33.472.9963.8

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

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Curb weighttwo numbers0.87770.85060.8077 to 0.88450.87770.7249< 0.001205
Pricetwo numbers0.87230.87230.8347 to 0.90190.82840.6613< 0.001201
Number of cylinderstwo numbers0.8460.8460.802 to 0.88090.69170.5846< 0.001205
Engine horsepowertwo numbers0.81950.81080.7577 to 0.85320.81950.6576< 0.001203
Makea number and a category0.8146< 0.001205
Lengthtwo numbers0.78260.68340.6028 to 0.75010.78260.6021< 0.001205
Widthtwo numbers0.77060.73540.6655 to 0.79260.77060.5935< 0.001205
City mpgtwo numbers0.7301-0.6537-0.7257 to -0.5675-0.7301-0.5925< 0.001205
Boretwo numbers0.72470.59410.4965 to 0.67680.72470.5587< 0.001201
Highway mpgtwo numbers0.7213-0.6775-0.7453 to -0.5957-0.7213-0.5818< 0.001205

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

Visualization

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

Engine type

Engine-type: 7 distinct values, most often ohc.

Description
Engine type
StatisticValue
Typetext
Values present205
Distinct values7
Continuousno
Modeohc
Rows per value
VariableValueRowsShare
Engine typeohc14872.2 %
Engine typeohcf157.317 %
Engine typeohcv136.341 %
Engine typedohc125.854 %
Engine typel125.854 %
Engine typerotor41.951 %
Engine typedohcv10.4878 %
By Value

Engine-type accounts for 31% of the spread in Class: ohcv averages 75.8 above ohc (95% interval 55.6 to 96.1). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepowerohcv13169.5149.7 to 189.4
Engine horsepowerdohc12146129.3 to 162.7
Engine horsepowerohcf15110.481.9 to 138.9
Engine horsepowerrotor4109.582.45 to 136.6
Engine horsepowerl1295.582.75 to 108.2
Engine horsepowerohc14693.788.84 to 98.55
Mean per value of Engine type
Engine typeRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine sizeNormalized losses
dohc122.8339518116.42976.82014624.8352.735375100.4182.53.2833.4031.41766.4157.3
dohcv121083366172882850.5575098.4175.73.113.9472.3203
l123.83313.633.91714627.63076.624.595.528.8356.854704.2108.41873.1493.5270.166767.72129.6
ohc1483.13710.214.16911567.42422.326.893.732.5753.785133.9981723.3263.2610.770365.53117.5
ohcf153.28.9534.413738.62407.124.47110.429.653.32500094.84168.92.6733.644164.96124.5
ohcv132.9238.8237.07725098.43355.816.77169.521.2353.125015.4102.6185.63.2023.4540.769268.78216.7
rotor429.4213,0202411.316.75109.52349.6600095.3169365.772.5150

Fuel system

Fuel-system: 8 distinct values, most often mpfi.

Description
Fuel system
StatisticValue
Typetext
Values present205
Distinct values8
Continuousno
Modempfi
Rows per value
VariableValueRowsShare
Fuel systemmpfi9445.85 %
Fuel system2bbl6632.2 %
Fuel systemidi209.756 %
Fuel system1bbl115.366 %
Fuel systemspdi94.39 %
Fuel system4bbl31.463 %
Fuel systemmfi10.4878 %
Fuel systemspfi10.4878 %
By Value

Fuel-system accounts for 48% of the spread in Class: mpfi averages 58.9 above 2bbl (95% interval 50.4 to 67.3). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepowermpfi92131.9123.9 to 140
Engine horsepowerspdi9125.8111.2 to 140.4
Engine horsepower4bbl3101101 to 101
Engine horsepoweridi2084.4572.3 to 96.6
Engine horsepower1bbl1176.5569.91 to 83.18
Engine horsepower2bbl6673.0970.71 to 75.47
Mean per value of Fuel system
Fuel systemRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine sizeNormalized losses
1bbl112.7279.24547555.52045.531.4576.5536.5553.365772.793.94158.73.4412.9980.636464.1697.36104.3
2bbl663.1529.0883.9857433.22120.530.1573.0936.0253.445059.195.3165.33.1493.1910.772764.28100.2
4bbl329.4212,1452381.7171012349.6600095.3169365.770150
idi203.68422.014.315838.22898.830.384.4534.7555.844435104.41823.4863.3750.167.43135.7
mfi127412,9642811191452450.2500095.9173.23.93.6366.3156145
mpfi943.1618.8034.8417605.12849.220.65131.926.1954.015204.9101180.93.2183.4540.851166.98148.7
spdi92.4447.3410990.42549.721.44125.827.3350.565277.895.47169.53.6223.3241.88965.44127.8
spfi129.2411,048273424902951.4500096172.63.233.43265.2119

Fuel type

Fuel-type: 2 distinct values, most often gas.

Description
Fuel type
StatisticValue
Typetext
Values present205
Distinct values2
Continuousno
Modegas
Rows per value
VariableValueRowsShare
Fuel typegas18590.24 %
Fuel typediesel209.756 %
By Value
Mean per value of Fuel type
Fuel typeRowsNumber of doorsCompression ratioNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgHeightPeak rpmWheel baseLengthStrokeBoreSymbolingWidthEngine size
diesel203.68422.014.315838.22898.830.384.4534.7555.844435104.41823.4863.3750.167.43135.7
gas1853.0658.864.38912916.42518.524.67106.430.3253.55200.898.15173.23.233.3250.913565.74126

Height

Height: 47.8 to 59.8, median 54.1, 49 distinct values; moves with Wheel-base most (r 0.589).

Description
Height
StatisticValue
Typenumber
Values present205
Distinct values49
Continuousyes
Decimal places1
Minimum47.8
Maximum59.8
Mean53.72
Median54.1
Mode50.8

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

By Value

Height accounts for 31% of the spread in Class: 49.7 averages 111 above 59.1 (95% interval 54.0 to 169). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepower49.73173.3116 to 230.7
Engine horsepower51.6714794.03 to 200
Engine horsepower50.26144.7143.8 to 145.5
Engine horsepower56.17130.3106.8 to 153.8
Engine horsepower56.2313061.16 to 198.8
Engine horsepower57.5313061.16 to 198.8
Engine horsepower55.1511467.14 to 160.9
Engine horsepower5212111.888.97 to 134.7
Engine horsepower49.64109.582.45 to 136.6
Engine horsepower54.38106.895.83 to 117.7

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

Mean per value of Height
HeightRowsNumber of doorsCompression ratioNormalized lossesNumber of cylindersPriceCurb weightCity mpgEngine horsepowerHighway mpgPeak rpmWheel baseLengthStrokeBoreWidthEngine sizeSymboling
47.81211.51236,000395013262175000102191.72.763.5470.6326
48.8229414997.525482111127500088.6168.82.683.4764.11303
49.42281534922923492410231525096.31733.463.2665.41163
49.6429.4150213,0202411.316.75109.523600095.316965.772.53
49.7328.6206.3618432.33116.318.33173.324.33520093.93173.33.273.4367.91812.333
50.2627.417414955.52847.819144.724.55083.395.67172.53.7423.64866.63155.23
50.5229.356989529132028829.5575097.25176.33.5053.769.45167.51.5
50.6549.04149.247063.42020.629.674.836.4550093.7157.33.2622.98263.891.6
50.8142.2868.9361404.2868718.72095.33181.3636.645432.192.84158.63.2813.00964.42103.31.5
51.0129.1107410,34522932510031550096.5169.13.583.1566110

The first 10 rows of 49. The other 39 are in the notebook.

Correlation
Correlations
ColumnPair ofAssociationPearson's r95% CI (Pearson)Spearman's ρKendall's τq-valueRows
Makea number and a category0.7042< 0.001205
Wheel basetwo numbers0.63290.58940.4922 to 0.67220.63290.4617< 0.001205
Body stylea number and a category0.6291< 0.001205
Number of doorstwo numbers0.54770.54770.4434 to 0.63730.54710.4541< 0.001203
Symbolingtwo numbers0.541-0.541-0.6313 to -0.4364-0.5231-0.4132< 0.001205
Lengthtwo numbers0.52510.4910.3795 to 0.58850.52510.3746< 0.001205
Fuel systema number and a category0.4645< 0.001205
Engine typea number and a category0.4203< 0.001205
Widthtwo numbers0.35030.27920.1478 to 0.40090.35030.259< 0.001205
Curb weighttwo numbers0.34590.29560.1652 to 0.41580.34590.245< 0.001205

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

Visualization

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

Highway mpg

Highway-mpg: 16 to 54, median 30, 30 distinct values; moves with City-mpg most (r 0.971).

Description
Highway mpg
StatisticValue
Typeinteger
Values present205
Distinct values30
Continuousyes
Decimal places0
Minimum16
Maximum54
Mean30.75
Median30
Mode25

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

By Value

Highway-mpg accounts for 59% of the spread in Class: 22 averages 94.4 above 42 (95% interval 76.4 to 112). An association, not a cause.

Groups
TargetValueRowsAverage or share95% interval
Engine horsepower228158.4140.8 to 176
Engine horsepower263158149.4 to 166.6
Engine horsepower2519135.9117.3 to 154.5
Engine horsepower2417133.4119 to 147.7
Engine horsepower2813126.296.7 to 155.8
Engine horsepower237126.192.97 to 159.3
Engine horsepower275118.299.88 to 136.5
Engine horsepower3016108.1102.7 to 113.6
Engine horsepower291096.787.75 to 105.7
Engine horsepower33987.1181.56 to 92.66

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

This section continues in the notebook.

Implications

A minority of held-out rows were measured to lie outside the model's training range, with nearly all of them still covered. The generalization verdict is pending, and a warning and fairness flags appear in the Concerns chapter.

Most notable in the Implications section:

  • 12% of the held-out rows lie outside the range the model was trained on

How to read this

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

Stakeholder Summary

The Engine horsepower model relies most on Engine size, with the model's output rising as Engine size moves from the first to the third quartile, raising the model's output by about 26.4. City mpg and Peak rpm are also strong inputs: as City mpg increases, the model's output falls, and raising Peak rpm tends to raise the output. Most of the output's variation comes from Engine size and City mpg, and the model captures interactions between Engine type and Peak rpm, as well as Peak rpm and Width. The margin over a straight line through the data means the model describes some structure not picked up by that simpler approach and came out slightly ahead on most cases where its errors differed from the baseline, though the gap may not be clear row by row.

The model is short but is built from functions that take a specialist to read, so direct interpretation requires technical skill. Accuracy is weaker on rows where Drive wheels is fwd, and in this segment the model explains less of the variation than elsewhere. Errors are also less consistent across groups defined by Aspiration, Body style, Engine type, Fuel system, Fuel type and Drive wheels, and some rows tested were less like those the model trained on. Validate on a fresh sample and examine group-level performance before relying on the model for decisions.

Recommended Next Data

  • Collect more rows where Drive wheels = fwd. Reason: the model is less accurate on the 26 held-out rows with Drive wheels = fwd, explaining 72% of the variation there.
  • Record the group each row belongs to for the columns Aspiration, Body style, Drive wheels, Engine type, Fuel system, and Fuel type. Reason: fairness checks found that the model's errors differ between groups for these columns, including parity and bias in Drive wheels, Engine type, and Fuel system, and prediction parity gap in Body style.
  • Collect new rows that resemble the held-out rows but differ from the training rows in their inputs. Reason: a notable minority, 12% of the held-out rows, are unlike the rows the model was trained on.
  • Add more rows with higher-magnitude Engine horsepower values. Reason: the model's residual variance grows with predicted value, so accuracy degrades on higher-magnitude predictions.

Quality by Input Range

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

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

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

Segment drive_wheels = fwd is mildly weaker than the aggregate (26 held-out rows): segment R² 0.724 against aggregate R² 0.828 (gap -0.104). A noticeable but not severe quality drift; worth watching if this slice represents a high-stakes subset of the production data.

SegmentRowsR²Gap to all rowsVerdict
Drive wheels = fwd260.7244-0.104Weaker than on all rows
Number of doors = q4240.7592-0.069In line with all rows
Engine type = ohc290.7920-0.036In line with all rows
Body style = sedan210.8144-0.014In line with all rows
Fuel type = gas360.8210-0.007In line with all rows
Number of cylinders = q4390.8280-0.0005In line with all rows
Engine location = front400.8285+0.000In line with all rows
Aspiration = std300.8412+0.013In line with all rows
Highway mpg = q39-3.6247-4.453Too few rows to judge
Engine type = dohc3-2.6821-3.511Too few rows to judge

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

Aggregate R²
0.8285
Measure
r2
Target
Engine horsepower

Rows unlike the ones the model learned from

5 of 41 held-out rows (12%) lie further from the training rows than 99 in 100 rows like them would, measured on the 5 inputs the model reads (city_mpg, compression_ratio, engine_size, peak_rpm, width). That is a notable minority: predictions on those rows reach beyond the rows the model was trained on. Their accuracy deserves caution; the Worst Predictions chapter often shows these same rows.

TargetInputs measuredLineHeld-out rowsBeyond the lineShare
Engine horsepowerCity mpg, Compression ratio, Engine size, Peak rpm, Width3.88441512.2 %
Score bins · 24 of 30 rows shown
CountFromTo
000.158
00.1580.316
00.3160.474
20.4740.632
30.6320.79
20.790.948
10.9481.106
01.1061.264
31.2641.423
51.4231.581

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

How to read this

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

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

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

Fairness

This chapter checks the held-out predictions for uneven treatment of groups. For every categorical column with two to ten distinct values, other than the target, it reports per group the row count, mean actual value, mean prediction and mean residual, with R² and MAE for a number or accuracy, the share of rows classified correctly, for a yes-or-no target, and two measures across the groups.

  • Prediction parity ratio: the smallest group mean prediction divided by the largest, in absolute value. A ratio of 1.0 is perfect parity. Below 0.80, the four-fifths rule, some group receives systematically different predictions.
  • Largest mean residual: the largest absolute mean residual of any group. Above 30% of the overall residual standard deviation, at least one group is systematically over- or under-predicted.

The verdict combines the two: balanced when neither measure trips, parity gap or residual bias when one does, parity gap and residual bias when both do, and insufficient data when fewer than two groups have enough held-out rows.

Diafunc does not decide which columns are protected attributes; it reports every plausible one. A flagged column matters where it is a protected attribute in the decision the model supports, and can be set aside where it is not.

Engine horsepower Fairness

Column Drive-wheels splits the held-out rows into 2 groups. The prediction-parity ratio is 0.759 (smallest over largest mean prediction), the largest absolute group residual mean is 6.37 (0.466 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. curb_weight goes closely with drive_wheels (association 0.683 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads curb_weight can tell the groups of drive_wheels apart, so leaving drive_wheels out of the inputs does not keep it out of the predictions.

Aggregate residual std
13.68
Held-out rows offered
41
N columns
6
N proxies
21
N without target
1
Proxy threshold
0.5
Columns
Bias max abs residual meanColumnGroupsInterpretationN groupsN proxiesPrediction parity ratioVerdict
9.984Aspirationturbo, stdColumn Aspiration splits the held-out rows into 2 groups. The prediction-parity ratio is 0.808 (smallest over largest mean prediction), the largest absolute group residual mean is 9.98 (0.73 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. fuel_system goes closely with aspiration (association 0.61 on a scale from 0 to 1): a model that reads fuel_system can tell the groups of aspiration apart, so leaving aspiration out of the inputs does not keep it out of the predictions.210.8081Residual bias
2.531Body stylehatchback, wagon, sedanColumn Body-style splits the held-out rows into 3 groups. The prediction-parity ratio is 0.759 (smallest over largest mean prediction), the largest absolute group residual mean is 2.53 (0.185 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. num_of_doors goes closely with body_style (association 0.759 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads num_of_doors can tell the groups of body_style apart, so leaving body_style out of the inputs does not keep it out of the predictions.330.7588Prediction parity gap
6.366Drive wheelsrwd, fwdColumn Drive-wheels splits the held-out rows into 2 groups. The prediction-parity ratio is 0.759 (smallest over largest mean prediction), the largest absolute group residual mean is 6.37 (0.466 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. curb_weight goes closely with drive_wheels (association 0.683 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads curb_weight can tell the groups of drive_wheels apart, so leaving drive_wheels out of the inputs does not keep it out of the predictions.250.759Parity and bias
7.186Engine typedohc, l, ohc, ohcfColumn Engine-type splits the held-out rows into 4 groups. The prediction-parity ratio is 0.497 (smallest over largest mean prediction), the largest absolute group residual mean is 7.19 (0.525 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. num_of_cylinders goes closely with engine_type (association 0.778 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads num_of_cylinders can tell the groups of engine_type apart, so leaving engine_type out of the inputs does not keep it out of the predictions.450.4968Parity and bias
4.461Fuel systemidi, mpfi, 2bbl, 1bblColumn Fuel-system splits the held-out rows into 4 groups. The prediction-parity ratio is 0.585 (smallest over largest mean prediction), the largest absolute group residual mean is 4.46 (0.326 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. compression_ratio goes closely with fuel_system (association 0.989 on a scale from 0 to 1, and 4 more columns at 0.5 or above): a model that reads compression_ratio can tell the groups of fuel_system apart, so leaving fuel_system out of the inputs does not keep it out of the predictions.450.5852Parity and bias
4.461Fuel typediesel, gasColumn Fuel-type splits the held-out rows into 2 groups. The prediction-parity ratio is 0.877 (smallest over largest mean prediction), the largest absolute group residual mean is 4.46 (0.326 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. fuel_system goes closely with fuel_type (association 0.985 on a scale from 0 to 1, and 1 more column at 0.5 or above): a model that reads fuel_system can tell the groups of fuel_type apart, so leaving fuel_type out of the inputs does not keep it out of the predictions.220.8765Residual bias

Causal Honesty

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

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

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

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

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

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

Deployment Readiness

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

  • Targets: 1 target: class
  • Rows: 205 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: compared across 9 categorical columns (aspiration, body_style, drive_wheels, engine_location, engine_type, fuel_system, fuel_type, make, normalized_losses); 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 (2 pass, 2 warn, 2 fail), at least one check fails or a critical concern is open: Not ready. The failing checks need addressing first; they typically indicate data leakage, severe miscalibration, or a model that loses to its baseline.

NameStatusDetail
GeneralizationPassheld-out quality holds up against training quality
Prediction Interval CoverageFailintervals miss more rows than their level allows, largest gap 5.00 percentage points
Baseline Lift for Engine horsepowerPassbeats the best baseline, R² lift 0.0545
Model ConstraintsWarnsome held-out predictions need caution (1 non-finite prediction)
FairnessFail6 columns compared, 6 flagged: Aspiration (a group is systematically over- or under-predicted), Body style (a group receives systematically smaller predictions), Drive wheels (a group both receives smaller predictions and is systematically mis-predicted), Engine type (a group both receives smaller predictions and is systematically mis-predicted), Fuel system (a group both receives smaller predictions and is systematically mis-predicted), Fuel type (a group is systematically over- or under-predicted)
Out-of-DistributionWarn12% of held-out rows are out of distribution
N critical concerns
0
N fail
2
N pass
2
N warn
2
Overall verdict
Not ready

Provenance & Audit

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

ItemValue
Analysis ID1ef07980-48b6-11f1-8087-d378640fe787
Run time2026-10-25 11:56 UTC
Total rows205
Modeled targetsEngine horsepower
Segment columnnot available
Time limit1 h 0 min
Time taken52 min 5 s
Credit budget500 credits
Ufinq version0.3.46

Findings

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

The report continues in the notebook.

Loading Diafunc…