Analysis report
U.S. Breakfast Cereals
Data from R package MASS (CRAN), published under https://diafunc.com/licences/view-only.
- Target
- Calories
- Analyzed
- 2026-10-27 00:46 UTC
Summary
The model tracks Calories, relying most strongly on Carbo, where moving from 15.0 to 22.0 raises the model's output by about 30.6 on average, with every other input as observed. Figures from the baseline and the model stand close, both describing almost all of the pattern in Calories from the available inputs. Among inputs, Carbo, Fat, and Sugars account for nearly all of what the model tracks.
Because the model does not come out ahead of a straight line through the data, its formula brings no real improvement. The analysis drew on only 13 held-out rows, so very little is known about how well either formula captures cases outside the training set. Validate on a fresh sample before relying on the model for decisions.
Formula
Calories = 4.37 × Carbo + 10.2 × Fat + Fibre + 4.1 × SugarsHeld-out diagnostics
| Target | Quality | Error | R² | MAE | Generalization | Rows |
|---|---|---|---|---|---|---|
| Calories | 92.7 % | 4.18 % | 0.9582 | 7.07 | generalizing | 13 |
- Calories · Quality 95 % CI 1.9 % – 97.62 %
- Calories · Error 95 % CI 1.36 % – 56.21 %
- Calories · R² 95 % CI 0.4379 – 0.9864
- Calories · MAE 95 % CI 3.762 – 11.35
Concerns
WARNING data
Few rows
The data has only 65 rows. Aggregate statistics are coarse and confidence intervals wide, so input importance rankings are suggestive rather than definitive.
WARNING model
Few rows for the number of targets
Every model trains on the same 65 rows across 1 target. Quality carries wide intervals, and input rankings may change on a different sample. Read the report as suggestive.
WARNING model
Held-out residuals carry a systematic offset: the model under-predicts by 4.37 on average
Across 13 held-out rows, predictions sit 4.37 below the actual values on average, against a residual standard deviation of 9.34: the offset is 47% of the residual spread. The offset is small relative to the residual spread but consistent in direction, so individual predictions lean the same way. Account for it wherever predictions are added up or compared with a threshold, and check on the next run whether it persists.
WARNING model
The model does not beat a straight line through the data on `Calories`
The model explains 95.8% of the variation on the held-out rows, where a straight line through the data explains 97.3%: 1.5 points less. The interval of the margin includes zero: on this many held-out rows the two are not told apart. The formula adds little over the reference predictor; whether it is worth its complexity depends on the use. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Row by row the two are about level.
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-27 00:46 UTC, analysis 097cc430-48b8-11f1-8087-d378640fe787, 1 target, time budget 1 h 0 min, compute budget 500 credits, 65 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
Calories rises with Carbo, Fat, Sugars and Fibre.
- Carbo carries most of what the formula explains about Calories. Carbo accounts for 90% of what the formula explains about Calories, and Fat for 7.2%. Sugars adds 2.2% and Fibre 0.7%.
- The model's output rises with Fat, Carbo, Sugars and Fibre. One more unit of Fat goes with the model's output higher by 10.2; one more unit of Carbo by 4.37, of Sugars by 4.1, and of Fibre by 1. Each rate holds whatever the values of the other inputs.
- Protein is not in the formula for Calories. Protein has the second-strongest correlation with Calories in the table (0.71). Rows with more Protein have more Fibre (correlation 0.81), and Fibre is in the formula.
- The formula explains less of Calories than a straight line. The formula explains 95.8% of Calories; a straight line explains more, 97.3%. That was measured on 13 held-out rows. The formula typically misses Calories by 7.07.
Summary
What to do next: Is not told apart from the best baseline, R² lift -0.0147.
5 chapters, each headed by what it found.
Carbo carries most of the formula
What the formula relies on. Shares of the formula: Carbo 90%, Fat 7.2%, Sugars 2.2%.
The model's output rises with Carbo on every one of the 46 measured rows (exact derivative). The model's output rises with Fat on every one of the 46 measured rows (exact derivative). The model's output rises with Sugars on every one of the 46 measured rows (exact derivative). Moving Carbo from 15.0 to 22.0, its first and third quartile, with every other input as observed raises the model's output by 30.6 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 |
|---|---|---|---|---|---|---|---|
| Carbo | 89.9 % | 14.2468 | 4.37 | -0.91 | 1 | Rises (46 of 46 rows) | +30.59 (15 to 22) |
| Fat | 7.18 % | 1.1381 | 10.2 | -0.2422 | 1 | Rises (46 of 46 rows) | +27.2 (0 to 2.667) |
| Sugars | 2.22 % | 0.3523 | 4.1 | -0.2777 | 1 | Rises (46 of 46 rows) | +42.84 (4.478 to 14.93) |
| Fibre | 0.69 % | 0.1093 | 1 | -0.9167 | 1 | Rises (46 of 46 rows) | +5 (0 to 5) |
- Rows the search trained on, measured
- 46
- Inputs the formula does not read
- Mfr, Potassium, Protein, Shelf, Sodium, Vitamins
Read as a sum, the formula has 4 additive terms. All of them are needed to reach 100% of the variation of the model's output on the 46 rows the search trained on: the largest are 4.1 × Sugars (41%), 4.37 × Carbo (27%) and 10.2 × Fat (26%). 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
- 46
- Terms in the formula
- 4
- Notation
- 4.37 × Carbo + 10.2 × Fat + Fibre + 4.1 × Sugars
- Target
- Calories
A straight line does better here: R² 0.96 against 0.97
How well it holds. The formula explains 95.8% of Calories; a straight line explains more, 97.3%.
R² of 0.958: excellent. The model explains over 90% of the variation; predictions are reliable across the range of the data. Mean absolute error is 7.07 on the target's scale.
- Error
- 4.18 % (95 % CI 1.36 % – 56.21 %)
- MAE
- 7.07 (95 % CI 3.762 – 11.35)
- N
- 13
- Training rows
- 52
- Quality
- 92.7 % (95 % CI 1.9 % – 97.62 %)
- R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Target
- Calories
The model does not beat the simple yardsticks: a straight line through the data is ahead by 1.5 points of variance explained on the held-out rows. The model's complexity is not buying anything yet. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Of the 13 held-out rows where the two differ, the model is closer on 54% (95% interval 29% to 77%). The interval of the margin includes zero: on this many held-out rows the two are not told apart.
- Best yardstick's score
- 0.9729 (95 % CI 0.5893 – 0.9915)
- Best baseline R²
- 0.9729
- Effect size d
- -0.141 (95 % CI -0.6509 – 0.5386)
- Effect size d magnitude
- negligible
- Margin over the best yardstick
- -0.01471 (95 % CI -0.1863 – 0.01547)
- Margin's interval stays above zero
- No
- Model MAE
- 7.07 (95 % CI 3.762 – 11.35)
- Model
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Model R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Held-out rows
- 13
- Held-out rows without an answer
- 0
- Target
- Calories
- Rows where the model is closer
- 53.85 % (95 % CI 29.14 % – 76.79 %)
- Rows compared
- 13
- Rows level
- 0
- Regression yardstick trained with gaps filled (too few complete rows)
- No
- Training rows of the regression yardstick
- 52
The model explains held-out rows about as well as training rows (held-out R² 0.958, gap between training and held-out R² -0.0053): it generalizes. The structure the formula encodes carries from the training rows to the held-out rows.
- Generalization gap
- -0.005303
- N test
- 13
- Target
- Calories
- Test error
- 7.07 (95 % CI 3.762 – 11.35)
- Test R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Train error
- 0.02372
- Train R²
- 0.9529
- Verdict
- Generalizing
No range of its inputs where it is markedly weaker
Where it is weak. The largest miss on a held-out row is 26.8 (recorded 110, predicted 83.2).
Segment carbo in the second quarter (15.3 to 17.5) has only 3 held-out rows, too few to assess quality, so the verdict is suppressed.
| Segment | Rows | R² | Gap to all rows | Verdict |
|---|---|---|---|---|
| Carbo = q2 | 3 | -0.3016 | -1.2598 | Too few rows to judge |
| Protein = q4 | 4 | 0.9497 | -0.0084 | Too few rows to judge |
| Sodium = q2 | 3 | Too few rows to judge | ||
| Fibre = q3 | 4 | 0.9623 | +0.0042 | Too few rows to judge |
| Mfr = K | 4 | -0.9052 | -1.8634 | Too few rows to judge |
| Shelf = q2 | 5 | 0.5514 | -0.4067 | Too few rows to judge |
| Potassium = q2 | 5 | 0.5906 | -0.3676 | Too few rows to judge |
| Vitamins = enriched | 11 | 0.9560 | -0.0022 | Too few rows to judge |
| Fat = q2 | 5 | -0.9053 | -1.8635 | Too few rows to judge |
| Potassium = q3 | 3 | 0.9627 | +0.0045 | Too few rows to judge |
The first 10 rows of 24. The other 14 are in the notebook.
- Aggregate MAE
- 7.07
- Aggregate R²
- 0.9582
- Measure
- r2
- Target
- Calories
The worst held-out row was missed by 26.8 (target's scale). The 10 rows with the largest absolute residuals out of 13 held-out rows are shown. Each card breaks the failure down into per-term contributions and input values, so the failure mode is inspectable. A large residual with one concentrated term contribution means one term got this row wrong; a large residual with balanced contributions means a structural mismatch.
| Actual | Predicted | Residual | Carbo | Fat | Fibre | Sugars |
|---|---|---|---|---|---|---|
| 110.0 | 83.2 | +26.8 | 16 | 0 | 1 | 3 |
| 260.0 | 243.8 | +16.2 | 27 | 4 | 3 | 20 |
| 146.7 | 137.3 | +9.4 | 15.33 | 1.333 | 2 | 13.33 |
| 125.0 | 116.1 | +8.9 | 17.5 | 0 | 3.75 | 8.75 |
| 88.0 | 80.6 | +7.4 | 13.6 | 1.6 | 1.6 | 0.8 |
| 110.0 | 116.2 | -6.2 | 13 | 1 | 0 | 12 |
| 110.0 | 114.3 | -4.3 | 21 | 1 | 0 | 3 |
| 220.0 | 215.8 | +4.2 | 26 | 4 | 4 | 14 |
| 146.7 | 150.2 | -3.5 | 20 | 1.333 | 0 | 12 |
| 110.0 | 111.8 | -1.8 | 12 | 1 | 0 | 12 |
- Additive
- Yes
- N extrapolated
- 0
- Held-out rows
- 13
- Held-out rows for the interval
- 13
- Residual P5
- -5.046
- Residual P95
- 20.44
- Residual std
- 9.34
0 of 13 held-out rows (0%) lie further from the training rows than 99 in 100 rows like them would, measured on the 4 inputs the model reads (carbo, fat, fibre, sugars). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.
| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
|---|---|---|---|---|---|
| Calories | Carbo, Fat, Fibre, Sugars | 3.644 | 13 | 0 | 0 % |
| Count | From | To |
|---|---|---|
| 0 | 0 | 0.146 |
| 0 | 0.146 | 0.291 |
| 0 | 0.291 | 0.437 |
| 0 | 0.437 | 0.583 |
| 1 | 0.583 | 0.729 |
| 1 | 0.729 | 0.874 |
| 1 | 0.874 | 1.02 |
| 1 | 1.02 | 1.166 |
| 1 | 1.166 | 1.312 |
| 0 | 1.312 | 1.457 |
The first 10 rows of 24. The other 14 are in the notebook.
Usable with care: 2 points to watch
What to watch. First: Few rows.
| Severity | Section | Concern | Detail |
|---|---|---|---|
| Warning | Data | Few rows | The data has only 65 rows. Aggregate statistics are coarse and confidence intervals wide, so input importance rankings are suggestive rather than definitive. |
| Warning | Model | Few rows for the number of targets | Every model trains on the same 65 rows across 1 target. Quality carries wide intervals, and input rankings may change on a different sample. Read the report as suggestive. |
| Warning | Model | Held-out residuals carry a systematic offset: the model under-predicts by 4.37 on average | Across 13 held-out rows, predictions sit 4.37 below the actual values on average, against a residual standard deviation of 9.34: the offset is 47% of the residual spread. The offset is small relative to the residual spread but consistent in direction, so individual predictions lean the same way. Account for it wherever predictions are added up or compared with a threshold, and check on the next run whether it persists. |
| Warning | Model | The model does not beat a straight line through the data on Calories | The model explains 95.8% of the variation on the held-out rows, where a straight line through the data explains 97.3%: 1.5 points less. The interval of the margin includes zero: on this many held-out rows the two are not told apart. The formula adds little over the reference predictor; whether it is worth its complexity depends on the use. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Row by row the two are about level. |
The analysis ran with the configuration below. The checks and the verdict of this chapter are read against it.
- Targets: 1 target:
calories - Rows: 65 rows, a small sample; input rankings are suggestive
- Per-Segment Predictions: not produced, because no segment column was chosen
- Fairness: compared across 2 categorical columns (
mfr,vitamins); 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 (4 pass, 2 warn, 0 fail), the model passes the hard gates but at least one check warns: Usable with care. A limited audience and monitoring of the warning signals come before a broad rollout.
| Name | Status | Detail |
|---|---|---|
| Generalization | Pass | held-out quality holds up against training quality |
| Prediction Interval Coverage | Pass | coverage matches the interval level, largest gap 11.5 percentage points |
| Baseline Lift for Calories | Warn | is not told apart from the best baseline, R² lift -0.0147 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Warn | 1 column compared, 1 flagged: Mfr (a group both receives smaller predictions and is systematically mis-predicted) |
| Out-of-Distribution | Pass | 0% of held-out rows are out of distribution |
- N critical concerns
- 0
- N fail
- 0
- N pass
- 4
- N warn
- 2
- Overall verdict
- Caution
Column Mfr splits the held-out rows into 2 groups. The prediction-parity ratio is 0.685 (smallest over largest mean prediction), the largest absolute group residual mean is 8.50 (0.91 times the overall residual standard deviation). Parity gap and residual bias: the model both predicts systematically lower for some groups and errs systematically against at least one group. This is the worst-case fairness signal on this column; review before deployment.
- Aggregate residual std
- 9.34
- N columns
- 1
- N proxies
- 0
- Proxy threshold
- 0.5
| Bias max abs residual mean | Column | Groups | Interpretation | N groups | Prediction parity ratio | Verdict |
|---|---|---|---|---|---|---|
| 8.502 | Mfr | K, G | Column Mfr splits the held-out rows into 2 groups. The prediction-parity ratio is 0.685 (smallest over largest mean prediction), the largest absolute group residual mean is 8.50 (0.91 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. | 2 | 0.6854 | Parity and bias |
A larger held-out set would firm up the figures
What to collect next. The figures rest on 13 held-out rows.
- Collect more rows, especially to increase the number of held-out rows for Calories. Reason: the analysis flagged few rows and few rows for the number of targets, with only 13 held-out rows and warnings about limited data.
- Add more rows where Mfr carries each of its values. Reason: the diagnostics flagged parity and bias for Mfr, indicating a fairness concern across its two groups.
- Inspect the model's predictions for Calories where the model under-predicts by 4.37 on average on held-out rows. Reason: the diagnostics flagged a systematic offset in held-out residuals for Calories.
- Inspect the formula for Calories and consider alternative modeling approaches. Reason: the diagnostics flagged that the model does not beat a straight line through the data on Calories, with a margin of -1.5 points in variance explained.
Evidence
Every chapter of the analysis in full: the figures the story rests on, and everything else the analysis measured.
Headline
Diafunc modeled Calories from 10 columns, using 4. The model explains 95.8% of the variation in Calories and relies most on Carbo, with which the model's output rises.
- One target was modeled; 13 rows were held out for checking.
- A straight line through the data already explained 97.3%; the model did not beat this baseline, with a margin of -1.5 points of variance explained.
- The model does not beat a straight line through the data on Calories, and 13 rows were held out.
- Best R²
- 0.9582
- Best quality
- 92.7 %
- Best target
- calories
- Targets
- 1
Concerns
| Severity | Section | Concern | Detail |
|---|---|---|---|
| Warning | Data | Few rows | The data has only 65 rows. Aggregate statistics are coarse and confidence intervals wide, so input importance rankings are suggestive rather than definitive. |
| Warning | Model | Few rows for the number of targets | Every model trains on the same 65 rows across 1 target. Quality carries wide intervals, and input rankings may change on a different sample. Read the report as suggestive. |
| Warning | Model | Held-out residuals carry a systematic offset: the model under-predicts by 4.37 on average | Across 13 held-out rows, predictions sit 4.37 below the actual values on average, against a residual standard deviation of 9.34: the offset is 47% of the residual spread. The offset is small relative to the residual spread but consistent in direction, so individual predictions lean the same way. Account for it wherever predictions are added up or compared with a threshold, and check on the next run whether it persists. |
| Warning | Model | The model does not beat a straight line through the data on Calories | The model explains 95.8% of the variation on the held-out rows, where a straight line through the data explains 97.3%: 1.5 points less. The interval of the margin includes zero: on this many held-out rows the two are not told apart. The formula adds little over the reference predictor; whether it is worth its complexity depends on the use. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Row by row the two are about level. |
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 |
|---|---|---|---|---|
| Calories | Calories = 4.37 × Carbo + 10.2 × Fat + Fibre + 4.1 × Sugars | 92.7 % | 12.3 % | 4.18 % |
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
Predictions for calories rely most on carbo, which takes ninety percent of the model's reliance on inputs. The model's output under-predicts by 4.37 on average, and did not outperform a straight line through the data for this target. Concerns were raised in the Concerns chapter.
Most notable in the Model section:
Carbocarries most of the model (90% of its reliance on inputs)- Held-out errors lean one way: the model under-predicts by 4.37 on average, about 0.468 standard deviations
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.
Calories
The Model section builds one model for Calories: 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.
Calories Model
The model's output rises with Carbo, the strongest input, as well as with Fat and Sugars. The model also relies on Fibre, with the output rising as Fibre increases.
Calories = 4.37 × Carbo + 10.2 × Fat + Fibre + 4.1 × Sugars| Value | 95% interval, given this formula | Role | Input | Unit |
|---|---|---|---|---|
| 4.37 | 4.226 to 4.54 | Slope | Carbo | Output units per unit of Carbo |
| 10.2 | 8.808 to 11.67 | Slope | Fat | Output units per unit of Fat |
| 4.1 | 3.807 to 4.339 | Slope | Sugars | Output units per unit of Sugars |
- Share of the output's variation they carry
- 100 %
- Rows the search trained on, measured
- 46
- Rows the search trained on
- 46
- Held out R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Constants in the formula
- 3
- Terms that reach 95% of the output's variation
- 4
- Training rows
- 52
- Held-out rows
- 13
- Inputs the formula reads
- 4
- Terms in the formula
- 4
- Inputs the formula does not read
- Mfr, Potassium, Protein, Shelf, Sodium, Vitamins
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 Calories 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.958: excellent. The model explains over 90% of the variation; predictions are reliable across the range of the data. Mean absolute error is 7.07 on the target's scale.
- Error
- 4.18 % (95 % CI 1.36 % – 56.21 %)
- MAE
- 7.07 (95 % CI 3.762 – 11.35)
- N
- 13
- Training rows
- 52
- Quality
- 92.7 % (95 % CI 1.9 % – 97.62 %)
- R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Target
- Calories
How to read this
Actual Calories 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
- 4.374 (95 % CI 0.1555 – 9.553)
- N
- 13
- P50
- 1.56 (95 % CI -1.84 – 8.9)
- P90
- 14.85 (95 % CI 6.73 – 26.78)
- P95
- 20.44 (95 % CI 8.178 – 26.78)
- P99
- 25.51 (95 % CI 8.9 – 26.78)
- Std
- 9.34 (95 % CI 4.684 – 12.78)
How to read this
How the held-out residuals (actual Calories 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 Carbo on every one of the 46 measured rows (exact derivative). The model's output rises with Fat on every one of the 46 measured rows (exact derivative). The model's output rises with Sugars on every one of the 46 measured rows (exact derivative). Moving Carbo from 15.0 to 22.0, its first and third quartile, with every other input as observed raises the model's output by 30.6 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 |
|---|---|---|---|---|---|---|---|
| Carbo | 89.9 % | 14.2468 | 4.37 | -0.91 | 1 | Rises (46 of 46 rows) | +30.59 (15 to 22) |
| Fat | 7.18 % | 1.1381 | 10.2 | -0.2422 | 1 | Rises (46 of 46 rows) | +27.2 (0 to 2.667) |
| Sugars | 2.22 % | 0.3523 | 4.1 | -0.2777 | 1 | Rises (46 of 46 rows) | +42.84 (4.478 to 14.93) |
| Fibre | 0.69 % | 0.1093 | 1 | -0.9167 | 1 | Rises (46 of 46 rows) | +5 (0 to 5) |
- Rows the search trained on, measured
- 46
- Inputs the formula does not read
- Mfr, Potassium, Protein, Shelf, Sodium, Vitamins
How to read this
The chart ranks the inputs of the Calories model by permutation importance: how much the model's error rises when that input's values are shuffled across rows so that it carries no information. A longer bar means the model relies on the input more. The order says which columns the model reads most, and those are the columns where measurement quality and data collection matter most. A short bar marks an input the model barely uses, which is a fact about this model and not a verdict on the column. Importance describes the model's reliance and nothing more: an input can rank high because it stands in for something the data does not contain. Where the search measured it, an input also carries the direction in which the model's output moves as the input rises, counted on the rows the search trained on, and the change of the output when the input alone goes from its first to its third quartile; both describe the formula inside the observed range and say nothing about causes.
Baselines
The model does not beat the simple yardsticks: a straight line through the data is ahead by 1.5 points of variance explained on the held-out rows. The model's complexity is not buying anything yet. A plain regression on the same inputs does as well or better, so the inputs do carry signal; the search did not find a better formula in the time it had. Of the 13 held-out rows where the two differ, the model is closer on 54% (95% interval 29% to 77%). The interval of the margin includes zero: on this many held-out rows the two are not told apart.
- Best yardstick's score
- 0.9729 (95 % CI 0.5893 – 0.9915)
- Best baseline R²
- 0.9729
- Effect size d
- -0.141 (95 % CI -0.6509 – 0.5386)
- Effect size d magnitude
- negligible
- Margin over the best yardstick
- -0.01471 (95 % CI -0.1863 – 0.01547)
- Margin's interval stays above zero
- No
- Model MAE
- 7.07 (95 % CI 3.762 – 11.35)
- Model
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Model R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Held-out rows
- 13
- Held-out rows without an answer
- 0
- Target
- Calories
- Rows where the model is closer
- 53.85 % (95 % CI 29.14 % – 76.79 %)
- Rows compared
- 13
- Rows level
- 0
- Regression yardstick trained with gaps filled (too few complete rows)
- No
- Training rows of the regression yardstick
- 52
How to read this
The table scores the model for Calories 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 Calories 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 Calories.
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.958, gap between training and held-out R² -0.0053): it generalizes. The structure the formula encodes carries from the training rows to the held-out rows.
- Generalization gap
- -0.005303
- N test
- 13
- Target
- Calories
- Test error
- 7.07 (95 % CI 3.762 – 11.35)
- Test R²
- 0.9582 (95 % CI 0.4379 – 0.9864)
- Train error
- 0.02372
- Train R²
- 0.9529
- Verdict
- Generalizing
How to read this
The chart sets the score of the Calories 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 4 additive terms. All of them are needed to reach 100% of the variation of the model's output on the 46 rows the search trained on: the largest are 4.1 × Sugars (41%), 4.37 × Carbo (27%) and 10.2 × Fat (26%). 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
- 46
- Terms in the formula
- 4
- Notation
- 4.37 × Carbo + 10.2 × Fat + Fibre + 4.1 × Sugars
- Target
- Calories
How to read this
The formula for Calories 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 Calories 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 carbo, fat, fibre, sugars: predictions there are not supported by the formula's shape. Extrapolate with caution.
- Bounded at infinity
- No
- Rows the search trained on, measured
- 46
- Inputs the formula reads
- 4
- N singularities
- 0
- Risky inputs
- carbo, fat, fibre, sugars
- Target
- Calories
| Input | Kind |
|---|---|
| Carbo | Negative infinity |
| Fat | Negative infinity |
| Fibre | Negative infinity |
| Sugars | Negative infinity |
| Input | Kind |
|---|---|
| Carbo | Positive infinity |
| Fat | Positive infinity |
| Fibre | Positive infinity |
| Sugars | Positive infinity |
How to read this
The formula for Calories 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 Calories. 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.958. 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.9582
- Held-out rows
- 13
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 Calories, 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 |
|---|---|
| Carbo | 18.29 |
| Fat | 1.235 |
| Fibre | 2.667 |
| Sugars | 12 |
| Term 1 adds | 79.92 |
| Term 2 adds | 12.6 |
| Term 3 adds | 2.667 |
| Term 4 adds | 49.2 |
| Prediction | 144.4 |
- Additive
- Yes
- Held-out rows for the interval
- 13
- Terms in the formula
- 4
- Residual P5
- -5.046
- Residual P95
- 20.44
- Residual std
- 9.34
How to read this
The chapter shows the model's prediction for Calories 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 4 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
- 4
How to read this
For each input, the chart traces the rate at which the predicted Calories 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
Carbo, fat, fibre and sugars enter linearly. No term reads two inputs, so the grid below renders empty; each input's contribution can be read independently in the chapter "How each term responds to its inputs".
- Additive
- Yes
- Inputs in different terms act separately
- Yes
- Rows the search trained on, measured
- 46
- Inputs the formula is linear in
- Carbo, Fat, Fibre, Sugars
- Terms in the formula
- 4
- 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 Calories 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 26.8 (target's scale). The 10 rows with the largest absolute residuals out of 13 held-out rows are shown. Each card breaks the failure down into per-term contributions and input values, so the failure mode is inspectable. A large residual with one concentrated term contribution means one term got this row wrong; a large residual with balanced contributions means a structural mismatch.
| Actual | Predicted | Residual | Carbo | Fat | Fibre | Sugars |
|---|---|---|---|---|---|---|
| 110.0 | 83.2 | +26.8 | 16 | 0 | 1 | 3 |
| 260.0 | 243.8 | +16.2 | 27 | 4 | 3 | 20 |
| 146.7 | 137.3 | +9.4 | 15.33 | 1.333 | 2 | 13.33 |
| 125.0 | 116.1 | +8.9 | 17.5 | 0 | 3.75 | 8.75 |
| 88.0 | 80.6 | +7.4 | 13.6 | 1.6 | 1.6 | 0.8 |
| 110.0 | 116.2 | -6.2 | 13 | 1 | 0 | 12 |
| 110.0 | 114.3 | -4.3 | 21 | 1 | 0 | 3 |
| 220.0 | 215.8 | +4.2 | 26 | 4 | 4 | 14 |
| 146.7 | 150.2 | -3.5 | 20 | 1.333 | 0 | 12 |
| 110.0 | 111.8 | -1.8 | 12 | 1 | 0 | 12 |
- Additive
- Yes
- N extrapolated
- 0
- Held-out rows
- 13
- Held-out rows for the interval
- 13
- Residual P5
- -5.046
- Residual P95
- 20.44
- Residual std
- 9.34
How to read this
The held-out rows on which the model misses Calories 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 13 held-out rows, the 95% prediction interval actually covers 92.3% of the rows, within 11.5 percentage points of the promise across every level reported. The per-row prediction interval can be trusted at face value.
| Nominal level | Half-width | Empirical coverage |
|---|---|---|
| 50 % | 6.3 | 61.54 % |
| 80 % | 11.97 | 84.62 % |
| 90 % | 15.36 | 84.62 % |
| 95 % | 18.31 | 92.31 % |
- Largest miss (percentage points)
- 11.54
- Held-out rows
- 13
- Residual P2.5
- -5.628
- Residual P97.5
- 23.61
- Verdict
- well-calibrated
How to read this
Each held-out prediction of Calories 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
13 held-out residuals, with a spread up to 26.8 in absolute terms. Mean residual is 4.37, 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.09524
- Bias
- 4.374
- Bias over residual sd
- 0.4683
- Held-out rows
- 13
- Order
- shuffled
- Residual sd
- 9.34
- Share within normal band
- 0.9231
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 Calories, 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 215 generations, ending at quality 0.956 (gain +0.956 from generation 2). The curve shows a substantial climb. The last improvement came after 95.7% of the search time: the search was still improving when it stopped, so a longer time limit is likely to find a better model.
- First generation
- 2
- First quality
- 0 %
- Last generation
- 216
- Last improvement ms
- 3,005,580
- Last quality
- 95.56 %
- Max quality
- 95.56 %
- N points
- 200
- N total generations
- 215
- Search time ms
- 3,140,727
- Stop reason
- Out of budget
How to read this
The line traces the best quality the search for the Calories 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 13 held-out predictions, the formula is mathematically well-behaved: every output is finite, stays inside the training-target ±2σ band, and no prediction runs away beyond the bounded-prediction limit. It is safe to consume downstream at face value.
| Name | Status | Detail |
|---|---|---|
| Output coherent | Pass | no non-finite predictions across 13 rows |
| Within domain | Pass | no rows outside the training target's ±2σ range across 13 rows |
| Bounded predictions | Pass | no runaway predictions beyond ±10σ across 13 rows |
- Held-out rows
- 13
- N non finite
- 0
- N outside domain
- 0
- N runaway
- 0
- Verdict
- Clean
How to read this
Sanity checks on the Calories 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)
- 4.381
- RMSE of a straight line through the inputs (same rows)
- 5.547
- Training MAE (rows the search trained on)
- 4.671
- MAE of always predicting the mean (same rows)
- 31.92
- RMSE of always predicting the mean (same rows)
- 40.36
- Training R² (rows the search trained on)
- 0.9763
- Training RMSE (rows the search trained on)
- 6.215
- Rows the search trained on, measured
- 46
- Error
- 2.37 %
- Inputs the straight line used
- 8
- N train
- 52
- Quality
- 95.55 %
How to read this
The function below trains the model for Calories on the processed data. Its output is the model that every other chapter of this section scores and dissects.
Findings
2 findings from the model diagnostics (2 Warning) are listed in the Concerns chapter at the top of the analysis.
Data
These findings describe strong connections between several nutrient measures, especially fibre, potassium and protein, which often move together and may carry overlapping information. Outliers are present in seven of nine assessed columns, with sodium showing the worst case at 10.8%. One or more issues were flagged; see the Concerns chapter for details.
Most notable in the Data section:
Fibrecorrelates 0.964 withPotassiumbut carries only 0.7% of the model's reliance: another input likely carries the same informationFibreandPotassiummove together (correlation 0.964)Sugarscorrelates 0.495 withPotassiumbut carries only 2.2% of the model's reliance: another input likely carries the same information
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 11 columns across 65 rows (9 numeric, 2 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 7 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Calories | Target | number | 65 | 0 | 149.4 | 62.4 | 50.0 | 110.0 | 134.3 | 179.1 | 440.0 | 2.295 | 0.4177 |
| Carbo | Input | number | 65 | 0 | 19.97 | 8.47 | 10.53 | 15.00 | 18.67 | 22.39 | 68.00 | 3.096 | 0.4241 |
| Fat | Input | number | 65 | 0 | 1.423 | 1.647 | 0.000 | 0.000 | 1.000 | 2.000 | 9.091 | 2.094 | 1.158 |
| Fibre | Input | number | 65 | 0 | 3.871 | 6.133 | 0.000 | 0.000 | 2.000 | 4.478 | 30.303 | 3.148 | 1.585 |
| Mfr | Input | text | 65 | 0 | |||||||||
| Potassium | Input | number | 65 | 0 | 159.1 | 180.3 | 15.0 | 45.0 | 96.6 | 220.0 | 969.7 | 2.688 | 1.133 |
| Protein | Input | number | 65 | 0 | 3.684 | 2.643 | 0.752 | 2.000 | 3.000 | 4.478 | 12.121 | 1.643 | 0.7174 |
| Shelf | Input | integer | 65 | 0 | 2.169 | 0.840 | 1 | 1 | 2 | 3 | 3 | -0.3329 | 0.3871 |
| Sodium | Input | number | 65 | 0 | 237.8 | 130.6 | 0.0 | 180.0 | 232.0 | 290.0 | 787.9 | 1.312 | 0.5492 |
| Sugars | Input | number | 65 | 0 | 10.05 | 5.84 | 0.00 | 4.00 | 12.00 | 14.00 | 20.90 | -0.2205 | 0.5806 |
The first 10 rows of 11. The other 1 is in the notebook.
- N columns
- 11
- N high missing
- 0
- N rows
- 65
- N strongly skewed
- 7
- Table branch
- main
- Table ID
- 13873111-9ce4-4aa1-930b-f8b279975da5
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.
Calories
Calories: 50 to 440, median 134, skewed to high values, 28 distinct values; moves with Carbo most (r 0.789).
How to read this
A column chapter profiles one column: its distribution in figures and charts, and how it relates to the other columns. It opens with one line on what the column holds. The Description chapter carries its figures, with every other column summarized for each of its values where it has few, and its association with every other column where it is numeric. The Visualization chapter carries its charts. A table with a date column adds an Over Time and a Time Series chapter; a target with classes adds a Class Balance chapter.
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 28 |
| Continuous | yes |
| Decimal places | 5 |
| Minimum | 50 |
| Maximum | 440 |
| Mean | 149.4 |
| Median | 134.3 |
| Mode | 110.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 100 | 110 | 110 | 110 | 123 | 134.3 | 146.7 | 160 | 179.1 | 179.3 | 212.1 |
How to read this
The figures below summarize Calories 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 Calories 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
| Calories | Rows | Sodium | Carbo | Sugars | Potassium | Protein | Fat | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 50.0 | 1 | 0 | 13 | 0 | 15 | 1 | 0 | 0 | 3 |
| 73.33333 | 1 | 173.3 | 14 | 2 | 26.67 | 1.333 | 0.6667 | 0 | 2 |
| 82.70677 | 1 | 135.3 | 10.53 | 8.271 | 26.32 | 0.7519 | 0 | 0 | |
| 88.0 | 1 | 232 | 13.6 | 0.8 | 84 | 4.8 | 1.6 | 1.6 | |
| 97.34513 | 1 | 212.4 | 20.35 | 1.77 | 26.55 | 0.885 | 0 | 0 | |
| 100.0 | 6 | 251.7 | 17.5 | 2.833 | 175 | 3.5 | 0.5 | 6.333 | 2 |
| 110.0 | 12 | 186.7 | 15.5 | 8.667 | 38.33 | 2 | 0.5 | 0.4167 | 1.917 |
| 113.63636 | 2 | 105.1 | 14.77 | 11.36 | 71.02 | 2.841 | 0.5682 | 1.705 | 2 |
| 120.0 | 1 | 220 | 12 | 11 | 45 | 1 | 2 | 1 | 2 |
| 125.0 | 1 | 0 | 17.5 | 8.75 | 125 | 3.75 | 0 | 3.75 | 2 |
The first 10 rows of 28. The other 18 are in the notebook.
How to read this
The rows are grouped by the value of Calories, 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 Calories; 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.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Carbo | two numbers | 0.7887 | 0.7887 | 0.6746 to 0.866 | 0.5701 | 0.4206 | < 0.001 | 65 |
| Protein | two numbers | 0.706 | 0.706 | 0.5582 to 0.8104 | 0.6131 | 0.4902 | < 0.001 | 65 |
| Potassium | two numbers | 0.6895 | 0.4766 | 0.2633 to 0.6455 | 0.6895 | 0.5251 | < 0.001 | 65 |
| Sugars | two numbers | 0.6544 | 0.4953 | 0.2859 to 0.6595 | 0.6544 | 0.4962 | < 0.001 | 65 |
| Fat | two numbers | 0.6498 | 0.5902 | 0.4045 to 0.7291 | 0.6498 | 0.5448 | < 0.001 | 65 |
| Fibre | two numbers | 0.5618 | 0.3882 | 0.1594 to 0.5774 | 0.5618 | 0.4312 | 0.001745 | 65 |
| Sodium | two numbers | 0.5287 | 0.5287 | 0.3269 to 0.6843 | 0.4854 | 0.3342 | < 0.001 | 65 |
| Shelf | two numbers | 0.443 | 0.4263 | 0.2036 to 0.6071 | 0.443 | 0.3692 | < 0.001 | 65 |
| Mfr | a number and a category | 0.3215 | 0.2803 | 65 | ||||
| Vitamins | a number and a category | 0.1905 | 0.3181 | 65 |
How to read this
Each row pairs Calories 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 Calories, 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 Calories'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 Calories (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 Calories are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.08 between each value and the next), so the order carries no pattern to show.
How to read this
The charts in this chapter were chosen from the type of Calories 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.
Carbo
Carbo: 10.5 to 68, median 18.7, 40 distinct values; moves with Calories most (r 0.789).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 40 |
| Continuous | yes |
| Decimal places | 5 |
| Minimum | 10.53 |
| Maximum | 68 |
| Mean | 19.97 |
| Median | 18.67 |
| Mode | 12.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 12 | 13.92 | 15 | 15.47 | 17.03 | 18.67 | 20.57 | 21.31 | 22.39 | 24.27 | 28 |
By Value
| Carbo | Rows | Sodium | Sugars | Potassium | Protein | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 10.52632 | 1 | 135.3 | 8.271 | 26.32 | 0.7519 | 0 | 82.71 | 0 | |
| 11.0 | 2 | 125 | 13.5 | 30 | 2 | 0.5 | 110 | 1 | 2 |
| 12.0 | 5 | 170.7 | 13.8 | 54.67 | 1.533 | 1.267 | 119.3 | 0.4667 | 2 |
| 12.5 | 1 | 51.14 | 17.05 | 45.45 | 2.273 | 0 | 113.6 | 0 | |
| 13.0 | 3 | 76.67 | 8 | 20 | 1 | 0.3333 | 90 | 0.3333 | 2.333 |
| 13.6 | 1 | 232 | 0.8 | 84 | 4.8 | 1.6 | 88 | 1.6 | |
| 14.0 | 2 | 206.7 | 7.667 | 60 | 2 | 1.667 | 110 | 1 | 1.5 |
| 14.66667 | 1 | 186.7 | 13.33 | 160 | 2.667 | 1.333 | 133.3 | 2.667 | 3 |
| 15.0 | 2 | 205 | 10 | 160 | 2.5 | 1 | 120 | 3 | 2 |
| 15.15152 | 1 | 393.9 | 18.18 | 848.5 | 12.12 | 3.03 | 212.1 | 30.3 | 3 |
The first 10 rows of 40. The other 30 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Calories | two numbers | 0.7887 | 0.7887 | 0.6746 to 0.866 | 0.5701 | 0.4206 | < 0.001 | 65 |
| Protein | two numbers | 0.5471 | 0.5471 | 0.3499 to 0.6979 | 0.5121 | 0.3891 | < 0.001 | 65 |
| Potassium | two numbers | 0.4495 | 0.242 | -0.001971 to 0.4589 | 0.4495 | 0.3149 | 0.1041 | 65 |
| Sodium | two numbers | 0.4421 | 0.4236 | 0.2004 to 0.605 | 0.4421 | 0.3321 | 0.001462 | 65 |
| Fibre | two numbers | 0.3992 | 0.2031 | -0.04296 to 0.4259 | 0.3992 | 0.2919 | 0.1745 | 65 |
| Mfr | a number and a category | 0.3012 | 0.414 | 65 | ||||
| Shelf | two numbers | 0.2698 | 0.2605 | 0.01768 to 0.4742 | 0.2698 | 0.2095 | 0.09032 | 65 |
| Fat | two numbers | 0.1829 | 0.1829 | -0.0639 to 0.4085 | 0.1608 | 0.1272 | 0.2069 | 65 |
| Sugars | two numbers | 0.1248 | -0.04083 | -0.2819 to 0.2051 | -0.1248 | -0.06553 | 0.7468 | 65 |
| Vitamins | a number and a category | 0.09867 | 0.7468 | 65 |
Visualization
The rows of Carbo 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.
Fat
Fat: 0 to 9.09, median 1, skewed to high values, 14 distinct values; moves with Calories most (r 0.59).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 14 |
| Continuous | yes |
| Decimal places | 7 |
| Minimum | 0 |
| Maximum | 9.091 |
| Mean | 1.423 |
| Median | 1 |
| Mode | 0.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 1.333 | 1.493 | 2 | 2.667 | 3.03 |
By Value
Fat accounts for 16% of the spread in Calories: 4 averages 100 above 1 (95% interval 34.9 to 165). An association, not a cause.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Calories | 4 | 4 | 210 | 143.8 to 276.2 |
| Calories | 2.9850746 | 4 | 194 | 132.7 to 255.4 |
| Calories | 1.4925373 | 4 | 160.4 | 124.8 to 196.1 |
| Calories | 2.6666667 | 3 | 160 | 126.9 to 193.1 |
| Calories | 1.3333333 | 9 | 151.1 | 139.7 to 162.6 |
| Calories | 0 | 22 | 132.3 | 99.31 to 165.3 |
| Calories | 1 | 10 | 110 | 101.7 to 118.3 |
| Fat | Rows | Sodium | Carbo | Sugars | Potassium | Protein | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 0.0 | 22 | 199.8 | 21.59 | 6.797 | 129.5 | 3.39 | 132.3 | 3.718 | 1.955 |
| 0.6666667 | 1 | 173.3 | 14 | 2 | 26.67 | 1.333 | 73.33 | 0 | 2 |
| 1.0 | 10 | 181.5 | 14.4 | 9.2 | 80.5 | 2 | 110 | 1.3 | 2.1 |
| 1.1363636 | 1 | 159.1 | 17.05 | 5.682 | 96.59 | 3.409 | 113.6 | 3.409 | 3 |
| 1.3333333 | 9 | 252.6 | 19.33 | 13.04 | 114.8 | 2.815 | 151.1 | 1.852 | 2.111 |
| 1.4925373 | 4 | 306 | 21.64 | 11.94 | 201.5 | 3.731 | 160.4 | 4.851 | 1.75 |
| 1.6 | 1 | 232 | 13.6 | 0.8 | 84 | 4.8 | 88 | 1.6 | |
| 2.0 | 2 | 245 | 20 | 11.5 | 132.5 | 4.5 | 160 | 2.5 | 2.5 |
| 2.6666667 | 3 | 271.1 | 18 | 13.33 | 91.11 | 2.667 | 160 | 1.556 | 2 |
| 2.9850746 | 4 | 253.7 | 23.13 | 13.43 | 218.3 | 4.851 | 194 | 4.851 | 2.75 |
The first 10 rows of 14. The other 4 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Calories | two numbers | 0.6498 | 0.5902 | 0.4045 to 0.7291 | 0.6498 | 0.5448 | < 0.001 | 65 |
| Sugars | two numbers | 0.4933 | 0.4157 | 0.1912 to 0.5989 | 0.4933 | 0.3748 | 0.002219 | 65 |
| Potassium | two numbers | 0.453 | 0.3233 | 0.08617 to 0.5257 | 0.453 | 0.3643 | 0.01724 | 65 |
| Protein | two numbers | 0.4113 | 0.4113 | 0.186 to 0.5954 | 0.3827 | 0.3195 | 0.002219 | 65 |
| Sodium | two numbers | 0.3865 | 0.2596 | 0.01672 to 0.4735 | 0.3865 | 0.2985 | 0.06133 | 65 |
| Shelf | two numbers | 0.3257 | 0.3257 | 0.08885 to 0.5277 | 0.2754 | 0.2362 | 0.01724 | 65 |
| Fibre | two numbers | 0.2987 | 0.2261 | -0.01887 to 0.4454 | 0.2987 | 0.2371 | 0.1002 | 65 |
| Mfr | a number and a category | 0.2694 | 0.4724 | 65 | ||||
| Vitamins | a number and a category | 0.2211 | 0.2351 | 65 | ||||
| Carbo | two numbers | 0.1829 | 0.1829 | -0.0639 to 0.4085 | 0.1608 | 0.1272 | 0.1811 | 65 |
Visualization
The rows of Fat 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.
Fibre
Fibre: 0 to 30.3, median 2, skewed to high values, 23 distinct values; moves with Potassium most (r 0.964).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 23 |
| Continuous | yes |
| Decimal places | 6 |
| Minimum | 0 |
| Maximum | 30.3 |
| Mean | 3.871 |
| Median | 2 |
| Mode | 0.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1.2 | 2 | 3 | 4 | 4.478 | 5.194 | 7.785 |
By Value
| Fibre | Rows | Sodium | Carbo | Sugars | Potassium | Protein | Fat | Calories | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 0.0 | 18 | 209.2 | 16.97 | 8.973 | 43.04 | 1.568 | 0.9903 | 118.1 | 1.889 |
| 1.0 | 8 | 202.5 | 15.63 | 7.625 | 36.25 | 2.375 | 0.375 | 108.8 | 2 |
| 1.333333 | 4 | 220 | 19 | 13 | 68.33 | 2.333 | 0.6667 | 143.3 | 1.75 |
| 1.6 | 1 | 232 | 13.6 | 0.8 | 84 | 4.8 | 1.6 | 88 | |
| 2.0 | 3 | 264.4 | 14.78 | 10.89 | 101.1 | 2.889 | 1.667 | 131.1 | |
| 2.666667 | 3 | 231.1 | 21.78 | 12 | 140 | 3.556 | 1.778 | 164.4 | 3 |
| 2.985075 | 1 | 223.9 | 17.91 | 8.955 | 141.8 | 5.97 | 2.985 | 149.3 | 2 |
| 3.0 | 3 | 246.7 | 20 | 8.667 | 153.3 | 4 | 2 | 153.3 | 2.333 |
| 3.409091 | 1 | 159.1 | 17.05 | 5.682 | 96.59 | 3.409 | 1.136 | 113.6 | 3 |
| 3.75 | 1 | 0 | 17.5 | 8.75 | 125 | 3.75 | 0 | 125 | 2 |
The first 10 rows of 23. The other 13 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Potassium | two numbers | 0.9639 | 0.9639 | 0.9412 to 0.9779 | 0.9044 | 0.7648 | < 0.001 | 65 |
| Protein | two numbers | 0.8435 | 0.8096 | 0.7049 to 0.8798 | 0.8435 | 0.6961 | < 0.001 | 65 |
| Calories | two numbers | 0.5618 | 0.3882 | 0.1594 to 0.5774 | 0.5618 | 0.4312 | 0.00349 | 65 |
| Sodium | two numbers | 0.4955 | 0.4955 | 0.2862 to 0.6597 | 0.3197 | 0.2309 | < 0.001 | 65 |
| Mfr | a number and a category | 0.4463 | 0.03281 | 65 | ||||
| Shelf | two numbers | 0.4076 | 0.3578 | 0.1248 to 0.5534 | 0.4076 | 0.3165 | 0.006853 | 65 |
| Carbo | two numbers | 0.3992 | 0.2031 | -0.04296 to 0.4259 | 0.3992 | 0.2919 | 0.1309 | 65 |
| Fat | two numbers | 0.2987 | 0.2261 | -0.01887 to 0.4454 | 0.2987 | 0.2371 | 0.1002 | 65 |
| Sugars | two numbers | 0.2166 | 0.1489 | -0.09857 to 0.3791 | 0.2166 | 0.1567 | 0.2627 | 65 |
| Vitamins | a number and a category | 0.08465 | 0.8002 | 65 |
Visualization
The rows of Fibre 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.
Mfr
Mfr: 6 distinct values, most often G.
Description
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 65 |
| Distinct values | 6 |
| Continuous | no |
| Mode | G |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Mfr | G | 22 | 33.85 % |
| Mfr | K | 21 | 32.31 % |
| Mfr | P | 9 | 13.85 % |
| Mfr | Q | 5 | 7.692 % |
| Mfr | R | 5 | 7.692 % |
| Mfr | N | 3 | 4.615 % |
By Value
| Mfr | Rows | Sodium | Carbo | Sugars | Potassium | Protein | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|---|
| G | 22 | 240.4 | 17.69 | 10.05 | 109.2 | 2.885 | 1.785 | 137.8 | 1.648 | 2.136 |
| K | 21 | 242.8 | 19.8 | 10.8 | 185 | 3.919 | 1.023 | 149.7 | 5.069 | 2.286 |
| N | 3 | 131.3 | 24.45 | 6.061 | 412.2 | 7.025 | 1.01 | 160.3 | 13.58 | 1.667 |
| P | 9 | 253.7 | 24.28 | 12.71 | 203.9 | 4.699 | 1.782 | 194.8 | 5.376 | 2.444 |
| Q | 5 | 201.4 | 17.38 | 9.591 | 93.69 | 3.461 | 1.93 | 135.9 | 1.597 | 2.4 |
| R | 5 | 277.5 | 22.82 | 4.974 | 103.3 | 2.603 | 0.597 | 124.9 | 2.356 | 1.4 |
Potassium
Potassium: 15 to 970, median 96.6, skewed to high values, 50 distinct values; moves with Fibre most (r 0.964).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 50 |
| Continuous | yes |
| Decimal places | 5 |
| Minimum | 15 |
| Maximum | 969.7 |
| Mean | 159.1 |
| Median | 96.59 |
| Mode | 30.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 28 | 35 | 45 | 53.67 | 63 | 96.59 | 129.3 | 192.5 | 220 | 239 | 313.2 |
By Value
| Potassium | Rows | Sodium | Carbo | Sugars | Protein | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 15.0 | 1 | 0 | 13 | 0 | 1 | 0 | 50 | 0 | 3 |
| 20.0 | 1 | 90 | 13 | 12 | 1 | 0 | 110 | 1 | 2 |
| 25.0 | 2 | 210 | 17.5 | 7.5 | 1.5 | 0.5 | 110 | 0 | 1.5 |
| 26.31579 | 1 | 135.3 | 10.53 | 8.271 | 0.7519 | 0 | 82.71 | 0 | |
| 26.54867 | 1 | 212.4 | 20.35 | 1.77 | 0.885 | 0 | 97.35 | 0 | |
| 26.66667 | 1 | 173.3 | 14 | 2 | 1.333 | 0.6667 | 73.33 | 0 | 2 |
| 30.0 | 3 | 156.7 | 14.33 | 10 | 2 | 0.3333 | 110 | 1 | 2.333 |
| 33.33333 | 2 | 223.3 | 18 | 15.33 | 1.333 | 0.6667 | 146.7 | 0.6667 | 1.5 |
| 35.0 | 3 | 260 | 21.33 | 2.667 | 2 | 0.3333 | 106.7 | 0.3333 | 1.667 |
| 45.0 | 2 | 270 | 16 | 7 | 2 | 1 | 110 | 1 | 2.5 |
The first 10 rows of 50. The other 40 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Fibre | two numbers | 0.9639 | 0.9639 | 0.9412 to 0.9779 | 0.9044 | 0.7648 | < 0.001 | 65 |
| Protein | two numbers | 0.8584 | 0.8418 | 0.7523 to 0.9007 | 0.8584 | 0.7026 | < 0.001 | 65 |
| Calories | two numbers | 0.6895 | 0.4766 | 0.2633 to 0.6455 | 0.6895 | 0.5251 | < 0.001 | 65 |
| Sodium | two numbers | 0.5566 | 0.5566 | 0.3619 to 0.7049 | 0.4412 | 0.3206 | < 0.001 | 65 |
| Shelf | two numbers | 0.4808 | 0.4263 | 0.2035 to 0.607 | 0.4808 | 0.3608 | < 0.001 | 65 |
| Fat | two numbers | 0.453 | 0.3233 | 0.08617 to 0.5257 | 0.453 | 0.3643 | 0.01437 | 65 |
| Carbo | two numbers | 0.4495 | 0.242 | -0.001971 to 0.4589 | 0.4495 | 0.3149 | 0.06508 | 65 |
| Mfr | a number and a category | 0.3897 | 0.0848 | 65 | ||||
| Sugars | two numbers | 0.3289 | 0.2718 | 0.02991 to 0.4837 | 0.3289 | 0.244 | 0.0407 | 65 |
| Vitamins | a number and a category | 0.08788 | 0.7864 | 65 |
Visualization
The rows of Potassium 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.
Protein
Protein: 0.752 to 12.1, median 3, skewed to high values, 20 distinct values; moves with Potassium most (r 0.842).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 20 |
| Continuous | yes |
| Decimal places | 7 |
| Minimum | 0.7519 |
| Maximum | 12.12 |
| Mean | 3.684 |
| Median | 3 |
| Mode | 2.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1.333 | 2 | 2 | 2.667 | 3 | 4 | 4.478 | 4.478 | 4.542 | 6 |
By Value
| Protein | Rows | Sodium | Carbo | Sugars | Potassium | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 0.7518797 | 1 | 135.3 | 10.53 | 8.271 | 26.32 | 0 | 82.71 | 0 | |
| 0.8849558 | 1 | 212.4 | 20.35 | 1.77 | 26.55 | 0 | 97.35 | 0 | |
| 1.0 | 6 | 135 | 12.5 | 10.17 | 37.5 | 0.8333 | 101.7 | 0.3333 | 2.167 |
| 1.3333333 | 6 | 261.1 | 17.22 | 12.11 | 43.33 | 1.667 | 138.9 | 0.2222 | 1.833 |
| 2.0 | 9 | 214.4 | 17.33 | 6.556 | 40.56 | 0.4444 | 107.8 | 0.6667 | 1.778 |
| 2.2727273 | 1 | 51.14 | 12.5 | 17.05 | 45.45 | 0 | 113.6 | 0 | |
| 2.6666667 | 6 | 228.9 | 19 | 11.33 | 95.56 | 1.333 | 142.2 | 1.444 | 2.167 |
| 2.9850746 | 2 | 291 | 22.39 | 11.19 | 123.1 | 1.493 | 156.7 | 2.985 | 1.5 |
| 3.0 | 4 | 227.5 | 17 | 5.75 | 123.8 | 0.75 | 110 | 2.75 | 2.5 |
| 3.4090909 | 1 | 159.1 | 17.05 | 5.682 | 96.59 | 1.136 | 113.6 | 3.409 | 3 |
The first 10 rows of 20. The other 10 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Potassium | two numbers | 0.8584 | 0.8418 | 0.7523 to 0.9007 | 0.8584 | 0.7026 | < 0.001 | 65 |
| Fibre | two numbers | 0.8435 | 0.8096 | 0.7049 to 0.8798 | 0.8435 | 0.6961 | < 0.001 | 65 |
| Calories | two numbers | 0.706 | 0.706 | 0.5582 to 0.8104 | 0.6131 | 0.4902 | < 0.001 | 65 |
| Sodium | two numbers | 0.5727 | 0.5727 | 0.3822 to 0.7165 | 0.4262 | 0.3023 | < 0.001 | 65 |
| Carbo | two numbers | 0.5471 | 0.5471 | 0.3499 to 0.6979 | 0.5121 | 0.3891 | < 0.001 | 65 |
| Shelf | two numbers | 0.4118 | 0.3963 | 0.1687 to 0.5838 | 0.4118 | 0.3197 | 0.001546 | 65 |
| Fat | two numbers | 0.4113 | 0.4113 | 0.186 to 0.5954 | 0.3827 | 0.3195 | 0.001109 | 65 |
| Mfr | a number and a category | 0.3786 | 0.1196 | 65 | ||||
| Sugars | two numbers | 0.1848 | 0.1848 | -0.06184 to 0.4103 | 0.1625 | 0.126 | 0.1561 | 65 |
| Vitamins | a number and a category | 0.08322 | 0.8062 | 65 |
Visualization
The rows of Protein are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.01 between each value and the next), so the order carries no pattern to show.
Shelf
Shelf: 1 to 3, median 2, skewed to high values, 3 distinct values; moves with Calories most (r 0.426).
Description
| Statistic | Value |
|---|---|
| Type | integer |
| Values present | 65 |
| Distinct values | 3 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 3 |
| Mean | 2.169 |
| Median | 2 |
| Mode | 3 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 2 | 2 | 2 | 3 | 3 | 3 | 3 | 3 |
By Value
Shelf accounts for 17% of the spread in Calories: 3 averages 60.7 above 1 (95% interval 28.7 to 92.6). An association, not a cause.
| Target | Value | Rows | Average or share | 95% interval |
|---|---|---|---|---|
| Calories | 3 | 29 | 180.1 | 149.8 to 210.4 |
| Calories | 2 | 18 | 129.8 | 116.4 to 143.3 |
| Calories | 1 | 18 | 119.5 | 108.2 to 130.8 |
| Shelf | Rows | Sodium | Carbo | Sugars | Potassium | Protein | Fat | Calories | Fibre |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 18 | 216.1 | 19.18 | 6.295 | 89.18 | 2.933 | 0.6621 | 119.5 | 2.009 |
| 2 | 18 | 190 | 14.95 | 12.51 | 69.53 | 2.058 | 1.341 | 129.8 | 1.041 |
| 3 | 29 | 281 | 23.57 | 10.86 | 258.1 | 5.159 | 1.945 | 180.1 | 6.783 |
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Potassium | two numbers | 0.4808 | 0.4263 | 0.2035 to 0.607 | 0.4808 | 0.3608 | 0.001998 | 65 |
| Calories | two numbers | 0.443 | 0.4263 | 0.2036 to 0.6071 | 0.443 | 0.3692 | 0.001998 | 65 |
| Protein | two numbers | 0.4118 | 0.3963 | 0.1687 to 0.5838 | 0.4118 | 0.3197 | 0.003607 | 65 |
| Fibre | two numbers | 0.4076 | 0.3578 | 0.1248 to 0.5534 | 0.4076 | 0.3165 | 0.008567 | 65 |
| Mfr | a number and a category | 0.3319 | 0.2163 | 65 | ||||
| Fat | two numbers | 0.3257 | 0.3257 | 0.08885 to 0.5277 | 0.2754 | 0.2362 | 0.01622 | 65 |
| Vitamins | a number and a category | 0.3098 | 0.0548 | 65 | ||||
| Sugars | two numbers | 0.2901 | 0.2901 | 0.04966 to 0.4987 | 0.2625 | 0.2122 | 0.03182 | 65 |
| Carbo | two numbers | 0.2698 | 0.2605 | 0.01768 to 0.4742 | 0.2698 | 0.2095 | 0.05161 | 65 |
| Sodium | two numbers | 0.2341 | 0.2341 | -0.01037 to 0.4522 | 0.2017 | 0.1605 | 0.06722 | 65 |
Visualization
The rows of Shelf are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.24 between each value and the next), so the order carries no pattern to show.
Sodium
Sodium: 0 to 788, median 232, 41 distinct values; moves with Protein most (r 0.573).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 41 |
| Continuous | yes |
| Decimal places | 5 |
| Minimum | 0 |
| Maximum | 787.9 |
| Mean | 237.8 |
| Median | 232 |
| Mode | 280.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 91.33 | 170.5 | 180 | 192 | 220 | 232 | 274 | 280 | 290 | 298.5 | 337.3 |
By Value
| Sodium | Rows | Carbo | Sugars | Potassium | Protein | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 0.0 | 5 | 23.74 | 4.15 | 149.6 | 3.541 | 0 | 124.7 | 3.64 | 2 |
| 51.13636 | 1 | 12.5 | 17.05 | 45.45 | 2.273 | 0 | 113.6 | 0 | |
| 90.0 | 1 | 13 | 12 | 20 | 1 | 0 | 110 | 1 | 2 |
| 93.33333 | 1 | 12 | 20 | 53.33 | 2.667 | 1.333 | 146.7 | 1.333 | 2 |
| 125.0 | 2 | 11 | 13.5 | 30 | 2 | 0.5 | 110 | 1 | 2 |
| 135.33835 | 1 | 10.53 | 8.271 | 26.32 | 0.7519 | 0 | 82.71 | 0 | |
| 140.0 | 1 | 13 | 12 | 25 | 1 | 1 | 110 | 0 | 2 |
| 159.09091 | 1 | 17.05 | 5.682 | 96.59 | 3.409 | 1.136 | 113.6 | 3.409 | 3 |
| 173.33333 | 1 | 14 | 2 | 26.67 | 1.333 | 0.6667 | 73.33 | 0 | 2 |
| 180.0 | 4 | 13.33 | 13.5 | 52.08 | 1.333 | 1.083 | 119.2 | 0 | 2 |
The first 10 rows of 41. The other 31 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Protein | two numbers | 0.5727 | 0.5727 | 0.3822 to 0.7165 | 0.4262 | 0.3023 | < 0.001 | 65 |
| Potassium | two numbers | 0.5566 | 0.5566 | 0.3619 to 0.7049 | 0.4412 | 0.3206 | < 0.001 | 65 |
| Calories | two numbers | 0.5287 | 0.5287 | 0.3269 to 0.6843 | 0.4854 | 0.3342 | < 0.001 | 65 |
| Fibre | two numbers | 0.4955 | 0.4955 | 0.2862 to 0.6597 | 0.3197 | 0.2309 | < 0.001 | 65 |
| Carbo | two numbers | 0.4421 | 0.4236 | 0.2004 to 0.605 | 0.4421 | 0.3321 | < 0.001 | 65 |
| Vitamins | a number and a category | 0.4066 | 0.006151 | 65 | ||||
| Fat | two numbers | 0.3865 | 0.2596 | 0.01672 to 0.4735 | 0.3865 | 0.2985 | 0.05257 | 65 |
| Shelf | two numbers | 0.2341 | 0.2341 | -0.01037 to 0.4522 | 0.2017 | 0.1605 | 0.07562 | 65 |
| Mfr | a number and a category | 0.2171 | 0.7124 | 65 | ||||
| Sugars | two numbers | 0.2112 | 0.2112 | -0.03443 to 0.4328 | 0.1902 | 0.1381 | 0.1013 | 65 |
Visualization
The rows of Sodium are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.15 between each value and the next), so the order carries no pattern to show.
Sugars
Sugars: 0 to 20.9, median 12, skewed to low values, 33 distinct values; moves with Calories most (r 0.495).
Description
| Statistic | Value |
|---|---|
| Type | number |
| Values present | 65 |
| Distinct values | 33 |
| Continuous | yes |
| Decimal places | 6 |
| Minimum | 0 |
| Maximum | 20.9 |
| Mean | 10.05 |
| Median | 12 |
| Mode | 12.0 |
The first 10 rows of 17. The other 7 are in the notebook.
| 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 3 | 4 | 6.133 | 9.851 | 12 | 12.05 | 13.33 | 14 | 14.72 | 16.63 |
By Value
| Sugars | Rows | Sodium | Carbo | Potassium | Protein | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|
| 0.0 | 4 | 70 | 21.8 | 265.8 | 4.489 | 0 | 104.7 | 9.612 | 2 |
| 0.8 | 1 | 232 | 13.6 | 84 | 4.8 | 1.6 | 88 | 1.6 | |
| 1.769912 | 1 | 212.4 | 20.35 | 26.55 | 0.885 | 0 | 97.35 | 0 | |
| 2.0 | 2 | 231.7 | 17.5 | 30.83 | 1.667 | 0.3333 | 86.67 | 0.5 | 1.5 |
| 3.0 | 8 | 242.5 | 19.38 | 55.63 | 2.875 | 0.375 | 106.3 | 1.125 | 2 |
| 4.0 | 1 | 333.3 | 28 | 80 | 2.667 | 1.333 | 146.7 | 0 | 3 |
| 4.477612 | 1 | 343.3 | 25.37 | 171.6 | 4.478 | 1.493 | 149.3 | 4.478 | |
| 5.681818 | 1 | 159.1 | 17.05 | 96.59 | 3.409 | 1.136 | 113.6 | 3.409 | 3 |
| 6.0 | 1 | 220 | 15 | 90 | 2 | 1 | 100 | 2 | |
| 6.666667 | 1 | 253.3 | 24 | 106.7 | 2.667 | 0 | 133.3 | 1.333 | 3 |
The first 10 rows of 33. The other 23 are in the notebook.
Correlation
| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
|---|---|---|---|---|---|---|---|---|
| Calories | two numbers | 0.6544 | 0.4953 | 0.2859 to 0.6595 | 0.6544 | 0.4962 | < 0.001 | 65 |
| Fat | two numbers | 0.4933 | 0.4157 | 0.1912 to 0.5989 | 0.4933 | 0.3748 | 0.002871 | 65 |
| Vitamins | a number and a category | 0.4207 | 0.007942 | 65 | ||||
| Mfr | a number and a category | 0.3408 | 0.2352 | 65 | ||||
| Potassium | two numbers | 0.3289 | 0.2718 | 0.02991 to 0.4837 | 0.3289 | 0.244 | 0.05698 | 65 |
| Shelf | two numbers | 0.2901 | 0.2901 | 0.04966 to 0.4987 | 0.2625 | 0.2122 | 0.04773 | 65 |
| Fibre | two numbers | 0.2166 | 0.1489 | -0.09857 to 0.3791 | 0.2166 | 0.1567 | 0.2627 | 65 |
| Sodium | two numbers | 0.2112 | 0.2112 | -0.03443 to 0.4328 | 0.1902 | 0.1381 | 0.152 | 65 |
| Protein | two numbers | 0.1848 | 0.1848 | -0.06184 to 0.4103 | 0.1625 | 0.126 | 0.2006 | 65 |
| Carbo | two numbers | 0.1248 | -0.04083 | -0.2819 to 0.2051 | -0.1248 | -0.06553 | 0.7468 | 65 |
Visualization
The rows of Sugars are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.16 between each value and the next), so the order carries no pattern to show.
Vitamins
Vitamins: 3 distinct values, most often enriched.
Description
| Statistic | Value |
|---|---|
| Type | text |
| Values present | 65 |
| Distinct values | 3 |
| Continuous | no |
| Mode | enriched |
| Variable | Value | Rows | Share |
|---|---|---|---|
| Vitamins | enriched | 57 | 87.69 % |
| Vitamins | 100% | 5 | 7.692 % |
| Vitamins | none | 3 | 4.615 % |
By Value
| Vitamins | Rows | Sodium | Carbo | Sugars | Potassium | Protein | Fat | Calories | Fibre | Shelf |
|---|---|---|---|---|---|---|---|---|---|---|
| 100% | 5 | 227.3 | 19.73 | 7 | 109.3 | 3 | 0.8667 | 127.3 | 2.133 | 3 |
| enriched | 57 | 251.3 | 19.79 | 10.85 | 164.8 | 3.763 | 1.546 | 153.6 | 4.044 | 2.123 |
| none | 3 | 0 | 23.74 | 0 | 134.4 | 3.318 | 0 | 106.2 | 3.483 | 1.667 |
Duplicate Rows
Across 65 rows the table has no exact duplicates: every row's value vector is unique across all columns, so the row count reflects distinct rows.
- Largest group size
- 0
- N exact duplicates
- 0
- N exact groups
- 0
- N rows
- 65
- N unique
- 65
- Pct exact duplicates
- 0
- Verdict
- Clean
How to read this
This chapter counts rows that repeat another row exactly, value for value: how many rows take part in a duplicate group, how many groups exist, and how large the largest group is.
Duplicate rows inflate the apparent row count and can place identical rows on both sides of the training and held-out split, which flatters every quality figure in this report. Only exact repeats are detected here; rows that differ by a rounding digit or a whitespace variant count as distinct.
Leakage Suspicion
Nothing to check. No column that awaits an answer tracks a target at 0.95 or more, so no column on its own gives a target away.
- Categorical verdict
- Clean
- Critical threshold
- 0.999
- N categorical critical
- 0
- N categorical suspects
- 0
- N confirmed
- 0
- N critical
- 0
- N suspects
- 0
- Threshold
- 0.95
- Verdict
- Clean
How to read this
For every column that is not a target, this chapter reads how closely the column tracks each target, on an association from 0 to 1, and lists any pair at 0.95 or more. For two numeric columns the association is the stronger of Pearson's r and Spearman's rho; when the column or the target is categorical it is the correlation ratio η, or Cramér's V when both are. At 0.999 or more the column reproduces the target: that is what a copy or a rescaled copy of it looks like.
A listed column poses one question: is its value known before the target's value exists? If it is, the column is a strong input and the quality stated in this report is real. If it was computed from the target or recorded after it, a formula that reads it looks right on these rows and will not hold on new data. The coefficients read the same in both cases; the answer needs someone who knows where the column came from.
The owner of the analysis can give that answer. A column confirmed as known before the target is listed as confirmed and is no longer a suspect. A column that turns out to be a leak is left out of the model's inputs, and the analysis run again.
General
Clustering found no clear groups. The best grouping of the 65 complete rows over 8 numeric columns is into 2 groups, with a silhouette of 0.385 (on a scale where 1 is fully separate groups and 0 is none), below the 0.50 that clear structure shows, so no Clusters chapter is written.
| Groups | Silhouette | Inertia | Kept |
|---|---|---|---|
| 2 | 0.3848 | 346.5 | yes |
| 3 | 0.1807 | 305.9 | |
| 4 | 0.2195 | 234.7 | |
| 5 | 0.2526 | 201.9 | |
| 6 | 0.2568 | 189.3 |
- Inertia
- 346.5
- K
- 2
- N columns used
- 8
- N rows
- 65
- N rows complete
- 65
- Silhouette
- 0.3848
- Verdict
- Weak
How to read this
The General chapter covers what holds across all columns together: descriptive statistics, correlations, missing values and outlier ranges under Description, the Clusters found among the rows, and, when a segment column was chosen, the Segments.
Description
| Variable | Type | Values present | Distinct values | Continuous | Decimal places |
|---|---|---|---|---|---|
| Sodium | number | 65 | 41 | yes | 5 |
| Carbo | number | 65 | 40 | yes | 5 |
| Sugars | number | 65 | 33 | yes | 6 |
| Potassium | number | 65 | 50 | yes | 5 |
| Vitamins | text | 65 | 3 | no | |
| Protein | number | 65 | 20 | yes | 7 |
| Mfr | text | 65 | 6 | no | |
| Fat | number | 65 | 14 | yes | 7 |
| Calories | number | 65 | 28 | yes | 5 |
| Fibre | number | 65 | 23 | yes | 6 |
The first 10 rows of 11. The other 1 is in the notebook.
| Variable | Mean | Median | Mode |
|---|---|---|---|
| Sodium | 237.8 | 232 | 280.0 |
| Carbo | 19.97 | 18.67 | 12.0 |
| Sugars | 10.05 | 12 | 12.0 |
| Potassium | 159.1 | 96.59 | 30.0 |
| Vitamins | enriched | ||
| Protein | 3.684 | 3 | 2.0 |
| Mfr | G | ||
| Fat | 1.423 | 1 | 0.0 |
| Calories | 149.4 | 134.3 | 110.0 |
| Fibre | 3.871 | 2 | 0.0 |
The first 10 rows of 11. The other 1 is in the notebook.
| Variable | Minimum | Maximum | Standard deviation | Variance | Interquartile range | Sum |
|---|---|---|---|---|---|---|
| Sodium | 0 | 787.9 | 130.6 | 17064.1 | 110 | 15459.5 |
| Carbo | 10.53 | 68 | 8.468 | 71.71 | 7.388 | 1297.9 |
| Sugars | 0 | 20.9 | 5.835 | 34.05 | 10 | 653.3 |
| Potassium | 15 | 969.7 | 180.3 | 32504 | 175 | 10342.8 |
| Vitamins | ||||||
| Protein | 0.7519 | 12.12 | 2.643 | 6.983 | 2.478 | 239.4 |
| Mfr | ||||||
| Fat | 0 | 9.091 | 1.647 | 2.713 | 2 | 92.46 |
| Calories | 50 | 440 | 62.41 | 3895.2 | 69.1 | 9711.5 |
| Fibre | 0 | 30.3 | 6.133 | 37.62 | 4.478 | 251.6 |
The first 10 rows of 11. The other 1 is in the notebook.
| Variable | Skewness | Kurtosis | Total sum of squares |
|---|---|---|---|
| Sodium | 1.312 | 5.712 | 1,092,102 |
| Carbo | 3.096 | 15.48 | 4589.8 |
| Sugars | -0.2205 | -1.009 | 2179.2 |
| Potassium | 2.688 | 8.776 | 2,080,254 |
| Vitamins | |||
| Protein | 1.643 | 2.962 | 446.9 |
| Mfr | |||
| Fat | 2.094 | 6.664 | 173.7 |
| Calories | 2.295 | 7.944 | 249,295 |
| Fibre | 3.148 | 10.66 | 2407.6 |
The first 10 rows of 11. The other 1 is in the notebook.
| Variable | 10 % | 20 % | 25 % | 30 % | 40 % | 50 % | 60 % | 70 % | 75 % | 80 % | 90 % |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Sodium | 91.33 | 170.5 | 180 | 192 | 220 | 232 | 274 | 280 | 290 | 298.5 | 337.3 |
| Carbo | 12 | 13.92 | 15 | 15.47 | 17.03 | 18.67 | 20.57 | 21.31 | 22.39 | 24.27 | 28 |
| Sugars | 2 | 3 | 4 | 6.133 | 9.851 | 12 | 12.05 | 13.33 | 14 | 14.72 | 16.63 |
| Potassium | 28 | 35 | 45 | 53.67 | 63 | 96.59 | 129.3 | 192.5 | 220 | 239 | 313.2 |
| Vitamins | |||||||||||
| Protein | 1 | 1.333 | 2 | 2 | 2.667 | 3 | 4 | 4.478 | 4.478 | 4.542 | 6 |
| Mfr | |||||||||||
| Fat | 0 | 0 | 0 | 0 | 1 | 1 | 1.333 | 1.493 | 2 | 2.667 | 3.03 |
| Calories | 100 | 110 | 110 | 110 | 123 | 134.3 | 146.7 | 160 | 179.1 | 179.3 | 212.1 |
| Fibre | 0 | 0 | 0 | 1 | 1.2 | 2 | 3 | 4 | 4.478 | 5.194 | 7.785 |
The first 10 rows of 11. The other 1 is in the notebook.
| Variable | Value | Rows | Share |
|---|---|---|---|
| Vitamins | enriched | 57 | 87.69 % |
| Vitamins | 100% | 5 | 7.692 % |
| Vitamins | none | 3 | 4.615 % |
| Mfr | G | 22 | 33.85 % |
| Mfr | K | 21 | 32.31 % |
| Mfr | P | 9 | 13.85 % |
| Mfr | Q | 5 | 7.692 % |
| Mfr | R | 5 | 7.692 % |
| Mfr | N | 3 | 4.615 % |
How to read this
This chapter summarizes every column at once: the descriptive statistics table below, then Correlation, Missing Values and Outliers. For a numeric column the table reports its center (mean, median, mode), its spread (standard deviation, variance, interquartile range, percentiles) and its shape (skewness, kurtosis); for a categorical column it reports the count and share of each category.
Each row of the tables describes one column. The statistics are grouped: the column itself, where its values center, how far they spread, what shape their distribution takes, and its percentiles. They read as follows.
| Statistic | Explanation |
|---|---|
| Variable | Name of the column the statistics in the row describe |
| Type | Type assigned during data processing (bool, integer, number, decimal, text or date) |
| Values present | Number of rows in which the column holds a value |
| Distinct values | Number of different values the column holds |
| Continuous | Whether the column can take any value in a range, as opposed to a discrete column limited to a fixed set of values |
| Decimal places | Length of the fractional part of the values |
| Mean | Arithmetic average: the sum of all values divided by the number of values |
| Median | The middle value: half of the values lie at or below it and half at or above it. It is also the 50 % percentile |
| Mode | The value that appears most often |
| Minimum | Smallest numeric value in the column |
The first 10 rows of 20. The other 10 are in the notebook.
Missing Values
No column has a missing value: all 65 rows are complete.
- N columns with missing
- 0
- N complete rows
- 65
- N rows
- 65
- Pct complete rows
- 100
How to read this
The table lists, for each column, the count of present values (Values) beside the row count of the processed table (Rows), the number of missing values and their share. The larger the share, the less any statistic or model built on the column can be trusted.
- Below 5% missing: safe to use as it is.
- 5% to 25% missing: usable; filling the gaps or excluding those rows is worth considering.
- 25% or more missing: the column is flagged and receives its own chapter in the Data section. Verify why so much is missing before trusting any result that depends on it.
A model is computed only on rows that hold a value in every column it reads, so gaps spread over several columns cost more rows than any one column's share suggests. The last column, Complete rows without, shows for each input with gaps how many rows would be complete if that column were left out; it is blank for a column without gaps, for a target, and for a column no model reads. A column that is the only gap in many rows is the one whose removal keeps the most data.
Outliers
7 of 9 numeric columns have values beyond the Tukey fences (1.5 times the interquartile range outside the quartiles). sodium has the largest share: 11% of its values. Whether such values are rare but real rows or recording errors decides whether they are kept.
| Column | Values | Lower fence | Upper fence | Below | Above | Share |
|---|---|---|---|---|---|---|
| Calories | 65 | none below | 282.761 | 0 | 2 | 3.08 % |
| Carbo | 65 | none below | 33.470 | 0 | 2 | 3.08 % |
| Fat | 65 | none below | 5 | 0 | 2 | 3.08 % |
| Fibre | 65 | none below | 11.194 | 0 | 4 | 6.15 % |
| Potassium | 65 | none below | 482.5 | 0 | 3 | 4.62 % |
| Protein | 65 | none below | 8.194 | 0 | 4 | 6.15 % |
| Shelf | 65 | none below | none above | 0 | 0 | 0 % |
| Sodium | 65 | 15 | 455 | 5 | 2 | 10.77 % |
| Sugars | 65 | none below | none above | 0 | 0 | 0 % |
- N columns
- 9
- N columns assessed
- 9
- N columns with outliers
- 7
- Worst column
- sodium
- Worst pct
- 10.77
How to read this
The table counts the outliers of every numeric column by the Tukey rule. Q1 and Q3 are the values below which 25% and 75% of a column's values fall, and the interquartile range is Q3 minus Q1. The lower fence lies 1.5 times the interquartile range below Q1, the upper fence the same distance above Q3; a value beyond a fence is an outlier. For each column the table gives both fences, how many values lie below and above them, their share of the column's values, and the single value that lies furthest beyond its fence. These are the same fences the box plots draw their whiskers to.
A column is not assessed when it has fewer than four values, or when the middle half of its values sits on a single number: the interquartile range is then zero and the rule would call every other value an outlier.
Extreme values can be real (rare but legitimate rows) or errors (measurement mistakes, data-entry slips). Which case applies decides whether to keep, clip or drop them before trusting a model that uses the column. A strongly skewed column has many values beyond one fence without any of them being wrong.
Correlation
55 column pairs analyzed across 65 rows (36 of two numbers, 18 of a number and a category, 1 of two categories); 28 (51%) are unlikely to be chance, after allowing for how many pairs were tested. Any other pair may still show a large association, but one that cannot be told apart from chance on the rows the pair was measured on. Every pair is stated as an association from 0 to 1, whatever its kind, so pairs of different kinds can be ranked against each other. An association states that two columns go together, not that one brings the other about.
- N categorical pairs
- 1
- N mixed pairs
- 18
- N numeric pairs
- 36
- N pairs
- 55
- N samples
- 65
- N significant
- 28
| Association | 95 % CI | Column | Eta squared | Groups | Kendall | Kind | N | Other column | Pearson | Q value | Spearman |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.9639 | 0.9412, 0.9779 | Fibre | 0.7648 | numeric | 65 | Potassium | 0.9639 | < 0.001 | 0.9044 | ||
| 0.8584 | 0.7523, 0.9007 | Potassium | 0.7026 | numeric | 65 | Protein | 0.8418 | < 0.001 | 0.8584 | ||
| 0.8435 | 0.7049, 0.8798 | Fibre | 0.6961 | numeric | 65 | Protein | 0.8096 | < 0.001 | 0.8435 | ||
| 0.7887 | 0.6746, 0.866 | Calories | 0.4206 | numeric | 65 | Carbo | 0.7887 | < 0.001 | 0.5701 | ||
| 0.706 | 0.5582, 0.8104 | Calories | 0.4902 | numeric | 65 | Protein | 0.706 | < 0.001 | 0.6131 | ||
| 0.6895 | 0.2633, 0.6455 | Calories | 0.5251 | numeric | 65 | Potassium | 0.4766 | < 0.001 | 0.6895 | ||
| 0.6544 | 0.2859, 0.6595 | Calories | 0.4962 | numeric | 65 | Sugars | 0.4953 | < 0.001 | 0.6544 | ||
| 0.6498 | 0.4045, 0.7291 | Calories | 0.5448 | numeric | 65 | Fat | 0.5902 | < 0.001 | 0.6498 | ||
| 0.5727 | 0.3822, 0.7165 | Protein | 0.3023 | numeric | 65 | Sodium | 0.5727 | < 0.001 | 0.4262 | ||
| 0.5618 | 0.1594, 0.5774 | Calories | 0.4312 | numeric | 65 | Fibre | 0.3882 | 0.003656 | 0.5618 |
The first 10 rows of 24. The other 14 are in the notebook.
How to read this
This chapter measures how pairs of columns go together: the Correlation Measures table below, the Strongest Correlations, the Correlation Heatmap and, when the analysis has targets, the Potential Data Leaks. Numeric columns and categorical columns are both paired, a categorical column being one that is not numeric and holds between 2 and 50 distinct values. Every pair is stated as an association from 0 (unrelated) to 1 (one column gives the other away), so pairs of different kinds can be compared. An association states that two columns go together, not that one brings the other about.
The table lists every pair of columns once, with its kind, its association, the figures of its kind, its q-value and the number of rows the pair was measured on. A pair is measured on the rows where both columns hold a value.
| Measure | Explanation |
|---|---|
| Kind | What the two columns hold: two numbers (numeric), a number and a category (numeric_categorical), or two categories (categorical) |
| Association | Strength of the pair from 0 to 1, whatever its kind. Two numbers: the stronger of Pearson's coefficient and Spearman's ρ, without its sign. A number and a category: the correlation ratio η. Two categories: Cramér's V |
| Covariance | Two numbers only. Direction of the relationship (positive or negative) in the units of the two columns. It is not standardized, so its size says little about strength without further context |
| Pearson's Correlation Coefficient | Two numbers only. Strength and direction of a linear relationship, from -1 (perfect negative) through 0 (no linear relationship) to 1 (perfect positive) |
| Spearman's ρ | Two numbers only. Strength and direction of a monotonic relationship, computed on ranks rather than values. It captures relationships that consistently rise or fall even when they are not linear, and it is less affected by extreme values |
| Kendall's τ | Two numbers only. Strength and direction of a monotonic relationship based on the concordance of ranks between the two columns. More conservative than Spearman's ρ, and steadier on small tables |
| Correlation ratio η | A number and a category. The square root of the share of the number's spread that lies between the categories, from 0 (every category has the same average) to 1 (the category fixes the number). For a category of two values it equals the absolute Pearson coefficient with the category coded 0 and 1. Its square, η², is that share: an η of 0.6 means the categories account for 36% of the spread |
| Cramér's V | Two categories. How far the table of counts of the two columns departs from what unrelated columns would give, from 0 (unrelated) to 1 (each value of one column goes with one value of the other), corrected so that columns with many rare values do not read as related |
| q-value | How likely a pair this strong is among unrelated columns, adjusted for the number of pairs listed (Benjamini-Hochberg false-discovery rate). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries. The right measure for ranking many pairs |
| 95% CI (Pearson) | Two numbers only. Lower and upper bounds of the 95% confidence interval on the Pearson coefficient, via the Fisher z-transform, on the rows the pair was measured on. A narrow interval means the coefficient is well estimated; a wide interval that straddles zero means the relationship is uncertain |
The first 10 rows of 12. The other 2 are in the notebook.
Strongest Correlations
The 20 pairs of columns with the smallest q-values: the associations that remain significant after the Benjamini-Hochberg adjustment for the number of pairs tested. Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries; a pair above 0.05 may be coincidence even when its association looks strong.
A pair with an association above 0.9 often signals a duplicate or derived column. Moderately strong pairs with a low q-value are the relationships most worth investigating.
Each listed pair is drawn below, the picture behind the figure. Two numbers are drawn as a scatter, one point per row, the quickest way to see whether a strong value rests on a trend or on a few rows far from the rest. A number and a category are drawn as the number's box plot per category. Two categories are drawn as a heat map of how many rows hold each combination of values.
Potential Data Leaks
The table lists the association between every column and each target, whatever the two hold, with its q-value. An association close to 1 with a target, together with a q-value near zero, is one of two things: a strong input, or a data leak, a column derived from the target after the fact, such as a tax amount computed from the price being predicted. A leaked column trains a model that looks perfect and fails on new data, because the leak is not available at prediction time.
The Leakage Suspicion chapter in the Data section lists the pairs at 0.95 or more and marks those at 0.999 or more, where a column reproduces the target. For two numbers the association is whichever of Pearson's r and Spearman's rho is the stronger, because a column derived from the target often follows a curve rather than a line: the log of a price tracks the price perfectly, and Pearson alone reads that as weaker than it is. For a number and a category it is the correlation ratio η, and for two categories Cramér's V. Whether a listed column is a strong input or a leak depends on whether it is known before the target exists, which the owner of the analysis can confirm.
Implications
The Implications section states how to act on the models: the Stakeholder Summary and the Recommended Next Data, where the models hold and where they weaken (Quality by Input Range, Rows unlike the ones the model learned from, Per-Segment Predictions, Fairness), what to weigh before relying on them (Causal Honesty, Deployment Readiness), and the Provenance & Audit trail a reviewer needs to retrace the analysis.
Stakeholder Summary
The model tracks Calories, relying most strongly on Carbo, where moving from 15.0 to 22.0 raises the model's output by about 30.6 on average, with every other input as observed. Figures from the baseline and the model stand close, both describing almost all of the pattern in Calories from the available inputs. Among inputs, Carbo, Fat, and Sugars account for nearly all of what the model tracks.
Because the model does not come out ahead of a straight line through the data, its formula brings no real improvement. The analysis drew on only 13 held-out rows, so very little is known about how well either formula captures cases outside the training set. Validate on a fresh sample before relying on the model for decisions.
Recommended Next Data
- Collect more rows, especially to increase the number of held-out rows for Calories. Reason: the analysis flagged few rows and few rows for the number of targets, with only 13 held-out rows and warnings about limited data.
- Add more rows where Mfr carries each of its values. Reason: the diagnostics flagged parity and bias for Mfr, indicating a fairness concern across its two groups.
- Inspect the model's predictions for Calories where the model under-predicts by 4.37 on average on held-out rows. Reason: the diagnostics flagged a systematic offset in held-out residuals for Calories.
- Inspect the formula for Calories and consider alternative modeling approaches. Reason: the diagnostics flagged that the model does not beat a straight line through the data on Calories, with a margin of -1.5 points in variance explained.
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.
Calories by Input Range
Segment carbo in the second quarter (15.3 to 17.5) has only 3 held-out rows, too few to assess quality, so the verdict is suppressed.
| Segment | Rows | R² | Gap to all rows | Verdict |
|---|---|---|---|---|
| Carbo = q2 | 3 | -0.3016 | -1.2598 | Too few rows to judge |
| Protein = q4 | 4 | 0.9497 | -0.0084 | Too few rows to judge |
| Sodium = q2 | 3 | Too few rows to judge | ||
| Fibre = q3 | 4 | 0.9623 | +0.0042 | Too few rows to judge |
| Mfr = K | 4 | -0.9052 | -1.8634 | Too few rows to judge |
| Shelf = q2 | 5 | 0.5514 | -0.4067 | Too few rows to judge |
| Potassium = q2 | 5 | 0.5906 | -0.3676 | Too few rows to judge |
| Vitamins = enriched | 11 | 0.9560 | -0.0022 | Too few rows to judge |
| Fat = q2 | 5 | -0.9053 | -1.8635 | Too few rows to judge |
| Potassium = q3 | 3 | 0.9627 | +0.0045 | Too few rows to judge |
The first 10 rows of 24. The other 14 are in the notebook.
- Aggregate MAE
- 7.07
- Aggregate R²
- 0.9582
- Measure
- r2
- Target
- Calories
Rows unlike the ones the model learned from
0 of 13 held-out rows (0%) lie further from the training rows than 99 in 100 rows like them would, measured on the 4 inputs the model reads (carbo, fat, fibre, sugars). That is a small minority; the held-out figures describe the model on rows like the ones it was trained on.
| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
|---|---|---|---|---|---|
| Calories | Carbo, Fat, Fibre, Sugars | 3.644 | 13 | 0 | 0 % |
| Count | From | To |
|---|---|---|
| 0 | 0 | 0.146 |
| 0 | 0.146 | 0.291 |
| 0 | 0.291 | 0.437 |
| 0 | 0.437 | 0.583 |
| 1 | 0.583 | 0.729 |
| 1 | 0.729 | 0.874 |
| 1 | 0.874 | 1.02 |
| 1 | 1.02 | 1.166 |
| 1 | 1.166 | 1.312 |
| 0 | 1.312 | 1.457 |
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.
Calories Fairness
Column Mfr splits the held-out rows into 2 groups. The prediction-parity ratio is 0.685 (smallest over largest mean prediction), the largest absolute group residual mean is 8.50 (0.91 times the overall residual standard deviation). Parity gap and residual bias: the model both predicts systematically lower for some groups and errs systematically against at least one group. This is the worst-case fairness signal on this column; review before deployment.
- Aggregate residual std
- 9.34
- N columns
- 1
- N proxies
- 0
- Proxy threshold
- 0.5
| Bias max abs residual mean | Column | Groups | Interpretation | N groups | Prediction parity ratio | Verdict |
|---|---|---|---|---|---|---|
| 8.502 | Mfr | K, G | Column Mfr splits the held-out rows into 2 groups. The prediction-parity ratio is 0.685 (smallest over largest mean prediction), the largest absolute group residual mean is 8.50 (0.91 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. | 2 | 0.6854 | Parity and 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:
calories - Rows: 65 rows, a small sample; input rankings are suggestive
- Per-Segment Predictions: not produced, because no segment column was chosen
- Fairness: compared across 2 categorical columns (
mfr,vitamins); 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 (4 pass, 2 warn, 0 fail), the model passes the hard gates but at least one check warns: Usable with care. A limited audience and monitoring of the warning signals come before a broad rollout.
| Name | Status | Detail |
|---|---|---|
| Generalization | Pass | held-out quality holds up against training quality |
| Prediction Interval Coverage | Pass | coverage matches the interval level, largest gap 11.5 percentage points |
| Baseline Lift for Calories | Warn | is not told apart from the best baseline, R² lift -0.0147 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Warn | 1 column compared, 1 flagged: Mfr (a group both receives smaller predictions and is systematically mis-predicted) |
| Out-of-Distribution | Pass | 0% of held-out rows are out of distribution |
- N critical concerns
- 0
- N fail
- 0
- N pass
- 4
- N warn
- 2
- Overall verdict
- Caution
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 | 097cc430-48b8-11f1-8087-d378640fe787 |
| Run time | 2026-10-27 01:42 UTC |
| Total rows | 65 |
| Modeled targets | Calories |
| Segment column | not available |
| Time limit | 1 h 0 min |
| Time taken | 54 min 37 s |
| Credit budget | 500 credits |
| Ufinq version | 0.3.48 |