# Pitcher Salaries

Analysis report, automatically produced by Diafunc.

- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Analyzed:** 2026-11-06 21:31 UTC
- **Data:** [StatLib, Carnegie Mellon University](https://lib.stat.cmu.edu/datasets/baseball.data), published under https://diafunc.com/licences/view-only

## Summary

The model explains 62% of the variation in 1987 annual salary on opening day in thousands of dollars, relying entirely on the Number of wins during his career. Moving from 19 to 74 wins raises the model's output by about 519 on average, with everything else as observed. Compared with a straight line through the data, which explained 49% of the variation, the model came out ahead by 13 points in variance explained. On the held-out rows where the model's error and the yardstick's differ, the model was closer 69% of the time.

The analysis measured the model's accuracy on 35 held-out rows and found that model accuracy degrades on higher-magnitude predictions. The model's formula, at a complexity of 13.1, does not count as complex. Caution is due as there is a warning of missing values in the salary target and a prediction parity gap by Players league at the beginning of 1987. Validate on a fresh sample before relying on the model for decisions.

## Formula

```
1987 annual salary on opening day in thousands of dollars = 15.4 × Number of wins during his career + 0.000083 × Number of wins during his career^3 − 0.0705 × Number of wins during his career^2
```

3 terms · additively decomposable

## Held-out diagnostics

| Target | Quality | Error | R² | MAE | Search rows | Generalization | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 53.51% | 38.5% | 0.615 | 131.8 | 141 | generalizing | 35 |

- 1987 annual salary on opening day in thousands of dollars · Quality 95% CI 32.38% to 76.17%
- 1987 annual salary on opening day in thousands of dollars · Error 95% CI 19.74% to 56%
- 1987 annual salary on opening day in thousands of dollars · R² 95% CI 0.44 to 0.8026
- 1987 annual salary on opening day in thousands of dollars · MAE 95% CI 83.26 to 192.6

## Concerns

**WARNING** (data): Target `1987 annual salary on opening day in thousands of dollars` has missing values

30 of 206 rows (15%) have no `1987 annual salary on opening day in thousands of dollars` value. The model is trained on the remaining 176 rows; the quality metrics describe those rows, not the full data.

**WARNING** (model): Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions

Across 35 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 290, against 35.1 in the bottom third, 8.28 times as large. The bottom third holds predictions up to 202 and the top third predictions from 498. Relative to the predictions, the typical miss is 27% of the value in the bottom third and 42% in the top third, 1.57 times as large. The residual spread is 8.28 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them.

## Analysis

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

Generated 2026-11-06 21:31 UTC, analysis `56f15e70-48b7-11f1-8087-d378640fe787`, 1 target, time budget 1 h 0 min, compute budget 500 credits, 206 rows. The Provenance & Audit chapter holds the full record.

## Validity

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

*How to read this*

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

## What it found

1987 annual salary on opening day in thousands of dollars is highest at a middle value of Number of wins during his career.

1. **The formula reads a single input.** Everything the formula explains about 1987 annual salary on opening day in thousands of dollars comes from Number of wins during his career.
2. **One input has a best value in the middle of its range.** With the other inputs at typical values, the formula's value is highest near Number of wins during his career 149 and lower toward both ends of the range, 1 and 323.
3. **Number of innings pitched during his career is not in the formula.** It has the second-strongest correlation with 1987 annual salary on opening day in thousands of dollars in the table (0.49), despite being closely tied to Number of wins during his career.
4. **The formula's lead over a straight line is within chance.** The formula explains 62% of 1987 annual salary on opening day in thousands of dollars; a straight line explains 49%, but on 35 unseen rows that gap is within chance, so treat them as level.

## Summary

**What to do next:** Too few held-out rows to judge coverage, largest gap 24.3 percentage points.

6 chapters, each headed by what it found.

### S.1 Number of wins during his career carries the whole formula

*What the formula relies on.*

Measured on 14 of the 141 rows the model was found on, which the search set apart for it. On so few rows the order of the inputs is indicative, not settled. With Number of wins during his career the model's output rises on 7,366 and falls on 762 of the 8,128 steps between observed values. Moving Number of wins during his career from 19.0 to 74.0, its first and third quartile, with every other input as observed raises the model's output by 519 on average. These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.

**Table 5.1.3 · Which inputs matter most**

| Input | Share of importance | Permutation importance | Sensitivity | Residual correlation | Occurrences | Model's output as the input rises | Change, first to third quartile |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Number of wins during his career | 100% | 3.791 | 10.59 | -0.3773 | 1 | Rises and falls (rises on 7366, falls on 762 of 8128 steps) | +519.5 (19 to 74) |

- **Rows the search trained on, measured:** 127
- **N rows:** 14
- **Inputs the formula does not read:** Earned run average during his career, Earned run average in 1986, Number of games during his career, Number of games in 1986, Number of innings pitched during his career, Number of innings pitched in 1986, Number of losses during his career, Number of losses in 1986, Number of saves during his career, Number of saves in 1986, Number of wins in 1986, Number of years in the major leagues, Pitchers name, Players league at the beginning of 1987, Players league at the end of 1986, Players team at the beginning of 1987, Players team at the end of in 1986

Read as a sum, the formula has 3 additive terms. One of them carries 207% of the variation of the model's output on the 127 rows the search trained on: `15.4 × Number of wins during his career` (207%). A share describes the model's output, not the target. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median.

- **Additive:** Yes
- **Rows the search trained on, measured:** 127
- **Terms in the formula:** 3
- **Notation:** 15.4 × Number of wins during his career + 0.000083 × Number of wins during his career^3 − 0.0705 × Number of wins during his career^2
- **Target:** 1987 annual salary on opening day in thousands of dollars

### S.2 It holds on new rows: R² 0.62 held out, 0.61 on the training rows

*How well it holds.* The formula explains 62% of 1987 annual salary on opening day in thousands of dollars; a straight line explains 49%, but on 35 unseen rows that gap is within chance, so treat them as level.

**How this was checked**

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

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

- **Error:** 38.5% (95% CI 19.74% to 56%)
- **MAE:** 131.8 (95% CI 83.26 to 192.6)
- **N:** 35
- **Training rows:** 141
- **Quality:** 53.51% (95% CI 32.38% to 76.17%)
- **R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Rows found on:** 141
- **Target:** 1987 annual salary on opening day in thousands of dollars

The model beats the strongest simple yardstick, a straight line through the data, by 13 points of variance explained on the 35 held-out rows. Row by row the margin is **medium**: the structure is real but not overwhelming. Of the 35 held-out rows where the two differ, the model is closer on 69% (95% interval 52% to 81%). The interval of the margin includes zero: on this many held-out rows the lead is not settled.

- **Best yardstick's score:** 0.4872 (95% CI 0.1947 to 0.6041)
- **Best baseline R²:** 0.4872
- **Effect size d:** 0.5004 (95% CI 0.2079 to 0.9084)
- **Effect size d magnitude:** medium
- **Margin over the best yardstick:** 0.1278 (95% CI -0.06865 to 0.512)
- **Margin's interval stays above zero:** No
- **Model MAE:** 131.8 (95% CI 83.26 to 192.6)
- **Model:** 0.615 (95% CI 0.44 to 0.8026)
- **Model R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Held-out rows:** 35
- **Held-out rows without an answer:** 0
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Rows where the model is closer:** 68.57% (95% CI 52.02% to 81.45%)
- **Rows compared:** 35
- **Rows level:** 0
- **Regression yardstick trained with gaps filled (too few complete rows):** No
- **Training rows of the regression yardstick:** 141

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

- **Generalization gap:** -0.008167
- **N test:** 35
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Test error:** 131.8 (95% CI 83.26 to 192.6)
- **Test R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Train error:** 0.4018
- **Train R²:** 0.6068
- **Verdict:** Generalizing

### S.3 No range of its inputs where it is markedly weaker

*Where it is weak.* The largest miss on a held-out row is 828 (recorded 1500, predicted 672).

Segment `number_of_saves_during_his_career` in the highest quarter (19 to 194) has only 8 held-out rows, too few to assess quality, so the verdict is suppressed.

**Table 6.2.1 · 1987 annual salary on opening day in thousands of dollars by Input Range**

| Segment | Rows | R² | Gap to all rows | Verdict |
| --- | --- | --- | --- | --- |
| Number of saves during his career = q4 | 8 | -2.8606 | -3.4756 | Too few rows to judge |
| Number of losses during his career = q2 | 9 | 0.3684 | -0.2466 | Too few rows to judge |
| Number of innings pitched during his career = q3 | 12 | 0.0646 | -0.5504 | Too few rows to judge |
| Earned run average in 1986 = q1 | 12 | 0.3750 | -0.2400 | Too few rows to judge |
| Number of games during his career = q4 | 7 | -4.8074 | -5.4224 | Too few rows to judge |
| Number of wins during his career = q3 | 13 | 0.0061 | -0.6089 | Too few rows to judge |
| Number of wins in 1986 = q1 | 4 | 0.5107 | -0.1043 | Too few rows to judge |
| Number of years in the major leagues = q4 | 5 | -5.5838 | -6.1988 | Too few rows to judge |
| Earned run average during his career = q1 | 9 | 0.4792 | -0.1358 | Too few rows to judge |
| Number of games during his career = q3 | 4 | -0.6808 | -1.2958 | Too few rows to judge |

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

- **Aggregate MAE:** 131.8
- **Aggregate R²:** 0.615
- **Measure:** r2
- **Target:** 1987 annual salary on opening day in thousands of dollars

The worst held-out row was missed by 828 (target's scale). The 10 rows with the largest absolute residuals out of 35 held-out rows are shown. Each card breaks the failure down into per-term contributions and input values, so the failure mode is inspectable. A large residual with one concentrated term contribution means one term got this row wrong; a large residual with balanced contributions means a structural mismatch.

**Table 5.1.13 · Worst Predictions**

| Actual | Predicted | Residual | Number of wins during his career |
| --- | --- | --- | --- |
| 1500.0 | 672.2 | +827.8 | 58 |
| 1000.0 | 466.9 | +533.1 | 36 |
| 820.0 | 466.9 | +353.1 | 36 |
| 620.0 | 305.6 | +314.4 | 22 |
| 825.0 | 528.6 | +296.4 | 42 |
| 750.0 | 997.5 | -247.5 | 162 |
| 218.0 | 434.4 | -216.4 | 33 |
| 650.0 | 488.0 | +162.0 | 38 |
| 300.0 | 456.2 | -156.2 | 35 |
| 110.0 | 241.8 | -131.8 | 17 |

- **Additive:** Yes
- **Expected coverage:** 0.85
- **N extrapolated:** 0
- **Held-out rows:** 35
- **Held-out rows for the interval:** 35
- **Rows inside the interval:** 33
- **Residual P5:** -174.3
- **Residual P95:** 407.1
- **Residual std:** 214.2

0 of 35 held-out rows (0%) lie further from the training rows than 99 in 100 rows like them would, measured on the 1 input the model reads (`number_of_wins_during_his_career`). That is a **small minority**; the held-out figures describe the model on rows like the ones it was trained on.

**Table 6.3 · Rows unlike the ones the model learned from**

| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
| --- | --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | Number of wins during his career | 2.576 | 35 | 0 | 0% |

**Table 6.3 · Score bins · 24 of 30 rows shown**

| Count | From | To |
| --- | --- | --- |
| 2 | 0 | 0.103 |
| 0 | 0.103 | 0.206 |
| 7 | 0.206 | 0.309 |
| 8 | 0.309 | 0.412 |
| 2 | 0.412 | 0.515 |
| 1 | 0.515 | 0.618 |
| 4 | 0.618 | 0.721 |
| 7 | 0.721 | 0.824 |
| 2 | 0.824 | 0.927 |
| 0 | 0.927 | 1.03 |

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

### S.4 Usable with care: 2 points to watch

*What to watch.* First: Target 1987 annual salary on opening day in thousands of dollars has missing values.

**Table 3 · Concerns**

| Severity | Section | Concern | Detail |
| --- | --- | --- | --- |
| Warning | Data | Target 1987 annual salary on opening day in thousands of dollars has missing values | 30 of 206 rows (15%) have no 1987 annual salary on opening day in thousands of dollars value. The model is trained on the remaining 176 rows; the quality metrics describe those rows, not the full data. |
| Warning | Model | Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions | Across 35 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 290, against 35.1 in the bottom third, 8.28 times as large. The bottom third holds predictions up to 202 and the top third predictions from 498. Relative to the predictions, the typical miss is 27% of the value in the bottom third and 42% in the top third, 1.57 times as large. The residual spread is 8.28 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them. |

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

- **Targets**: 1 target: `1987_annual_salary_on_opening_day_in_thousands_of_dollars`
- **Rows**: 206 rows
- **Per-Segment Predictions**: not produced, because no segment column was chosen
- **Fairness**: compared across 5 categorical columns (`pitchers_name`, `players_league_at_the_beginning_of_1987`, `players_league_at_the_end_of_1986`, `players_team_at_the_beginning_of_1987`, `players_team_at_the_end_of_in_1986`); which of them are protected attributes is not decided here
- **Out-of-Distribution**: held-out rows are scored against the training rows; predictions made outside this report are not scored
- **Provenance & Audit**: recorded in the chapter of that name

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

**Table 6.6 · Deployment Readiness**

| Name | Status | Detail |
| --- | --- | --- |
| Generalization | Pass | quality on the held-out rows matches quality on the rows the model was found on |
| Prediction Interval Coverage | Warn | too few held-out rows to judge coverage, largest gap 24.3 percentage points |
| Baseline Lift for 1987 annual salary on opening day in thousands of dollars | Pass | beats the best baseline, R² lift 0.128 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Warn | 2 columns compared, 1 flagged: Players league at the beginning of 1987 (a group receives systematically smaller predictions) |
| Out-of-Distribution | Pass | 0% of held-out rows are out of distribution |

- **N critical concerns:** 0
- **N fail:** 0
- **N pass:** 4
- **N warn:** 2
- **Overall verdict:** Caution

Column `Players league at the beginning of 1987` splits the held-out rows into 2 groups. The prediction-parity ratio is 0.791 (smallest over largest mean prediction), the largest absolute group residual mean is 35.4 (0.165 times the overall residual standard deviation). **Parity gap**: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking. `players_team_at_the_beginning_of_1987` goes closely with `players_league_at_the_beginning_of_1987` (association 0.865 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads `players_team_at_the_beginning_of_1987` can tell the groups of `players_league_at_the_beginning_of_1987` apart, so leaving `players_league_at_the_beginning_of_1987` out of the inputs does not keep it out of the predictions.

- **Aggregate residual std:** 214.2
- **N columns:** 2
- **N proxies:** 6
- **Proxy threshold:** 0.5

**Table 6.4.1 · Columns**

| Bias max abs residual mean | Column | Groups | Interpretation | N groups | N proxies | Prediction parity ratio | Verdict |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 35.44 | Players league at the beginning of 1987 | N, A | Column Players league at the beginning of 1987 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.791 (smallest over largest mean prediction), the largest absolute group residual mean is 35.4 (0.165 times the overall residual standard deviation). Parity gap: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking. players_team_at_the_beginning_of_1987 goes closely with players_league_at_the_beginning_of_1987 (association 0.865 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads players_team_at_the_beginning_of_1987 can tell the groups of players_league_at_the_beginning_of_1987 apart, so leaving players_league_at_the_beginning_of_1987 out of the inputs does not keep it out of the predictions. | 2 | 3 | 0.7908 | Prediction parity gap |
| 63.09 | Players league at the end of 1986 | N, A | Column Players league at the end of 1986 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.808 (smallest over largest mean prediction), the largest absolute group residual mean is 63.1 (0.294 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column. players_league_at_the_beginning_of_1987 goes closely with players_league_at_the_end_of_1986 (association 0.863 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads players_league_at_the_beginning_of_1987 can tell the groups of players_league_at_the_end_of_1986 apart, so leaving players_league_at_the_end_of_1986 out of the inputs does not keep it out of the predictions. | 2 | 3 | 0.8078 | Balanced |

### S.5 A larger held-out set would firm up the figures

*What to collect next.* The figures rest on 35 held-out rows.

- Collect more rows with higher 1987 annual salary on opening day in thousands of dollars. Reason: residual variance grows with predicted value, so model accuracy degrades on higher-magnitude predictions.
- Record the group each row belongs to for the column Players league at the beginning of 1987. Reason: the model has a prediction parity gap across this column according to the fairness diagnostic.
- Add complete values for the target 1987 annual salary on opening day in thousands of dollars where missing. Reason: the model's target has missing values.

### S.6 It shows how 1987 annual salary on opening day in thousands of dollars moves with its inputs in these rows, not what causes it

*What this model does not show.* It was built on Number of wins during his career from 1 to 323; outside those ranges it has not been checked. 53 slices of the data had too few held-out rows to judge.

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

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

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

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

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

**Table 6.5 · Upgrade pathways**

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

## Evidence

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

### 1 Headline

Diafunc modeled 1987 annual salary on opening day in thousands of dollars from 18 columns, using Number of wins during his career alone. The model explains 62% of the variation in annual salary and relies most on Number of wins during his career, with which the model's output rises on most rows and falls on some.

- One target was modeled; 35 rows were held out for checking.
- A straight line through the data already explained 49%; the model added 13 points of variance explained, a medium margin.
- The fairness check found a prediction parity gap by Players league at the beginning of 1987, measured on 35 rows.

- **Best R²:** 0.615
- **Best quality:** 53.51%
- **Best target:** 1987_annual_salary_on_opening_day_in_thousands_of_dollars
- **Targets:** 1

### 2 Stakeholder Summary

The model explains 62% of the variation in 1987 annual salary on opening day in thousands of dollars, relying entirely on the Number of wins during his career. Moving from 19 to 74 wins raises the model's output by about 519 on average, with everything else as observed. Compared with a straight line through the data, which explained 49% of the variation, the model came out ahead by 13 points in variance explained. On the held-out rows where the model's error and the yardstick's differ, the model was closer 69% of the time.

The analysis measured the model's accuracy on 35 held-out rows and found that model accuracy degrades on higher-magnitude predictions. The model's formula, at a complexity of 13.1, does not count as complex. Caution is due as there is a warning of missing values in the salary target and a prediction parity gap by Players league at the beginning of 1987. Validate on a fresh sample before relying on the model for decisions.

### 3 Concerns

**Table 3 · Concerns**

| Severity | Section | Concern | Detail |
| --- | --- | --- | --- |
| Warning | Data | Target 1987 annual salary on opening day in thousands of dollars has missing values | 30 of 206 rows (15%) have no 1987 annual salary on opening day in thousands of dollars value. The model is trained on the remaining 176 rows; the quality metrics describe those rows, not the full data. |
| Warning | Model | Residual variance grows with predicted value: model accuracy degrades on higher-magnitude predictions | Across 35 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 290, against 35.1 in the bottom third, 8.28 times as large. The bottom third holds predictions up to 202 and the top third predictions from 498. Relative to the predictions, the typical miss is 27% of the value in the bottom third and 42% in the top third, 1.57 times as large. The residual spread is 8.28 times as large at the high end: noticeable, not severe. Predictions at the high end deserve caution; a log transform of the target may tighten them. |

*How to read this*

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

### 4 Discovered Relations

**Table 4 · Quality and error measured on the 35 held-out rows**

| Target | Formula | Quality | Complexity | Error |
| --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 1987_annual_salary_on_opening_day_in_thousands_of_dollars = 15.4 × Number of wins during his career + 0.000083 × Number of wins during his career^3 − 0.0705 × Number of wins during his career^2 | 53.51% | 13.1% | 38.5% |

*How to read this*

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

### 5 Model

The model relies entirely on number of wins during his career to estimate the 1987 annual salary on opening day in thousands of dollars, with the share of variation explained measured at 0.615 on held-out rows. Model accuracy decreases for higher-magnitude salary predictions, as noted in the Concerns chapter.

Most notable in the Model section:

- `Number of wins during his career` carries most of the model (100% of its reliance on inputs)

*How to read this*

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

#### 5.1 1987 annual salary on opening day in thousands of dollars

The Model section builds one model for `1987 annual salary on opening day in thousands of dollars`: a formula that expresses it through the other columns. Diafunc searches the space of mathematical expressions for the formula that balances accuracy against simplicity, so the result is not a black box but an expression that can be read, evaluated and questioned. The chapters that follow show the formula, score it on rows it never saw during training, and take it apart term by term.

##### 5.1.1 1987 annual salary on opening day in thousands of dollars Model

The model's output rises with Number of wins during his career, which is the only input the formula relies on.

```
1987_annual_salary_on_opening_day_in_thousands_of_dollars = 15.4 × Number of wins during his career + 0.000083 × Number of wins during his career^3 − 0.0705 × Number of wins during his career^2
```

Quality 53.51% · Error 38.5% on 35 rows the search never saw · Found on 141 rows · Complexity 13.1%

**Table 5.1.1 · Constants of the formula**

| Value | Role | Input | Unit |
| --- | --- | --- | --- |
| 15.4 | Slope | Number of wins during his career | Output units per unit of Number of wins during his career |
| 8.300e-05 | Coefficient |  |  |
| -0.0705 | Coefficient |  |  |

- **Share of the output's variation they carry:** 207.01%
- **Rows the search trained on, measured:** 127
- **Rows the search trained on:** 127
- **Held out R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Constants in the formula:** 3
- **Terms that reach 95% of the output's variation:** 1
- **Training rows:** 141
- **Held-out rows:** 35
- **Inputs the formula reads:** 1
- **Terms in the formula:** 3
- **Inputs the formula does not read:** Earned run average during his career, Earned run average in 1986, Number of games during his career, Number of games in 1986, Number of innings pitched during his career, Number of innings pitched in 1986, Number of losses during his career, Number of losses in 1986, Number of saves during his career, Number of saves in 1986, Number of wins in 1986, Number of years in the major leagues, Pitchers name, Players league at the beginning of 1987, Players league at the end of 1986, Players team at the beginning of 1987, Players team at the end of in 1986

*How to read this*

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

**Table 5.1.1 · 1987 annual salary on opening day in thousands of dollars Model**

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

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

##### 5.1.2 Prediction

The model predicts `1987 annual salary on opening day in thousands of dollars` for any row that supplies the other columns. This chapter applies it to the held-out rows, the rows set aside before training, so that the predictions can be compared with values the model never saw. The rows themselves and the function that predicts them are kept as reference under Foundation, with the processed data.

###### 5.1.2.1 Prediction Chart

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

- **Error:** 38.5% (95% CI 19.74% to 56%)
- **MAE:** 131.8 (95% CI 83.26 to 192.6)
- **N:** 35
- **Training rows:** 141
- **Quality:** 53.51% (95% CI 32.38% to 76.17%)
- **R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Rows found on:** 141
- **Target:** 1987 annual salary on opening day in thousands of dollars

*How to read this*

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

###### 5.1.2.2 Residual Distribution

- **Bias:** 18.25 (95% CI -41.48 to 97.35)
- **N:** 35
- **P50:** -37.01 (95% CI -78.36 to -7.033)
- **P90:** 307.2 (95% CI 26.29 to 615.4)
- **P95:** 407.1 (95% CI 127.4 to 827.8)
- **P99:** 727.6 (95% CI 314.4 to 827.8)
- **Std:** 214.2 (95% CI 119.8 to 300.9)

*How to read this*

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

##### 5.1.3 Which inputs matter most

Measured on 14 of the 141 rows the model was found on, which the search set apart for it. On so few rows the order of the inputs is indicative, not settled. With Number of wins during his career the model's output rises on 7,366 and falls on 762 of the 8,128 steps between observed values. Moving Number of wins during his career from 19.0 to 74.0, its first and third quartile, with every other input as observed raises the model's output by 519 on average. These are measurements on the rows the search trained on, inside the observed ranges; outside them nothing is claimed.

**Table 5.1.3 · Which inputs matter most**

| Input | Share of importance | Permutation importance | Sensitivity | Residual correlation | Occurrences | Model's output as the input rises | Change, first to third quartile |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Number of wins during his career | 100% | 3.791 | 10.59 | -0.3773 | 1 | Rises and falls (rises on 7366, falls on 762 of 8128 steps) | +519.5 (19 to 74) |

- **Rows the search trained on, measured:** 127
- **N rows:** 14
- **Inputs the formula does not read:** Earned run average during his career, Earned run average in 1986, Number of games during his career, Number of games in 1986, Number of innings pitched during his career, Number of innings pitched in 1986, Number of losses during his career, Number of losses in 1986, Number of saves during his career, Number of saves in 1986, Number of wins in 1986, Number of years in the major leagues, Pitchers name, Players league at the beginning of 1987, Players league at the end of 1986, Players team at the beginning of 1987, Players team at the end of in 1986

*How to read this*

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

##### 5.1.4 Baselines

The model beats the strongest simple yardstick, a straight line through the data, by 13 points of variance explained on the 35 held-out rows. Row by row the margin is **medium**: the structure is real but not overwhelming. Of the 35 held-out rows where the two differ, the model is closer on 69% (95% interval 52% to 81%). The interval of the margin includes zero: on this many held-out rows the lead is not settled.

- **Best yardstick's score:** 0.4872 (95% CI 0.1947 to 0.6041)
- **Best baseline R²:** 0.4872
- **Effect size d:** 0.5004 (95% CI 0.2079 to 0.9084)
- **Effect size d magnitude:** medium
- **Margin over the best yardstick:** 0.1278 (95% CI -0.06865 to 0.512)
- **Margin's interval stays above zero:** No
- **Model MAE:** 131.8 (95% CI 83.26 to 192.6)
- **Model:** 0.615 (95% CI 0.44 to 0.8026)
- **Model R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Held-out rows:** 35
- **Held-out rows without an answer:** 0
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Rows where the model is closer:** 68.57% (95% CI 52.02% to 81.45%)
- **Rows compared:** 35
- **Rows level:** 0
- **Regression yardstick trained with gaps filled (too few complete rows):** No
- **Training rows of the regression yardstick:** 141

*How to read this*

> The table scores the model for `1987 annual salary on opening day in thousands of dollars` against simple yardsticks on the same held-out rows. A yardstick is a predictor simple enough to need no explanation: a constant (the average, the middle value, the most common class or level, the average count), a plain regression on the numeric inputs (a straight line, a logistic regression, a Poisson regression), and for a series over time a forecast from its own past (the last value, the value one season back, the recent trend extended). Which of them appear depends on what kind of column `1987 annual salary on opening day in thousands of dollars` is. They are yardsticks only: the analysis has one model, and it is the last row. A regression yardstick answers every row the model answers: where one of its numeric inputs is empty, it reads the average of that input over the training rows. Nothing is filled in for the model. A yardstick whose row is empty could not be scored, and the summary then says what the margin is measured against.
> 
> Read the columns from top to bottom. Each kind of target is scored by the measure it is judged on: R² and MAE for a continuous value, with MASE added for a series (below 1 means a typical miss is smaller than the series' usual step from one row to the next); accuracy and balanced accuracy for a yes/no value, with the Brier score where a probability is predicted; accuracy and macro F1 for a class; weighted kappa and the distance in levels for an ordered level; Poisson deviance and RMSE for a count. When the model clears every yardstick by a wide margin, its structure earns its place. When it is level with the regression yardstick, a plain regression describes the data as well. When it is level with the constant, the inputs carry no usable signal for `1987 annual salary on opening day in thousands of dollars`.
> 
> The margin over the best yardstick comes with an interval. When that interval includes zero, the lead is not settled on this many held-out rows. The share of rows on which the model is closer than the best yardstick is counted only on the rows where the two differ; for a yes/no value or a class these are the rows where the two disagree.

##### 5.1.5 Generalization

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

- **Generalization gap:** -0.008167
- **N test:** 35
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Test error:** 131.8 (95% CI 83.26 to 192.6)
- **Test R²:** 0.615 (95% CI 0.44 to 0.8026)
- **Train error:** 0.4018
- **Train R²:** 0.6068
- **Verdict:** Generalizing

*How to read this*

> The chart sets the score of the `1987 annual salary on opening day in thousands of dollars` model on the rows it trained on beside its score on the held-out rows it never saw, and the gap between the two bars is the finding. The score is the one that suits the target: R² for a quantity, balanced accuracy for a yes/no target, weighted kappa for ordered levels. The held-out figure carries a bootstrap 95% confidence interval, which says how far it could move with a different held-out draw; the training bar has none, because it is measured on the rows that shaped the model.
> 
> The verdict reads from the two figures. **Generalizing**: the held-out score is strong, or training and held-out agree closely; the structure the formula encodes carries to new rows. **Overfit**: training is far ahead of held-out and the held-out score is not strong on its own; the formula has absorbed noise from the training rows, and the training figure overstates what to expect on new data. **Underfit or noisy**: held-out is far ahead of training; this is not strength, it usually means an outlier or a flat region in the training rows that the held-out rows happen to avoid. **Insufficient**: fewer than 30 held-out rows and no strong held-out score, too little evidence for a negative verdict. A model that predicts the same value for every held-out row gets no verdict: there is nothing that could carry over. In every case the width of the held-out interval says how much weight the gap can bear.

##### 5.1.6 How each term responds to its inputs

Read as a sum, the formula has 3 additive terms. One of them carries 207% of the variation of the model's output on the 127 rows the search trained on: `15.4 × Number of wins during his career` (207%). A share describes the model's output, not the target. Each curve below shows one term's response to its free inputs, with the other inputs held at the training median.

- **Additive:** Yes
- **Rows the search trained on, measured:** 127
- **Terms in the formula:** 3
- **Notation:** 15.4 × Number of wins during his career + 0.000083 × Number of wins during his career^3 − 0.0705 × Number of wins during his career^2
- **Target:** 1987 annual salary on opening day in thousands of dollars

*How to read this*

> The formula for `1987 annual salary on opening day in thousands of dollars` is split into its additive terms, and each term is traced as one of its inputs moves across the training range while the other inputs stay at their medians. Each curve is therefore a profile of the term at the typical row, not an average over the data: it shows what the term contributes at every value of that input when everything else is ordinary.
> 
> A term that depends on several inputs gets one curve per input; a constant term gets none. Terms the formula subtracts are drawn with their sign, so a curve below zero pulls the prediction down. At any fixed row, the terms add up to the model's prediction. Where the search measured it, a term also carries its share of the variation of the model's output on the rows the search trained on; that is a share of what the formula returns, not of `1987 annual salary on opening day in thousands of dollars` itself. The notebook lets the reader trim each range to the central 95% of the input. When the formula has no additive structure, the chapter traces the whole formula as a single term along each of its inputs, and the Sensitivity chapter is the better read for how the inputs combine.

##### 5.1.7 How the formula behaves outside the data

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

- **Bounded at infinity:** No
- **Rows the search trained on, measured:** 127
- **Inputs the formula reads:** 1
- **N singularities:** 0
- **Risky inputs:** number_of_wins_during_his_career
- **Target:** 1987 annual salary on opening day in thousands of dollars

**Table 5.1.7 · Limits at neg infinity**

| Input | Kind |
| --- | --- |
| Number of wins during his career | Negative infinity |

**Table 5.1.7 · Limits at pos infinity**

| Input | Kind |
| --- | --- |
| Number of wins during his career | Unknown |

*How to read this*

> The formula for `1987 annual salary on opening day in thousands of dollars` is read as a mathematical object, without data, to state how it behaves beyond the range it was trained on. A black box cannot answer that question; a formula can. For each input the chapter reports the limit as the input grows without bound in either direction (whether the formula diverges, settles to a finite value or oscillates, with the sign tracked exactly, so that a term like minus two times the cube of the input is reported as diverging downward on the right and upward on the left), whether the formula stays finite in every direction, and any singularity with its solved location: a division whose denominator reaches zero, a logarithm or square root whose argument leaves its domain, or a periodic pole.
> 
> The inputs along which the formula diverges or meets a singularity are listed as the risky ones; along them the formula's shape gives no support for extrapolation. A formula that stays finite everywhere with no singularity carries no structural hazard when extrapolated; the data still ends where it ends, and a prediction outside the training range remains unsupported by evidence. The plain-language summary at the end states the same facts in one paragraph.

##### 5.1.8 Contributions per term

- **Additive:** Yes
- **N rows:** 5

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

*How to read this*

> For up to five representative held-out rows, the chapter draws one bar chart showing how each additive term of the formula builds that row's prediction of `1987 annual salary on opening day in thousands of dollars`. The five rows are the worst prediction (largest absolute residual), the best (smallest), the median miss, the row with the smallest prediction and the row with the largest. When two roles fall on the same row, which is common with few held-out rows, the earlier role keeps it and fewer than five charts appear.
> 
> In each chart the bars stack the terms' contributions at the row's input values, terms the formula subtracts sit below zero, and the bars sum to the prediction. The dashed line marks the actual value; the distance between it and the top of the stack is the residual. The bars are evaluated at the same precision as the predictions, so they agree with the Prediction Chart. When the formula has no additive structure, each chart holds one bar for the whole formula, and the Sensitivity chapter is the better read for how individual inputs move it.

##### 5.1.9 What each term is worth

Full-formula R² is 0.615. 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.615
- **Held-out rows:** 35

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

*How to read this*

> For each additive term of the formula for `1987 annual salary on opening day in thousands of dollars`, the chart shows how much the held-out R² drops when that term is replaced by its mean contribution, so that it no longer varies from row to row. The bars are sorted from the largest drop down, and the dashed line marks the R² of the full model.
> 
> A large drop means the term carries real predictive work; the complexity it adds is paid for. A small drop means the term adds little beyond its average value: it may refine a stronger term, or its curve in the chapter "How each term responds to its inputs" may be nearly flat. A negative drop means the held-out R² rises without the term, which is a sign that the term tracks noise in the training rows. Each figure describes what a term contributes inside the model as discovered; the chart diagnoses the model, it is not a guide to removing terms. When the formula has no additive structure, the chart shows one bar for the whole formula.

##### 5.1.10 What-If

**Table 5.1.10 · The prediction at the typical row: every input at its median or most common value**

| Item | Value |
| --- | --- |
| Number of wins during his career | 36 |
| Term 1 adds | 554.4 |
| Term 2 adds | 3.872 |
| Term 3 adds | -91.37 |
| Prediction | 466.9 |

- **Additive:** Yes
- **Expected coverage:** 0.85
- **Held-out rows for the interval:** 35
- **Rows inside the interval:** 33
- **Terms in the formula:** 3
- **Residual P5:** -174.3
- **Residual P95:** 407.1
- **Residual std:** 214.2

*How to read this*

> The chapter shows the model's prediction for `1987 annual salary on opening day in thousands of dollars` at one input combination, with the contribution of each term stacked beneath it. The inputs start at their training medians, so the first view is the prediction for a typical row, and each input can move within the range the training rows cover; the notebook lets the reader change the inputs and watch the prediction and the stack update.
> 
> In the stack, a long bar marks the term that dominates at this input combination, often the one whose removal costs most in the chapter "What each term is worth". A short bar marks a term that makes a small adjustment here; the chapter "How each term responds to its inputs" shows whether it stays small everywhere or grows toward the edges of the range. A negative bar marks a term that pulls the prediction down at this point, either because the formula subtracts it or because it evaluates below zero.
> 
> The inputs stay inside the training range for a reason: the formula computes a value anywhere, but outside that range no training row supports it. When the formula has no additive structure, the stack holds a single bar for the whole formula and the inputs move the prediction directly.

##### 5.1.11 Sensitivity

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

- **Additive:** Yes
- **Terms in the formula:** 3

*How to read this*

> For each input, the chart traces the rate at which the predicted `1987 annual salary on opening day in thousands of dollars` changes as that input moves across its training range, with the other inputs held at their medians. The rate is the local slope of the prediction with respect to the input, measured by a small finite difference at each point. A table summarizes each input with the mean, minimum and maximum of the absolute slope, which ranks the inputs by how strongly the prediction responds to them.
> 
> A flat curve means the model is close to linear in that input: the prediction responds at the same rate everywhere in the observed range, which is easy to state and says nothing about values beyond that range. A curve that grows or shrinks marks diminishing or accelerating returns, and whether that is plausible is a question for the domain. A curve that crosses zero means the prediction rises with the input in one part of the range and falls in another, which is either a real optimum or a sign that the formula bends around a few rows. A curve with a large magnitude marks an input to which the prediction is highly responsive; the chapter "What each term is worth" says whether the term behind it also carries predictive work.
> 
> In the table, the mean absolute slope ranks the inputs by typical responsiveness. A minimum close to the maximum means the responsiveness is nearly constant; a wide gap means it varies strongly across the range. The chapter reads the whole formula, so it applies whether or not the formula splits into terms.

##### 5.1.12 How two inputs act together

The formula reads one input, so there is no pair of inputs that could act together. How the model's output moves with that input is in the chapter "How each term responds to its inputs".

- **Additive:** Yes
- **Inputs in different terms act separately:** Yes
- **Rows the search trained on, measured:** 127
- **Terms in the formula:** 3
- **Input pairs not tested:** 0

*How to read this*

> When a single term of the formula combines two or more inputs, the prediction's response to one of them depends on the value of the other. This chapter draws one surface for each such pair: the predicted `1987 annual salary on opening day in thousands of dollars` across the plane of the two inputs, with every other input held at its training median. Pairs that never share a term have no interaction by construction, and the curves in the chapter "How each term responds to its inputs" already say everything about them. Where the search tested a pair, the summary says on how many pairs of rows the two inputs acted together in the model's output; that is a statement about the formula, not a finding that the data hold no other interaction.
> 
> Parallel stripes mean the two inputs act almost independently, so the surface is close to a sum of two one-input curves. Curved contours mean a real interaction, where the slope along one input changes with the other; the location of the peak or trough matters. A saddle, rising along one axis and falling along the other, marks a trade-off between the two. A sharp edge or cliff means the formula encodes a change of regime, and the curve for the same input in the chapter "How each term responds to its inputs" shows whether the bend appears there too.
> 
> The grid is deliberately coarse, and the color scale runs from low to high predictions. When the formula has no additive structure, the single whole-formula term holds every input, so every pair appears; the number of surfaces is capped for models with many inputs.

##### 5.1.13 Worst Predictions

The worst held-out row was missed by 828 (target's scale). The 10 rows with the largest absolute residuals out of 35 held-out rows are shown. Each card breaks the failure down into per-term contributions and input values, so the failure mode is inspectable. A large residual with one concentrated term contribution means one term got this row wrong; a large residual with balanced contributions means a structural mismatch.

**Table 5.1.13 · Worst Predictions**

| Actual | Predicted | Residual | Number of wins during his career |
| --- | --- | --- | --- |
| 1500.0 | 672.2 | +827.8 | 58 |
| 1000.0 | 466.9 | +533.1 | 36 |
| 820.0 | 466.9 | +353.1 | 36 |
| 620.0 | 305.6 | +314.4 | 22 |
| 825.0 | 528.6 | +296.4 | 42 |
| 750.0 | 997.5 | -247.5 | 162 |
| 218.0 | 434.4 | -216.4 | 33 |
| 650.0 | 488.0 | +162.0 | 38 |
| 300.0 | 456.2 | -156.2 | 35 |
| 110.0 | 241.8 | -131.8 | 17 |

- **Additive:** Yes
- **Expected coverage:** 0.85
- **N extrapolated:** 0
- **Held-out rows:** 35
- **Held-out rows for the interval:** 35
- **Rows inside the interval:** 33
- **Residual P5:** -174.3
- **Residual P95:** 407.1
- **Residual std:** 214.2

*How to read this*

> The held-out rows on which the model misses `1987 annual salary on opening day in thousands of dollars` by the most, sorted by absolute residual with the largest first and capped at ten. Each card shows the row's actual value, the prediction, the residual, the contribution of every additive term at that row and the row's input values. R² and MAE say how good the model is on average; these cards say where it fails and let each failure be read input by input and term by term.
> 
> A large residual with one dominant term means that term produced the wrong value at this row; the row's value for that input, read against its curve in the chapter "How each term responds to its inputs", shows whether it fell in a region the formula models poorly. A large residual with balanced contributions means every term was a little off and the sum still missed, which points to a shape the formula cannot represent in that region. Residuals that change sign from card to card mean the misses are not a consistent bias but scattered errors on particular rows. When the formula has no additive structure, each card shows a single whole-formula contribution.

##### 5.1.14 Prediction Interval Coverage

Coverage is counted on 35 rows, where one row moves it by 3 points. That is too coarse to judge whether the interval is well calibrated; the table shows the counts.

**Table 5.1.14 · Prediction Interval Coverage**

| Nominal level | Half-width | Empirical coverage |
| --- | --- | --- |
| 50% | 144.5 | 26 of 35 (74.29%) |
| 80% | 274.6 | 30 of 35 (85.71%) |
| 90% | 352.4 | 32 of 35 (91.43%) |
| 95% | 419.9 | 33 of 35 (94.29%) |

- **Largest miss (percentage points):** 24.29
- **Held-out rows:** 35
- **Rows inside the interval:** 26, 30, 32, 33
- **Residual P2.5:** -221.1
- **Residual P97.5:** 577.3
- **Verdict:** insufficient-data

*How to read this*

> Each held-out prediction of `1987 annual salary on opening day in thousands of dollars` carries a prediction interval, and this chapter checks whether that interval covers the actual value as often as it claims. The interval reported with each prediction is built from the held-out residuals themselves: its bounds are the 2.5th and 97.5th percentiles of the residuals added to the prediction, so it is asymmetric when the residuals are skewed and assumes no particular error distribution.
> 
> The coverage table checks a second, simpler band: the symmetric interval that a normal error distribution with the residuals' standard deviation would give. At four nominal levels (50%, 80%, 90% and 95%) it lists the half-width of that normal band and the share of held-out rows whose actual value falls inside it. Empirical coverage close to nominal means the residuals are close enough to normal that the two bands agree and the interval can be taken at face value. Empirical coverage below nominal means the normal band is too narrow, the residuals have heavier tails than a normal distribution, and the percentile-based interval is the one to trust. Empirical coverage above nominal means the normal band is wider than the data needs, usually because a few large residuals inflate the standard deviation. Every figure comes from the same held-out residuals the intervals are built from.

##### 5.1.15 Regression Diagnostics

35 held-out residuals, with a spread up to 828 in absolute terms. Mean residual is 18.3, close to zero. The model is approximately unbiased on these held-out rows (a small held-out set makes this less reliable; the Prediction Chart chapter states R² and the mean absolute error with their 95% confidence intervals). The charts below check whether the errors look like noise: a pattern in residuals-vs-fitted or a curving Q-Q means a structural miss. The held-out rows are a random draw, so their order carries no time and the autocorrelation of the residuals is not assessed.

- **Abs residual vs predicted r:** 0.2906
- **Bias:** 18.25
- **Bias over residual sd:** 0.0852
- **Held-out rows:** 35
- **Order:** shuffled
- **Residual sd:** 214.2
- **Share within normal band:** 0.9429

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

*How to read this*

> Four residual diagnostics for `1987 annual salary on opening day in thousands of dollars`, all computed from the held-out residuals. Each asks in its own way whether the model's errors look like noise, which is what remains when a model has captured all the structure the data holds.
> 
> **Residuals against predicted values**: Each held-out row is plotted with the model's prediction on the horizontal axis and its residual on the vertical axis, around a zero line. A symmetric cloud around zero means errors of similar size across the predicted range and no systematic bias. A funnel or fan means the size of the errors depends on the predicted value: the model is more uncertain in some regions than in others, and its prediction interval is not equally trustworthy everywhere. A curved pattern, a smile or a frown, means the model misses a structural component; the chapters "How each term responds to its inputs" and "How two inputs act together" show the shapes the formula does capture.
> 
> **Normal Q-Q plot**: The sorted residuals are plotted against the quantiles of a normal distribution, with the diagonal marking a perfectly normal set of residuals. Points that hug the line mean approximately normal residuals, so the normal band in the Prediction Interval Coverage chapter will hold. An S-shape means heavier or lighter tails than normal; heavier tails (below the line at the left, above it at the right) mean the model occasionally produces large errors. A banana or arc means skewed residuals: the model is systematically high or low in part of the range.
> 
> **Histogram**: The residuals binned into equal-width intervals. A bell centered on zero means symmetric errors with no bias. An off-center bell means the model is biased, with a mean error away from zero. A long tail or two peaks mean outliers or two regimes inside the prediction range.
> 
> **Autocorrelation**: For each lag, the correlation of the residual sequence with itself shifted by that many rows, with the band that pure noise would stay inside at plus or minus 1.96 divided by the square root of the row count. Bars inside the band mean uncorrelated residuals with no order-dependent structure left. A bar at lag 1 outside the band means the residuals of neighboring dates correlate: structure in time that the model has not captured. A wave across the lags means periodic structure remains, and the Time Series chapter in the Data section is where to look for its period.
> 
> Autocorrelation carries meaning only when the row order itself does. When the data has a date column, the held-out rows are the most recent ones in date order, and the autocorrelation is assessed. Without a date column the held-out rows are a random draw: the row after a held-out row is an arbitrary other row, so the autocorrelation is not assessed and the summary above says so.

##### 5.1.16 Search Progress

The search ran for 1,405 generations, ending at quality 0.505 (gain +0.243 from generation 2). The curve shows a substantial climb.

- **First generation:** 2
- **First quality:** 26.18%
- **Last generation:** 1406
- **Last improvement ms:** 1,967,014
- **Last quality:** 50.48%
- **Max quality:** 50.48%
- **N points:** 200
- **N total generations:** 1405
- **Search time ms:** 3,600,087
- **Stop reason:** Maximum runtime reached

*How to read this*

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

##### 5.1.17 Model Constraints

Across 35 held-out predictions, the formula is **mathematically well-behaved**: every output is finite, stays inside the training-target ±2σ band, and no prediction runs away beyond the bounded-prediction limit. It is safe to consume downstream at face value.

**Table 5.1.17 · Model Constraints**

| Name | Status | Detail |
| --- | --- | --- |
| Output coherent | Pass | no non-finite predictions across 35 rows |
| Within domain | Pass | no rows outside the training target's ±2σ range across 35 rows |
| Bounded predictions | Pass | no runaway predictions beyond ±10σ across 35 rows |

- **Held-out rows:** 35
- **N non finite:** 0
- **N outside domain:** 0
- **N runaway:** 0
- **Verdict:** Clean

*How to read this*

> Sanity checks on the `1987 annual salary on opening day in thousands of dollars` formula, run against the held-out rows. Three checks: every prediction is a finite number (output coherent), predictions stay within the range of the training target widened by two standard deviations on each side (within domain), and no single prediction runs away more than ten standard deviations from the training mean (bounded predictions).
> 
> These are pass or fail guards, not quality measures: a formula can clear all three and still predict poorly. A failure is the stronger signal. It means the formula misbehaves numerically somewhere in the data it was shown, and any downstream use of it should wait until that is understood.

##### 5.1.18 Modeling

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

- **MAE of a straight line through the inputs (same rows):** 208.1
- **RMSE of a straight line through the inputs (same rows):** 269.6
- **Training MAE (rows the search trained on):** 154.9
- **MAE of always predicting the mean (same rows):** 300.7
- **RMSE of always predicting the mean (same rows):** 363.8
- **Training R² (rows the search trained on):** 0.5982
- **Training RMSE (rows the search trained on):** 230.6
- **Rows the search trained on, measured:** 127
- **Error:** 40.18%
- **Inputs the straight line used:** 13
- **N train:** 171
- **Quality:** 50.47%

*How to read this*

> The function below trains the model for `1987 annual salary on opening day in thousands of dollars` on the processed data. Its output is the model that every other chapter of this section scores and dissects.

#### 5.2 Findings

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

### 6 Implications

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

#### 6.1 Recommended Next Data

- Collect more rows with higher 1987 annual salary on opening day in thousands of dollars. Reason: residual variance grows with predicted value, so model accuracy degrades on higher-magnitude predictions.
- Record the group each row belongs to for the column Players league at the beginning of 1987. Reason: the model has a prediction parity gap across this column according to the fairness diagnostic.
- Add complete values for the target 1987 annual salary on opening day in thousands of dollars where missing. Reason: the model's target has missing values.

#### 6.2 Quality by Input Range

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

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

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

##### 6.2.1 1987 annual salary on opening day in thousands of dollars by Input Range

Segment `number_of_saves_during_his_career` in the highest quarter (19 to 194) has only 8 held-out rows, too few to assess quality, so the verdict is suppressed.

**Table 6.2.1 · 1987 annual salary on opening day in thousands of dollars by Input Range**

| Segment | Rows | R² | Gap to all rows | Verdict |
| --- | --- | --- | --- | --- |
| Number of saves during his career = q4 | 8 | -2.8606 | -3.4756 | Too few rows to judge |
| Number of losses during his career = q2 | 9 | 0.3684 | -0.2466 | Too few rows to judge |
| Number of innings pitched during his career = q3 | 12 | 0.0646 | -0.5504 | Too few rows to judge |
| Earned run average in 1986 = q1 | 12 | 0.3750 | -0.2400 | Too few rows to judge |
| Number of games during his career = q4 | 7 | -4.8074 | -5.4224 | Too few rows to judge |
| Number of wins during his career = q3 | 13 | 0.0061 | -0.6089 | Too few rows to judge |
| Number of wins in 1986 = q1 | 4 | 0.5107 | -0.1043 | Too few rows to judge |
| Number of years in the major leagues = q4 | 5 | -5.5838 | -6.1988 | Too few rows to judge |
| Earned run average during his career = q1 | 9 | 0.4792 | -0.1358 | Too few rows to judge |
| Number of games during his career = q3 | 4 | -0.6808 | -1.2958 | Too few rows to judge |

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

- **Aggregate MAE:** 131.8
- **Aggregate R²:** 0.615
- **Measure:** r2
- **Target:** 1987 annual salary on opening day in thousands of dollars

#### 6.3 Rows unlike the ones the model learned from

0 of 35 held-out rows (0%) lie further from the training rows than 99 in 100 rows like them would, measured on the 1 input the model reads (`number_of_wins_during_his_career`). That is a **small minority**; the held-out figures describe the model on rows like the ones it was trained on.

**Table 6.3 · Rows unlike the ones the model learned from**

| Target | Inputs measured | Line | Held-out rows | Beyond the line | Share |
| --- | --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | Number of wins during his career | 2.576 | 35 | 0 | 0% |

**Table 6.3 · Score bins · 24 of 30 rows shown**

| Count | From | To |
| --- | --- | --- |
| 2 | 0 | 0.103 |
| 0 | 0.103 | 0.206 |
| 7 | 0.206 | 0.309 |
| 8 | 0.309 | 0.412 |
| 2 | 0.412 | 0.515 |
| 1 | 0.515 | 0.618 |
| 4 | 0.618 | 0.721 |
| 7 | 0.721 | 0.824 |
| 2 | 0.824 | 0.927 |
| 0 | 0.927 | 1.03 |

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

*How to read this*

> Out-of-distribution detection finds held-out rows that lie far from the training rows of a model. It looks only at the numeric inputs the model reads. Each of them is standardized against the mean and standard deviation of the training rows, and the standardized values are combined into one distance per row. The line a row is read against depends on the number of inputs: it is the distance that 99 in 100 rows like the training rows stay below. A row beyond the line is flagged as **out of distribution**, and the held-out figures are unlikely to apply to it. When the held-out rows resemble the training rows, about one row in a hundred is flagged.
> 
> The chart shows one bar per held-out row in row order; the flagged rows are the bars at or above the line. With more than one target, the chart shows the model with the largest flagged share, and the figures name it.
> 
> The check treats inputs independently, so it will not notice a rare combination of values that are each ordinary on their own, such as a large height with a small weight. It is a first screen. A decision that depends on catching unusual inputs needs a dedicated check.

#### 6.4 Fairness

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

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

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

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

##### 6.4.1 1987 annual salary on opening day in thousands of dollars Fairness

Column `Players league at the beginning of 1987` splits the held-out rows into 2 groups. The prediction-parity ratio is 0.791 (smallest over largest mean prediction), the largest absolute group residual mean is 35.4 (0.165 times the overall residual standard deviation). **Parity gap**: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking. `players_team_at_the_beginning_of_1987` goes closely with `players_league_at_the_beginning_of_1987` (association 0.865 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads `players_team_at_the_beginning_of_1987` can tell the groups of `players_league_at_the_beginning_of_1987` apart, so leaving `players_league_at_the_beginning_of_1987` out of the inputs does not keep it out of the predictions.

- **Aggregate residual std:** 214.2
- **N columns:** 2
- **N proxies:** 6
- **Proxy threshold:** 0.5

**Table 6.4.1 · Columns**

| Bias max abs residual mean | Column | Groups | Interpretation | N groups | N proxies | Prediction parity ratio | Verdict |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 35.44 | Players league at the beginning of 1987 | N, A | Column Players league at the beginning of 1987 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.791 (smallest over largest mean prediction), the largest absolute group residual mean is 35.4 (0.165 times the overall residual standard deviation). Parity gap: at least one group receives systematically smaller predictions on average. Whether that is a property of the target itself or a model bias against the group needs checking. players_team_at_the_beginning_of_1987 goes closely with players_league_at_the_beginning_of_1987 (association 0.865 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads players_team_at_the_beginning_of_1987 can tell the groups of players_league_at_the_beginning_of_1987 apart, so leaving players_league_at_the_beginning_of_1987 out of the inputs does not keep it out of the predictions. | 2 | 3 | 0.7908 | Prediction parity gap |
| 63.09 | Players league at the end of 1986 | N, A | Column Players league at the end of 1986 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.808 (smallest over largest mean prediction), the largest absolute group residual mean is 63.1 (0.294 times the overall residual standard deviation). Balanced: every group is within the 80% parity band and no group's residual mean exceeds 30% of the overall residual standard deviation. No systematic disparity was detected on this column. players_league_at_the_beginning_of_1987 goes closely with players_league_at_the_end_of_1986 (association 0.863 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads players_league_at_the_beginning_of_1987 can tell the groups of players_league_at_the_end_of_1986 apart, so leaving players_league_at_the_end_of_1986 out of the inputs does not keep it out of the predictions. | 2 | 3 | 0.8078 | Balanced |

#### 6.5 Causal Honesty

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

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

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

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

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

**Table 6.5 · Upgrade pathways**

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

#### 6.6 Deployment Readiness

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

- **Targets**: 1 target: `1987_annual_salary_on_opening_day_in_thousands_of_dollars`
- **Rows**: 206 rows
- **Per-Segment Predictions**: not produced, because no segment column was chosen
- **Fairness**: compared across 5 categorical columns (`pitchers_name`, `players_league_at_the_beginning_of_1987`, `players_league_at_the_end_of_1986`, `players_team_at_the_beginning_of_1987`, `players_team_at_the_end_of_in_1986`); which of them are protected attributes is not decided here
- **Out-of-Distribution**: held-out rows are scored against the training rows; predictions made outside this report are not scored
- **Provenance & Audit**: recorded in the chapter of that name

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

**Table 6.6 · Deployment Readiness**

| Name | Status | Detail |
| --- | --- | --- |
| Generalization | Pass | quality on the held-out rows matches quality on the rows the model was found on |
| Prediction Interval Coverage | Warn | too few held-out rows to judge coverage, largest gap 24.3 percentage points |
| Baseline Lift for 1987 annual salary on opening day in thousands of dollars | Pass | beats the best baseline, R² lift 0.128 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Warn | 2 columns compared, 1 flagged: Players league at the beginning of 1987 (a group receives systematically smaller predictions) |
| Out-of-Distribution | Pass | 0% of held-out rows are out of distribution |

- **N critical concerns:** 0
- **N fail:** 0
- **N pass:** 4
- **N warn:** 2
- **Overall verdict:** Caution

#### 6.7 Provenance & Audit

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

**Table 6.7 · Provenance & Audit**

| Item | Value |
| --- | --- |
| Analysis ID | 56f15e70-48b7-11f1-8087-d378640fe787 |
| Run time | 2026-11-06 22:41 UTC |
| Total rows | 206 |
| Modeled targets | 1987 annual salary on opening day in thousands of dollars |
| Segment column | not available |
| Time limit | 1 h 0 min |
| Time taken | 1 h 6 min |
| Credit budget | 500 credits |
| Ufinq version | 0.3.56 |

### 7 Data

The strongest relationships measured connect number of innings pitched, wins, and losses over a career, indicating these career totals move closely together in this dataset. One column is flagged for missing values in the 1987 annual salary, as noted in the Concerns chapter.

Most notable in the Data section:

- `Number of innings pitched during his career` and `Number of wins during his career` move together (correlation 0.993)
- `Number of innings pitched during his career` and `Number of losses during his career` move together (correlation 0.983)
- `Number of losses during his career` and `Number of wins during his career` move together (correlation 0.967)

*How to read this*

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

#### 7.1 Column Profiles

Profiled 19 columns across 206 rows (14 numeric, 5 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 8 columns are strongly skewed: the mean of such a column is pulled toward its long tail, so the median is the better guide to a typical value.

**Table 7.1 · Columns**

| Name | Role | Type | N | Missing | Mean | Std | Min | P25 | Median | P75 | Max | Skewness | CV |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | Target | number | 176 | 30 (14.56%) | 497.5 | 372.0 | 62.5 | 158.8 | 417.5 | 756.3 | 1850.0 | 1.015 | 0.7476 |
| Earned run average during his career | Input | number | 206 | 0 | 3.700 | 0.638 | 2.230 | 3.275 | 3.675 | 4.083 | 5.480 | 0.2681 | 0.1724 |
| Earned run average in 1986 | Input | number | 206 | 0 | 3.876 | 0.941 | 1.410 | 3.225 | 3.835 | 4.538 | 8.590 | 0.7145 | 0.2427 |
| Number of games during his career | Input | integer | 206 | 0 | 213.2 | 181.2 | 4 | 80.3 | 154.5 | 298.8 | 853 | 1.411 | 0.8501 |
| Number of games in 1986 | Input | integer | 206 | 0 | 39.66 | 15.53 | 1 | 30 | 35 | 50 | 83 | 0.6146 | 0.3915 |
| Number of innings pitched during his career | Input | number | 206 | 0 | 887.2 | 951.9 | 19.0 | 263.3 | 548.0 | 1174.3 | 5264.2 | 2.345 | 1.073 |
| Number of innings pitched in 1986 | Input | number | 206 | 0 | 145.2 | 62.5 | 4.0 | 92.4 | 138.6 | 198.2 | 275.1 | 0.1992 | 0.4303 |
| Number of losses during his career | Input | integer | 206 | 0 | 47.62 | 47.77 | 1 | 14 | 31.50 | 64.75 | 261 | 2.025 | 1.003 |
| Number of losses in 1986 | Input | integer | 206 | 0 | 8.233 | 3.688 | 0 | 5 | 8 | 11 | 18 | 0.1724 | 0.448 |
| Number of saves during his career | Input | integer | 206 | 0 | 20.83 | 42.46 | 0 | 0 | 3 | 15.75 | 278 | 3.128 | 2.038 |

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

- **N columns:** 19
- **N high missing:** 0
- **N rows:** 206
- **N strongly skewed:** 8
- **Table branch:** main
- **Table ID:** 842743c2-33e9-48cc-ae83-be32744a5e3e

*How to read this*

> One row per column of the analyzed table: its role in the analysis (the target being predicted, an input it is predicted from, or the segment column), its type, value count and missing count, and for numeric columns the mean, standard deviation, minimum, quartiles, maximum and interquartile range. A column with 25% or more missing values is flagged; its mean and quartiles describe only the rows that have a value.
> 
> Two further figures describe the shape of a numeric column. The skewness says whether the values lean to one side: close to zero the column is symmetric, from 0.5 it is moderately skewed and from 1 strongly skewed, with the longer tail on the high side when the figure is positive and on the low side when it is negative. In a strongly skewed column the mean is pulled toward the tail, and the median is the better guide to a typical value. The coefficient of variation is the standard deviation divided by the mean: it compares how widely columns spread regardless of their units, and is given only for a column whose mean is positive.
> 
> These are the columns as supplied, before any modeling: the reference against which every later chapter reads.

#### 7.2 1987 annual salary on opening day in thousands of dollars

1987 annual salary on opening day in thousands of dollars: 62.5 to 1,850, median 418, skewed to high values, 15% missing; moves with `Number of years in the major leagues` most (r 0.535).

*How to read this*

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

##### 7.2.1 Description

**Table 7.2.1 · 1987 annual salary on opening day in thousands of dollars**

| Statistic | Value |
| --- | --- |
| Type | number |
| Values present | 176 |
| Distinct values | 102 |
| Continuous | yes |
| Decimal places | 3 |
| Minimum | 62.5 |
| Maximum | 1850 |
| Mean | 497.5 |
| Median | 417.5 |
| Mode | 500.0 |

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

*How to read this*

> The figures below summarize `1987 annual salary on opening day in thousands of dollars` in numbers: where its values center (mean, median, mode), how far they spread (range, variance, standard deviation, interquartile range) and how they are distributed across percentiles. They are the reference for every chart in the Visualization chapter and for the correlation measures further down.

> The figures for `1987 annual salary on opening day in thousands of dollars` are grouped: the column itself first, then where its values center, how far they spread, the shape of their distribution and its percentiles. Each statistic is explained in the Description chapter under General in the Data section.

###### 7.2.1.1 Correlation

**Table 7.2.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of wins during his career | two numbers | 0.8129 | 0.5084 | 0.3898 to 0.6104 | 0.8129 | 0.6497 | < 0.001 | 176 |
| Number of innings pitched during his career | two numbers | 0.7995 | 0.4929 | 0.3722 to 0.5973 | 0.7995 | 0.6254 | < 0.001 | 176 |
| Number of losses during his career | two numbers | 0.7641 | 0.4931 | 0.3724 to 0.5975 | 0.7641 | 0.5838 | < 0.001 | 176 |
| Number of years in the major leagues | two numbers | 0.7391 | 0.5347 | 0.42 to 0.6326 | 0.7391 | 0.5831 | < 0.001 | 176 |
| Number of games during his career | two numbers | 0.7382 | 0.4996 | 0.3798 to 0.603 | 0.7382 | 0.5696 | < 0.001 | 176 |
| Players team at the beginning of 1987 | a number and a category | 0.4303 |  |  |  |  | 0.1098 | 176 |
| Players team at the end of in 1986 | a number and a category | 0.3754 |  |  |  |  | 0.4483 | 176 |
| Earned run average during his career | two numbers | 0.3592 | -0.3373 | -0.4621 to -0.1993 | -0.3592 | -0.258 | < 0.001 | 176 |
| Number of innings pitched in 1986 | two numbers | 0.2654 | 0.2654 | 0.1223 to 0.3977 | 0.2337 | 0.1645 | < 0.001 | 176 |
| Number of wins in 1986 | two numbers | 0.2485 | 0.2485 | 0.1044 to 0.3824 | 0.212 | 0.1482 | 0.001872 | 176 |

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

*How to read this*

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

> The table lists every other numeric or categorical column against `1987 annual salary on opening day in thousands of dollars`, with the pair's kind and association, three correlation coefficients and a confidence interval where the other column is numeric, the q-value and the rows the pair was measured on.

**Table 7.2.1.1 · Correlation**

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

##### 7.2.2 Visualization

The rows of `1987 annual salary on opening day in thousands of dollars` are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.08 between each value and the next), so the order carries no pattern to show.

*How to read this*

> The charts in this chapter were chosen from the type of `1987 annual salary on opening day in thousands of dollars` and of the columns it is compared with: a numeric column gets a histogram, a box plot and, when its row order carries a pattern, a value sequence, a categorical column gets a frequency chart, and its relation to each target of the analysis, and to the segment column when there is one, gets the chart that suits the pair, with the target on the vertical axis where it is a number. A column is not charted against every other column; which columns move together is shown under Strongest Correlations. The charts complement the figures in the Description chapter; the shape of a distribution and the position of its outliers are easier to see than to read.

#### 7.3 Earned run average during his career

Earned run average during his career: 2.23 to 5.48, median 3.67; moves with `Earned run average in 1986` most (r 0.553).

##### 7.3.1 Description

**Table 7.3.1 · Earned run average during his career**

| Statistic | Value |
| --- | --- |
| Type | number |
| Values present | 206 |
| Distinct values | 139 |
| Continuous | yes |
| Decimal places | 2 |
| Minimum | 2.23 |
| Maximum | 5.48 |
| Mean | 3.7 |
| Median | 3.675 |
| Mode | 3.58 |

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

###### 7.3.1.1 Correlation

**Table 7.3.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Earned run average in 1986 | two numbers | 0.5775 | 0.5533 | 0.4507 to 0.6415 | 0.5775 | 0.4195 | < 0.001 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.4976 |  |  |  |  | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.487 |  |  |  |  | < 0.001 | 206 |
| Number of saves during his career | two numbers | 0.4143 | -0.3524 | -0.4666 to -0.2266 | -0.4143 | -0.2973 | < 0.001 | 206 |
| Number of games in 1986 | two numbers | 0.38 | -0.38 | -0.4912 to -0.2566 | -0.3021 | -0.2102 | < 0.001 | 206 |
| Number of games during his career | two numbers | 0.3708 | -0.3667 | -0.4794 to -0.2422 | -0.3708 | -0.2669 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.3592 | -0.3373 | -0.4621 to -0.1993 | -0.3592 | -0.258 | < 0.001 | 176 |
| Number of saves in 1986 | two numbers | 0.3581 | -0.3581 | -0.4717 to -0.2328 | -0.2919 | -0.2159 | < 0.001 | 206 |
| Players league at the end of 1986 | a number and a category | 0.2998 |  |  |  |  | < 0.001 | 206 |
| Number of wins during his career | two numbers | 0.2729 | -0.2502 | -0.3741 to -0.1175 | -0.2729 | -0.195 | < 0.001 | 206 |

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

##### 7.3.2 Visualization

The rows of `Earned run average during his career` are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.02 between each value and the next), so the order carries no pattern to show.

#### 7.4 Earned run average in 1986

Earned run average in 1986: 1.41 to 8.59, median 3.83; moves with `Earned run average during his career` most (r 0.553).

##### 7.4.1 Description

**Table 7.4.1 · Earned run average in 1986**

| Statistic | Value |
| --- | --- |
| Type | number |
| Values present | 206 |
| Distinct values | 153 |
| Continuous | yes |
| Decimal places | 2 |
| Minimum | 1.41 |
| Maximum | 8.59 |
| Mean | 3.876 |
| Median | 3.835 |
| Mode | 3.82 |

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

###### 7.4.1.1 Correlation

**Table 7.4.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Earned run average during his career | two numbers | 0.5775 | 0.5533 | 0.4507 to 0.6415 | 0.5775 | 0.4195 | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.4821 |  |  |  |  | 0.001739 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.4587 |  |  |  |  | 0.006699 | 206 |
| Number of games in 1986 | two numbers | 0.3487 | -0.3487 | -0.4633 to -0.2226 | -0.3161 | -0.2205 | < 0.001 | 206 |
| Number of saves in 1986 | two numbers | 0.3265 | -0.3265 | -0.4434 to -0.1987 | -0.3184 | -0.2348 | < 0.001 | 206 |
| Number of wins in 1986 | two numbers | 0.3154 | -0.3154 | -0.4334 to -0.1867 | -0.2784 | -0.2006 | < 0.001 | 206 |
| Number of saves during his career | two numbers | 0.3109 | -0.1322 | -0.2642 to 0.00456 | -0.3109 | -0.2201 | 0.09885 | 206 |
| Number of losses in 1986 | two numbers | 0.2558 | 0.2385 | 0.1052 to 0.3633 | 0.2558 | 0.1841 | 0.001579 | 206 |
| Players league at the end of 1986 | a number and a category | 0.2453 |  |  |  |  | 0.001289 | 206 |
| Players league at the beginning of 1987 | a number and a category | 0.2263 |  |  |  |  | 0.002279 | 206 |

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

##### 7.4.2 Visualization

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

#### 7.5 Number of games during his career

Number of games during his career: 4 to 853, median 155, skewed to high values; moves with `Number of years in the major leagues` most (r 0.917).

##### 7.5.1 Description

**Table 7.5.1 · Number of games during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 167 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 4 |
| Maximum | 853 |
| Mean | 213.2 |
| Median | 154.5 |
| Mode | 83 |

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

###### 7.5.1.1 Correlation

**Table 7.5.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of years in the major leagues | two numbers | 0.9307 | 0.9165 | 0.8915 to 0.936 | 0.9307 | 0.7937 | < 0.001 | 206 |
| Number of losses during his career | two numbers | 0.8475 | 0.7823 | 0.723 to 0.8303 | 0.8475 | 0.6618 | < 0.001 | 206 |
| Number of innings pitched during his career | two numbers | 0.8341 | 0.7514 | 0.6851 to 0.8054 | 0.8341 | 0.651 | < 0.001 | 206 |
| Number of wins during his career | two numbers | 0.8303 | 0.7539 | 0.6881 to 0.8074 | 0.8303 | 0.6416 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7382 | 0.4996 | 0.3798 to 0.603 | 0.7382 | 0.5696 | < 0.001 | 176 |
| Number of saves during his career | two numbers | 0.6044 | 0.6044 | 0.5098 to 0.6846 | 0.5715 | 0.4283 | < 0.001 | 206 |
| Earned run average during his career | two numbers | 0.3708 | -0.3667 | -0.4794 to -0.2422 | -0.3708 | -0.2669 | < 0.001 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.3317 |  |  |  |  | 0.664 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.3031 |  |  |  |  | 0.7738 | 206 |
| Number of games in 1986 | two numbers | 0.2947 | 0.1927 | 0.05752 to 0.321 | 0.2947 | 0.208 | 0.01043 | 206 |

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

##### 7.5.2 Visualization

The rows of `Number of games during his career` are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.01 between each value and the next), so the order carries no pattern to show.

#### 7.6 Number of games in 1986

Number of games in 1986: 1 to 83, median 35, skewed to high values; moves with `Number of saves in 1986` most (r 0.681).

##### 7.6.1 Description

**Table 7.6.1 · Number of games in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 61 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 83 |
| Mean | 39.66 |
| Median | 35 |
| Mode | 34 |

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

###### 7.6.1.1 Correlation

**Table 7.6.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of saves in 1986 | two numbers | 0.7749 | 0.6809 | 0.6001 to 0.748 | 0.7749 | 0.617 | < 0.001 | 206 |
| Number of saves during his career | two numbers | 0.6617 | 0.4534 | 0.3377 to 0.5557 | 0.6617 | 0.4907 | < 0.001 | 206 |
| Earned run average during his career | two numbers | 0.38 | -0.38 | -0.4912 to -0.2566 | -0.3021 | -0.2102 | < 0.001 | 206 |
| Earned run average in 1986 | two numbers | 0.3487 | -0.3487 | -0.4633 to -0.2226 | -0.3161 | -0.2205 | < 0.001 | 206 |
| Number of games during his career | two numbers | 0.2947 | 0.1927 | 0.05752 to 0.321 | 0.2947 | 0.208 | 0.01564 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.2794 |  |  |  |  | 0.9252 | 206 |
| Number of innings pitched in 1986 | two numbers | 0.2773 | -0.2773 | -0.3989 to -0.1462 | -0.2524 | -0.09973 | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.2566 |  |  |  |  | 0.9497 | 206 |
| Number of innings pitched during his career | two numbers | 0.1823 | -0.1823 | -0.3113 to -0.04677 | -0.07797 | -0.06563 | 0.01879 | 206 |
| Number of losses in 1986 | two numbers | 0.182 | -0.182 | -0.311 to -0.04645 | -0.1689 | -0.09714 | 0.01879 | 206 |

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

##### 7.6.2 Visualization

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

#### 7.7 Number of innings pitched during his career

Number of innings pitched during his career: 19 to 5,264, median 548, skewed to high values; moves with `Number of wins during his career` most (r 0.993).

##### 7.7.1 Description

**Table 7.7.1 · Number of innings pitched during his career**

| Statistic | Value |
| --- | --- |
| Type | number |
| Values present | 206 |
| Distinct values | 201 |
| Continuous | yes |
| Decimal places | 1 |
| Minimum | 19 |
| Maximum | 5264.2 |
| Mean | 887.2 |
| Median | 548 |
| Mode | 235.0 |

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

###### 7.7.1.1 Correlation

**Table 7.7.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of wins during his career | two numbers | 0.9933 | 0.9933 | 0.9912 to 0.9949 | 0.984 | 0.8992 | < 0.001 | 206 |
| Number of losses during his career | two numbers | 0.9834 | 0.9834 | 0.9782 to 0.9874 | 0.9766 | 0.8785 | < 0.001 | 206 |
| Number of years in the major leagues | two numbers | 0.9027 | 0.8992 | 0.8694 to 0.9225 | 0.9027 | 0.756 | < 0.001 | 206 |
| Number of games during his career | two numbers | 0.8341 | 0.7514 | 0.6851 to 0.8054 | 0.8341 | 0.651 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7995 | 0.4929 | 0.3722 to 0.5973 | 0.7995 | 0.6254 | < 0.001 | 176 |
| Number of innings pitched in 1986 | two numbers | 0.3971 | 0.3544 | 0.2288 to 0.4684 | 0.3971 | 0.2695 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.3883 | 0.3431 | 0.2166 to 0.4583 | 0.3883 | 0.273 | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.3115 |  |  |  |  | 0.8069 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.2903 |  |  |  |  | 0.8634 | 206 |
| Number of saves in 1986 | two numbers | 0.2722 | -0.1818 | -0.3108 to -0.04626 | -0.2722 | -0.1979 | 0.01377 | 206 |

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

##### 7.7.2 Visualization

The rows of `Number of innings pitched during his career` are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of -0.04 between each value and the next), so the order carries no pattern to show.

#### 7.8 Number of innings pitched in 1986

Number of innings pitched in 1986: 4 to 275, median 139; moves with `Number of wins in 1986` most (r 0.821).

##### 7.8.1 Description

**Table 7.8.1 · Number of innings pitched in 1986**

| Statistic | Value |
| --- | --- |
| Type | number |
| Values present | 206 |
| Distinct values | 176 |
| Continuous | yes |
| Decimal places | 1 |
| Minimum | 4 |
| Maximum | 275.1 |
| Mean | 145.2 |
| Median | 138.6 |
| Mode | 78.0 |

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

###### 7.8.1.1 Correlation

**Table 7.8.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of wins in 1986 | two numbers | 0.8207 | 0.8207 | 0.7704 to 0.8608 | 0.8155 | 0.6441 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.6849 | 0.6788 | 0.5975 to 0.7462 | 0.6849 | 0.5061 | < 0.001 | 206 |
| Number of saves in 1986 | two numbers | 0.6591 | -0.4697 | -0.5699 to -0.3559 | -0.6591 | -0.4974 | < 0.001 | 206 |
| Number of saves during his career | two numbers | 0.539 | -0.4328 | -0.5377 to -0.3148 | -0.539 | -0.3943 | < 0.001 | 206 |
| Number of wins during his career | two numbers | 0.4054 | 0.3487 | 0.2227 to 0.4634 | 0.4054 | 0.2755 | < 0.001 | 206 |
| Number of innings pitched during his career | two numbers | 0.3971 | 0.3544 | 0.2288 to 0.4684 | 0.3971 | 0.2695 | < 0.001 | 206 |
| Number of losses during his career | two numbers | 0.3334 | 0.3146 | 0.1859 to 0.4327 | 0.3334 | 0.2274 | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.2825 |  |  |  |  | 0.9091 | 206 |
| Number of games in 1986 | two numbers | 0.2773 | -0.2773 | -0.3989 to -0.1462 | -0.2524 | -0.09973 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.2654 | 0.2654 | 0.1223 to 0.3977 | 0.2337 | 0.1645 | < 0.001 | 176 |

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

##### 7.8.2 Visualization

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

#### 7.9 Number of losses during his career

Number of losses during his career: 1 to 261, median 31.5, skewed to high values; moves with `Number of innings pitched during his career` most (r 0.983).

##### 7.9.1 Description

**Table 7.9.1 · Number of losses during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 96 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 261 |
| Mean | 47.62 |
| Median | 31.5 |
| Mode | 4 |

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

###### 7.9.1.1 Correlation

**Table 7.9.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of innings pitched during his career | two numbers | 0.9834 | 0.9834 | 0.9782 to 0.9874 | 0.9766 | 0.8785 | < 0.001 | 206 |
| Number of wins during his career | two numbers | 0.9671 | 0.9671 | 0.9569 to 0.9749 | 0.9521 | 0.8247 | < 0.001 | 206 |
| Number of years in the major leagues | two numbers | 0.9163 | 0.9163 | 0.8912 to 0.9358 | 0.9117 | 0.7699 | < 0.001 | 206 |
| Number of games during his career | two numbers | 0.8475 | 0.7823 | 0.723 to 0.8303 | 0.8475 | 0.6618 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7641 | 0.4931 | 0.3724 to 0.5975 | 0.7641 | 0.5838 | < 0.001 | 176 |
| Number of losses in 1986 | two numbers | 0.4218 | 0.3524 | 0.2266 to 0.4666 | 0.4218 | 0.3031 | < 0.001 | 206 |
| Number of innings pitched in 1986 | two numbers | 0.3334 | 0.3146 | 0.1859 to 0.4327 | 0.3334 | 0.2274 | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.2994 |  |  |  |  | 0.8017 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.2918 |  |  |  |  | 0.8036 | 206 |
| Number of saves in 1986 | two numbers | 0.2171 | -0.153 | -0.2838 to -0.01664 | -0.2171 | -0.1581 | 0.04347 | 206 |

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

##### 7.9.2 Visualization

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

#### 7.10 Number of losses in 1986

Number of losses in 1986: 0 to 18, median 8, 19 distinct values; moves with `Number of innings pitched in 1986` most (r 0.679).

##### 7.10.1 Description

**Table 7.10.1 · Number of losses in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 19 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 18 |
| Mean | 8.233 |
| Median | 8 |
| Mode | 6 |

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

###### 7.10.1.1 By Value

**Table 7.10.1.1 · Mean per value of Number of losses in 1986**

| Number of losses in 1986 | Rows | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career | Number of saves in 1986 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | 2 | 18 | 3.055 | 27 | 492.5 | 1 | 16.5 | 4.67 | 42 | 209 | 24.1 | 6 | 304.6 | 6 |
| 1 | 1 | 54 | 3.23 | 41 |  | 4 | 65 | 3.51 | 127 | 614 | 41 | 16 | 1105 | 5 |
| 2 | 8 | 32 | 3.571 | 34 | 454.6 | 5.5 | 26 | 3.388 | 26.13 | 178.1 | 74.99 | 5.125 | 512.9 | 5 |
| 3 | 6 | 23.17 | 3.477 | 51.5 | 240.8 | 6.167 | 18.67 | 3.188 | 21.17 | 158.8 | 100.3 | 4.167 | 390 | 6.5 |
| 4 | 17 | 19.59 | 3.726 | 39.65 | 283.8 | 6 | 20.71 | 3.905 | 19.53 | 140.1 | 97.09 | 4.412 | 365.5 | 5.588 |
| 5 | 20 | 31.65 | 3.672 | 41.7 | 418.4 | 7.6 | 28.05 | 3.539 | 32.15 | 211.5 | 111.2 | 5.65 | 503.6 | 5.4 |
| 6 | 23 | 43.35 | 3.486 | 51.57 | 504.3 | 8.304 | 38.04 | 3.513 | 35.7 | 243.8 | 119.3 | 6.261 | 682.9 | 8.304 |
| 7 | 18 | 44.72 | 3.708 | 41.67 | 603 | 7.111 | 40.78 | 3.823 | 49.5 | 247.2 | 116 | 6.111 | 724.9 | 8.278 |
| 8 | 16 | 53.38 | 3.777 | 39.38 | 568.2 | 8.938 | 47.06 | 4.026 | 19.25 | 198.4 | 140.6 | 6.063 | 868.8 | 4.813 |
| 9 | 14 | 42.07 | 3.924 | 39.93 | 421.2 | 10.43 | 43.5 | 3.99 | 26.43 | 183.9 | 155.7 | 5.357 | 731.6 | 7 |

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

*How to read this*

> The rows are grouped by the value of `Number of losses in 1986`, 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 `Number of losses in 1986`; one that stays level marks a column that does not. Groups with few rows produce unstable figures, so the row count of each group is the first thing to read. Where the groups differ in a target by more than chance would give, the chapter states by how much; it states that the two go together, not that one brings the other about.

###### 7.10.1.2 Correlation

**Table 7.10.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of innings pitched in 1986 | two numbers | 0.6849 | 0.6788 | 0.5975 to 0.7462 | 0.6849 | 0.5061 | < 0.001 | 206 |
| Number of saves in 1986 | two numbers | 0.474 | -0.2699 | -0.3922 to -0.1383 | -0.474 | -0.3523 | < 0.001 | 206 |
| Number of wins in 1986 | two numbers | 0.4434 | 0.396 | 0.2741 to 0.5054 | 0.4434 | 0.3188 | < 0.001 | 206 |
| Number of losses during his career | two numbers | 0.4218 | 0.3524 | 0.2266 to 0.4666 | 0.4218 | 0.3031 | < 0.001 | 206 |
| Number of innings pitched during his career | two numbers | 0.3883 | 0.3431 | 0.2166 to 0.4583 | 0.3883 | 0.273 | < 0.001 | 206 |
| Number of wins during his career | two numbers | 0.3787 | 0.3326 | 0.2052 to 0.4489 | 0.3787 | 0.2703 | < 0.001 | 206 |
| Number of saves during his career | two numbers | 0.3786 | -0.2714 | -0.3935 to -0.1399 | -0.3786 | -0.2694 | < 0.001 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.3481 |  |  |  |  | 0.4689 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.3447 |  |  |  |  | 0.4694 | 206 |
| Earned run average in 1986 | two numbers | 0.2558 | 0.2385 | 0.1052 to 0.3633 | 0.2558 | 0.1841 | 0.001184 | 206 |

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

##### 7.10.2 Visualization

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

#### 7.11 Number of saves during his career

Number of saves during his career: 0 to 278, median 3, skewed to high values; moves with `Number of saves in 1986` most (r 0.625).

##### 7.11.1 Description

**Table 7.11.1 · Number of saves during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 56 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 278 |
| Mean | 20.83 |
| Median | 3 |
| Mode | 0 |

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

###### 7.11.1.1 Correlation

**Table 7.11.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of saves in 1986 | two numbers | 0.7659 | 0.6247 | 0.5336 to 0.7015 | 0.7659 | 0.6474 | < 0.001 | 206 |
| Number of games in 1986 | two numbers | 0.6617 | 0.4534 | 0.3377 to 0.5557 | 0.6617 | 0.4907 | < 0.001 | 206 |
| Number of games during his career | two numbers | 0.6044 | 0.6044 | 0.5098 to 0.6846 | 0.5715 | 0.4283 | < 0.001 | 206 |
| Number of innings pitched in 1986 | two numbers | 0.539 | -0.4328 | -0.5377 to -0.3148 | -0.539 | -0.3943 | < 0.001 | 206 |
| Earned run average during his career | two numbers | 0.4143 | -0.3524 | -0.4666 to -0.2266 | -0.4143 | -0.2973 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.3786 | -0.2714 | -0.3935 to -0.1399 | -0.3786 | -0.2694 | < 0.001 | 206 |
| Number of wins in 1986 | two numbers | 0.3643 | -0.2757 | -0.3975 to -0.1445 | -0.3643 | -0.2707 | < 0.001 | 206 |
| Number of years in the major leagues | two numbers | 0.3595 | 0.314 | 0.1852 to 0.4321 | 0.3595 | 0.269 | < 0.001 | 206 |
| Earned run average in 1986 | two numbers | 0.3109 | -0.1322 | -0.2642 to 0.00456 | -0.3109 | -0.2201 | 0.09885 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.2476 |  |  |  |  | 0.9836 | 206 |

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

##### 7.11.2 Visualization

The rows of `Number of saves during his career` are not charted in their order: consecutive rows are no more alike than rows picked at random (a correlation of 0.04 between each value and the next), so the order carries no pattern to show.

#### 7.12 Number of saves in 1986

Number of saves in 1986: 0 to 46, median 0, skewed to high values, 28 distinct values; moves with `Number of games in 1986` most (r 0.681).

##### 7.12.1 Description

**Table 7.12.1 · Number of saves in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 28 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 46 |
| Mean | 4.379 |
| Median | 0 |
| Mode | 0 |

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

###### 7.12.1.1 By Value

Number of saves in 1986 accounts for 6.2% of the spread in `1987 annual salary on opening day in thousands of dollars`: `21` averages 842 above `7` (95% interval 722 to 963). An association, not a cause.

**Table 7.12.1.1 · Groups**

| Target | Value | Rows | Average or share | 95% interval |
| --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 21 | 3 | 975 | 867.4 to 1082.6 |
| 1987 annual salary on opening day in thousands of dollars | 16 | 3 | 598.3 | -620.2 to 1816.9 |
| 1987 annual salary on opening day in thousands of dollars | 0 | 97 | 558.6 | 475.7 to 641.5 |
| 1987 annual salary on opening day in thousands of dollars | 4 | 4 | 530 | 235.7 to 824.3 |
| 1987 annual salary on opening day in thousands of dollars | 12 | 3 | 468.3 | -437.8 to 1374.5 |
| 1987 annual salary on opening day in thousands of dollars | 1 | 14 | 413.9 | 209 to 618.8 |
| 1987 annual salary on opening day in thousands of dollars | 2 | 5 | 360.5 | 74.24 to 646.8 |
| 1987 annual salary on opening day in thousands of dollars | 6 | 3 | 360 | -100.1 to 820.1 |
| 1987 annual salary on opening day in thousands of dollars | 14 | 4 | 353.8 | -12.08 to 719.6 |
| 1987 annual salary on opening day in thousands of dollars | 5 | 3 | 333.3 | -563.1 to 1229.7 |

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

**Table 7.12.1.1 · Mean per value of Number of saves in 1986**

| Number of saves in 1986 | Rows | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | 115 | 69.57 | 3.826 | 29.75 | 558.6 | 10.5 | 9.67 | 59.02 | 4.06 | 3.678 | 196.7 | 177.6 | 6.843 | 1145.7 |
| 1 | 14 | 40.93 | 3.908 | 37 | 413.9 | 9.714 | 10.36 | 42.29 | 4.033 | 5.786 | 146.6 | 179.8 | 5.143 | 723.2 |
| 2 | 8 | 45.38 | 4.004 | 45 | 360.5 | 4.375 | 6.25 | 48.13 | 4.9 | 23.88 | 233.1 | 102.7 | 7 | 823.1 |
| 3 | 9 | 28.22 | 3.584 | 41.67 | 240.9 | 4.778 | 4.889 | 27.78 | 3.682 | 20.11 | 206.3 | 94.66 | 5.333 | 494 |
| 4 | 6 | 28.83 | 3.507 | 61.5 | 530 | 7.167 | 5.5 | 31.5 | 3.302 | 40.17 | 291.3 | 86.75 | 5.667 | 488.3 |
| 5 | 5 | 24.2 | 3.492 | 48.2 | 333.3 | 4.6 | 4.6 | 28.8 | 3.876 | 55 | 281.6 | 79.1 | 7.4 | 491.5 |
| 6 | 4 | 26.5 | 4.05 | 58.25 | 360 | 6.75 | 5.75 | 28.5 | 3.948 | 27.25 | 226.5 | 89.9 | 6.5 | 483.4 |
| 7 | 5 | 18.8 | 3.31 | 57.4 | 132.5 | 6.6 | 4.4 | 11.2 | 3.202 | 24 | 137.2 | 86.1 | 3 | 253.9 |
| 8 | 4 | 14.25 | 3.668 | 62.25 | 208.8 | 6.25 | 4.75 | 17 | 3.345 | 15 | 127.5 | 100.8 | 3.25 | 271.3 |
| 9 | 2 | 26 | 3.995 | 40.5 | 375 | 4.5 | 6 | 27.5 | 2.305 | 9 | 106 | 86 | 4.5 | 464.2 |

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

###### 7.12.1.2 Correlation

**Table 7.12.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of games in 1986 | two numbers | 0.7749 | 0.6809 | 0.6001 to 0.748 | 0.7749 | 0.617 | < 0.001 | 206 |
| Number of saves during his career | two numbers | 0.7659 | 0.6247 | 0.5336 to 0.7015 | 0.7659 | 0.6474 | < 0.001 | 206 |
| Number of innings pitched in 1986 | two numbers | 0.6591 | -0.4697 | -0.5699 to -0.3559 | -0.6591 | -0.4974 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.474 | -0.2699 | -0.3922 to -0.1383 | -0.474 | -0.3523 | < 0.001 | 206 |
| Number of wins in 1986 | two numbers | 0.4259 | -0.246 | -0.3703 to -0.1131 | -0.4259 | -0.3219 | < 0.001 | 206 |
| Earned run average during his career | two numbers | 0.3581 | -0.3581 | -0.4717 to -0.2328 | -0.2919 | -0.2159 | < 0.001 | 206 |
| Earned run average in 1986 | two numbers | 0.3265 | -0.3265 | -0.4434 to -0.1987 | -0.3184 | -0.2348 | < 0.001 | 206 |
| Number of innings pitched during his career | two numbers | 0.2722 | -0.1818 | -0.3108 to -0.04626 | -0.2722 | -0.1979 | 0.01683 | 206 |
| Number of wins during his career | two numbers | 0.2511 | -0.1582 | -0.2886 to -0.02194 | -0.2511 | -0.181 | 0.03938 | 206 |
| Number of losses during his career | two numbers | 0.2171 | -0.153 | -0.2838 to -0.01664 | -0.2171 | -0.1581 | 0.04347 | 206 |

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

##### 7.12.2 Visualization

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

#### 7.13 Number of wins during his career

Number of wins during his career: 1 to 323, median 35.5, skewed to high values; moves with `Number of innings pitched during his career` most (r 0.993).

##### 7.13.1 Description

**Table 7.13.1 · Number of wins during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 99 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 323 |
| Mean | 53.61 |
| Median | 35.5 |
| Mode | 7 |

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

###### 7.13.1.1 Correlation

**Table 7.13.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of innings pitched during his career | two numbers | 0.9933 | 0.9933 | 0.9912 to 0.9949 | 0.984 | 0.8992 | < 0.001 | 206 |
| Number of losses during his career | two numbers | 0.9671 | 0.9671 | 0.9569 to 0.9749 | 0.9521 | 0.8247 | < 0.001 | 206 |
| Number of years in the major leagues | two numbers | 0.89 | 0.89 | 0.8576 to 0.9153 | 0.8807 | 0.7269 | < 0.001 | 206 |
| Number of games during his career | two numbers | 0.8303 | 0.7539 | 0.6881 to 0.8074 | 0.8303 | 0.6416 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.8129 | 0.5084 | 0.3898 to 0.6104 | 0.8129 | 0.6497 | < 0.001 | 176 |
| Number of innings pitched in 1986 | two numbers | 0.4054 | 0.3487 | 0.2227 to 0.4634 | 0.4054 | 0.2755 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.3787 | 0.3326 | 0.2052 to 0.4489 | 0.3787 | 0.2703 | < 0.001 | 206 |
| Number of wins in 1986 | two numbers | 0.3217 | 0.2479 | 0.1151 to 0.372 | 0.3217 | 0.2335 | < 0.001 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.3145 |  |  |  |  | 0.7666 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.2927 |  |  |  |  | 0.798 | 206 |

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

##### 7.13.2 Visualization

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

#### 7.14 Number of wins in 1986

Number of wins in 1986: 0 to 24, median 9, 22 distinct values; moves with `Number of innings pitched in 1986` most (r 0.821).

##### 7.14.1 Description

**Table 7.14.1 · Number of wins in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 22 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 24 |
| Mean | 8.782 |
| Median | 9 |
| Mode | 9 |

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

###### 7.14.1.1 By Value

**Table 7.14.1.1 · Mean per value of Number of wins in 1986**

| Number of wins in 1986 | Rows | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career | Number of saves in 1986 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | 2 | 33.5 | 3.535 | 20 | 562.5 | 2 | 47.5 | 4.77 | 9 | 211.5 | 54.55 | 6 | 704.6 | 1.5 |
| 1 | 2 | 37 | 4.49 | 10 | 62.5 | 6 | 54 | 6.185 |  | 134 | 39.05 | 6.5 | 759.6 |  |
| 2 | 8 | 22.38 | 3.688 | 45.75 | 375.6 | 4.625 | 26.38 | 5.076 | 40.13 | 206.3 | 69 | 5.375 | 426.4 | 7.25 |
| 3 | 14 | 30.57 | 3.837 | 40.93 | 258.6 | 5.857 | 28.93 | 3.965 | 41.86 | 220.6 | 80.51 | 5.857 | 535.8 | 5.357 |
| 4 | 13 | 34.23 | 3.893 | 40.15 | 449.7 | 4.385 | 36.08 | 3.705 | 44 | 265 | 78.72 | 7.308 | 634.7 | 7.692 |
| 5 | 17 | 48.24 | 3.894 | 38.12 | 661.7 | 8.059 | 47.12 | 4.129 | 40 | 256.1 | 110.1 | 7.235 | 811.2 | 5.412 |
| 6 | 16 | 33.44 | 3.848 | 47.81 | 415.3 | 7.5 | 32 | 3.998 | 24.63 | 182.7 | 110 | 5.125 | 553.3 | 8.313 |
| 7 | 16 | 56.13 | 3.709 | 34.63 | 469.2 | 8.375 | 49.31 | 4.061 | 17.13 | 195.1 | 143.3 | 5.875 | 935.4 | 3.063 |
| 8 | 12 | 45.5 | 3.669 | 53.92 | 495 | 8.167 | 40.08 | 3.693 | 38.75 | 226.2 | 118.5 | 5.667 | 682.2 | 13 |
| 9 | 20 | 65.8 | 3.349 | 41.65 | 414.9 | 8.95 | 52.45 | 3.715 | 17.25 | 223.3 | 143.3 | 6.55 | 1042.2 | 5.55 |

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

###### 7.14.1.2 Correlation

**Table 7.14.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of innings pitched in 1986 | two numbers | 0.8207 | 0.8207 | 0.7704 to 0.8608 | 0.8155 | 0.6441 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.4434 | 0.396 | 0.2741 to 0.5054 | 0.4434 | 0.3188 | < 0.001 | 206 |
| Number of saves in 1986 | two numbers | 0.4259 | -0.246 | -0.3703 to -0.1131 | -0.4259 | -0.3219 | 0.001032 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.3796 |  |  |  |  | 0.235 | 206 |
| Number of saves during his career | two numbers | 0.3643 | -0.2757 | -0.3975 to -0.1445 | -0.3643 | -0.2707 | < 0.001 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.3396 |  |  |  |  | 0.5198 | 206 |
| Number of wins during his career | two numbers | 0.3217 | 0.2479 | 0.1151 to 0.372 | 0.3217 | 0.2335 | 0.001032 | 206 |
| Earned run average in 1986 | two numbers | 0.3154 | -0.3154 | -0.4334 to -0.1867 | -0.2784 | -0.2006 | < 0.001 | 206 |
| Number of innings pitched during his career | two numbers | 0.2573 | 0.2278 | 0.09403 to 0.3535 | 0.2573 | 0.1795 | 0.002106 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.2485 | 0.2485 | 0.1044 to 0.3824 | 0.212 | 0.1482 | 0.002106 | 176 |

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

##### 7.14.2 Visualization

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

#### 7.15 Number of years in the major leagues

Number of years in the major leagues: 1 to 23, median 5, skewed to high values, 21 distinct values; moves with `Number of games during his career` most (r 0.917).

##### 7.15.1 Description

**Table 7.15.1 · Number of years in the major leagues**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 206 |
| Distinct values | 21 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 23 |
| Mean | 6.413 |
| Median | 5 |
| Mode | 2 |

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

###### 7.15.1.1 By Value

Number of years in the major leagues accounts for 51% of the spread in `1987 annual salary on opening day in thousands of dollars`: `10` averages 884 above `1` (95% interval 540 to 1,228). An association, not a cause.

**Table 7.15.1.1 · Groups**

| Target | Value | Rows | Average or share | 95% interval |
| --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 10 | 11 | 975.5 | 631.6 to 1319.3 |
| 1987 annual salary on opening day in thousands of dollars | 11 | 5 | 967.6 | 679 to 1256.2 |
| 1987 annual salary on opening day in thousands of dollars | 8 | 11 | 875.4 | 755.8 to 994.9 |
| 1987 annual salary on opening day in thousands of dollars | 17 | 3 | 866.7 | 254 to 1479.4 |
| 1987 annual salary on opening day in thousands of dollars | 12 | 4 | 720.8 | 536.6 to 905 |
| 1987 annual salary on opening day in thousands of dollars | 7 | 15 | 709.7 | 495.6 to 923.7 |
| 1987 annual salary on opening day in thousands of dollars | 9 | 9 | 708.8 | 568.9 to 848.7 |
| 1987 annual salary on opening day in thousands of dollars | 13 | 3 | 708.3 | 414.8 to 1001.8 |
| 1987 annual salary on opening day in thousands of dollars | 6 | 13 | 493.1 | 370.2 to 616 |
| 1987 annual salary on opening day in thousands of dollars | 14 | 3 | 491.7 | -438 to 1421.3 |

The first 10 rows of 15. The other 5 are in the notebook.

**Table 7.15.1.1 · Mean per value of Number of years in the major leagues**

| Number of years in the major leagues | Rows | Number of saves in 1986 | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of innings pitched during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 18 | 2.833 | 7.5 | 3.986 | 36.56 | 91.56 | 7.5 | 6.444 | 6.444 | 3.986 | 2.833 | 36.56 | 112.4 | 112.4 |
| 2 | 25 | 4.08 | 12.2 | 3.805 | 37.92 | 153.7 | 8.52 | 7.64 | 10.96 | 3.892 | 6.36 | 57.32 | 131.2 | 196.1 |
| 3 | 25 | 3.68 | 22.44 | 3.704 | 39.28 | 343.9 | 9.16 | 8 | 18.44 | 3.779 | 5.92 | 88.56 | 157.2 | 364.8 |
| 4 | 22 | 2.273 | 27.18 | 3.805 | 42.18 | 362.3 | 9.227 | 8.364 | 24.55 | 3.868 | 4.909 | 124.4 | 149.9 | 464.5 |
| 5 | 16 | 2.688 | 37.81 | 3.933 | 35.13 | 451.1 | 10.19 | 9.75 | 38.88 | 4.009 | 6.75 | 139.2 | 172.4 | 674.6 |
| 6 | 16 | 7.313 | 30.13 | 3.794 | 49 | 493.1 | 7.625 | 7.375 | 34.06 | 3.671 | 23.38 | 192.4 | 122 | 546.3 |
| 7 | 17 | 10.35 | 45.06 | 3.511 | 43.29 | 709.7 | 9.471 | 7.118 | 38.59 | 3.525 | 39 | 226.1 | 138.3 | 726.7 |
| 8 | 12 | 5.333 | 73.58 | 3.493 | 39.5 | 875.4 | 9.333 | 10 | 62.67 | 3.847 | 46.67 | 292 | 167.4 | 1164.9 |
| 9 | 10 | 5.1 | 70 | 3.753 | 42.4 | 708.8 | 6.7 | 9.1 | 68.1 | 4.26 | 31.6 | 300.9 | 144.2 | 1191.8 |
| 10 | 12 | 5.333 | 84 | 3.618 | 40.25 | 975.5 | 7.25 | 7.917 | 79 | 4.144 | 39.58 | 371.1 | 131.2 | 1399.1 |

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

###### 7.15.1.2 Correlation

**Table 7.15.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of games during his career | two numbers | 0.9307 | 0.9165 | 0.8915 to 0.936 | 0.9307 | 0.7937 | < 0.001 | 206 |
| Number of losses during his career | two numbers | 0.9163 | 0.9163 | 0.8912 to 0.9358 | 0.9117 | 0.7699 | < 0.001 | 206 |
| Number of innings pitched during his career | two numbers | 0.9027 | 0.8992 | 0.8694 to 0.9225 | 0.9027 | 0.756 | < 0.001 | 206 |
| Number of wins during his career | two numbers | 0.89 | 0.89 | 0.8576 to 0.9153 | 0.8807 | 0.7269 | < 0.001 | 206 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7391 | 0.5347 | 0.42 to 0.6326 | 0.7391 | 0.5831 | < 0.001 | 176 |
| Number of saves during his career | two numbers | 0.3595 | 0.314 | 0.1852 to 0.4321 | 0.3595 | 0.269 | < 0.001 | 206 |
| Players team at the end of in 1986 | a number and a category | 0.3377 |  |  |  |  | 0.6872 | 206 |
| Players team at the beginning of 1987 | a number and a category | 0.3242 |  |  |  |  | 0.7534 | 206 |
| Earned run average during his career | two numbers | 0.25 | -0.25 | -0.3739 to -0.1173 | -0.222 | -0.1721 | < 0.001 | 206 |
| Number of losses in 1986 | two numbers | 0.1728 | 0.1709 | 0.035 to 0.3006 | 0.1728 | 0.125 | 0.02987 | 206 |

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

##### 7.15.2 Visualization

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

#### 7.16 Pitchers name

Pitchers name: 206 distinct values, most often `Greg_Mathews`.

##### 7.16.1 Description

**Table 7.16.1 · Pitchers name**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 206 |
| Distinct values | 206 |
| Continuous | no |
| Mode | Greg_Mathews |

##### 7.16.2 Visualization

"Pitchers name" holds a different value in every row, so there are no groups to compare.

#### 7.17 Players league at the beginning of 1987

Players league at the beginning of 1987: 2 distinct values, most often `A`.

##### 7.17.1 Description

**Table 7.17.1 · Players league at the beginning of 1987**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 206 |
| Distinct values | 2 |
| Continuous | no |
| Mode | A |

**Table 7.17.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players league at the beginning of 1987 | A | 110 | 53.4% |
| Players league at the beginning of 1987 | N | 96 | 46.6% |

###### 7.17.1.1 By Value

**Table 7.17.1.1 · Mean per value of Players league at the beginning of 1987**

| Players league at the beginning of 1987 | Rows | Number of saves in 1986 | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| A | 110 | 4.409 | 56.96 | 3.858 | 38.22 | 467.9 | 8.591 | 8.264 | 50.57 | 4.074 | 18.88 | 210.6 | 143.9 | 6.5 | 945.6 |
| N | 96 | 4.344 | 49.76 | 3.519 | 41.31 | 531.6 | 9 | 8.198 | 44.24 | 3.649 | 23.06 | 216.1 | 146.7 | 6.313 | 820.4 |

#### 7.18 Players league at the end of 1986

Players league at the end of 1986: 2 distinct values, most often `A`.

##### 7.18.1 Description

**Table 7.18.1 · Players league at the end of 1986**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 206 |
| Distinct values | 2 |
| Continuous | no |
| Mode | A |

**Table 7.18.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players league at the end of 1986 | A | 112 | 54.37% |
| Players league at the end of 1986 | N | 94 | 45.63% |

###### 7.18.1.1 By Value

**Table 7.18.1.1 · Mean per value of Players league at the end of 1986**

| Players league at the end of 1986 | Rows | Number of saves in 1986 | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| A | 112 | 4.17 | 54.95 | 3.875 | 37.95 | 445 | 8.607 | 8.277 | 48.65 | 4.087 | 18.31 | 204.8 | 142.7 | 6.313 | 906.5 |
| N | 94 | 4.628 | 52.01 | 3.492 | 41.7 | 560.6 | 8.989 | 8.181 | 46.39 | 3.625 | 23.83 | 223.1 | 148.1 | 6.532 | 864.3 |

#### 7.19 Players team at the beginning of 1987

Players team at the beginning of 1987: 24 distinct values, most often `N.Y.`.

##### 7.19.1 Description

**Table 7.19.1 · Players team at the beginning of 1987**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 206 |
| Distinct values | 24 |
| Continuous | no |
| Mode | N.Y. |

**Table 7.19.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players team at the beginning of 1987 | N.Y. | 16 | 7.767% |
| Players team at the beginning of 1987 | Chi. | 14 | 6.796% |
| Players team at the beginning of 1987 | Oak. | 13 | 6.311% |
| Players team at the beginning of 1987 | Atl. | 9 | 4.369% |
| Players team at the beginning of 1987 | Bos. | 9 | 4.369% |
| Players team at the beginning of 1987 | Mon. | 9 | 4.369% |
| Players team at the beginning of 1987 | Pit. | 9 | 4.369% |
| Players team at the beginning of 1987 | Bal. | 8 | 3.883% |
| Players team at the beginning of 1987 | Cin. | 8 | 3.883% |
| Players team at the beginning of 1987 | Hou. | 8 | 3.883% |

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

###### 7.19.1.1 By Value

**Table 7.19.1.1 · Mean per value of Players team at the beginning of 1987**

| Players team at the beginning of 1987 | Rows | Number of saves in 1986 | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Atl. | 9 | 4.111 | 47.67 | 3.566 | 45.11 | 388.4 | 7.778 | 9.667 | 44.78 | 3.676 | 25.67 | 249.7 | 155.7 | 7 | 814.3 |
| Bal. | 8 | 5.625 | 40.13 | 3.853 | 34.25 | 513.2 | 6.5 | 7.375 | 33.5 | 4.258 | 15.63 | 155.8 | 116.3 | 5.875 | 635.8 |
| Bos. | 9 | 4.111 | 70 | 3.746 | 33.33 | 455.4 | 9.444 | 6.889 | 51.89 | 3.802 | 24.11 | 229.6 | 137.4 | 7.111 | 1082.7 |
| Cal. | 7 | 5.143 | 89.29 | 3.499 | 34 | 645.5 | 8.429 | 5.571 | 72.57 | 3.613 | 41.71 | 358.6 | 120.3 | 10.29 | 1459.3 |
| Chi. | 14 | 4 | 46.21 | 3.967 | 35.64 | 732.6 | 6.071 | 7.786 | 46.5 | 4.699 | 31.36 | 219.1 | 115.9 | 6.714 | 784.6 |
| Cin. | 8 | 5.5 | 54.63 | 3.523 | 43.25 | 562.1 | 9.625 | 8.625 | 46.13 | 3.845 | 13.13 | 198.9 | 156.1 | 6.375 | 909.5 |
| Cle. | 7 | 4.429 | 104.4 | 4.067 | 39.29 | 273.3 | 9.429 | 8.857 | 84.43 | 4.496 | 12.43 | 286.7 | 150.5 | 9.286 | 1707.5 |
| Det. | 7 | 4.286 | 79.29 | 3.537 | 37.14 | 799.6 | 11.29 | 8.286 | 64.57 | 4.039 | 17.43 | 261.4 | 162.4 | 7.429 | 1255.9 |
| Hou. | 8 | 5.875 | 78.63 | 3.325 | 41.5 | 569 | 11 | 7.125 | 69.75 | 2.988 | 27.88 | 294 | 158.3 | 8.75 | 1293.9 |
| K.C. | 8 | 3.75 | 51.13 | 3.539 | 42.38 | 555.7 | 8.5 | 9.375 | 43.5 | 3.578 | 31.63 | 192.8 | 157 | 5.75 | 830.2 |

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

#### 7.20 Players team at the end of in 1986

Players team at the end of in 1986: 24 distinct values, most often `Chi.`.

##### 7.20.1 Description

**Table 7.20.1 · Players team at the end of in 1986**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 206 |
| Distinct values | 24 |
| Continuous | no |
| Mode | Chi. |

**Table 7.20.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players team at the end of in 1986 | Chi. | 18 | 8.738% |
| Players team at the end of in 1986 | N.Y. | 15 | 7.282% |
| Players team at the end of in 1986 | Det. | 10 | 4.854% |
| Players team at the end of in 1986 | Oak. | 10 | 4.854% |
| Players team at the end of in 1986 | Pit. | 10 | 4.854% |
| Players team at the end of in 1986 | Bos. | 9 | 4.369% |
| Players team at the end of in 1986 | K.C. | 9 | 4.369% |
| Players team at the end of in 1986 | Mon. | 9 | 4.369% |
| Players team at the end of in 1986 | Atl. | 8 | 3.883% |
| Players team at the end of in 1986 | Bal. | 8 | 3.883% |

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

###### 7.20.1.1 By Value

**Table 7.20.1.1 · Mean per value of Players team at the end of in 1986**

| Players team at the end of in 1986 | Rows | Number of saves in 1986 | Number of wins during his career | Earned run average during his career | Number of games in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of wins in 1986 | Number of losses in 1986 | Number of losses during his career | Earned run average in 1986 | Number of saves during his career | Number of games during his career | Number of innings pitched in 1986 | Number of years in the major leagues | Number of innings pitched during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Atl. | 8 | 4.375 | 52.38 | 3.534 | 46.13 | 429.6 | 8.375 | 10 | 48.75 | 3.594 | 28.5 | 272.3 | 159.9 | 7.5 | 886.7 |
| Bal. | 8 | 4.625 | 44 | 3.911 | 31.25 | 546.1 | 7.25 | 8.125 | 35 | 4.296 | 11.5 | 147.4 | 124.1 | 5.75 | 688.1 |
| Bos. | 9 | 4.111 | 70 | 3.746 | 33.33 | 455.4 | 9.444 | 6.889 | 51.89 | 3.802 | 24.11 | 229.6 | 137.4 | 7.111 | 1082.7 |
| Cal. | 7 | 5.143 | 89.29 | 3.499 | 34 | 645.5 | 8.429 | 5.571 | 72.57 | 3.613 | 41.71 | 358.6 | 120.3 | 10.29 | 1459.3 |
| Chi. | 18 | 3.722 | 66.56 | 3.861 | 35.78 | 662.4 | 6.5 | 8.444 | 60 | 4.606 | 26.78 | 251.3 | 126.7 | 7.778 | 1098 |
| Cin. | 8 | 5.5 | 54.63 | 3.523 | 43.25 | 562.1 | 9.625 | 8.625 | 46.13 | 3.845 | 13.13 | 198.9 | 156.1 | 6.375 | 909.5 |
| Cle. | 6 | 5.167 | 68 | 4.227 | 40.5 | 298 | 9.5 | 8 | 60.33 | 4.395 | 14.33 | 217 | 146.3 | 7.167 | 1149.6 |
| Det. | 10 | 3.7 | 79.9 | 3.612 | 36.7 | 616 | 8.9 | 7.7 | 69.1 | 4.156 | 26.5 | 308.8 | 142.7 | 8.5 | 1292.8 |
| Hou. | 8 | 5.875 | 78.63 | 3.325 | 41.5 | 569 | 11 | 7.125 | 69.75 | 2.988 | 27.88 | 294 | 158.3 | 8.75 | 1293.9 |
| K.C. | 9 | 3.333 | 46.33 | 3.658 | 40.33 | 495.6 | 8.444 | 9.333 | 39.67 | 3.692 | 28.11 | 174 | 153 | 5.222 | 751.4 |

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

#### 7.21 Column · Pitchers name

`Pitchers name` is profiled on its own because it may hold free text.

Scanned 206 non-null values in `pitchers_name`, extracted 408 content tokens (288 unique) after dropping 5 English stopword instances. The most frequent content word is `bob` (12 occurrences, 2.9% of all kept tokens). The table maps the column's content vocabulary; a heavy concentration on one or two tokens may signal a near-constant column or a categorical disguised as free text. The stopword filter is **English-only**: in a non-English column its own function words dominate the top.

_This section continues in the notebook._

_The report continues in the notebook._
