Loading Diafunc…

Analysis report

Car Seat Sales

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

Target
Sales
Analyzed
2026-09-17 06:05 UTC

Summary

The model predicts sales and explains 58% of the variation in sales on rows it never saw, relying most strongly on price, which accounts for 62% of its reliance. On the same held-out rows, always guessing the average explained -0.4% of the variation, so the model adds 58 points over that baseline.

While the check draws on 80 held-out rows and the model makes good use of the information in these data, it covers only part of the pattern and should not be relied on for individual predictions. Eighteen percent of held-out rows are outside the range the model was trained on, and errors differ between groups in shelveloc. Validate on a fresh sample before relying on the model for decisions.

Fitted formula

sales = 0.0847499833454234 × compprice + 0.13 × advertising + 8.1 − (0.03394319364209295 × age + 0.088 × price)sales=0.0847499833454234×compprice+0.13×advertising+8.1−0.03394319364209295×age+0.088×price
sales = 0.0847499833454234 × compprice + 0.13 × advertising + 8.1 − (0.03394319364209295 × age + 0.088 × price)
3 terms · additively decomposable

Held-out diagnostics

TargetQualityErrorR²MAEGeneralizationRows
sales55.4 %42.35 %0.57651.615generalizing80
  • sales · Quality 95 % CI 52.56 % – 57.96 %
  • sales · Error 95 % CI 34.37 % – 53.22 %
  • sales · R² 95 % CI 0.46776 – 0.65626
  • sales · MAE 95 % CI 1.339 – 1.919

Concerns

WARNING implications

A notable minority of held-out rows are outside the training distribution

18% of held-out rows are out of distribution (14 of 80). The headline R² may not extend to these rows; the Out-of-Distribution chapter shows which they are.

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: Data describes the table as supplied, Model presents one model per target, and Implications states where the models hold and what to weigh before relying on them.

Generated 2026-09-17 06:05 UTC, analysis f1ec5b50-48b7-11f1-8087-d378640fe787, 1 target, computation time 1 h 0 min, compute budget 500 credits, 400 rows. The Provenance & Audit chapter holds the full record.

Headline

Diafunc modeled sales using several predictors. The model explains 58% of sales on rows it never saw, leaves 42% unexplained, and relies most on price.

  • One target was modeled; 80 rows were held out for checking.
  • Always predicting the mean explained -0.4% of sales, so the model added 58 points, a medium and consistent margin.
  • 18% of held-out rows are outside the training distribution.
Best R²
0.5765
Best quality
55.4 %
Best target
sales
Targets
1

Concerns

  • Warning | Implications: A notable minority of held-out rows are outside the training distribution. 18% of held-out rows are out of distribution (14 of 80). The headline R² may not extend to these rows; the Out-of-Distribution chapter shows which they are.

No concerns detected for this analysis.

SeveritySectionConcernDetail
WarningImplicationsA notable minority of held-out rows are outside the training distribution18% of held-out rows are out of distribution (14 of 80). The headline R² may not extend to these rows; the Out-of-Distribution chapter shows which they are.

Discovered Relations

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.

  • The sales model explains 58% of variance on held-out rows and relies most on price, compprice and age.
  • The strongest reference predictor for sales on held-out rows is always guessing the mean, which explains -0.4% of variance; the model adds 58 points and this margin is measured as medium consistency.

Data

The Data section describes the table as supplied, before any modeling: one chapter per column with its distribution and correlations, the Column Profiles overview, 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.

Compprice and price move together, with a correlation of 0.585, and price and sales move oppositely, with a correlation of -0.445. The data was measured clean: no duplicates, leakage or high-missing columns were flagged.

Most notable in the Data section:

  • compprice and price move together (correlation 0.585)
  • price and sales move oppositely (correlation -0.445)

Advertising

This chapter profiles advertising: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows advertising in date order and a Time Series chapter separates its trend, season and residual. When advertising is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize advertising 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 row for advertising reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

By Value

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

Correlation

