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 / WidthHeld-out diagnostics
| Target | Quality | Error | R² | MAE | N without target | Generalization | Rows |
|---|---|---|---|---|---|---|---|
| Engine horsepower | 64.51 % | 20.69 % | 0.8285 | 10.65 | 1 | generalizing | 40 |
- 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.
| Column | Detail |
|---|---|
| fuel_system | Compression ratio goes with it, an association of 0.989 on a scale from 0 to 1 |
| fuel_type | Compression ratio goes with it, an association of 0.984 on a scale from 0 to 1 |
| fuel_system | City mpg goes with it, an association of 0.748 on a scale from 0 to 1 |
| engine_type | Engine 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Input | Share of importance | Permutation importance | Sensitivity | Residual correlation | Occurrences | Model's output as the input rises | Change, first to third quartile |
|---|---|---|---|---|---|---|---|
| Engine size | 35.19 % | 3.0482 | 0.55 | 0.1463 | 1 | Rises (4830 of 4830 steps) | +26.4 (98 to 146) |
| City mpg | 30.71 % | 2.6597 | 1.94 | -0.2177 | 1 | Falls (3174 of 3174 steps) | -19.4 (20 to 30) |
| Peak rpm | 17.26 % | 1.4949 | 0.01533 | 0.3801 | 1 | Rises (2484 of 2484 steps) | +13.97 (4800 to 5400) |
| Engine type | 9.27 % | 0.8025 | 1 | ||||
| Compression ratio | 7.57 % | 0.6558 | 0 | 0.1516 | 1 | Falls (138 of 3864 steps) | 0 (8.6 to 9.4) |
| Width | -0.0628 | 1.246 | -0.1772 | 1 | Falls (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.
| Segment | Rows | R² | Gap to all rows | Verdict |
|---|---|---|---|---|
| Drive wheels = fwd | 26 | 0.7244 | -0.104 | Weaker than on all rows |
| Number of doors = q4 | 24 | 0.7592 | -0.069 | In line with all rows |
| Engine type = ohc | 29 | 0.7920 | -0.036 | In line with all rows |
| Body style = sedan | 21 | 0.8144 | -0.014 | In line with all rows |
| Fuel type = gas | 36 | 0.8210 | -0.007 | In line with all rows |
| Number of cylinders = q4 | 39 | 0.8280 | -0.0005 | In line with all rows |
| Engine location = front | 40 | 0.8285 | +0.000 | In line with all rows |
| Aspiration = std | 30 | 0.8412 | +0.013 | In line with all rows |
| Highway mpg = q3 | 9 | -3.6247 | -4.453 | Too few rows to judge |
| Engine type = dohc | 3 | -2.6821 | -3.511 | Too 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.
| Actual | Predicted | Residual | City mpg | Compression ratio | Engine size | Engine type | Peak rpm | Width |
|---|---|---|---|---|---|---|---|---|
| 162.00 | 132.41 | +29.59 | 17 | 7.5 | 130 | ohc | 5100 | 67.2 |
| 162.00 | 132.41 | +29.59 | 17 | 7.5 | 130 | ohc | 5100 | 67.2 |
| 58.00 | 30.66 | +27.34 | 49 | 9.6 | 92 | ohc | 4800 | 63.9 |
| 115.00 | 140.71 | -25.71 | 18 | 8 | 136 | ohc | 5500 | 66.4 |
| 140.00 | 116.10 | +23.90 | 17 | 8.3 | 131 | ohc | 5500 | 71.4 |
| 160.00 | 136.40 | +23.60 | 19 | 9 | 121 | dohc | 5500 | 66.5 |
| 48.00 | 26.95 | +21.05 | 47 | 9.5 | 61 | l | 5100 | 60.3 |
| 94.00 | 114.41 | -20.41 | 25 | 9 | 108 | ohcf | 5200 | 65.4 |
| 94.00 | 112.47 | -18.47 | 26 | 9 | 108 | ohcf | 5200 | 65.4 |
| 143.00 | 126.72 | +16.28 | 19 | 9.5 | 151 | ohc | 5500 | 68.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.
| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
|---|---|---|---|---|---|
| Engine horsepower | City mpg, Compression ratio, Engine size, Peak rpm, Width | 3.884 | 41 | 5 | 12.2 % |
| Count | From | To |
|---|---|---|
| 0 | 0 | 0.158 |
| 0 | 0.158 | 0.316 |
| 0 | 0.316 | 0.474 |
| 2 | 0.474 | 0.632 |
| 3 | 0.632 | 0.79 |
| 2 | 0.79 | 0.948 |
| 1 | 0.948 | 1.106 |
| 0 | 1.106 | 1.264 |
| 3 | 1.264 | 1.423 |
| 5 | 1.423 | 1.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.
| Severity | Section | Concern | Detail |
|---|---|---|---|
| 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. |
| 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. |
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.
| Name | Status | Detail |
|---|---|---|
| Generalization | Pass | held-out quality holds up against training quality |
| Prediction Interval Coverage | Fail | intervals miss more rows than their level allows, largest gap 5.00 percentage points |
| Baseline Lift for Engine horsepower | Pass | beats the best baseline, R² lift 0.0545 |
| Model Constraints | Warn | some held-out predictions need caution (1 non-finite prediction) |
| Fairness | Fail | 6 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-Distribution | Warn | 12% 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
| Bias max abs residual mean | Column | Groups | Interpretation | N groups | N proxies | Prediction parity ratio | Verdict |
|---|---|---|---|---|---|---|---|
| 9.984 | Aspiration | turbo, std | Column 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. | 2 | 1 | 0.8081 | Residual bias |
| 2.531 | Body style | hatchback, wagon, sedan | Column 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. | 3 | 3 | 0.7588 | Prediction parity gap |
| 6.366 | Drive wheels | rwd, fwd | 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. | 2 | 5 | 0.759 | Parity and bias |
| 7.186 | Engine type | dohc, l, ohc, ohcf | Column 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. | 4 | 5 | 0.4968 | Parity and bias |
| 4.461 | Fuel system | idi, mpfi, 2bbl, 1bbl | Column 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. | 4 | 5 | 0.5852 | Parity and bias |
| 4.461 | Fuel type | diesel, gas | Column 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. | 2 | 2 | 0.8765 | Residual 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
| Severity | Section | Concern | Detail |
|---|---|---|---|
| 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. |
| 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. |
How to read this
Data-quality, model-quality, and deployment-risk issues detected during the analysis appear below, ordered by severity. Critical concerns are listed first; Warning and Info entries follow.
Discovered Relations
| Target | Formula | Quality | Complexity | Error |
|---|---|---|---|---|
| Engine horsepower | 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 | 64.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 / Width| Value | Role | Input | Unit |
|---|---|---|---|
| -1.94 | Slope | City mpg | Output units per unit of City mpg |
| 0.55 | Slope | Engine size | Output units per unit of Engine size |
| 18 | Condition effect | Unit of the model's output | |
| 8.05 | Threshold | Compression ratio | Unit of Compression ratio |
| 24 | Condition effect | Unit of the model's output | |
| 4950 | Threshold | Peak rpm | Unit 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.
| Metric | Meaning |
|---|---|
| Quality | How well the model predicts on the held-out rows, marked down for the size of its formula: 100% is an exact prediction, 0% is no better than always predicting the average. It is not R², and sits at or just below it |
| Error | How far the predictions lie from the held-out values, as a share of the miss of always predicting the average: 0% is an exact prediction, 100% is no better than the average |
| Complexity | The size of the formula as a share of the complexity the search was allowed: a low figure is a short formula |
The figures under During the search are the same measures on the training rows. They are what the search ranked its candidates by, so they describe the search and tend to flatter the model it chose. The Generalization chapter sets the training rows beside the held-out rows, and the Baselines chapter sets the model beside its baselines. The time and credit gauges account for the computation that produced the model, not for the model itself.
Prediction
The model predicts 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.
| Input | Share of importance | Permutation importance | Sensitivity | Residual correlation | Occurrences | Model's output as the input rises | Change, first to third quartile |
|---|---|---|---|---|---|---|---|
| Engine size | 35.19 % | 3.0482 | 0.55 | 0.1463 | 1 | Rises (4830 of 4830 steps) | +26.4 (98 to 146) |
| City mpg | 30.71 % | 2.6597 | 1.94 | -0.2177 | 1 | Falls (3174 of 3174 steps) | -19.4 (20 to 30) |
| Peak rpm | 17.26 % | 1.4949 | 0.01533 | 0.3801 | 1 | Rises (2484 of 2484 steps) | +13.97 (4800 to 5400) |
| Engine type | 9.27 % | 0.8025 | 1 | ||||
| Compression ratio | 7.57 % | 0.6558 | 0 | 0.1516 | 1 | Falls (138 of 3864 steps) | 0 (8.6 to 9.4) |
| Width | -0.0628 | 1.246 | -0.1772 | 1 | Falls (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
| Input | Kind |
|---|---|
| City mpg | Positive infinity |
| Engine size | Negative infinity |
| Compression ratio | Unknown |
| Engine type | Unknown |
| Peak rpm | Unknown |
| Width | Finite |
| Input | Kind |
|---|---|
| City mpg | Negative infinity |
| Engine size | Positive infinity |
| Compression ratio | Unknown |
| Engine type | Unknown |
| Peak rpm | Unknown |
| Width | Finite |
| At | Input | Kind |
|---|---|---|
| 0 | Width | Pole |
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
| Item | Value |
|---|---|
| City mpg | 24 |
| Compression ratio | 9 |
| Engine size | 120 |
| Engine type | ohc |
| Peak rpm | 5200 |
| Width | 65.5 |
| Term 1 adds | -46.56 |
| Term 2 adds | 66 |
| Term 3 adds | 0 |
| Term 4 adds | 0 |
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).
| Inputs | In the model's output | Row pairs | Pairs with a difference | Mean absolute mixed difference |
|---|---|---|---|---|
| Engine type, Peak rpm | Act together | 50 | 20 | 9.6 |
| Peak rpm, Width | Act together | 114 | 114 | 0.289 |
| Width \ Peak rpm | 4150 | 4595 | 5041 | 5486 | 5932 | 6377 |
|---|---|---|---|---|---|---|
| 61.8 | 86.59 | 93.79 | 101 | 108.2 | 115.4 | 122.6 |
| 63.71 | 84.58 | 91.56 | 98.57 | 105.6 | 112.6 | 119.5 |
| 65.62 | 82.68 | 89.47 | 96.26 | 103 | 109.8 | 116.6 |
| 67.53 | 80.9 | 87.49 | 94.09 | 100.7 | 107.3 | 113.9 |
| 69.44 | 79.21 | 85.62 | 92.04 | 98.45 | 104.9 | 111.3 |
| 71.35 | 77.61 | 83.84 | 90.1 | 96.33 | 102.6 | 108.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.
| Actual | Predicted | Residual | City mpg | Compression ratio | Engine size | Engine type | Peak rpm | Width |
|---|---|---|---|---|---|---|---|---|
| 162.00 | 132.41 | +29.59 | 17 | 7.5 | 130 | ohc | 5100 | 67.2 |
| 162.00 | 132.41 | +29.59 | 17 | 7.5 | 130 | ohc | 5100 | 67.2 |
| 58.00 | 30.66 | +27.34 | 49 | 9.6 | 92 | ohc | 4800 | 63.9 |
| 115.00 | 140.71 | -25.71 | 18 | 8 | 136 | ohc | 5500 | 66.4 |
| 140.00 | 116.10 | +23.90 | 17 | 8.3 | 131 | ohc | 5500 | 71.4 |
| 160.00 | 136.40 | +23.60 | 19 | 9 | 121 | dohc | 5500 | 66.5 |
| 48.00 | 26.95 | +21.05 | 47 | 9.5 | 61 | l | 5100 | 60.3 |
| 94.00 | 114.41 | -20.41 | 25 | 9 | 108 | ohcf | 5200 | 65.4 |
| 94.00 | 112.47 | -18.47 | 26 | 9 | 108 | ohcf | 5200 | 65.4 |
| 143.00 | 126.72 | +16.28 | 19 | 9.5 | 151 | ohc | 5500 | 68.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 level | Half-width | Empirical coverage |
|---|---|---|
| 50 % | 9.224 | 55 % |
| 80 % | 17.53 | 77.5 % |
| 90 % | 22.49 | 85 % |
| 95 % | 26.8 | 92.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.
| Name | Status | Detail |
|---|---|---|
| Output coherent | Warn | 1 of 41 (2.4%) non-finite prediction |
| Within domain | Pass | no rows outside the training target's ±2σ range across 41 rows |
| Bounded predictions | Pass | no 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 ratioandFuel systemgo together (association 0.989)City mpgandHighway mpgmove together (correlation 0.971)- Fuel-system accounts for 48% of the spread in
Class:mpfiaverages 58.9 above2bbl(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.
| Name | Role | Type | N | Missing | Mean | Std | Min | P25 | Median | P75 | Max | Skewness | CV |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Engine horsepower | Target | integer | 203 | 2 (0.98 %) | 104.26 | 39.71 | 48 | 70 | 95 | 116 | 288 | 1.391 | 0.3809 |
| Aspiration | Input | text | 205 | 0 | |||||||||
| Body style | Input | text | 205 | 0 | |||||||||
| Bore | Input | number | 201 | 4 (1.95 %) | 3.330 | 0.274 | 2.540 | 3.150 | 3.310 | 3.590 | 3.940 | 0.02002 | 0.08215 |
| City mpg | Input | integer | 205 | 0 | 25.22 | 6.54 | 13 | 19 | 24 | 30 | 49 | 0.6637 | 0.2594 |
| Compression ratio | Input | number | 205 | 0 | 10.143 | 3.972 | 7.000 | 8.600 | 9.000 | 9.400 | 23.000 | 2.611 | 0.3916 |
| Curb weight | Input | integer | 205 | 0 | 2556 | 521 | 1488 | 2145 | 2414 | 2935 | 4066 | 0.6814 | 0.2037 |
| Drive wheels | Input | text | 205 | 0 | |||||||||
| Engine location | Input | text | 205 | 0 | |||||||||
| Engine size | Input | integer | 205 | 0 | 126.9 | 41.6 | 61 | 97 | 120 | 141 | 326 | 1.948 | 0.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
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 2 |
| Continuous | no |
| Mode | std |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Aspiration | std | 168 | 81.95 % |
| Aspiration | turbo | 37 | 18.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
| Aspiration | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| std | 168 | 3.102 | 9.593 | 4.405 | 12542.2 | 2476.4 | 25.84 | 99.76 | 31.57 | 53.63 | 5166.9 | 98.03 | 172.7 | 3.222 | 3.302 | 0.869 | 65.61 | 124.8 |
| turbo | 37 | 3.222 | 12.64 | 4.27 | 16254.8 | 2915.2 | 22.41 | 124.4 | 27.03 | 54.18 | 4939.2 | 102.1 | 180.2 | 3.404 | 3.452 | 0.6757 | 67.28 | 136.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
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 5 |
| Continuous | no |
| Mode | sedan |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Body style | sedan | 96 | 46.83 % |
| Body style | hatchback | 70 | 34.15 % |
| Body style | wagon | 25 | 12.2 % |
| Body style | hardtop | 8 | 3.902 % |
| Body style | convertible | 6 | 2.927 % |
By Value
| Body style | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| convertible | 6 | 2 | 8.933 | 5 | 21890.5 | 2801.7 | 20.5 | 131.7 | 26 | 51.43 | 5158.3 | 92.7 | 170.4 | 3.043 | 3.492 | 2.833 | 65.58 | 157.2 |
| hardtop | 8 | 2 | 10.73 | 5.125 | 22208.5 | 2810.6 | 21.63 | 142.3 | 27.25 | 52.85 | 5031.3 | 98.5 | 176.9 | 3.323 | 3.609 | 1.875 | 66.61 | 176.3 |
| hatchback | 70 | 2.286 | 9.027 | 4.114 | 9957.4 | 2348.2 | 26.31 | 101.3 | 32.17 | 52.11 | 5232.6 | 95.54 | 166.6 | 3.28 | 3.239 | 1.586 | 65.25 | 114.4 |
| sedan | 96 | 3.681 | 10.94 | 4.51 | 14459.8 | 2610.6 | 25.32 | 103.1 | 30.83 | 54.34 | 5081.8 | 100.6 | 177.6 | 3.267 | 3.339 | 0.3333 | 66.26 | 130.8 |
| wagon | 25 | 4 | 10.32 | 4.24 | 12372 | 2784.2 | 24.04 | 97.75 | 28.72 | 56.73 | 5014.6 | 102.2 | 181.3 | 3.176 | 3.406 | -0.16 | 66.26 | 123.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
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 201 |
| Distinct values | 38 |
| Continuous | yes |
| Decimal places | 2 |
| Minimum | 2.54 |
| Maximum | 3.94 |
| Mean | 3.33 |
| Median | 3.31 |
| Mode | 3.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | 3.74 | 3 | 207 | 207 to 207 |
| Engine horsepower | 3.54 | 6 | 152 | 89.88 to 214.1 |
| Engine horsepower | 3.59 | 3 | 145 | 145 to 145 |
| Engine horsepower | 3.43 | 8 | 142.3 | 107.8 to 176.7 |
| Engine horsepower | 3.58 | 6 | 128.5 | 118.8 to 138.2 |
| Engine horsepower | 3.78 | 8 | 127.4 | 106.4 to 148.3 |
| Engine horsepower | 3.27 | 7 | 117 | 68.81 to 165.2 |
| Engine horsepower | 3.17 | 3 | 116 | 116 to 116 |
| Engine horsepower | 3.62 | 23 | 113.1 | 97.17 to 129 |
| Engine horsepower | 3.46 | 7 | 113 | 86.45 to 139.5 |
The first 10 rows of 21. The other 11 are in the notebook.
| Bore | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Symboling | Width | Engine size | Normalized losses |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 2 | 9.4 | 2 | 13,020 | 2411.3 | 16.75 | 109.5 | 23 | 49.6 | 6000 | 95.3 | 169 | 3 | 65.7 | 72.5 | 150 | ||
| 2.54 | 1 | 2 | 9.3 | 4 | 15,040 | 2707 | 21 | 110 | 28 | 56.1 | 5250 | 99.1 | 186.6 | 2.07 | 3 | 66.5 | 121 | 150 |
| 2.68 | 1 | 2 | 9 | 6 | 16,500 | 2823 | 19 | 154 | 26 | 52.4 | 5000 | 94.5 | 171.2 | 3.47 | 65.5 | 152 | ||
| 2.91 | 7 | 2.286 | 9.429 | 3.857 | 6405.3 | 1823.3 | 36.43 | 67.14 | 41.29 | 52.44 | 5628.6 | 91.31 | 149.1 | 3.307 | 1.286 | 63.44 | 85.71 | 115.4 |
| 2.92 | 1 | 4 | 9.2 | 4 | 7295 | 2024 | 30 | 76 | 34 | 58.3 | 6000 | 96.5 | 157.1 | 3.41 | 63.9 | 92 | 78 | |
| 2.97 | 12 | 3 | 9.401 | 4 | 6402.3 | 1969 | 32.5 | 68 | 38.75 | 50.73 | 5500 | 93.7 | 159 | 3.23 | 1.25 | 63.95 | 91.17 | 145.3 |
| 2.99 | 1 | 2 | 21.9 | 4 | 7099 | 2017 | 45 | 55 | 50 | 54.5 | 4800 | 94.5 | 165.3 | 3.47 | 63.8 | 103 | 128 | |
| 3.01 | 5 | 3.6 | 23 | 4.4 | 12,316 | 2528 | 34 | 69.2 | 39.8 | 55.54 | 4680 | 100.3 | 176.8 | 3.4 | 1 | 66.46 | 106.6 | |
| 3.03 | 12 | 2.545 | 8.733 | 4 | 6981.1 | 1983.2 | 30.92 | 80 | 36.42 | 52.28 | 5300 | 93.71 | 158.3 | 3.217 | 63.87 | 93 | ||
| 3.05 | 6 | 3.333 | 9 | 4 | 6961.3 | 2286.7 | 30.33 | 62 | 36 | 56.8 | 4800 | 95.7 | 164.2 | 3.03 | 63.6 | 92 | 82.83 |
The first 10 rows of 39. The other 29 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Make | a number and a category | 0.7672 | < 0.001 | 201 | ||||
| Engine size | two numbers | 0.7247 | 0.5941 | 0.4965 to 0.6768 | 0.7247 | 0.5587 | < 0.001 | 201 |
| Curb weight | two numbers | 0.7005 | 0.649 | 0.561 to 0.7225 | 0.7005 | 0.5348 | < 0.001 | 201 |
| Price | two numbers | 0.6493 | 0.5434 | 0.4368 to 0.635 | 0.6493 | 0.4928 | < 0.001 | 197 |
| Engine horsepower | two numbers | 0.6466 | 0.5773 | 0.4764 to 0.6631 | 0.6466 | 0.478 | < 0.001 | 199 |
| Length | two numbers | 0.6417 | 0.6075 | 0.5121 to 0.688 | 0.6417 | 0.4974 | < 0.001 | 201 |
| Highway mpg | two numbers | 0.6266 | -0.5946 | -0.6772 to -0.4971 | -0.6266 | -0.4673 | < 0.001 | 201 |
| City mpg | two numbers | 0.6195 | -0.5946 | -0.6773 to -0.4971 | -0.6195 | -0.4625 | < 0.001 | 201 |
| Width | two numbers | 0.611 | 0.5592 | 0.4561 to 0.6475 | 0.611 | 0.4494 | < 0.001 | 201 |
| Drive wheels | a number and a category | 0.6018 | < 0.001 | 201 |
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.
| Measure | Meaning |
|---|---|
| Kind | What the other column holds: a number (numeric) or categories (numeric_categorical). A categorical column is one that is not numeric and holds between 2 and 50 distinct values |
| Association | The strength of the pair from 0 to 1. With a numeric column: the stronger of Pearson's coefficient and Spearman's ρ, without its sign. With a categorical column: the correlation ratio η, the square root of the share of Bore's spread that lies between the categories |
| Covariance | Numeric partner only. The direction of the relationship (positive or negative) in the units of the two columns. It is not standardized, so its size says little about strength without the columns' own spread |
| Pearson's Correlation Coefficient | Numeric partner only. The strength and direction of a linear relationship, from -1 (a perfect falling line) through 0 (no linear relationship) to 1 (a perfect rising line) |
| Spearman's ρ | Numeric partner only. The strength and direction of a monotonic relationship, computed on ranks rather than values, from -1 to 1. It follows a curved pattern as long as it rises or falls consistently, and outliers move it little |
| Kendall's τ | Numeric partner only. The strength and direction of association from the agreement and disagreement of rank order across pairs of rows, from -1 to 1. It is the steadier of the two rank measures when the rows are few |
| q-value | How likely a pair this strong is among unrelated columns, adjusted for the number of pairs involving 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 |
| Rows | The rows in which both columns hold a value. The q-value and the interval of a pair rest on this count |
Visualization
The rows of 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
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 205 |
| Distinct values | 29 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 13 |
| Maximum | 49 |
| Mean | 25.22 |
| Median | 24 |
| Mode | 31 |
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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | 15 | 3 | 178 | 169.4 to 186.6 |
| Engine horsepower | 17 | 13 | 167.7 | 135.1 to 200.2 |
| Engine horsepower | 16 | 6 | 161.5 | 142.6 to 180.4 |
| Engine horsepower | 20 | 3 | 146 | 91.86 to 200.1 |
| Engine horsepower | 19 | 27 | 134.1 | 123.8 to 144.4 |
| Engine horsepower | 18 | 3 | 130.3 | 95.88 to 164.8 |
| Engine horsepower | 22 | 4 | 123 | 123 to 123 |
| Engine horsepower | 21 | 8 | 113 | 108.9 to 117.1 |
| Engine horsepower | 23 | 10 | 108.5 | 100.7 to 116.3 |
| Engine horsepower | 24 | 22 | 102.4 | 96.77 to 108 |
The first 10 rows of 19. The other 9 are in the notebook.
| City mpg | Rows | Number of doors | Compression ratio | Normalized losses | Number of cylinders | Price | Curb weight | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 13 | 1 | 2 | 11.5 | 12 | 36,000 | 3950 | 262 | 17 | 47.8 | 5000 | 102 | 191.7 | 2.76 | 3.54 | 70.6 | 326 | ||
| 14 | 2 | 3 | 8 | 8 | 43,180 | 3807.5 | 184 | 16 | 56.05 | 4500 | 116.5 | 203.7 | 3.35 | 3.8 | 71.85 | 306 | ||
| 15 | 3 | 4 | 8.067 | 6 | 34893.3 | 3879 | 178 | 19.33 | 53.97 | 4966.7 | 112 | 198.7 | 3.91 | 3.627 | 70.03 | 241.7 | ||
| 16 | 6 | 2.667 | 8.167 | 5.833 | 31,392 | 3264.7 | 161.5 | 20.83 | 53.05 | 5300 | 102.3 | 185.5 | 3.276 | 3.458 | 0.8333 | 68.43 | 182.8 | |
| 17 | 13 | 2.769 | 8.908 | 4.846 | 20738.4 | 2895.5 | 167.7 | 23.31 | 52.66 | 5596.2 | 96.87 | 176.7 | 3.132 | 3.582 | 1.538 | 67.01 | 148.4 | |
| 18 | 3 | 4 | 7.933 | 140 | 5 | 19028.3 | 2988.7 | 130.3 | 23 | 55.27 | 5533.3 | 105.5 | 184 | 3.16 | 3.46 | 0.3333 | 67.87 | 147.7 |
| 19 | 27 | 3.037 | 8.415 | 4.593 | 16248.9 | 2938.7 | 134.1 | 24.74 | 53.77 | 5192.6 | 102 | 182.1 | 3.285 | 3.468 | 1.222 | 67.58 | 144.7 | |
| 20 | 3 | 3.333 | 9.167 | 6 | 18937.7 | 3054 | 146 | 24.33 | 53.93 | 4883.3 | 103.6 | 186.8 | 3.297 | 3.283 | 1 | 67.03 | 168.7 | |
| 21 | 8 | 2.75 | 9.151 | 4.5 | 15,830 | 2673.6 | 113 | 27.75 | 53.83 | 4937.5 | 97 | 179.7 | 2.878 | 3.34 | 2 | 65.48 | 134 | |
| 22 | 4 | 3.5 | 21.5 | 93 | 5 | 28,394 | 3632.5 | 123 | 25 | 56.6 | 4350 | 110.6 | 193 | 3.64 | 3.58 | -0.75 | 70.65 | 183 |
The first 10 rows of 29. The other 19 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Highway mpg | two numbers | 0.9713 | 0.9713 | 0.9624 to 0.9782 | 0.9677 | 0.8925 | < 0.001 | 205 |
| Engine horsepower | two numbers | 0.9125 | -0.8036 | -0.8475 to -0.7488 | -0.9125 | -0.7672 | < 0.001 | 203 |
| Price | two numbers | 0.8313 | -0.6866 | -0.7534 to -0.6057 | -0.8313 | -0.6613 | < 0.001 | 201 |
| Curb weight | two numbers | 0.8129 | -0.7574 | -0.8103 to -0.6922 | -0.8129 | -0.6533 | < 0.001 | 205 |
| Fuel system | a number and a category | 0.7479 | < 0.001 | 205 | ||||
| Engine size | two numbers | 0.7301 | -0.6537 | -0.7257 to -0.5675 | -0.7301 | -0.5925 | < 0.001 | 205 |
| Width | two numbers | 0.6877 | -0.6427 | -0.7166 to -0.5545 | -0.6877 | -0.5216 | < 0.001 | 205 |
| Length | two numbers | 0.6709 | -0.6709 | -0.7399 to -0.5879 | -0.67 | -0.5073 | < 0.001 | 205 |
| Make | a number and a category | 0.6634 | < 0.001 | 205 | ||||
| Bore | two numbers | 0.6195 | -0.5946 | -0.6773 to -0.4971 | -0.6195 | -0.4625 | < 0.001 | 201 |
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
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 203 |
| Distinct values | 59 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 48 |
| Maximum | 288 |
| Mean | 104.3 |
| Median | 95 |
| Mode | 68 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| City mpg | two numbers | 0.9125 | -0.8036 | -0.8475 to -0.7488 | -0.9125 | -0.7672 | < 0.001 | 203 |
| Highway mpg | two numbers | 0.8844 | -0.7709 | -0.8214 to -0.7084 | -0.8844 | -0.7283 | < 0.001 | 203 |
| Price | two numbers | 0.8505 | 0.8105 | 0.7568 to 0.8534 | 0.8505 | 0.6665 | < 0.001 | 199 |
| Engine size | two numbers | 0.8195 | 0.8108 | 0.7577 to 0.8532 | 0.8195 | 0.6576 | < 0.001 | 203 |
| Curb weight | two numbers | 0.807 | 0.751 | 0.6841 to 0.8054 | 0.807 | 0.6186 | < 0.001 | 203 |
| Make | a number and a category | 0.7289 | < 0.001 | 203 | ||||
| Fuel system | a number and a category | 0.702 | < 0.001 | 203 | ||||
| Width | two numbers | 0.6921 | 0.6425 | 0.5538 to 0.7168 | 0.6921 | 0.514 | < 0.001 | 203 |
| Number of cylinders | two numbers | 0.6916 | 0.6916 | 0.6122 to 0.7572 | 0.578 | 0.4752 | < 0.001 | 203 |
| Length | two numbers | 0.6631 | 0.555 | 0.4518 to 0.6435 | 0.6631 | 0.4771 | < 0.001 | 203 |
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
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 205 |
| Distinct values | 32 |
| Continuous | yes |
| Decimal places | 2 |
| Minimum | 7 |
| Maximum | 23 |
| Mean | 10.14 |
| Median | 9 |
| Mode | 9.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | 8 | 8 | 165.5 | 140.6 to 190.4 |
| Engine horsepower | 10 | 3 | 163.3 | -104.9 to 431.5 |
| Engine horsepower | 8.3 | 3 | 150 | 128.5 to 171.5 |
| Engine horsepower | 7 | 7 | 146.7 | 141.2 to 152.2 |
| Engine horsepower | 7.5 | 5 | 134.4 | 103.1 to 165.7 |
| Engine horsepower | 9.5 | 13 | 127.7 | 97.1 to 158.3 |
| Engine horsepower | 21.5 | 4 | 123 | 123 to 123 |
| Engine horsepower | 9.3 | 11 | 122.5 | 109.6 to 135.4 |
| Engine horsepower | 8.8 | 3 | 112 | 64.67 to 159.3 |
| Engine horsepower | 7.6 | 4 | 102 | 102 to 102 |
The first 10 rows of 21. The other 11 are in the notebook.
| Compression ratio | Rows | Number of doors | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size | Normalized losses |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 7.0 | 7 | 2.286 | 4.143 | 14310.8 | 2927.4 | 18.43 | 146.7 | 23.71 | 51.29 | 5157.1 | 98.14 | 175.8 | 3.707 | 3.527 | 2.143 | 66.81 | 149.3 | |
| 7.5 | 5 | 3.6 | 4 | 13177.4 | 2675.6 | 20.6 | 134.4 | 26.8 | 53.26 | 5340 | 99.5 | 179.1 | 3.336 | 3.35 | 0 | 66.12 | 118 | 118.4 |
| 7.6 | 4 | 2 | 4 | 8040.3 | 2148 | 24 | 102 | 30 | 50.75 | 5500 | 93.53 | 157.3 | 3.39 | 3.03 | 63.8 | 98 | 136.5 | |
| 7.7 | 2 | 4 | 4 | 11476.5 | 2580 | 23.5 | 111 | 26 | 54.6 | 4800 | 96.95 | 172.8 | 2.64 | 3.62 | 65.4 | 108 | 93.5 | |
| 7.8 | 1 | 2 | 6 | 19,699 | 3139 | 17 | 200 | 23 | 49.7 | 5200 | 91.3 | 170.7 | 3.27 | 3.43 | 3 | 67.9 | 181 | 194 |
| 8.0 | 8 | 3.25 | 5.875 | 30943.5 | 3266.8 | 16.38 | 165.5 | 21.13 | 55.16 | 5087.5 | 107.1 | 189.6 | 3.319 | 3.649 | 0.5 | 68.74 | 206.9 | |
| 8.1 | 2 | 4 | 6 | 33,900 | 4066 | 15 | 176 | 19 | 52.8 | 4750 | 113 | 199.6 | 4.17 | 3.63 | 69.6 | 258 | ||
| 8.3 | 3 | 3.333 | 7 | 31038.3 | 3503.7 | 16.33 | 150 | 18.67 | 54.4 | 5000 | 106 | 191.9 | 3.2 | 3.35 | 1 | 71.2 | 199.7 | |
| 8.4 | 5 | 4 | 4 | 14,649 | 3137 | 19 | 96.2 | 24 | 57.1 | 5000 | 110.4 | 191.6 | 2.79 | 3.46 | 68.4 | 120 | ||
| 8.5 | 14 | 3.429 | 4.286 | 10,968 | 2469.4 | 23.21 | 95.14 | 29.29 | 54.41 | 5228.6 | 98.93 | 175.2 | 3.419 | 3.275 | 0.9286 | 65.84 | 123.1 |
The first 10 rows of 32. The other 22 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Fuel system | a number and a category | 0.9894 | < 0.001 | 205 | ||||
| Fuel type | a number and a category | 0.9844 | < 0.001 | 205 | ||||
| City mpg | two numbers | 0.4789 | 0.3247 | 0.1964 to 0.4421 | 0.4789 | 0.3769 | < 0.001 | 205 |
| Make | a number and a category | 0.4602 | 0.003691 | 205 | ||||
| Highway mpg | two numbers | 0.4451 | 0.2652 | 0.133 to 0.3881 | 0.4451 | 0.337 | < 0.001 | 205 |
| Peak rpm | two numbers | 0.4362 | -0.4362 | -0.5414 to -0.3176 | -0.02566 | -0.002317 | < 0.001 | 203 |
| Engine horsepower | two numbers | 0.3554 | -0.2059 | -0.3341 to -0.07015 | -0.3554 | -0.2742 | 0.007707 | 203 |
| Aspiration | a number and a category | 0.2955 | < 0.001 | 205 | ||||
| Height | two numbers | 0.2612 | 0.2612 | 0.1288 to 0.3845 | 0.000231 | -0.01883 | < 0.001 | 205 |
| Engine type | a number and a category | 0.2542 | 0.05027 | 205 |
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
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 205 |
| Distinct values | 171 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1488 |
| Maximum | 4066 |
| Mean | 2555.6 |
| Median | 2414 |
| Mode | 2385 |
The first 10 rows of 17. The other 7 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Price | two numbers | 0.9138 | 0.8344 | 0.7869 to 0.8721 | 0.9138 | 0.7443 | < 0.001 | 201 |
| Length | two numbers | 0.8904 | 0.8777 | 0.842 to 0.9058 | 0.8904 | 0.7231 | < 0.001 | 205 |
| Engine size | two numbers | 0.8777 | 0.8506 | 0.8077 to 0.8845 | 0.8777 | 0.7249 | < 0.001 | 205 |
| Width | two numbers | 0.867 | 0.867 | 0.8284 to 0.8974 | 0.8638 | 0.6872 | < 0.001 | 205 |
| Highway mpg | two numbers | 0.8344 | -0.7975 | -0.8424 to -0.7415 | -0.8344 | -0.6734 | < 0.001 | 205 |
| Make | a number and a category | 0.8265 | < 0.001 | 205 | ||||
| City mpg | two numbers | 0.8129 | -0.7574 | -0.8103 to -0.6922 | -0.8129 | -0.6533 | < 0.001 | 205 |
| Engine horsepower | two numbers | 0.807 | 0.751 | 0.6841 to 0.8054 | 0.807 | 0.6186 | < 0.001 | 203 |
| Wheel base | two numbers | 0.7764 | 0.7764 | 0.7155 to 0.8256 | 0.7653 | 0.6073 | < 0.001 | 205 |
| Bore | two numbers | 0.7005 | 0.649 | 0.561 to 0.7225 | 0.7005 | 0.5348 | < 0.001 | 201 |
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
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 3 |
| Continuous | no |
| Mode | fwd |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Drive wheels | fwd | 120 | 58.54 % |
| Drive wheels | rwd | 76 | 37.07 % |
| Drive wheels | 4wd | 9 | 4.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | rwd | 76 | 133.7 | 124.2 to 143.2 |
| Engine horsepower | 4wd | 9 | 95.33 | 70.82 to 119.8 |
| Engine horsepower | fwd | 118 | 85.97 | 81.4 to 90.55 |
| Drive wheels | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4wd | 9 | 3.556 | 8.344 | 4.222 | 10,241 | 2609.1 | 23.11 | 95.33 | 27.22 | 55.4 | 4911.1 | 96.82 | 171.4 | 2.896 | 3.391 | 0.4444 | 65.21 | 110.1 |
| fwd | 120 | 3.153 | 9.934 | 4.083 | 9244.8 | 2264.4 | 28.32 | 85.97 | 34.23 | 53.52 | 5176.3 | 96.43 | 168.8 | 3.288 | 3.197 | 0.9417 | 65.06 | 108.8 |
| rwd | 76 | 3.026 | 10.69 | 4.868 | 19757.6 | 3008.9 | 20.58 | 133.7 | 25.68 | 53.85 | 5071.7 | 102.7 | 182.7 | 3.246 | 3.543 | 0.7105 | 67.33 | 157.5 |
Engine location
Engine-location: 2 distinct values, most often front.
Description
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 2 |
| Continuous | no |
| Mode | front |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Engine location | front | 202 | 98.54 % |
| Engine location | rear | 3 | 1.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | rear | 3 | 207 | 207 to 207 |
| Engine horsepower | front | 200 | 102.7 | 97.42 to 108 |
| Engine location | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| front | 202 | 3.14 | 10.15 | 4.356 | 12884.1 | 2552.4 | 25.34 | 102.7 | 30.84 | 53.76 | 5113.8 | 98.89 | 174.1 | 3.261 | 3.324 | 0.802 | 65.92 | 125.9 |
| rear | 3 | 2 | 9.5 | 6 | 34,528 | 2770.7 | 17 | 207 | 25 | 51.6 | 5900 | 89.5 | 168.9 | 2.9 | 3.74 | 3 | 65 | 194 |
Engine size
Engine-size: 61 to 326, median 120, 44 distinct values; moves with Price most (r 0.872).
Description
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 205 |
| Distinct values | 44 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 61 |
| Maximum | 326 |
| Mean | 126.9 |
| Median | 120 |
| Mode | 92 |
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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | 194 | 3 | 207 | 207 to 207 |
| Engine horsepower | 209 | 3 | 182 | 182 to 182 |
| Engine horsepower | 181 | 6 | 162.7 | 143 to 182.3 |
| Engine horsepower | 171 | 3 | 159.3 | 152.2 to 166.5 |
| Engine horsepower | 156 | 5 | 145 | 145 to 145 |
| Engine horsepower | 130 | 4 | 136.5 | 89.65 to 183.4 |
| Engine horsepower | 121 | 6 | 126.7 | 99.57 to 153.8 |
| Engine horsepower | 183 | 4 | 123 | 123 to 123 |
| Engine horsepower | 164 | 3 | 121 | 121 to 121 |
| Engine horsepower | 141 | 7 | 120.6 | 104.5 to 136.7 |
The first 10 rows of 24. The other 14 are in the notebook.
| Engine size | Rows | Number of doors | Compression ratio | Normalized losses | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Width | Symboling |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 61 | 1 | 2 | 9.5 | 121 | 3 | 5151 | 1488 | 47 | 48 | 53 | 53.2 | 5100 | 88.4 | 141.1 | 3.03 | 2.91 | 60.3 | 2 |
| 70 | 3 | 2 | 9.4 | 150 | 2 | 12,145 | 2381.7 | 17 | 101 | 23 | 49.6 | 6000 | 95.3 | 169 | 65.7 | 3 | ||
| 79 | 1 | 2 | 10.1 | 101 | 4 | 5399 | 1837 | 38 | 60 | 42 | 52.6 | 5500 | 93.7 | 150 | 3.07 | 2.91 | 64 | |
| 80 | 1 | 2 | 9.4 | 150 | 2 | 15,645 | 2500 | 16 | 135 | 23 | 49.6 | 6000 | 95.3 | 169 | 65.7 | 3 | ||
| 90 | 12 | 3.167 | 9.468 | 4 | 6384.2 | 1928.1 | 34.33 | 68.67 | 40.17 | 51.13 | 5466.7 | 93.97 | 157.9 | 3.19 | 2.99 | 63.73 | ||
| 91 | 5 | 2.8 | 9 | 107.6 | 4 | 6435 | 1918 | 30.8 | 68 | 36.6 | 54.1 | 5000 | 93.1 | 162.2 | 3.15 | 3.04 | 64.2 | |
| 92 | 15 | 2.8 | 9.187 | 109.6 | 4 | 6773.1 | 2069.9 | 32.07 | 67.6 | 37.4 | 54.19 | 5340 | 93.93 | 157.8 | 3.222 | 2.979 | 63.9 | 1 |
| 97 | 14 | 3 | 13.26 | 4 | 7815.6 | 2088.4 | 32.43 | 66.43 | 38.64 | 54.43 | 5021.4 | 95.51 | 167.7 | 3.255 | 3.144 | 64.36 | 1.286 | |
| 98 | 14 | 2.923 | 8.686 | 130.5 | 4 | 8170.9 | 2161.9 | 27.93 | 85 | 33.79 | 52.04 | 5307.1 | 94.59 | 164.5 | 3.154 | 3.136 | 64.07 | |
| 103 | 1 | 2 | 21.9 | 128 | 4 | 7099 | 2017 | 45 | 55 | 50 | 54.5 | 4800 | 94.5 | 165.3 | 3.47 | 2.99 | 63.8 |
The first 10 rows of 44. The other 34 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Curb weight | two numbers | 0.8777 | 0.8506 | 0.8077 to 0.8845 | 0.8777 | 0.7249 | < 0.001 | 205 |
| Price | two numbers | 0.8723 | 0.8723 | 0.8347 to 0.9019 | 0.8284 | 0.6613 | < 0.001 | 201 |
| Number of cylinders | two numbers | 0.846 | 0.846 | 0.802 to 0.8809 | 0.6917 | 0.5846 | < 0.001 | 205 |
| Engine horsepower | two numbers | 0.8195 | 0.8108 | 0.7577 to 0.8532 | 0.8195 | 0.6576 | < 0.001 | 203 |
| Make | a number and a category | 0.8146 | < 0.001 | 205 | ||||
| Length | two numbers | 0.7826 | 0.6834 | 0.6028 to 0.7501 | 0.7826 | 0.6021 | < 0.001 | 205 |
| Width | two numbers | 0.7706 | 0.7354 | 0.6655 to 0.7926 | 0.7706 | 0.5935 | < 0.001 | 205 |
| City mpg | two numbers | 0.7301 | -0.6537 | -0.7257 to -0.5675 | -0.7301 | -0.5925 | < 0.001 | 205 |
| Bore | two numbers | 0.7247 | 0.5941 | 0.4965 to 0.6768 | 0.7247 | 0.5587 | < 0.001 | 201 |
| Highway mpg | two numbers | 0.7213 | -0.6775 | -0.7453 to -0.5957 | -0.7213 | -0.5818 | < 0.001 | 205 |
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
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 7 |
| Continuous | no |
| Mode | ohc |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Engine type | ohc | 148 | 72.2 % |
| Engine type | ohcf | 15 | 7.317 % |
| Engine type | ohcv | 13 | 6.341 % |
| Engine type | dohc | 12 | 5.854 % |
| Engine type | l | 12 | 5.854 % |
| Engine type | rotor | 4 | 1.951 % |
| Engine type | dohcv | 1 | 0.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | ohcv | 13 | 169.5 | 149.7 to 189.4 |
| Engine horsepower | dohc | 12 | 146 | 129.3 to 162.7 |
| Engine horsepower | ohcf | 15 | 110.4 | 81.9 to 138.9 |
| Engine horsepower | rotor | 4 | 109.5 | 82.45 to 136.6 |
| Engine horsepower | l | 12 | 95.5 | 82.75 to 108.2 |
| Engine horsepower | ohc | 146 | 93.7 | 88.84 to 98.55 |
| Engine type | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size | Normalized losses |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| dohc | 12 | 2.833 | 9 | 5 | 18116.4 | 2976.8 | 20 | 146 | 24.83 | 52.73 | 5375 | 100.4 | 182.5 | 3.283 | 3.403 | 1.417 | 66.4 | 157.3 | |
| dohcv | 1 | 2 | 10 | 8 | 3366 | 17 | 288 | 28 | 50.5 | 5750 | 98.4 | 175.7 | 3.11 | 3.94 | 72.3 | 203 | |||
| l | 12 | 3.833 | 13.63 | 3.917 | 14627.6 | 3076.6 | 24.5 | 95.5 | 28.83 | 56.85 | 4704.2 | 108.4 | 187 | 3.149 | 3.527 | 0.1667 | 67.72 | 129.6 | |
| ohc | 148 | 3.137 | 10.21 | 4.169 | 11567.4 | 2422.3 | 26.8 | 93.7 | 32.57 | 53.78 | 5133.9 | 98 | 172 | 3.326 | 3.261 | 0.7703 | 65.53 | 117.5 | |
| ohcf | 15 | 3.2 | 8.953 | 4.4 | 13738.6 | 2407.1 | 24.47 | 110.4 | 29.6 | 53.32 | 5000 | 94.84 | 168.9 | 2.673 | 3.644 | 1 | 64.96 | 124.5 | |
| ohcv | 13 | 2.923 | 8.823 | 7.077 | 25098.4 | 3355.8 | 16.77 | 169.5 | 21.23 | 53.12 | 5015.4 | 102.6 | 185.6 | 3.202 | 3.454 | 0.7692 | 68.78 | 216.7 | |
| rotor | 4 | 2 | 9.4 | 2 | 13,020 | 2411.3 | 16.75 | 109.5 | 23 | 49.6 | 6000 | 95.3 | 169 | 3 | 65.7 | 72.5 | 150 |
Fuel system
Fuel-system: 8 distinct values, most often mpfi.
Description
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 8 |
| Continuous | no |
| Mode | mpfi |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Fuel system | mpfi | 94 | 45.85 % |
| Fuel system | 2bbl | 66 | 32.2 % |
| Fuel system | idi | 20 | 9.756 % |
| Fuel system | 1bbl | 11 | 5.366 % |
| Fuel system | spdi | 9 | 4.39 % |
| Fuel system | 4bbl | 3 | 1.463 % |
| Fuel system | mfi | 1 | 0.4878 % |
| Fuel system | spfi | 1 | 0.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | mpfi | 92 | 131.9 | 123.9 to 140 |
| Engine horsepower | spdi | 9 | 125.8 | 111.2 to 140.4 |
| Engine horsepower | 4bbl | 3 | 101 | 101 to 101 |
| Engine horsepower | idi | 20 | 84.45 | 72.3 to 96.6 |
| Engine horsepower | 1bbl | 11 | 76.55 | 69.91 to 83.18 |
| Engine horsepower | 2bbl | 66 | 73.09 | 70.71 to 75.47 |
| Fuel system | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size | Normalized losses |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1bbl | 11 | 2.727 | 9.245 | 4 | 7555.5 | 2045.5 | 31.45 | 76.55 | 36.55 | 53.36 | 5772.7 | 93.94 | 158.7 | 3.441 | 2.998 | 0.6364 | 64.16 | 97.36 | 104.3 |
| 2bbl | 66 | 3.152 | 9.088 | 3.985 | 7433.2 | 2120.5 | 30.15 | 73.09 | 36.02 | 53.44 | 5059.1 | 95.3 | 165.3 | 3.149 | 3.191 | 0.7727 | 64.28 | 100.2 | |
| 4bbl | 3 | 2 | 9.4 | 2 | 12,145 | 2381.7 | 17 | 101 | 23 | 49.6 | 6000 | 95.3 | 169 | 3 | 65.7 | 70 | 150 | ||
| idi | 20 | 3.684 | 22.01 | 4.3 | 15838.2 | 2898.8 | 30.3 | 84.45 | 34.75 | 55.84 | 4435 | 104.4 | 182 | 3.486 | 3.375 | 0.1 | 67.43 | 135.7 | |
| mfi | 1 | 2 | 7 | 4 | 12,964 | 2811 | 19 | 145 | 24 | 50.2 | 5000 | 95.9 | 173.2 | 3.9 | 3.6 | 3 | 66.3 | 156 | 145 |
| mpfi | 94 | 3.161 | 8.803 | 4.84 | 17605.1 | 2849.2 | 20.65 | 131.9 | 26.19 | 54.01 | 5204.9 | 101 | 180.9 | 3.218 | 3.454 | 0.8511 | 66.98 | 148.7 | |
| spdi | 9 | 2.444 | 7.3 | 4 | 10990.4 | 2549.7 | 21.44 | 125.8 | 27.33 | 50.56 | 5277.8 | 95.47 | 169.5 | 3.622 | 3.324 | 1.889 | 65.44 | 127.8 | |
| spfi | 1 | 2 | 9.2 | 4 | 11,048 | 2734 | 24 | 90 | 29 | 51.4 | 5000 | 96 | 172.6 | 3.23 | 3.43 | 2 | 65.2 | 119 |
Fuel type
Fuel-type: 2 distinct values, most often gas.
Description
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 205 |
| Distinct values | 2 |
| Continuous | no |
| Mode | gas |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Fuel type | gas | 185 | 90.24 % |
| Fuel type | diesel | 20 | 9.756 % |
By Value
| Fuel type | Rows | Number of doors | Compression ratio | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Height | Peak rpm | Wheel base | Length | Stroke | Bore | Symboling | Width | Engine size |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| diesel | 20 | 3.684 | 22.01 | 4.3 | 15838.2 | 2898.8 | 30.3 | 84.45 | 34.75 | 55.84 | 4435 | 104.4 | 182 | 3.486 | 3.375 | 0.1 | 67.43 | 135.7 |
| gas | 185 | 3.065 | 8.86 | 4.389 | 12916.4 | 2518.5 | 24.67 | 106.4 | 30.32 | 53.5 | 5200.8 | 98.15 | 173.2 | 3.23 | 3.325 | 0.9135 | 65.74 | 126 |
Height
Height: 47.8 to 59.8, median 54.1, 49 distinct values; moves with Wheel-base most (r 0.589).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 205 |
| Distinct values | 49 |
| Continuous | yes |
| Decimal places | 1 |
| Minimum | 47.8 |
| Maximum | 59.8 |
| Mean | 53.72 |
| Median | 54.1 |
| Mode | 50.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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | 49.7 | 3 | 173.3 | 116 to 230.7 |
| Engine horsepower | 51.6 | 7 | 147 | 94.03 to 200 |
| Engine horsepower | 50.2 | 6 | 144.7 | 143.8 to 145.5 |
| Engine horsepower | 56.1 | 7 | 130.3 | 106.8 to 153.8 |
| Engine horsepower | 56.2 | 3 | 130 | 61.16 to 198.8 |
| Engine horsepower | 57.5 | 3 | 130 | 61.16 to 198.8 |
| Engine horsepower | 55.1 | 5 | 114 | 67.14 to 160.9 |
| Engine horsepower | 52 | 12 | 111.8 | 88.97 to 134.7 |
| Engine horsepower | 49.6 | 4 | 109.5 | 82.45 to 136.6 |
| Engine horsepower | 54.3 | 8 | 106.8 | 95.83 to 117.7 |
The first 10 rows of 24. The other 14 are in the notebook.
| Height | Rows | Number of doors | Compression ratio | Normalized losses | Number of cylinders | Price | Curb weight | City mpg | Engine horsepower | Highway mpg | Peak rpm | Wheel base | Length | Stroke | Bore | Width | Engine size | Symboling |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 47.8 | 1 | 2 | 11.5 | 12 | 36,000 | 3950 | 13 | 262 | 17 | 5000 | 102 | 191.7 | 2.76 | 3.54 | 70.6 | 326 | ||
| 48.8 | 2 | 2 | 9 | 4 | 14997.5 | 2548 | 21 | 111 | 27 | 5000 | 88.6 | 168.8 | 2.68 | 3.47 | 64.1 | 130 | 3 | |
| 49.4 | 2 | 2 | 8 | 153 | 4 | 9229 | 2349 | 24 | 102 | 31 | 5250 | 96.3 | 173 | 3.46 | 3.26 | 65.4 | 116 | 3 |
| 49.6 | 4 | 2 | 9.4 | 150 | 2 | 13,020 | 2411.3 | 16.75 | 109.5 | 23 | 6000 | 95.3 | 169 | 65.7 | 72.5 | 3 | ||
| 49.7 | 3 | 2 | 8.6 | 206.3 | 6 | 18432.3 | 3116.3 | 18.33 | 173.3 | 24.33 | 5200 | 93.93 | 173.3 | 3.27 | 3.43 | 67.9 | 181 | 2.333 |
| 50.2 | 6 | 2 | 7.417 | 4 | 14955.5 | 2847.8 | 19 | 144.7 | 24.5 | 5083.3 | 95.67 | 172.5 | 3.742 | 3.648 | 66.63 | 155.2 | 3 | |
| 50.5 | 2 | 2 | 9.35 | 6 | 9895 | 2913 | 20 | 288 | 29.5 | 5750 | 97.25 | 176.3 | 3.505 | 3.7 | 69.45 | 167.5 | 1.5 | |
| 50.6 | 5 | 4 | 9.04 | 149.2 | 4 | 7063.4 | 2020.6 | 29.6 | 74.8 | 36.4 | 5500 | 93.7 | 157.3 | 3.262 | 2.982 | 63.8 | 91.6 | |
| 50.8 | 14 | 2.286 | 8.936 | 140 | 4.286 | 8718.7 | 2095.3 | 31 | 81.36 | 36.64 | 5432.1 | 92.84 | 158.6 | 3.281 | 3.009 | 64.42 | 103.3 | 1.5 |
| 51.0 | 1 | 2 | 9.1 | 107 | 4 | 10,345 | 2293 | 25 | 100 | 31 | 5500 | 96.5 | 169.1 | 3.58 | 3.15 | 66 | 110 |
The first 10 rows of 49. The other 39 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Make | a number and a category | 0.7042 | < 0.001 | 205 | ||||
| Wheel base | two numbers | 0.6329 | 0.5894 | 0.4922 to 0.6722 | 0.6329 | 0.4617 | < 0.001 | 205 |
| Body style | a number and a category | 0.6291 | < 0.001 | 205 | ||||
| Number of doors | two numbers | 0.5477 | 0.5477 | 0.4434 to 0.6373 | 0.5471 | 0.4541 | < 0.001 | 203 |
| Symboling | two numbers | 0.541 | -0.541 | -0.6313 to -0.4364 | -0.5231 | -0.4132 | < 0.001 | 205 |
| Length | two numbers | 0.5251 | 0.491 | 0.3795 to 0.5885 | 0.5251 | 0.3746 | < 0.001 | 205 |
| Fuel system | a number and a category | 0.4645 | < 0.001 | 205 | ||||
| Engine type | a number and a category | 0.4203 | < 0.001 | 205 | ||||
| Width | two numbers | 0.3503 | 0.2792 | 0.1478 to 0.4009 | 0.3503 | 0.259 | < 0.001 | 205 |
| Curb weight | two numbers | 0.3459 | 0.2956 | 0.1652 to 0.4158 | 0.3459 | 0.245 | < 0.001 | 205 |
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
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 205 |
| Distinct values | 30 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 16 |
| Maximum | 54 |
| Mean | 30.75 |
| Median | 30 |
| Mode | 25 |
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.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Engine horsepower | 22 | 8 | 158.4 | 140.8 to 176 |
| Engine horsepower | 26 | 3 | 158 | 149.4 to 166.6 |
| Engine horsepower | 25 | 19 | 135.9 | 117.3 to 154.5 |
| Engine horsepower | 24 | 17 | 133.4 | 119 to 147.7 |
| Engine horsepower | 28 | 13 | 126.2 | 96.7 to 155.8 |
| Engine horsepower | 23 | 7 | 126.1 | 92.97 to 159.3 |
| Engine horsepower | 27 | 5 | 118.2 | 99.88 to 136.5 |
| Engine horsepower | 30 | 16 | 108.1 | 102.7 to 113.6 |
| Engine horsepower | 29 | 10 | 96.7 | 87.75 to 105.7 |
| Engine horsepower | 33 | 9 | 87.11 | 81.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.
| Segment | Rows | R² | Gap to all rows | Verdict |
|---|---|---|---|---|
| Drive wheels = fwd | 26 | 0.7244 | -0.104 | Weaker than on all rows |
| Number of doors = q4 | 24 | 0.7592 | -0.069 | In line with all rows |
| Engine type = ohc | 29 | 0.7920 | -0.036 | In line with all rows |
| Body style = sedan | 21 | 0.8144 | -0.014 | In line with all rows |
| Fuel type = gas | 36 | 0.8210 | -0.007 | In line with all rows |
| Number of cylinders = q4 | 39 | 0.8280 | -0.0005 | In line with all rows |
| Engine location = front | 40 | 0.8285 | +0.000 | In line with all rows |
| Aspiration = std | 30 | 0.8412 | +0.013 | In line with all rows |
| Highway mpg = q3 | 9 | -3.6247 | -4.453 | Too few rows to judge |
| Engine type = dohc | 3 | -2.6821 | -3.511 | Too 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.
| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
|---|---|---|---|---|---|
| Engine horsepower | City mpg, Compression ratio, Engine size, Peak rpm, Width | 3.884 | 41 | 5 | 12.2 % |
| Count | From | To |
|---|---|---|
| 0 | 0 | 0.158 |
| 0 | 0.158 | 0.316 |
| 0 | 0.316 | 0.474 |
| 2 | 0.474 | 0.632 |
| 3 | 0.632 | 0.79 |
| 2 | 0.79 | 0.948 |
| 1 | 0.948 | 1.106 |
| 0 | 1.106 | 1.264 |
| 3 | 1.264 | 1.423 |
| 5 | 1.423 | 1.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
| Bias max abs residual mean | Column | Groups | Interpretation | N groups | N proxies | Prediction parity ratio | Verdict |
|---|---|---|---|---|---|---|---|
| 9.984 | Aspiration | turbo, std | Column 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. | 2 | 1 | 0.8081 | Residual bias |
| 2.531 | Body style | hatchback, wagon, sedan | Column 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. | 3 | 3 | 0.7588 | Prediction parity gap |
| 6.366 | Drive wheels | rwd, fwd | 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. | 2 | 5 | 0.759 | Parity and bias |
| 7.186 | Engine type | dohc, l, ohc, ohcf | Column 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. | 4 | 5 | 0.4968 | Parity and bias |
| 4.461 | Fuel system | idi, mpfi, 2bbl, 1bbl | Column 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. | 4 | 5 | 0.5852 | Parity and bias |
| 4.461 | Fuel type | diesel, gas | Column 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. | 2 | 2 | 0.8765 | Residual 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.
| Name | Summary |
|---|---|
| Controlled experiment | Randomize the input to be acted on, then analyze again. Randomization breaks confounding, so any change in the target is attributable to the input. |
| Natural experiment | Find a setting where the input varied for reasons unrelated to the target, an instrumental variable. Variation of that kind supports causal inference. |
| Causal graph | Write out what plausibly causes what, then check whether the model's terms are consistent with the conditional independences the graph implies. |
| Control for confounders | If a third variable plausibly moves both the input and the target, stratify by it or condition on it before training again. Gaps in the Quality by Input Range chapter are a clue. |
Deployment Readiness
The analysis ran with the configuration below. The checks and the verdict of this chapter are read against it.
- Targets: 1 target:
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.
| Name | Status | Detail |
|---|---|---|
| Generalization | Pass | held-out quality holds up against training quality |
| Prediction Interval Coverage | Fail | intervals miss more rows than their level allows, largest gap 5.00 percentage points |
| Baseline Lift for Engine horsepower | Pass | beats the best baseline, R² lift 0.0545 |
| Model Constraints | Warn | some held-out predictions need caution (1 non-finite prediction) |
| Fairness | Fail | 6 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-Distribution | Warn | 12% 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.
| Item | Value |
|---|---|
| Analysis ID | 1ef07980-48b6-11f1-8087-d378640fe787 |
| Run time | 2026-10-25 11:56 UTC |
| Total rows | 205 |
| Modeled targets | Engine horsepower |
| Segment column | not available |
| Time limit | 1 h 0 min |
| Time taken | 52 min 5 s |
| Credit budget | 500 credits |
| Ufinq version | 0.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.