Each row pairs advertising with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against advertising, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving advertising (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of advertising and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Age

This chapter profiles age: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows age in date order and a Time Series chapter separates its trend, season and residual. When age is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize age 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 row for age reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

Correlation

Each row pairs age with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against age, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving age (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of age and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

CompPrice

This chapter profiles compprice: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows compprice in date order and a Time Series chapter separates its trend, season and residual. When compprice is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize compprice 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 row for compprice reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

Correlation

Each row pairs compprice with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against compprice, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving compprice (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of compprice and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Education

This chapter profiles education: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows education in date order and a Time Series chapter separates its trend, season and residual. When education is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize education 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 row for education reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

By Value

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

Correlation

Each row pairs education with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against education, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving education (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of education and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Income

This chapter profiles income: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows income in date order and a Time Series chapter separates its trend, season and residual. When income is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize income 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 row for income reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

Correlation

Each row pairs income with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against income, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving income (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of income and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Population

This chapter profiles population: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows population in date order and a Time Series chapter separates its trend, season and residual. When population is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize population 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 row for population reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

Correlation

Each row pairs population with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against population, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving population (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of population and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Price

This chapter profiles price: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows price in date order and a Time Series chapter separates its trend, season and residual. When price is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize price 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 row for price reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

Correlation

Each row pairs price with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against price, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving price (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of price and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Sales

This chapter profiles sales: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows sales in date order and a Time Series chapter separates its trend, season and residual. When sales is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize sales 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 row for sales reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

Correlation

Each row pairs sales with one other numeric column and reports how strongly the two move together, in which direction, and whether the association could be chance. Pearson's coefficient measures a straight-line relationship. 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. A strong coefficient is an association, not an explanation: two columns can move together because a third one moves both.

The table lists every other numeric column against sales, with three correlation coefficients, the significance of the Pearson coefficient and its confidence interval.

MeasureMeaning
CovarianceThe 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 CoefficientThe 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 ρ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 τ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
p-valueThe two-sided p-value of the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small value (below 0.05, for instance) means a coefficient this large is unlikely to arise by chance
q-valueThe p-value adjusted for multiple comparisons across all pairs involving sales (Benjamini-Hochberg). Among all pairs reported with q below 0.05, about 5% or fewer are expected to be false discoveries
95% CI (Pearson)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

Visualization

The charts in this chapter were chosen from the type of sales and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

ShelveLoc

This chapter profiles shelveloc: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows shelveloc in date order and a Time Series chapter separates its trend, season and residual. When shelveloc is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize shelveloc 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 row for shelveloc reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

By Value

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

Visualization

The charts in this chapter were chosen from the type of shelveloc and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Frequency

The share of rows in each category of shelveloc. A few large slices and many slivers mean the rare categories carry little evidence each. A single dominant slice means most rows look alike on this column.

Count CompPrice By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of compprice, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Count Income By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of income, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Count Advertising By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of advertising, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Count Population By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of population, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Count Price By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of price, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Count Age By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of age, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Count Education By ShelveLoc

The number of rows in each combination of a category of shelveloc and a category of education, as a heat map. Cells that keep the same proportions along every row mean the two columns are independent; proportions that change from one row to the next mean they are associated, and the darkest cells show where the rows concentrate.

Urban

This chapter profiles urban: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows urban in date order and a Time Series chapter separates its trend, season and residual. When urban is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize urban 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 row for urban reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

By Value

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

Visualization

The charts in this chapter were chosen from the type of urban and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

US

This chapter profiles us: its distribution in figures and charts, and how it relates to the other columns through grouped comparisons, pairwise charts and correlation measures. The Description chapter carries the figures and the Visualization chapter the charts. When the data carries a date column, an Over Time chapter shows us in date order and a Time Series chapter separates its trend, season and residual. When us is a target with classes, a Class Balance chapter counts the rows in each class.

Description

The figures below summarize us 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 row for us reads from left to right: location first, then spread, then shape. The symbols in the header row (x̅, σ, σ², IQR, {x}, |X|, and the percentile and decile columns) are defined in the Descriptive Statistics chapter under General in the Data section.

By Value

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

Visualization

The charts in this chapter were chosen from the type of us and of the columns it is compared with: a numeric column gets a histogram, a box plot and a value sequence, a categorical column gets a frequency chart, and each comparison with another column gets the chart that suits the pair. 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.

Column Profiles

One row per column of the analyzed table: 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.

These are the columns as supplied, before any modeling: the reference against which every later chapter reads.

Profiled 11 columns across 400 rows (8 numeric, 3 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value.

Columns
NameTypeNMissingMeanStdMinP25MedianP75MaxSkewnessCV
advertisinginteger40006.6356.6420051229
ageinteger400053.3216.182539.554.56680
comppriceinteger400012515.3277115125135175
educationinteger400013.92.6171012141618
incomeinteger400068.6627.952142.56991120
populationinteger4000264.8147.210139272399509
priceinteger4000115.823.6524100117131191
salesnumber40007.4962.82105.387.499.3216.27
shelveloctext4000
urbanbool4000

The first 10 rows of 11. The other 1 is in the notebook.

N columns
11
N high missing
0
N rows
400

Duplicate Rows

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.

Across 400 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
1
N exact duplicates
0
N exact groups
0
N rows
400
N unique
400
Pct exact duplicates
0
Verdict
Clean

Leakage Suspicion

For every numeric column that is not a target, this chapter reports the Pearson correlation with each target and flags any pair with an absolute coefficient of 0.95 or more as a suspected leak. A pair at 0.99 or more is Critical: at that level the column amounts to a renamed copy of the target, and a model trained on it looks perfect on the training rows and means nothing on new data.

A flagged pair is worth resolving before trusting any quality number in this report: either the column genuinely encodes the target and should be dropped, or it is a legitimate strong predictor and the quality is real. The correlation alone cannot tell the two apart; that judgment needs someone who knows where the column came from.

No leakage detected. No non-target column correlates with any target above the |ρ| ≥ 0.95 threshold. Predictive features appear genuinely predictive rather than encoded copies of the target.

Critical threshold
0.99
N critical
0
N suspects
0
Threshold
0.95
Verdict
Clean

General

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

This chapter summarizes every column at once: the descriptive statistics table below, then Correlation, Missing Values and Outlier Ranges. 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 table describes one column. The header symbols read as follows.

ColumnMeaningExplanation
VariableColumn nameName of the column the statistics in the row describe
TypeData typeType assigned during data processing (bool, integer, number, decimal or text)
MinMinimumSmallest numeric value in the column
MaxMaximumLargest numeric value in the column
x̅MeanArithmetic average: the sum of all values divided by the number of values
MoModeThe value that appears most often
CContinuousWhether the column can take any value in a range, as opposed to a discrete column limited to a fixed set of values
{x}ScaleLength of the fractional part
∑SumSum of all numeric values
|X|CardinalityNumber of distinct values

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

Missing Values

The table pairs each column's count of present values, in the Values column, with the row count of the processed table, in the Rows column. The difference is the number of missing values, and the larger it is, 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.
Outlier Ranges

The table is the five-number summary for every numeric column: Min, Q1, Median, Q3 and Max. Q1 and Q3 are the values below which 25% and 75% of the values fall, and the interquartile range is Q3 minus Q1. By the Tukey rule, a value more than 1.5 times the interquartile range below Q1 or above Q3 is a possible outlier. A Min far below that lower bound means extreme values in the lower tail; a Max far above the upper bound means extreme values in the upper tail.

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.

Correlation

This chapter measures how pairs of numeric columns move together: the Correlation Measures table below, the Strongest Correlations, the Correlation Heatmap and, when the analysis has targets, the Potential Data Leaks. A correlation states association, not causation.

The table lists every pair of numeric columns once, with three correlation coefficients, the significance of the Pearson coefficient and its 95% confidence interval.

MeasureExplanation
CovarianceDirection 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 CoefficientStrength and direction of a linear relationship, from -1 (perfect negative) through 0 (no linear relationship) to 1 (perfect positive)
Spearman's ρ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. Ranges from -1 to 1
Kendall's τ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. Ranges from -1 to 1
p-valueTwo-sided p-value for the Pearson coefficient under the hypothesis of zero correlation, from the t-distribution with n-2 degrees of freedom. A small p-value (for example below 0.05) means a correlation this large would be unlikely by chance
q-valueThe p-value adjusted for the number of pairs tested (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)Lower and upper bounds of the 95% confidence interval on the Pearson coefficient, via the Fisher z-transform. A narrow interval means the coefficient is well estimated; a wide interval that straddles zero means the relationship is uncertain

28 column pairs analyzed across 400 rows; 6 (21%) clear the q < 0.05 significance bar after BH-FDR. Significant pairs are flagged in the matrix below; non-significant cells may still show large coefficients but they are not distinguishable from chance at this row count.

N pairs
28
N samples
400
N significant
6
Pairs · 24 of 28 rows shown
95 % CIDependentIndependentKendallP valuePearsonQ valueSpearman
0.51641, 0.64586comppriceprice0.38768< 0.0010.58485< 0.0010.5418
-0.5203, -0.36272pricesales-0.27985< 0.001-0.44495< 0.001-0.40761
0.17611, 0.3581advertisingsales0.19475< 0.0010.26951< 0.0010.2754
0.17208, 0.35447advertisingpopulation0.17309< 0.0010.26565< 0.0010.24193
-0.32254, -0.13687agesales-0.15916< 0.001-0.23182< 0.001-0.23634
0.05471, 0.24633incomesales0.103060.002310.151950.010780.15537
-0.20232, -0.00841educationpopulation-0.074040.03343-0.106380.1337-0.10459
-0.19824, -0.00417ageprice-0.078420.0411-0.102180.14037-0.11839
-0.19636, -0.00221agecompprice-0.075010.04512-0.100240.14037-0.10861
-0.19099, 0.00338comppricepopulation-0.073830.05843-0.094710.1636-0.1089

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

Strongest Correlations

The 20 pairs of columns with the smallest q-values: the correlations 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 Pearson coefficient looks strong.

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

Correlation Heatmap

Every pair of numeric columns colored by its Pearson correlation coefficient. The color scale is fixed: blue at -1, pale yellow near 0 and red at +1, so a color means the same strength in every analysis, and a table whose coefficients are all positive shows no blue. The diagonal is each column correlated with itself and always sits at +1. Off-diagonal blocks of one color point to groups of columns that carry the same information.

Potential Data Leaks

The table lists the correlation between every column and each target, with the p-value and the q-value. A Pearson coefficient close to +1 or -1 with a target, together with a q-value near zero, is one of two things: a genuinely strong relationship, 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 applies the 0.95 and 0.99 thresholds to these pairs and issues the verdict; a flagged pair is resolved there before any quality figure is relied on.

Clusters

Rows are grouped into three clusters by k-means over the numeric columns, and the table shows each cluster's descriptive statistics side by side. Differences in mean, median and spread between clusters point to row-level structure that no single column states, such as two kinds of customer or two kinds of transaction.

Cluster labels are arbitrary integers; only the composition matters. Rows without usable numeric values are placed in cluster -1.

Model

The Model section presents one model per target: its formula, its predictions on held-out rows, the features 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.

The Points Model on sales beats the Mean baseline by 58 points of variance explained, a medium margin row by row. Price carries most of the model, accounting for 62% of its reliance on features.

Most notable in the Model section:

  • The model on sales beats the Mean baseline by 58 points of variance explained (a medium margin row by row)
  • price carries most of the model (62% of its reliance on features)

Sales

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

Sales Model

The three gauges score the model the search settled on. All three are measured on the rows the model trained on.

MetricMeaning
QualityThe technology's combined score for the model on the rows it trained on: accuracy and simplicity in one figure, where 100% is the best attainable
ErrorHow far the model's predictions lie from the training values, relative to the spread of the target: 0% is a perfect reproduction of the training rows, 100% is as wrong as a prediction can be
ComplexityThe size of the formula relative to the complexity range the search was allowed: 0% is the simplest expression permitted, 100% the most complex

Quality is a training figure and is not the held-out R². The held-out R² measures the model on rows it never saw during training and is the figure to quote for how the model generalizes; it is reported in the Generalization chapter beside the training R², and in the Baselines chapter beside the reference predictors. The time and budget gauges account for the computation that produced the model, not for the model itself.

The model relies most on price, sales fall as price rises, and compprice, where higher compprice raises sales. Age is the next strongest predictor, with sales falling as age rises. Advertising also contributes, with higher advertising raising sales.

sales = 0.0847499833454234 × compprice + 0.13 × advertising + 8.1 − (0.03394319364209295 × age + 0.088 × price)f:(advertising,age,compprice,price)↦salesadvertising,age,compprice,price,sales∈Rsales=0.0847499833454234×compprice+0.13×advertising+8.1−0.03394319364209295×age+0.088×price
sales = 0.0847499833454234 × compprice + 0.13 × advertising + 8.1 − (0.03394319364209295 × age + 0.088 × price)
Quality 55.43 % · Error 49.54 % during the search · Complexity 17.5 %
N inputs
4
N terms
3

Prediction

The model predicts sales 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 feature table, the prediction function and its output below are the raw material for the Prediction Chart and the distribution chapter that follow.

The function below selects the held-out rows from the processed data and keeps the columns the model takes as inputs.

One row per held-out row and one column per input feature, in the form the model reads. This table feeds the prediction function below.

The function below evaluates the model for every row of the feature table and returns the predicted sales for each.

The predictions of sales for the held-out rows, one value per row of the feature table.

Prediction Chart

Actual sales 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.

Held-out R² of 0.577: moderate. The model explains a meaningful share of the variance but a substantial residual remains; the Worst Predictions chapter shows where it fails. Mean absolute error is 1.61 on the target's scale.

Error
42.35 % (95 % CI 34.37 % – 53.22 %)
MAE
1.615 (95 % CI 1.339 – 1.919)
N
80
Quality
55.4 % (95 % CI 52.56 % – 57.96 %)
R²
0.5765 (95 % CI 0.46776 – 0.65626)
Target
sales
Residual Distribution

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

Bias
0.04842 (95 % CI -0.42508 – 0.49696)
N
80
P50
-0.14974 (95 % CI -0.64702 – 0.26012)
P90
3.341 (95 % CI 1.758 – 3.725)
P95
3.716 (95 % CI 3.108 – 4.069)
P99
4.206 (95 % CI 3.542 – 4.721)
Std
2.09 (95 % CI 1.761 – 2.396)

Which inputs matter most

The chart ranks the features of the sales model by permutation importance: how much the model's error rises when that feature's values are shuffled across rows so that it carries no information. A longer bar means the model relies on the feature 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 a feature 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: a feature can rank high because it stands in for something the data does not contain.

InputShare of importancePermutation importanceSensitivityResidual correlationOccurrences
price2.5760.088-0.050591
compprice0.790080.08475-0.035311
age0.601760.033940.462541
advertising0.220050.130.214041

Baselines

The table scores the model for sales against three reference predictors on the same held-out rows. The mean baseline always predicts the training average and is the floor: a model below it is worse than a constant. The median baseline always predicts the training median and holds up better when the target is skewed. The linear regression baseline is a straight-line model over all numeric features and appears when the data has at least one; it captures everything a linear relationship can. The Ufinq model is the last row.

Read the R² and MAE columns from top to bottom. When the model clears every baseline by a wide margin, its structure earns its place. When it is level with the linear regression baseline, the relationship is linear and the extra structure adds nothing. When it is level with the mean baseline, the features carry no usable signal for sales. R² reaches 1 for perfect prediction and falls below 0 when a predictor is worse than the mean; MAE is the average absolute miss in the units of sales.

R² lift of +0.581 over the strongest naive baseline, with a medium Cohen's d on paired residuals. The model meaningfully outperforms naive predictions; the underlying structure is real but not overwhelming.

Best baseline R²
-0.00449
Effect size d
0.7576 (95 % CI 0.52452 – 1.022)
Effect size d magnitude
medium
Model MAE
1.615 (95 % CI 1.339 – 1.919)
Model R²
0.5765 (95 % CI 0.46776 – 0.65626)
Held-out rows
80
Target
sales

Generalization

The chart sets the R² of the sales model on the rows it trained on beside its R² on the held-out rows it never saw, and the gap between the two bars is the finding. The held-out bar carries a bootstrap 95% confidence interval, which says how far that figure 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 R² 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 R² 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 R², too little evidence for a negative verdict. In every case the width of the held-out interval says how much weight the gap can bear.

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

Generalization gap
-0.07982
N test
80
Target
sales
Test error
1.615 (95 % CI 1.339 – 1.919)
Test R²
0.5765 (95 % CI 0.46776 – 0.65626)
Train error
0.49539
Train R²
0.49668
Verdict
Generalizing

Per-Term Partial Dependence

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

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

Additive
Yes
N terms
3
Notation
sum(0.0847499833454234 × compprice, 0.13 × advertising, 8.1) − (0.03394319364209295 × age + 0.088 × price)
Target
sales

Symbolic Behavior and Extrapolation

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

The model diverges beyond the observed range of x.compprice, x.advertising, x.age, x.price: predictions there are not supported by the formula's shape. Extrapolate with caution.

Bounded at infinity
No
N inputs
4
N singularities
0
Risky inputs
x.compprice, x.advertising, x.age, x.price
Target
sales
Limits at neg infinity
InputKind
x.comppriceNegative infinity
x.advertisingNegative infinity
x.agePositive infinity
x.pricePositive infinity
Limits at pos infinity
InputKind
x.comppricePositive infinity
x.advertisingPositive infinity
x.ageNegative infinity
x.priceNegative infinity

Per-Row Contribution Waterfall

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 sales. 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 feature 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.

Additive
Yes
N rows
5

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

Term Ablation

For each additive term of the formula for sales, 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 Per-Term Partial Dependence chapter 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.

Full-formula held-out R² is 0.577. 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.5765
Held-out rows
80

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

What-If

The chapter shows the model's prediction for sales 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 Term Ablation chapter. A short bar marks a term that makes a small adjustment here; the Per-Term Partial Dependence chapter 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.

Additive
Yes
Held-out rows for the interval
80
N terms
3
Residual P5
-3.074
Residual P95
3.716
Residual std
2.09

Sensitivity

For each input feature, the chart traces the rate at which the predicted sales changes as that feature 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 feature, measured by a small finite difference at each point. A table summarizes each feature 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 feature: 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 feature 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 a feature to which the prediction is highly responsive; the Term Ablation chapter says whether the term behind it also carries predictive work.

In the table, the mean absolute slope ranks the features 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.

No numeric input statistics are available, so sensitivity curves cannot be plotted. The training table provides no numeric ranges for the formula's free features.

Additive
Yes
N terms
3

2-Feature Interactions

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 sales across the plane of the two features, with every other input held at its training median. Pairs that never share a term have no interaction by construction, and the Per-Term Partial Dependence curves already say everything about them.

Parallel stripes mean the two features act almost independently, so the surface is close to a sum of two one-feature curves. Curved contours mean a real interaction, where the slope along one feature 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 Per-Term Partial Dependence curve for the same feature 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 features.

Some terms couple multiple features within a single term: genuine interactions exist. The heatmaps below show how the prediction's response to one feature depends on another (the others held at the median). Curved isocontours mean genuine interaction; parallel stripes mean the two features act separately.

Additive
Yes
N terms
3

Worst Predictions

The held-out rows on which the model misses sales 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 feature values. R² and MAE say how good the model is on average; these cards say where it fails and let each failure be read feature by feature 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 feature, read against the Per-Term Partial Dependence curve, 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.

The worst held-out row was missed by 5.19 (target's scale). The 10 rows with the largest absolute residuals out of 80 held-out rows are shown. Each card breaks the failure down into per-term contributions and feature 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.

ActualPredictedResidualAdvertisingAgeComppriceEducationIncomePopulationPriceShelvelocUrbanUs
1.426.611-5.1911880991632341108BADYesYes
11.176.4494.721115210718117148118GOODYesYes
14.910.834.069054139113217682GOODNoNo
13.919.8774.0330461101711040868GOODNoYes
13.399.4993.89120601491369366134GOODYesYes
1.825.563-3.7430771391745146133BADYesYes
4.157.886-3.7363381411364340128BADYesNo
13.559.8433.707030125129444789GOODYesNo
2.996.426-3.436055103117435997BADYesYes
12.619.1963.4141031118119054104GOODNoYes
Additive
Yes
N extrapolated
0
Held-out rows
80
Held-out rows for the interval
80
Residual P5
-3.074
Residual P95
3.716
Residual std
2.09

Prediction Interval Coverage

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

Across 80 held-out rows, the 95% prediction interval actually covers 98% of the rows. The normal band is wider than needed for this residual distribution (worst gap 7.50 percentage points), often because a few large residuals inflate σ above what the bulk requires. Real uncertainty for typical rows is tighter than the interval suggests.

Nominal levelHalf-widthEmpirical coverage
50 %1.40957.5 %
80 %2.67876.25 %
90 %3.43790 %
95 %4.09697.5 %
Largest miss (percentage points)
7.5
Held-out rows
80
Residual P2.5
-3.736
Residual P97.5
4.034
Verdict
Underconfident

Regression Diagnostics

Four residual diagnostics for sales, 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 Per-Term Partial Dependence and 2-Feature Interactions chapters 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 adjacent residuals correlate, usually a time component when the rows are time-ordered. 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, as in a time series or a sequence. For an unordered table it looks like noise even when the other three diagnostics find fault, so it is read alongside them, never alone.

80 held-out residuals, with a spread up to 5.19 in absolute terms. Mean residual is 0.0484, 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 carries the 95% confidence interval). The four charts below check whether the errors look like noise: a pattern in residuals-vs-fitted or a curving Q-Q means a structural miss; a spike at ACF lag 1 means structure tied to row order leaked through.

Held-out rows
80

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

Search Progress

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

The search ran for 269 generations, ending at quality 0.562 (gain +0.0621 from generation 0). The curve shows a substantial climb; if the last generations are still rising, more computation time is likely to produce a better model.

First generation
2
First quality
50.02 %
Last generation
269
Last quality
56.23 %
Max quality
56.23 %
N points
200
N total generations
269

Model Constraints

Sanity checks on the sales 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 expression misbehaves numerically somewhere in the data it was shown, and any downstream use of it should wait until that is understood.

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

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

Modeling

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

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

Error
49.54 %
N train
320
R²
0.55432

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 (Per-Segment Quality, Out-of-Distribution, 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.

Eighteen percent of the held-out rows lie outside the range the model was trained on, which could affect generalization to new data. A warning was flagged on out-of-distribution rows, see the Concerns chapter.

Most notable in the Implications section:

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

The concerns raised about this section are listed in the Concerns chapter.

Stakeholder Summary

The model predicts sales and explains 58% of the variation in sales on rows it never saw, relying most strongly on price, which accounts for 62% of its reliance. On the same held-out rows, always guessing the average explained -0.4% of the variation, so the model adds 58 points over that baseline.

While the check draws on 80 held-out rows and the model makes good use of the information in these data, it covers only part of the pattern and should not be relied on for individual predictions. Eighteen percent of held-out rows are outside the range the model was trained on, and errors differ between groups in shelveloc. Validate on a fresh sample before relying on the model for decisions.

Recommended Next Data

  • Collect more rows that are outside the training distribution. Reason: a notable minority of held-out rows, 18%, are outside the training distribution, which raises concern about the model’s generalization.
  • Record and review the group each row belongs to for the column shelveloc. Reason: the model's errors differ between groups in shelveloc, as flagged by the fairness diagnostic.
  • Add rows for underrepresented segments in the current data. Reason: the combination of 18% of held-out rows being out-of-distribution and flagged group differences in prediction errors signals that improved coverage will support a stronger model.

Quality by Input Range

Per-Segment Quality splits the held-out rows by every usable feature and compares each segment's R² with the overall held-out R². A numeric feature is split into quartiles; a categorical feature 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 R² minus the overall R².

  • Negative bars: the model is weaker on these rows than its headline R² implies. A segment 0.25 or more below the overall value 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.

Sales by Input Range

Segment us = false performs in line with the aggregate (30 held-out rows): segment R² 0.622 against aggregate R² 0.577 (gap 0.0457). No quality drift detected.

Column
us
Gap vs aggregate
0.04569
MAE
1.541
N
30
R²
0.62219
Residual mean
-0.14322
Value
false
Verdict
Consistent

Out-of-Distribution

Out-of-distribution detection finds held-out rows that lie far from the rows the model was trained on. For each numeric feature, a row's value is standardized against the training mean and standard deviation; the combined standardized distance across all features is compared with a fixed line at 3.0. Rows beyond that line are flagged as out of distribution: the headline quality is unlikely to apply to them. The more features the model uses, the more rows cross this fixed line, so the flagged share reads against the feature count rather than as an alarm rate.

The chart shows one bar per held-out row in row order; the flagged rows are the bars at or above the line.

The check treats features 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.

14 of 80 held-out rows (18%) exceed the diagonal-Mahalanobis z = 3.00 bracket: far from the training-row distribution on at least one feature axis. That is a notable minority: predictions on those rows extrapolate beyond the rows the model was fitted on. Their accuracy deserves caution; the Worst Predictions chapter often surfaces these same rows.

Held-out rows out of distribution
14
Held-out rows measured
80
Share out of distribution (%)
17.5
Distance line
3

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, mean residual, R² and MAE, 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.

Sales Fairness

Column shelveloc splits the held-out rows into 3 groups. The prediction-parity ratio is 0.894 (smallest over largest mean prediction), the largest absolute group residual mean is 2.88 (1.38 times the aggregate residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.

Aggregate residual std
2.09
N columns
3
Columns
Bias max abs residual meanColumnGroupsInterpretationN groupsPrediction parity ratioVerdict
2.878shelvelocGOOD, MEDIUM, BADColumn shelveloc splits the held-out rows into 3 groups. The prediction-parity ratio is 0.894 (smallest over largest mean prediction), the largest absolute group residual mean is 2.88 (1.38 times the aggregate residual standard deviation). Residual bias: at least one group is systematically over- or under-predicted. The model's errors are not zero-mean across groups; its predictions for the affected groups deserve caution.30.89444Residual bias
0.43734urbanfalse, trueColumn urban splits the held-out rows into 2 groups. The prediction-parity ratio is 0.954 (smallest over largest mean prediction), the largest absolute group residual mean is 0.437 (0.209 times the aggregate residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the aggregate residual standard deviation. No systematic disparity was detected on this column.20.95411Balanced
0.16341ustrue, falseColumn us splits the held-out rows into 2 groups. The prediction-parity ratio is 0.881 (smallest over largest mean prediction), the largest absolute group residual mean is 0.163 (0.0782 times the aggregate residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the aggregate residual standard deviation. No systematic disparity was detected on this column.20.8812Balanced

Causal Honesty

Diafunc fitted 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 feature causes the target.

A correlative model is the right tool for predicting future outcomes from similar inputs, for exploring which features 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 a feature will change the outcome, for attributing outcomes to specific causes for accountability, or for choosing between policies that act on the inputs.

To upgrade to causal claims

  • Controlled experiment: Randomize the feature to be acted on, then analyze again. Randomization breaks confounding, so any change in the target is attributable to the feature.
  • Natural experiment: Find a setting where the feature 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 feature and the target, stratify by it or condition on it before fitting again. Gaps in the Per-Segment Quality chapter are a clue.

The Per-Segment Quality, 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 a feature will change the target. The 4 upgrade pathways below show what evidence would support a causal claim.

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

Deployment Readiness

The analysis ran with the configuration below. The computed checks and the verdict follow once the diagnostics have run.

  • Targets: 1 target: sales
  • Rows: 400 rows
  • Per-Segment Predictions: not produced, because no segment column was chosen
  • Fairness: compared across 3 categorical columns (shelveloc, urban, us); which of them are protected attributes is not decided here
  • Out-of-Distribution: held-out rows are scored against the training rows; predictions made outside this report are not scored
  • Provenance & Audit: recorded in the chapter of that name

Across 6 checks (3 pass, 3 warn, 0 fail), the model passes the hard gates but at least one check warns: Ready with caution. A limited audience and monitoring of the warning signals come before a broad rollout.

NameStatusDetail
GeneralizationPassheld-out quality holds up against training quality
Prediction Interval CoverageWarnintervals are wider than their level requires, largest gap 7.50 percentage points
Baseline Lift for salesPassbeats the best baseline, R² lift 0.581
Model ConstraintsPassevery held-out prediction is finite and within the training range
FairnessWarn3 columns compared, 1 flagged: shelveloc (a group is systematically over- or under-predicted)
Out-of-DistributionWarn18% of held-out rows are out of distribution
N critical concerns
0
N fail
0
N pass
3
N warn
3
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.

ItemValue
Analysis IDf1ec5b50-48b7-11f1-8087-d378640fe787
Run time2026-09-17 06:05 UTC
Processed input tablefd38ab3d-13ae-4180-bb2e-54ffff8e7dc9
Total rows400
Modeled targetssales
Segment columnnot available
Computation time1 h 0 min
Compute budget500 credits

Findings

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