# Batter Salaries

Analysis report, automatically produced by Diafunc.

1987 major-league baseball hitter salaries predicted from career and season performance.

- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Analyzed:** 2026-11-13 15:13 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 47% of the variation in 1987 annual salary on opening day in thousands of dollars, relying most on number of walks during his career, followed by number of times at bat in 1986. Compared with a straight line through the data, which explains 38%, the model is ahead by 8.4 points of variance explained on the held-out rows. Moving number of walks during his career from 66.0 to 340 raises the model's output by about 355 on average, with everything else as observed.

This model captures only part of the pattern in salary and should not be relied on for individual predictions. The model's margin over the baseline is small and too slight to show row by row, and its quality figure was measured on 53 rows. Validate on a fresh sample before relying on the model for decisions.

## Formula

```
1987 annual salary on opening day in thousands of dollars = 0.086 × Number of times at bat in 1986 × sqrt(Number of walks during his career)
```

1 term · single non-separable expression

## Held-out diagnostics

| Target | Quality | Error | R² | MAE | Search rows | Generalization | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 44.03% | 53.42% | 0.4658 | 187.9 | 210 | generalizing | 53 |

- 1987 annual salary on opening day in thousands of dollars · Quality 95% CI 0% to 74.98%
- 1987 annual salary on opening day in thousands of dollars · Error 95% CI 23.88% to 100%
- 1987 annual salary on opening day in thousands of dollars · R² 95% CI -0.097 to 0.7612
- 1987 annual salary on opening day in thousands of dollars · MAE 95% CI 137 to 249.3

## Concerns

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

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

**INFO** (model): Residuals grow in proportion to the predicted value

Across 53 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 446, against 78.5 in the bottom third, 5.68 times as large. The bottom third holds predictions up to 237 and the top third predictions from 579. Relative to the predictions, the typical miss is 52% of the value in the bottom third and 48% in the top third: the errors grow with the value, as they do for a quantity whose errors scale with its size, and the model is about as accurate at both ends relative to it. Where the same absolute accuracy matters across the range, a log transform of the target evens the spread.

## 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-13 15:14 UTC, analysis `569b7640-48b7-11f1-8087-d378640fe787`, 1 target, time budget 1 h 0 min, compute budget 500 credits, 322 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 rises with Number of times at bat in 1986 and rises ever more slowly with Number of walks during his career.

1. **The model rests mostly on a pair of inputs.** Number of walks during his career accounts for 58% of what the formula explains and Number of times at bat in 1986 for 42%.
2. **The model's output rises with Number of walks during his career.** With the other inputs at typical values, the formula's value rises by 1290 between Number of walks during his career 0 and 1566. The change is not even across the range.
3. **Number of runs during his career is not in the formula.** It has the strongest correlation with 1987 annual salary on opening day in thousands of dollars in the table (0.56). Number of runs during his career is closely tied to Number of walks during his career, with a correlation of 0.93.
4. **The formula's lead over a straight line is within chance.** The formula explains 47% of 1987 annual salary on opening day in thousands of dollars; a straight line explains 38%, but on 53 held-out 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 21.7 percentage points.

6 chapters, each headed by what it found.

### S.1 Number of walks during his career carries most of the formula

*What the formula relies on.* Shares of the formula: Number of walks during his career 58%, Number of times at bat in 1986 42%.

Measured on 21 of the 210 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. The model's output rises with Number of walks during his career on every one of the 6,720 steps between observed values. The model's output rises with Number of times at bat in 1986 on every one of the 6,720 steps between observed values. Moving Number of walks during his career from 66.0 to 340, its first and third quartile, with every other input as observed raises the model's output by 355 on average (by between 16.9 and 588 on single rows). 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 walks during his career | 57.87% | 1.569 | 1.52 | -0.2852 | 1 | Rises (6720 of 6720 steps) | +354.5 (66 to 340) |
| Number of times at bat in 1986 | 42.13% | 1.142 | 1.165 | -0.5226 | 1 | Rises (6720 of 6720 steps) | +282.5 (299 to 523) |

- **Rows the search trained on, measured:** 105
- **N rows:** 21
- **Inputs the formula does not read:** Hitters name, Number of assists in 1986, Number of errors in 1986, Number of hits during his career, Number of hits in 1986, Number of home runs during his career, Number of home runs in 1986, Number of put outs in 1986, Number of runs batted in during his career, Number of runs batted in in 1986, Number of runs during his career, Number of runs in 1986, Number of times at bat during his career, Number of walks in 1986, Number of years in the major leagues, Players division at the end of 1986, Players league at the beginning of 1987, Players league at the end of 1986, Players position(s) in 1986, Players team at the beginning of 1987, Players team at the end of 1986

The formula is one term that reads all two of its inputs, so it has no separate parts to read one at a time. The same term is traced over each input in turn. In each panel the bold curve holds the term's other inputs at their training medians, and each light curve is one held-out row with its own values for them. Where the light curves lie apart but run flat, the input on the axis moves the term little, and the spread comes from the term's other inputs.

- **Additive:** No
- **Rows the search trained on, measured:** 105
- **Terms in the formula:** 1
- **Notation:** 0.086 × Number of times at bat in 1986 × sqrt(Number of walks during his career)
- **Target:** 1987 annual salary on opening day in thousands of dollars

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

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

**How this was checked**

- Measured on 53 rows the formula never saw (20% of 263); the other 210 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.466 on 53 rows the search never saw (95% interval -0.097 to 0.761). The interval reaches below zero, so the figure is not graded: on these rows the model cannot be told apart from predicting the mean. Mean absolute error is 188 on the target's scale.

- **Error:** 53.42% (95% CI 23.88% to 100%)
- **MAE:** 187.9 (95% CI 137 to 249.3)
- **N:** 53
- **Training rows:** 210
- **Quality:** 44.03% (95% CI 0% to 74.98%)
- **R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Rows found on:** 210
- **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 8.4 points of variance explained on the 53 held-out rows. Row by row the margin is **negligible**: the model reads as roughly level with the yardstick. Of the 53 held-out rows where the two differ, the model is closer on 58% (95% interval 45% to 71%). The interval of the margin includes zero: on this many held-out rows the lead is not settled.

- **Best yardstick's score:** 0.382 (95% CI -0.1118 to 0.6413)
- **Best baseline R²:** 0.382
- **Effect size d:** 0.159 (95% CI -0.09097 to 0.47)
- **Effect size d magnitude:** negligible
- **Margin over the best yardstick:** 0.08371 (95% CI -0.2465 to 0.3676)
- **Margin's interval stays above zero:** No
- **Model MAE:** 187.9 (95% CI 137 to 249.3)
- **Model:** 0.4658 (95% CI -0.097 to 0.7612)
- **Model R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Held-out rows:** 53
- **Held-out rows without an answer:** 0
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Rows where the model is closer:** 58.49% (95% CI 45.09% to 70.74%)
- **Rows compared:** 53
- **Rows level:** 0
- **Regression yardstick trained with gaps filled (too few complete rows):** No
- **Training rows of the regression yardstick:** 210

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

- **Generalization gap:** -0.001554
- **N test:** 53
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Test error:** 187.9 (95% CI 137 to 249.3)
- **Test R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Train error:** 0.477
- **Train R²:** 0.4642
- **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 1080 (recorded 535, predicted 1620). 1.9% of the held-out rows are unlike the rows it learned from.

Segment `players_league_at_the_end_of_1986` = `N` performs **in line with the aggregate** (31 held-out rows): segment R² 0.397 against aggregate R² 0.466 (gap -0.0685). No quality drift detected.

**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 |
| --- | --- | --- | --- | --- |
| Players league at the end of 1986 = N | 31 | 0.3972 | -0.0685 | In line with all rows |
| Number of walks in 1986 = q4 | 14 | -0.0096 | -0.4754 | Too few rows to judge |
| Number of runs in 1986 = q4 | 13 | -0.0047 | -0.4704 | Too few rows to judge |
| Number of home runs during his career = q4 | 12 | -0.2045 | -0.6702 | Too few rows to judge |
| Number of home runs in 1986 = q4 | 12 | 0.2292 | -0.2365 | Too few rows to judge |
| Number of runs batted in during his career = q4 | 9 | -1.0873 | -1.5530 | Too few rows to judge |
| Number of runs batted in in 1986 = q4 | 14 | 0.2199 | -0.2459 | Too few rows to judge |
| Number of put outs in 1986 = q4 | 13 | 0.2606 | -0.2052 | Too few rows to judge |
| Number of runs during his career = q4 | 10 | -0.3243 | -0.7900 | Too few rows to judge |
| Number of walks during his career = q4 | 10 | 0.0607 | -0.4050 | Too few rows to judge |

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

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

The worst held-out row was missed by 1,085 (target's scale). The 10 rows with the largest absolute residuals out of 53 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 times at bat in 1986 | Number of walks during his career |
| --- | --- | --- | --- | --- |
| 535.0 | 1619.7 | -1084.7 | 507 | 1380 |
| 90.0 | 901.1 | -811.1 | 633 | 274 |
| 1300.0 | 666.7 | +633.3 | 441 | 309 |
| 1150.0 | 578.6 | +571.4 | 510 | 174 |
| 773.3 | 1203.8 | -430.5 | 479 | 854 |
| 700.0 | 295.7 | +404.3 | 239 | 207 |
| 1450.0 | 1047.3 | +402.7 | 557 | 478 |
| 160.0 | 541.2 | -381.2 | 600 | 110 |
| 277.5 | 609.2 | -331.7 | 537 | 174 |
| 650.0 | 340.5 | +309.5 | 288 | 189 |

- **Additive:** No
- **Expected coverage:** 0.8667
- **N extrapolated:** 0
- **Held-out rows:** 53
- **Held-out rows for the interval:** 53
- **Rows inside the interval:** 47
- **Residual P5:** -400.9
- **Residual P95:** 403.3
- **Residual std:** 279.8

1 of 53 held-out rows (1.9%) lie further from the training rows than 99 in 100 rows like them would, measured on the 2 inputs the model reads (`number_of_times_at_bat_in_1986`, `number_of_walks_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 times at bat in 1986, Number of walks during his career | 3.035 | 53 | 1 | 1.89% |

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

| Count | From | To |
| --- | --- | --- |
| 0 | 0 | 0.142 |
| 2 | 0.142 | 0.284 |
| 1 | 0.284 | 0.426 |
| 1 | 0.426 | 0.568 |
| 4 | 0.568 | 0.71 |
| 6 | 0.71 | 0.853 |
| 10 | 0.853 | 0.995 |
| 5 | 0.995 | 1.137 |
| 3 | 1.137 | 1.279 |
| 7 | 1.279 | 1.421 |

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

### S.4 Usable with care: 1 point 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 | 59 of 322 rows (18%) have no 1987 annual salary on opening day in thousands of dollars value. The model is trained on the remaining 263 rows; the quality metrics describe those rows, not the full data. |
| Info | Model | Residuals grow in proportion to the predicted value | Across 53 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 446, against 78.5 in the bottom third, 5.68 times as large. The bottom third holds predictions up to 237 and the top third predictions from 579. Relative to the predictions, the typical miss is 52% of the value in the bottom third and 48% in the top third: the errors grow with the value, as they do for a quantity whose errors scale with its size, and the model is about as accurate at both ends relative to it. Where the same absolute accuracy matters across the range, a log transform of the target evens the spread. |

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**: 322 rows
- **Per-Segment Predictions**: not produced, because no segment column was chosen
- **Fairness**: compared across 7 categorical columns (`hitters_name`, `players_division_at_the_end_of_1986`, `players_league_at_the_beginning_of_1987`, `players_league_at_the_end_of_1986`, `players_position_s_in_1986`, `players_team_at_the_beginning_of_1987`, `players_team_at_the_end_of_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 (5 pass, 1 warns, 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 21.7 percentage points |
| Baseline Lift for 1987 annual salary on opening day in thousands of dollars | Pass | beats the best baseline, R² lift 0.0837 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Pass | 3 columns compared, all balanced |
| Out-of-Distribution | Pass | 1.9% of held-out rows are out of distribution |

- **N critical concerns:** 0
- **N fail:** 0
- **N pass:** 5
- **N warn:** 1
- **Overall verdict:** Caution

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

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

- Collect more rows for the target 1987 annual salary on opening day in thousands of dollars. Reason: the model explains 47% of the variation, suggesting that a larger training set may help improve accuracy.
- Add a column that records missing values for 1987 annual salary on opening day in thousands of dollars. Reason: the diagnostics flagged that the target has missing values, which can limit model quality and reliability.
- Add a column or columns that capture the scale of large residuals for high predicted salaries. Reason: the diagnostics found that residuals grow in proportion to the predicted value, indicating unmodeled signal among higher salaries.

### 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 walks during his career from 0 to 1566 and Number of times at bat in 1986 from 16 to 687; outside those ranges it has not been checked. 69 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 23 columns, using 2 of them. The model explains 47% of its target, less than half, and relies most on Number of walks during his career, with which the model's output rises.

- One target was modeled; 53 rows were held out for checking.
- A straight line through the data already explained 38%; the model added 8.4 points of variance explained, a slight margin, and was closer on 58% of the 53 checked rows.
- The checks found missing values in the target, flagged as a Warning among 53 held-out rows.

- **Best R²:** 0.4658
- **Best quality:** 44.03%
- **Best target:** 1987_annual_salary_on_opening_day_in_thousands_of_dollars
- **Targets:** 1

### 2 Stakeholder Summary

The model explains 47% of the variation in 1987 annual salary on opening day in thousands of dollars, relying most on number of walks during his career, followed by number of times at bat in 1986. Compared with a straight line through the data, which explains 38%, the model is ahead by 8.4 points of variance explained on the held-out rows. Moving number of walks during his career from 66.0 to 340 raises the model's output by about 355 on average, with everything else as observed.

This model captures only part of the pattern in salary and should not be relied on for individual predictions. The model's margin over the baseline is small and too slight to show row by row, and its quality figure was measured on 53 rows. 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 | 59 of 322 rows (18%) have no 1987 annual salary on opening day in thousands of dollars value. The model is trained on the remaining 263 rows; the quality metrics describe those rows, not the full data. |
| Info | Model | Residuals grow in proportion to the predicted value | Across 53 held-out rows split into thirds by predicted value, the residual standard deviation in the top third is 446, against 78.5 in the bottom third, 5.68 times as large. The bottom third holds predictions up to 237 and the top third predictions from 579. Relative to the predictions, the typical miss is 52% of the value in the bottom third and 48% in the top third: the errors grow with the value, as they do for a quantity whose errors scale with its size, and the model is about as accurate at both ends relative to it. Where the same absolute accuracy matters across the range, a log transform of the target evens the spread. |

*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 53 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 = 0.086 × Number of times at bat in 1986 × sqrt(Number of walks during his career) | 44.03% | 5.7% | 53.42% |

*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's output for annual salary on opening day in thousands of dollars shows a share of variation explained of 0.466 on held-out rows, pointing to moderate reliability. There is one flagged concern about residuals: see the Concerns chapter.

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

*How to read this*

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

#### 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 both Number of walks during his career and Number of times at bat in 1986, relying on Number of walks during his career the most at 58% and Number of times at bat in 1986 at 42%.

```
1987_annual_salary_on_opening_day_in_thousands_of_dollars = 0.086 × Number of times at bat in 1986 × sqrt(Number of walks during his career)
```

Quality 44.03% · Error 53.42% on 53 rows the search never saw · Found on 210 rows · Complexity 5.7%

**Table 5.1.1 · Constants of the formula**

| Value | Role | Input | Unit |
| --- | --- | --- | --- |
| 0.086 | Scale |  |  |

- **Rows the search trained on, measured:** 105
- **Rows the search trained on:** 105
- **Held out R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Constants in the formula:** 1
- **Terms that read an input, constants multiplied in:** 2
- **Training rows:** 210
- **Held-out rows:** 53
- **Inputs the formula reads:** 2
- **Terms in the formula:** 1
- **Inputs the formula does not read:** Hitters name, Number of assists in 1986, Number of errors in 1986, Number of hits during his career, Number of hits in 1986, Number of home runs during his career, Number of home runs in 1986, Number of put outs in 1986, Number of runs batted in during his career, Number of runs batted in in 1986, Number of runs during his career, Number of runs in 1986, Number of times at bat during his career, Number of walks in 1986, Number of years in the major leagues, Players division at the end of 1986, Players league at the beginning of 1987, Players league at the end of 1986, Players position(s) in 1986, Players team at the beginning of 1987, Players team at the end of 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.466 on 53 rows the search never saw (95% interval -0.097 to 0.761). The interval reaches below zero, so the figure is not graded: on these rows the model cannot be told apart from predicting the mean. Mean absolute error is 188 on the target's scale.

- **Error:** 53.42% (95% CI 23.88% to 100%)
- **MAE:** 187.9 (95% CI 137 to 249.3)
- **N:** 53
- **Training rows:** 210
- **Quality:** 44.03% (95% CI 0% to 74.98%)
- **R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Rows found on:** 210
- **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:** -33.85 (95% CI -108.3 to 34.49)
- **N:** 53
- **P50:** -31.71 (95% CI -84.6 to 39.41)
- **P90:** 256.7 (95% CI 128.7 to 404.3)
- **P95:** 403.3 (95% CI 167.8 to 596.2)
- **P99:** 601.1 (95% CI 354.2 to 633.3)
- **Std:** 279.8 (95% CI 185.6 to 362.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 21 of the 210 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. The model's output rises with Number of walks during his career on every one of the 6,720 steps between observed values. The model's output rises with Number of times at bat in 1986 on every one of the 6,720 steps between observed values. Moving Number of walks during his career from 66.0 to 340, its first and third quartile, with every other input as observed raises the model's output by 355 on average (by between 16.9 and 588 on single rows). 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 walks during his career | 57.87% | 1.569 | 1.52 | -0.2852 | 1 | Rises (6720 of 6720 steps) | +354.5 (66 to 340) |
| Number of times at bat in 1986 | 42.13% | 1.142 | 1.165 | -0.5226 | 1 | Rises (6720 of 6720 steps) | +282.5 (299 to 523) |

- **Rows the search trained on, measured:** 105
- **N rows:** 21
- **Inputs the formula does not read:** Hitters name, Number of assists in 1986, Number of errors in 1986, Number of hits during his career, Number of hits in 1986, Number of home runs during his career, Number of home runs in 1986, Number of put outs in 1986, Number of runs batted in during his career, Number of runs batted in in 1986, Number of runs during his career, Number of runs in 1986, Number of times at bat during his career, Number of walks in 1986, Number of years in the major leagues, Players division at the end of 1986, Players league at the beginning of 1987, Players league at the end of 1986, Players position(s) in 1986, Players team at the beginning of 1987, Players team at the end of 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 8.4 points of variance explained on the 53 held-out rows. Row by row the margin is **negligible**: the model reads as roughly level with the yardstick. Of the 53 held-out rows where the two differ, the model is closer on 58% (95% interval 45% to 71%). The interval of the margin includes zero: on this many held-out rows the lead is not settled.

- **Best yardstick's score:** 0.382 (95% CI -0.1118 to 0.6413)
- **Best baseline R²:** 0.382
- **Effect size d:** 0.159 (95% CI -0.09097 to 0.47)
- **Effect size d magnitude:** negligible
- **Margin over the best yardstick:** 0.08371 (95% CI -0.2465 to 0.3676)
- **Margin's interval stays above zero:** No
- **Model MAE:** 187.9 (95% CI 137 to 249.3)
- **Model:** 0.4658 (95% CI -0.097 to 0.7612)
- **Model R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Held-out rows:** 53
- **Held-out rows without an answer:** 0
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Rows where the model is closer:** 58.49% (95% CI 45.09% to 70.74%)
- **Rows compared:** 53
- **Rows level:** 0
- **Regression yardstick trained with gaps filled (too few complete rows):** No
- **Training rows of the regression yardstick:** 210

*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.466 on 53 rows, gap between training and held-out R² -0.00155): it **generalizes**. The structure the formula encodes carries from the training rows to the held-out rows.

- **Generalization gap:** -0.001554
- **N test:** 53
- **Target:** 1987 annual salary on opening day in thousands of dollars
- **Test error:** 187.9 (95% CI 137 to 249.3)
- **Test R²:** 0.4658 (95% CI -0.097 to 0.7612)
- **Train error:** 0.477
- **Train R²:** 0.4642
- **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

The formula is one term that reads all two of its inputs, so it has no separate parts to read one at a time. The same term is traced over each input in turn. In each panel the bold curve holds the term's other inputs at their training medians, and each light curve is one held-out row with its own values for them. Where the light curves lie apart but run flat, the input on the axis moves the term little, and the spread comes from the term's other inputs.

- **Additive:** No
- **Rows the search trained on, measured:** 105
- **Terms in the formula:** 1
- **Notation:** 0.086 × Number of times at bat in 1986 × sqrt(Number of walks during his career)
- **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. The bold curve holds the term's other inputs at their training medians: it is a profile of the term at the typical row, not an average over the data. Each light curve is one held-out row: the input on the axis moves, and the row keeps its own values for the term's other inputs.
> 
> A term that depends on several inputs gets one panel per input, and every one of those panels shows the same term. Where the light curves of a panel lie apart but run flat, the input on the axis moves the term little, and the spread comes from the term's other inputs. A term that reads one input has the same curve for every row, so its light curves lie on the bold one. A constant has no curve and is not counted as a term here. Terms the formula subtracts are drawn with their sign, so a curve below zero pulls the prediction down. At any fixed row, the terms and the constant 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_times_at_bat_in_1986`, `number_of_walks_during_his_career`: predictions there are not supported by the formula's shape. It has a square-root domain edge at `number_of_walks_during_his_career` = 0. Extrapolate with caution.

- **Bounded at infinity:** No
- **Rows the search trained on, measured:** 105
- **Inputs the formula reads:** 2
- **N singularities:** 1
- **Risky inputs:** number_of_times_at_bat_in_1986, number_of_walks_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 times at bat in 1986 | Diverges |
| Number of walks during his career | Unknown |

**Table 5.1.7 · Limits at pos infinity**

| Input | Kind |
| --- | --- |
| Number of times at bat in 1986 | Diverges |
| Number of walks during his career | Positive infinity |

**Table 5.1.7 · Singularities**

| At | Input | Kind |
| --- | --- | --- |
| 0 | Number of walks during his career | Sqrt domain |

*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:** No
- **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.466. The formula is non-decomposable, so ablation collapses to a single bar; the chapter "How each term responds to its inputs" is the better surface in this case.

- **Additive:** No
- **Baseline R²:** 0.4658
- **Held-out rows:** 53

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 times at bat in 1986 | 380 |
| Number of walks during his career | 171 |
| Prediction | 427.3 |

- **Additive:** No
- **Expected coverage:** 0.8667
- **Held-out rows for the interval:** 53
- **Rows inside the interval:** 47
- **Terms in the formula:** 1
- **Residual P5:** -400.9
- **Residual P95:** 403.3
- **Residual std:** 279.8

*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 2 inputs. The formula is non-additive: the change in the prediction per unit of each input (∂ŷ/∂xᵢ) is computed with the others held at the training median. **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:** No
- **Terms in the formula:** 1

*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 couples number_of_times_at_bat_in_1986 and number_of_walks_during_his_career: on 105 of 105 row pairs the mixed difference was not zero, so in the model's output the two act together (measured, not assumed). This describes the formula; it does not say that the data hold no other interaction. The heatmaps show the full-formula response across each pair's plane.

**Table 5.1.12 · Input pairs tested inside the formula**

| Inputs | In the model's output | Row pairs | Pairs with a difference | Mean absolute mixed difference |
| --- | --- | --- | --- | --- |
| Number of times at bat in 1986, Number of walks during his career | Act together | 105 | 105 | 157.3 |

**Table 5.1.12 · The prediction across Number of times at bat in 1986 (columns) and Number of walks during his career (rows), the other inputs at their typical values**

| Number of walks during his career \ Number of times at bat in 1986 | 16 | 137 | 257 | 378 | 499 | 620 |
| --- | --- | --- | --- | --- | --- | --- |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 285 | 23.23 | 198.9 | 373.1 | 548.8 | 724.5 | 900.1 |
| 569 | 32.82 | 281 | 527.2 | 775.4 | 1023.7 | 1271.9 |
| 854 | 40.21 | 344.3 | 645.9 | 950 | 1254.1 | 1558.2 |
| 1139 | 46.44 | 397.6 | 745.9 | 1097.1 | 1448.3 | 1799.5 |
| 1424 | 51.92 | 444.6 | 834 | 1226.7 | 1619.4 | 2012.1 |

- **Additive:** No
- **Inputs in different terms act separately:** No
- **Rows the search trained on, measured:** 105
- **Terms in the formula:** 1
- **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 1,085 (target's scale). The 10 rows with the largest absolute residuals out of 53 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 times at bat in 1986 | Number of walks during his career |
| --- | --- | --- | --- | --- |
| 535.0 | 1619.7 | -1084.7 | 507 | 1380 |
| 90.0 | 901.1 | -811.1 | 633 | 274 |
| 1300.0 | 666.7 | +633.3 | 441 | 309 |
| 1150.0 | 578.6 | +571.4 | 510 | 174 |
| 773.3 | 1203.8 | -430.5 | 479 | 854 |
| 700.0 | 295.7 | +404.3 | 239 | 207 |
| 1450.0 | 1047.3 | +402.7 | 557 | 478 |
| 160.0 | 541.2 | -381.2 | 600 | 110 |
| 277.5 | 609.2 | -331.7 | 537 | 174 |
| 650.0 | 340.5 | +309.5 | 288 | 189 |

- **Additive:** No
- **Expected coverage:** 0.8667
- **N extrapolated:** 0
- **Held-out rows:** 53
- **Held-out rows for the interval:** 53
- **Rows inside the interval:** 47
- **Residual P5:** -400.9
- **Residual P95:** 403.3
- **Residual std:** 279.8

*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 53 rows, where one row moves it by 2 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% | 188.7 | 38 of 53 (71.7%) |
| 80% | 358.5 | 45 of 53 (84.91%) |
| 90% | 460.2 | 49 of 53 (92.45%) |
| 95% | 548.3 | 49 of 53 (92.45%) |

- **Largest miss (percentage points):** 21.7
- **Held-out rows:** 53
- **Rows inside the interval:** 38, 45, 49, 49
- **Residual P2.5:** -696.9
- **Residual P97.5:** 521.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

53 held-out residuals, with a spread up to 1,085 in absolute terms. Mean residual is -33.9, 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.6021
- **Bias:** -33.85
- **Bias over residual sd:** -0.121
- **Held-out rows:** 53
- **Order:** shuffled
- **Residual sd:** 279.8
- **Share within normal band:** 0.9245

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 144 generations, ending at quality 0.455 (gain +0.335 from generation 2). The curve shows a substantial climb. The last improvement came after 23% of the search time: the search had settled well before it stopped, so more time alone is unlikely to change the result.

- **First generation:** 2
- **First quality:** 11.97%
- **Last generation:** 145
- **Last improvement ms:** 842,099
- **Last quality:** 45.52%
- **Max quality:** 45.52%
- **N points:** 144
- **N total generations:** 144
- **Search time ms:** 3,601,235
- **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 53 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 53 rows |
| Within domain | Pass | no rows outside the training target's ±2σ range across 53 rows |
| Bounded predictions | Pass | no runaway predictions beyond ±10σ across 53 rows |

- **Held-out rows:** 53
- **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):** 238.6
- **RMSE of a straight line through the inputs (same rows):** 347
- **Training MAE (rows the search trained on):** 222.8
- **MAE of always predicting the mean (same rows):** 358.5
- **RMSE of always predicting the mean (same rows):** 465.4
- **Training R² (rows the search trained on):** 0.3912
- **Training RMSE (rows the search trained on):** 363.1
- **Rows the search trained on, measured:** 105
- **Error:** 47.7%
- **Inputs the straight line used:** 16
- **N train:** 269
- **Quality:** 46.41%

*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 Info) 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 for the target 1987 annual salary on opening day in thousands of dollars. Reason: the model explains 47% of the variation, suggesting that a larger training set may help improve accuracy.
- Add a column that records missing values for 1987 annual salary on opening day in thousands of dollars. Reason: the diagnostics flagged that the target has missing values, which can limit model quality and reliability.
- Add a column or columns that capture the scale of large residuals for high predicted salaries. Reason: the diagnostics found that residuals grow in proportion to the predicted value, indicating unmodeled signal among higher salaries.

#### 6.2 Quality by Input Range

Quality by Input Range splits the held-out rows by every usable column besides the target and compares the model's quality on each segment with its quality on all held-out rows. A column the model does not read, such as one left out because it leaks the target, is split as well: its segments show where the predictions are weak, not what the model uses. 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 column is split into quartiles; a categorical column 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 `players_league_at_the_end_of_1986` = `N` performs **in line with the aggregate** (31 held-out rows): segment R² 0.397 against aggregate R² 0.466 (gap -0.0685). No quality drift detected.

**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 |
| --- | --- | --- | --- | --- |
| Players league at the end of 1986 = N | 31 | 0.3972 | -0.0685 | In line with all rows |
| Number of walks in 1986 = q4 | 14 | -0.0096 | -0.4754 | Too few rows to judge |
| Number of runs in 1986 = q4 | 13 | -0.0047 | -0.4704 | Too few rows to judge |
| Number of home runs during his career = q4 | 12 | -0.2045 | -0.6702 | Too few rows to judge |
| Number of home runs in 1986 = q4 | 12 | 0.2292 | -0.2365 | Too few rows to judge |
| Number of runs batted in during his career = q4 | 9 | -1.0873 | -1.5530 | Too few rows to judge |
| Number of runs batted in in 1986 = q4 | 14 | 0.2199 | -0.2459 | Too few rows to judge |
| Number of put outs in 1986 = q4 | 13 | 0.2606 | -0.2052 | Too few rows to judge |
| Number of runs during his career = q4 | 10 | -0.3243 | -0.7900 | Too few rows to judge |
| Number of walks during his career = q4 | 10 | 0.0607 | -0.4050 | Too few rows to judge |

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

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

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

1 of 53 held-out rows (1.9%) lie further from the training rows than 99 in 100 rows like them would, measured on the 2 inputs the model reads (`number_of_times_at_bat_in_1986`, `number_of_walks_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 times at bat in 1986, Number of walks during his career | 3.035 | 53 | 1 | 1.89% |

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

| Count | From | To |
| --- | --- | --- |
| 0 | 0 | 0.142 |
| 2 | 0.142 | 0.284 |
| 1 | 0.284 | 0.426 |
| 1 | 0.426 | 0.568 |
| 4 | 0.568 | 0.71 |
| 6 | 0.71 | 0.853 |
| 10 | 0.853 | 0.995 |
| 5 | 0.995 | 1.137 |
| 3 | 1.137 | 1.279 |
| 7 | 1.279 | 1.421 |

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 division at the end of 1986` splits the held-out rows into 2 groups. The prediction-parity ratio is 0.848 (smallest over largest mean prediction), the largest absolute group residual mean is 70.0 (0.25 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_team_at_the_end_of_1986` goes closely with `players_division_at_the_end_of_1986` (association 0.926 on a scale from 0 to 1, and 1 more column at 0.5 or above): a model that reads `players_team_at_the_end_of_1986` can tell the groups of `players_division_at_the_end_of_1986` apart, so leaving `players_division_at_the_end_of_1986` out of the inputs does not keep it out of the predictions.

- **Aggregate residual std:** 279.8
- **N columns:** 3
- **N proxies:** 8
- **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 |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 70.04 | Players division at the end of 1986 | E, W | Column Players division at the end of 1986 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.848 (smallest over largest mean prediction), the largest absolute group residual mean is 70.0 (0.25 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_team_at_the_end_of_1986 goes closely with players_division_at_the_end_of_1986 (association 0.926 on a scale from 0 to 1, and 1 more column at 0.5 or above): a model that reads players_team_at_the_end_of_1986 can tell the groups of players_division_at_the_end_of_1986 apart, so leaving players_division_at_the_end_of_1986 out of the inputs does not keep it out of the predictions. | 2 | 2 | 0.8479 | Balanced |
| 83.61 | Players league at the beginning of 1987 | A, N | Column Players league at the beginning of 1987 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.91 (smallest over largest mean prediction), the largest absolute group residual mean is 83.6 (0.299 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_team_at_the_beginning_of_1987 goes closely with players_league_at_the_beginning_of_1987 (association 0.887 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.9098 | Balanced |
| 69.91 | Players league at the end of 1986 | A, N | Column Players league at the end of 1986 splits the held-out rows into 2 groups. The prediction-parity ratio is 0.877 (smallest over largest mean prediction), the largest absolute group residual mean is 69.9 (0.25 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_team_at_the_end_of_1986 goes closely with players_league_at_the_end_of_1986 (association 0.884 on a scale from 0 to 1, and 2 more columns at 0.5 or above): a model that reads players_team_at_the_end_of_1986 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.8772 | 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**: 322 rows
- **Per-Segment Predictions**: not produced, because no segment column was chosen
- **Fairness**: compared across 7 categorical columns (`hitters_name`, `players_division_at_the_end_of_1986`, `players_league_at_the_beginning_of_1987`, `players_league_at_the_end_of_1986`, `players_position_s_in_1986`, `players_team_at_the_beginning_of_1987`, `players_team_at_the_end_of_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 (5 pass, 1 warns, 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 21.7 percentage points |
| Baseline Lift for 1987 annual salary on opening day in thousands of dollars | Pass | beats the best baseline, R² lift 0.0837 |
| Model Constraints | Pass | every held-out prediction is finite and within the training range |
| Fairness | Pass | 3 columns compared, all balanced |
| Out-of-Distribution | Pass | 1.9% of held-out rows are out of distribution |

- **N critical concerns:** 0
- **N fail:** 0
- **N pass:** 5
- **N warn:** 1
- **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 | 569b7640-48b7-11f1-8087-d378640fe787 |
| Run time | 2026-11-13 16:27 UTC |
| Total rows | 322 |
| 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 9 min |
| Credit budget | 500 credits |
| Ufinq version | 0.3.61 |

### 7 Data

Several columns are highly correlated, with three pairs moving almost in lockstep, meaning the dataset contains overlapping information among performance statistics. Team at the beginning of 1987 associates with moderate differences in salary. One concern was flagged: see the Concerns chapter.

Most notable in the Data section:

- `Number of hits during his career` and `Number of times at bat during his career` move together (correlation 0.995)
- `Number of hits during his career` and `Number of runs during his career` move together (correlation 0.985)
- `Number of runs during his career` and `Number of times at bat during his career` move together (correlation 0.983)

*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 24 columns across 322 rows (17 numeric, 7 non-numeric): every column is at least 75% populated. Distributional statistics on numeric columns can be read at face value. 10 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 | 263 | 59 (18.32%) | 535.9 | 451.1 | 67.5 | 190.0 | 425.0 | 750.0 | 2460.0 | 1.589 | 0.8418 |
| Hitters name | Input | text | 322 | 0 |  |  |  |  |  |  |  |  |  |
| Number of assists in 1986 | Input | integer | 322 | 0 | 106.9 | 136.9 | 0 | 7 | 39.5 | 166 | 492 | 1.358 | 1.28 |
| Number of errors in 1986 | Input | integer | 322 | 0 | 8.040 | 6.368 | 0 | 3 | 6 | 11 | 32 | 1.055 | 0.792 |
| Number of hits during his career | Input | integer | 322 | 0 | 717.6 | 654.5 | 4 | 209 | 508 | 1059.3 | 4256 | 1.356 | 0.9121 |
| Number of hits in 1986 | Input | integer | 322 | 0 | 101.02 | 46.45 | 1 | 64 | 96 | 137 | 238 | 0.2912 | 0.4598 |
| Number of home runs during his career | Input | integer | 322 | 0 | 69.49 | 86.27 | 0 | 14 | 37.50 | 90 | 548 | 2.163 | 1.241 |
| Number of home runs in 1986 | Input | integer | 322 | 0 | 10.770 | 8.709 | 0 | 4 | 8 | 16 | 40 | 0.9048 | 0.8086 |
| Number of put outs in 1986 | Input | integer | 322 | 0 | 288.9 | 280.7 | 0 | 109.3 | 212 | 325 | 1378 | 2.064 | 0.9715 |
| Number of runs batted in during his career | Input | integer | 322 | 0 | 330.1 | 333.2 | 0 | 88.8 | 220.5 | 426.3 | 1659 | 1.532 | 1.009 |

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

- **N columns:** 24
- **N high missing:** 0
- **N rows:** 322
- **N strongly skewed:** 10
- **Table branch:** main
- **Table ID:** 69af5227-a20a-4041-923a-ae71b505ff1f

*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: 67.5 to 2,460, median 425, skewed to high values, 18% missing; moves with `Number of runs batted in during his career` most (r 0.567).

*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 | 263 |
| Distinct values | 150 |
| Continuous | yes |
| Decimal places | 3 |
| Minimum | 67.5 |
| Maximum | 2460 |
| Mean | 535.9 |
| Median | 425 |
| Mode | 750.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 runs during his career | two numbers | 0.7668 | 0.5627 | 0.474 to 0.6401 | 0.7668 | 0.6076 | < 0.001 | 263 |
| Number of runs batted in during his career | two numbers | 0.7603 | 0.567 | 0.4788 to 0.6438 | 0.7603 | 0.5978 | < 0.001 | 263 |
| Number of hits during his career | two numbers | 0.7594 | 0.5489 | 0.4584 to 0.6282 | 0.7594 | 0.5995 | < 0.001 | 263 |
| Number of times at bat during his career | two numbers | 0.7496 | 0.5261 | 0.4327 to 0.6084 | 0.7496 | 0.5879 | < 0.001 | 263 |
| Number of walks during his career | two numbers | 0.735 | 0.4898 | 0.3921 to 0.5766 | 0.735 | 0.5596 | < 0.001 | 263 |
| Number of home runs during his career | two numbers | 0.6708 | 0.5249 | 0.4314 to 0.6073 | 0.6708 | 0.4962 | < 0.001 | 263 |
| Number of years in the major leagues | two numbers | 0.6257 | 0.4007 | 0.2939 to 0.4975 | 0.6257 | 0.462 | < 0.001 | 263 |
| Number of hits in 1986 | two numbers | 0.4794 | 0.4387 | 0.3355 to 0.5314 | 0.4794 | 0.3418 | < 0.001 | 263 |
| Number of runs batted in in 1986 | two numbers | 0.4744 | 0.4495 | 0.3474 to 0.541 | 0.4744 | 0.345 | < 0.001 | 263 |
| Number of times at bat in 1986 | two numbers | 0.4459 | 0.3948 | 0.2875 to 0.4922 | 0.4459 | 0.3181 | < 0.001 | 263 |

The first 10 rows of 22. The other 12 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.01 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 Hitters name

Hitters name: 322 distinct values, most often `Vance_Law`.

##### 7.3.1 Description

**Table 7.3.1 · Hitters name**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 322 |
| Distinct values | 322 |
| Continuous | no |
| Mode | Vance_Law |

##### 7.3.2 Visualization

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

#### 7.4 Number of assists in 1986

Number of assists in 1986: 0 to 492, median 39.5, skewed to high values; moves with `Number of errors in 1986` most (r 0.706).

##### 7.4.1 Description

**Table 7.4.1 · Number of assists in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 161 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 492 |
| Mean | 106.9 |
| Median | 39.5 |
| Mode | 0 |

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 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Players position(s) in 1986 | a number and a category | 0.9023 |  |  |  |  | < 0.001 | 322 |
| Number of errors in 1986 | two numbers | 0.7483 | 0.7064 | 0.647 to 0.7572 | 0.7483 | 0.5762 | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.3538 | 0.3538 | 0.2544 to 0.4459 | 0.2804 | 0.201 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.3205 | 0.3205 | 0.2188 to 0.4152 | 0.2551 | 0.1816 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.2206 | 0.2206 | 0.114 to 0.3221 | 0.1696 | 0.1262 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.1585 | -0.1585 | -0.2633 to -0.05008 | -0.1291 | -0.08662 | 0.01596 | 322 |
| Number of put outs in 1986 | two numbers | 0.1547 | -0.02502 | -0.134 to 0.08451 | 0.1547 | 0.1784 | 0.8818 | 322 |
| Number of walks in 1986 | two numbers | 0.1497 | 0.1497 | 0.04103 to 0.2548 | 0.1277 | 0.09035 | 0.02244 | 322 |
| Players team at the beginning of 1987 | a number and a category | 0.1213 |  |  |  |  | 1 | 322 |
| Number of home runs in 1986 | two numbers | 0.1131 | -0.1063 | -0.2132 to 0.003007 | -0.1131 | -0.07568 | 0.1385 | 322 |

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

##### 7.4.2 Visualization

The rows of `Number of assists 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.5 Number of errors in 1986

Number of errors in 1986: 0 to 32, median 6, skewed to high values, 29 distinct values; moves with `Number of assists in 1986` most (r 0.706).

##### 7.5.1 Description

**Table 7.5.1 · Number of errors in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 29 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 32 |
| Mean | 8.04 |
| Median | 6 |
| Mode | 3 |

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

###### 7.5.1.1 By Value

**Table 7.5.1.1 · Mean per value of Number of errors in 1986**

| Number of errors in 1986 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | 21 | 525.2 | 76.57 | 37.33 | 22.71 | 553.6 | 547.1 | 46.19 | 1005.4 | 301.3 | 12.62 | 39.24 | 140.1 | 0.8571 | 431.1 | 11.24 | 3777.4 |
| 1 | 13 | 310.2 | 78 | 29.31 | 184.8 | 397.4 | 257.7 | 30.46 | 603.2 | 277.7 | 6 | 38.46 | 49.85 | 9.769 | 221.7 | 7.538 | 2225.7 |
| 2 | 21 | 280.6 | 71.14 | 35.81 | 218.8 | 311.6 | 242.3 | 34.76 | 539.2 | 277.3 | 8.524 | 38.29 | 55.05 | 15.33 | 245 | 6.524 | 2061.8 |
| 3 | 33 | 306.8 | 95.97 | 36.06 | 252.8 | 468.3 | 247.9 | 42.76 | 599.5 | 359.3 | 9.636 | 48.52 | 47.64 | 33.73 | 219.3 | 6.455 | 2210.7 |
| 4 | 28 | 340.9 | 91.82 | 30.93 | 275.1 | 490.7 | 343.6 | 41.39 | 720.1 | 345 | 9.036 | 44.36 | 70.07 | 29.82 | 243.9 | 8.286 | 2639.4 |
| 5 | 26 | 434.9 | 96.19 | 37.31 | 308.8 | 615.8 | 388.9 | 48.5 | 857.6 | 360.8 | 10.35 | 48.62 | 77.92 | 72.88 | 287.6 | 8.192 | 3161.1 |
| 6 | 23 | 418.3 | 113 | 41.52 | 359.9 | 792.4 | 363.3 | 56.39 | 800.3 | 415.9 | 14.91 | 58.91 | 81.22 | 64.04 | 303.4 | 7 | 2832.4 |
| 7 | 18 | 466.3 | 93.78 | 37.5 | 357.8 | 548.1 | 447.9 | 46.39 | 931.5 | 368 | 10.78 | 49.11 | 96.61 | 87.72 | 357.6 | 9.944 | 3486.4 |
| 8 | 20 | 385.4 | 98.25 | 41.2 | 389.1 | 697.4 | 398.8 | 56 | 747.8 | 374.2 | 14.6 | 53.4 | 107.3 | 67.45 | 279.8 | 7.45 | 2795.3 |
| 9 | 18 | 366.4 | 107.7 | 42 | 298 | 505.6 | 338.8 | 44.56 | 739.1 | 406.7 | 8.056 | 51.89 | 63.11 | 97.06 | 254.1 | 7.222 | 2616.8 |

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

*How to read this*

> The rows are grouped by the value of `Number of errors 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 errors 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.5.1.2 Correlation

**Table 7.5.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of assists in 1986 | two numbers | 0.7483 | 0.7064 | 0.647 to 0.7572 | 0.7483 | 0.5762 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.7473 |  |  |  |  | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.3673 | 0.3521 | 0.2525 to 0.4443 | 0.3673 | 0.2523 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.3329 | 0.31 | 0.2078 to 0.4056 | 0.3329 | 0.2293 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.2819 | 0.2405 | 0.1347 to 0.3408 | 0.2819 | 0.1935 | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.2243 | 0.1934 | 0.08588 to 0.2964 | 0.2243 | 0.1528 | 0.001775 | 322 |
| Players team at the beginning of 1987 | a number and a category | 0.196 |  |  |  |  | 0.9788 | 322 |
| Players team at the end of 1986 | a number and a category | 0.1904 |  |  |  |  | 0.9788 | 322 |
| Number of walks in 1986 | two numbers | 0.18 | 0.1294 | 0.02037 to 0.2354 | 0.18 | 0.1246 | 0.0494 | 322 |
| Number of put outs in 1986 | two numbers | 0.1689 | 0.11 | 0.000679 to 0.2167 | 0.1689 | 0.1235 | 0.09729 | 322 |

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

##### 7.5.2 Visualization

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

#### 7.6 Number of hits during his career

Number of hits during his career: 4 to 4,256, median 508, skewed to high values; moves with `Number of times at bat during his career` most (r 0.995).

##### 7.6.1 Description

**Table 7.6.1 · Number of hits during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 288 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 4 |
| Maximum | 4256 |
| Mean | 717.6 |
| Median | 508 |
| Mode | 160 |

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 times at bat during his career | two numbers | 0.9977 | 0.9951 | 0.9939 to 0.996 | 0.9977 | 0.961 | < 0.001 | 322 |
| Number of runs during his career | two numbers | 0.9908 | 0.9846 | 0.9809 to 0.9876 | 0.9908 | 0.9172 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.9711 | 0.9451 | 0.9321 to 0.9557 | 0.9711 | 0.8544 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.946 | 0.891 | 0.866 to 0.9115 | 0.946 | 0.7975 | < 0.001 | 322 |
| Number of years in the major leagues | two numbers | 0.9036 | 0.9036 | 0.8814 to 0.9219 | 0.8997 | 0.7474 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.8363 | 0.7833 | 0.7371 to 0.8222 | 0.8363 | 0.6474 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7594 | 0.5489 | 0.4584 to 0.6282 | 0.7594 | 0.5995 | < 0.001 | 263 |
| Number of runs batted in in 1986 | two numbers | 0.414 | 0.3082 | 0.2058 to 0.4039 | 0.414 | 0.2911 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.394 | 0.2558 | 0.1507 to 0.3552 | 0.394 | 0.277 | < 0.001 | 322 |
| Players team at the end of 1986 | a number and a category | 0.383 |  |  |  |  | 0.002007 | 322 |

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

##### 7.6.2 Visualization

The rows of `Number of hits 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.7 Number of hits in 1986

Number of hits in 1986: 1 to 238, median 96; moves with `Number of times at bat in 1986` most (r 0.968).

##### 7.7.1 Description

**Table 7.7.1 · Number of hits in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 144 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 238 |
| Mean | 101 |
| Median | 96 |
| Mode | 53 |

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 times at bat in 1986 | two numbers | 0.975 | 0.9679 | 0.9602 to 0.9742 | 0.975 | 0.8646 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.9321 | 0.9222 | 0.904 to 0.937 | 0.9321 | 0.7783 | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.845 | 0.8111 | 0.77 to 0.8454 | 0.845 | 0.652 | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.6928 | 0.6412 | 0.572 to 0.7014 | 0.6928 | 0.5007 | < 0.001 | 322 |
| Number of home runs in 1986 | two numbers | 0.567 | 0.5622 | 0.4825 to 0.6326 | 0.567 | 0.4026 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.5228 |  |  |  |  | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.4794 | 0.4387 | 0.3355 to 0.5314 | 0.4794 | 0.3418 | < 0.001 | 263 |
| Number of runs during his career | two numbers | 0.4104 | 0.2618 | 0.157 to 0.3608 | 0.4104 | 0.2875 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.395 | 0.232 | 0.1259 to 0.3329 | 0.395 | 0.2729 | < 0.001 | 322 |
| Number of hits during his career | two numbers | 0.394 | 0.2558 | 0.1507 to 0.3552 | 0.394 | 0.277 | < 0.001 | 322 |

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

##### 7.7.2 Visualization

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

#### 7.8 Number of home runs during his career

Number of home runs during his career: 0 to 548, median 37.5, skewed to high values; moves with `Number of runs batted in during his career` most (r 0.929).

##### 7.8.1 Description

**Table 7.8.1 · Number of home runs during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 146 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 548 |
| Mean | 69.49 |
| Median | 37.5 |
| Mode | 32 |

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 runs batted in during his career | two numbers | 0.9295 | 0.9295 | 0.9129 to 0.943 | 0.9249 | 0.7702 | < 0.001 | 322 |
| Number of runs during his career | two numbers | 0.8466 | 0.8202 | 0.781 to 0.8531 | 0.8466 | 0.6637 | < 0.001 | 322 |
| Number of times at bat during his career | two numbers | 0.8383 | 0.7988 | 0.7555 to 0.8352 | 0.8383 | 0.6497 | < 0.001 | 322 |
| Number of hits during his career | two numbers | 0.8363 | 0.7833 | 0.7371 to 0.8222 | 0.8363 | 0.6474 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.8332 | 0.8 | 0.7569 to 0.8362 | 0.8332 | 0.644 | < 0.001 | 322 |
| Number of years in the major leagues | two numbers | 0.7504 | 0.7269 | 0.6709 to 0.7746 | 0.7504 | 0.5681 | < 0.001 | 322 |
| Number of home runs in 1986 | two numbers | 0.6731 | 0.4932 | 0.4058 to 0.5717 | 0.6731 | 0.5046 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.6708 | 0.5249 | 0.4314 to 0.6073 | 0.6708 | 0.4962 | < 0.001 | 263 |
| Number of runs batted in in 1986 | two numbers | 0.5819 | 0.4418 | 0.3493 to 0.5257 | 0.5819 | 0.4167 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.4821 |  |  |  |  | < 0.001 | 322 |

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

##### 7.8.2 Visualization

The rows of `Number of home runs during his career` 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.9 Number of home runs in 1986

Number of home runs in 1986: 0 to 40, median 8, skewed to high values, 36 distinct values; moves with `Number of runs batted in in 1986` most (r 0.855).

##### 7.9.1 Description

**Table 7.9.1 · Number of home runs in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 36 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 40 |
| Mean | 10.77 |
| Median | 8 |
| Mode | 4 |

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

###### 7.9.1.1 By Value

Number of home runs in 1986 accounts for 14% of the spread in `1987 annual salary on opening day in thousands of dollars`: `24` averages 763 above `2` (95% interval -779 to 2,306). An association, not a cause.

**Table 7.9.1.1 · Groups**

| Target | Value | Rows | Average or share | 95% interval |
| --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 24 | 4 | 1044.3 | -522.7 to 2611.2 |
| 1987 annual salary on opening day in thousands of dollars | 19 | 4 | 987.5 | 495.6 to 1479.4 |
| 1987 annual salary on opening day in thousands of dollars | 31 | 6 | 953.6 | 291.2 to 1616 |
| 1987 annual salary on opening day in thousands of dollars | 28 | 4 | 933.1 | -142.9 to 2009.1 |
| 1987 annual salary on opening day in thousands of dollars | 21 | 8 | 858.9 | 589.7 to 1128.1 |
| 1987 annual salary on opening day in thousands of dollars | 20 | 9 | 851.8 | 344.5 to 1359 |
| 1987 annual salary on opening day in thousands of dollars | 17 | 6 | 840.4 | -66.98 to 1747.8 |
| 1987 annual salary on opening day in thousands of dollars | 29 | 5 | 819 | -128.9 to 1766.9 |
| 1987 annual salary on opening day in thousands of dollars | 26 | 3 | 802.8 | 406.6 to 1199 |
| 1987 annual salary on opening day in thousands of dollars | 14 | 6 | 750.8 | 683.1 to 818.6 |

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

**Table 7.9.1.1 · Mean per value of Number of home runs in 1986**

| Number of home runs in 1986 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0 | 18 | 284.2 | 52.44 | 23.94 | 8.722 | 158.4 | 636.2 | 172.6 | 17.61 | 560.9 | 223.1 | 26 | 14.17 | 156.2 | 208 | 5.722 | 2090.8 |
| 1 | 17 | 137.8 | 71.71 | 25.71 | 10.53 | 246.8 | 293 | 88.88 | 23.24 | 283.9 | 290.8 | 33.94 | 7.176 | 169 | 98.94 | 4.235 | 1102.5 |
| 2 | 16 | 258.2 | 75.13 | 28.19 | 8.375 | 244.4 | 280.8 | 240.4 | 27.69 | 552.8 | 308.9 | 34.63 | 35.88 | 120.3 | 155.7 | 6.625 | 2031.4 |
| 3 | 18 | 239.7 | 80.89 | 30 | 6.556 | 193.2 | 300 | 197.1 | 30.44 | 534.2 | 315.6 | 36.83 | 22.56 | 128.9 | 165.6 | 6.833 | 2034.1 |
| 4 | 22 | 273.1 | 78.86 | 28.68 | 7.091 | 211 | 393.9 | 234.3 | 29.14 | 577.1 | 301.5 | 36.73 | 35.05 | 93.32 | 184.3 | 6.773 | 2180.6 |
| 5 | 21 | 307.7 | 83.43 | 38.14 | 5.095 | 200.1 | 397.6 | 249.8 | 37.1 | 626.6 | 311.5 | 39.76 | 38.67 | 80.1 | 255.2 | 8.19 | 2333.4 |
| 6 | 18 | 290.7 | 92.83 | 28.11 | 7.167 | 277 | 304.9 | 235.1 | 33.33 | 632.8 | 331.1 | 44.39 | 35.83 | 109 | 201.4 | 7.167 | 2348 |
| 7 | 17 | 371.4 | 86.53 | 30.47 | 7.353 | 200.2 | 372.5 | 328.9 | 37.59 | 762.2 | 332.8 | 41.24 | 58.35 | 117.3 | 291 | 7.882 | 2848.8 |
| 8 | 20 | 238.8 | 85.6 | 33.6 | 9.25 | 192.8 | 407.9 | 185.2 | 34.4 | 493.1 | 327 | 43.35 | 32.6 | 112.6 | 162.7 | 6.7 | 1835.5 |
| 9 | 16 | 540 | 109.2 | 44.94 | 7.125 | 295.4 | 740.4 | 437.4 | 42.63 | 1019.4 | 395.3 | 54.56 | 89.94 | 69.38 | 393.6 | 9.313 | 3697.3 |

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

###### 7.9.1.2 Correlation

**Table 7.9.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of runs batted in in 1986 | two numbers | 0.8551 | 0.8551 | 0.8227 to 0.882 | 0.817 | 0.6419 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.6731 | 0.4932 | 0.4058 to 0.5717 | 0.6731 | 0.5046 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.651 | 0.651 | 0.5832 to 0.7098 | 0.6274 | 0.4616 | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.5922 | 0.5922 | 0.5163 to 0.6589 | 0.5749 | 0.4147 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.567 | 0.5622 | 0.4825 to 0.6326 | 0.567 | 0.4026 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.5233 |  |  |  |  | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.5026 | 0.481 | 0.3923 to 0.5608 | 0.5026 | 0.3594 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.4566 | 0.352 | 0.2524 to 0.4442 | 0.4566 | 0.3251 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.3667 | 0.343 | 0.2317 to 0.4455 | 0.3667 | 0.264 | < 0.001 | 263 |
| Number of runs during his career | two numbers | 0.3542 | 0.2624 | 0.1576 to 0.3613 | 0.3542 | 0.2484 | < 0.001 | 322 |

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

##### 7.9.2 Visualization

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

#### 7.10 Number of put outs in 1986

Number of put outs in 1986: 0 to 1,378, median 212, skewed to high values; moves with `Number of runs batted in in 1986` most (r 0.343).

##### 7.10.1 Description

**Table 7.10.1 · Number of put outs in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 232 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 1378 |
| Mean | 288.9 |
| Median | 212 |
| Mode | 0 |

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

###### 7.10.1.1 Correlation

**Table 7.10.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Players position(s) in 1986 | a number and a category | 0.8625 |  |  |  |  | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.3714 | 0.3176 | 0.2157 to 0.4125 | 0.3714 | 0.2676 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.3437 | 0.3107 | 0.2085 to 0.4062 | 0.3437 | 0.2456 | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.3432 | 0.3432 | 0.243 to 0.4361 | 0.298 | 0.2095 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.3068 | 0.2793 | 0.1754 to 0.3771 | 0.3068 | 0.2205 | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.3057 | 0.2995 | 0.1967 to 0.3959 | 0.3057 | 0.2097 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.3005 | 0.3005 | 0.1863 to 0.4067 | 0.2111 | 0.1469 | < 0.001 | 263 |
| Number of home runs in 1986 | two numbers | 0.2829 | 0.2829 | 0.1792 to 0.3805 | 0.2118 | 0.1467 | < 0.001 | 322 |
| Number of errors in 1986 | two numbers | 0.1689 | 0.11 | 0.000679 to 0.2167 | 0.1689 | 0.1235 | 0.09729 | 322 |
| Number of assists in 1986 | two numbers | 0.1547 | -0.02502 | -0.134 to 0.08451 | 0.1547 | 0.1784 | 0.8166 | 322 |

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

##### 7.10.2 Visualization

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

#### 7.11 Number of runs batted in during his career

Number of runs batted in during his career: 0 to 1,659, median 221, skewed to high values; moves with `Number of times at bat during his career` most (r 0.949).

##### 7.11.1 Description

**Table 7.11.1 · Number of runs batted in during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 262 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 1659 |
| Mean | 330.1 |
| Median | 220.5 |
| Mode | 32 |

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 times at bat during his career | two numbers | 0.9714 | 0.9492 | 0.9371 to 0.959 | 0.9714 | 0.8537 | < 0.001 | 322 |
| Number of hits during his career | two numbers | 0.9711 | 0.9451 | 0.9321 to 0.9557 | 0.9711 | 0.8544 | < 0.001 | 322 |
| Number of runs during his career | two numbers | 0.9644 | 0.9438 | 0.9304 to 0.9546 | 0.9644 | 0.842 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.9393 | 0.8847 | 0.8584 to 0.9064 | 0.9393 | 0.781 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.9295 | 0.9295 | 0.9129 to 0.943 | 0.9249 | 0.7702 | < 0.001 | 322 |
| Number of years in the major leagues | two numbers | 0.8799 | 0.8688 | 0.8392 to 0.8933 | 0.8799 | 0.7144 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7603 | 0.567 | 0.4788 to 0.6438 | 0.7603 | 0.5978 | < 0.001 | 263 |
| Number of runs batted in in 1986 | two numbers | 0.5082 | 0.3932 | 0.2966 to 0.4818 | 0.5082 | 0.3656 | < 0.001 | 322 |
| Number of home runs in 1986 | two numbers | 0.4566 | 0.352 | 0.2524 to 0.4442 | 0.4566 | 0.3251 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.4334 |  |  |  |  | < 0.001 | 322 |

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

##### 7.11.2 Visualization

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

#### 7.12 Number of runs batted in in 1986

Number of runs batted in in 1986: 0 to 121, median 44; moves with `Number of home runs in 1986` most (r 0.855).

##### 7.12.1 Description

**Table 7.12.1 · Number of runs batted in in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 103 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 121 |
| Mean | 48.03 |
| Median | 44 |
| Mode | 29 |

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

###### 7.12.1.1 Correlation

**Table 7.12.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of home runs in 1986 | two numbers | 0.8551 | 0.8551 | 0.8227 to 0.882 | 0.817 | 0.6419 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.845 | 0.8111 | 0.77 to 0.8454 | 0.845 | 0.652 | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.8408 | 0.8205 | 0.7813 to 0.8533 | 0.8408 | 0.6489 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.8212 | 0.7982 | 0.7548 to 0.8347 | 0.8212 | 0.6284 | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.6735 | 0.616 | 0.5433 to 0.6795 | 0.6735 | 0.4872 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.5819 | 0.4418 | 0.3493 to 0.5257 | 0.5819 | 0.4167 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.5171 |  |  |  |  | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.5082 | 0.3932 | 0.2966 to 0.4818 | 0.5082 | 0.3656 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.4744 | 0.4495 | 0.3474 to 0.541 | 0.4744 | 0.345 | < 0.001 | 263 |
| Number of runs during his career | two numbers | 0.4332 | 0.3233 | 0.2218 to 0.4178 | 0.4332 | 0.3037 | < 0.001 | 322 |

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

##### 7.12.2 Visualization

The rows of `Number of runs batted in 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.13 Number of runs during his career

Number of runs during his career: 1 to 2,165, median 247, skewed to high values; moves with `Number of hits during his career` most (r 0.985).

##### 7.13.1 Description

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

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 261 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 2165 |
| Mean | 358.8 |
| Median | 247 |
| Mode | 20 |

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 hits during his career | two numbers | 0.9908 | 0.9846 | 0.9809 to 0.9876 | 0.9908 | 0.9172 | < 0.001 | 322 |
| Number of times at bat during his career | two numbers | 0.9892 | 0.9833 | 0.9793 to 0.9866 | 0.9892 | 0.9106 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.9644 | 0.9438 | 0.9304 to 0.9546 | 0.9644 | 0.842 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.9552 | 0.9278 | 0.9109 to 0.9416 | 0.9552 | 0.8179 | < 0.001 | 322 |
| Number of years in the major leagues | two numbers | 0.8829 | 0.8829 | 0.8562 to 0.9049 | 0.8812 | 0.719 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.8466 | 0.8202 | 0.781 to 0.8531 | 0.8466 | 0.6637 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7668 | 0.5627 | 0.474 to 0.6401 | 0.7668 | 0.6076 | < 0.001 | 263 |
| Number of runs batted in in 1986 | two numbers | 0.4332 | 0.3233 | 0.2218 to 0.4178 | 0.4332 | 0.3037 | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.4135 | 0.3385 | 0.238 to 0.4318 | 0.4135 | 0.2917 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.4104 | 0.2618 | 0.157 to 0.3608 | 0.4104 | 0.2875 | < 0.001 | 322 |

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

##### 7.13.2 Visualization

The rows of `Number of runs 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.14 Number of runs in 1986

Number of runs in 1986: 0 to 130, median 48; moves with `Number of hits in 1986` most (r 0.922).

##### 7.14.1 Description

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

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 96 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 130 |
| Mean | 50.91 |
| Median | 48 |
| Mode | 42 |

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

###### 7.14.1.1 Correlation

**Table 7.14.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of hits in 1986 | two numbers | 0.9321 | 0.9222 | 0.904 to 0.937 | 0.9321 | 0.7783 | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.9264 | 0.9131 | 0.8929 to 0.9296 | 0.9264 | 0.7648 | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.8212 | 0.7982 | 0.7548 to 0.8347 | 0.8212 | 0.6284 | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.7571 | 0.7322 | 0.6771 to 0.7792 | 0.7571 | 0.5621 | < 0.001 | 322 |
| Number of home runs in 1986 | two numbers | 0.651 | 0.651 | 0.5832 to 0.7098 | 0.6274 | 0.4616 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.5439 |  |  |  |  | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.4405 | 0.4199 | 0.3149 to 0.5147 | 0.4405 | 0.313 | < 0.001 | 263 |
| Number of runs during his career | two numbers | 0.3884 | 0.2506 | 0.1452 to 0.3503 | 0.3884 | 0.2751 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.366 | 0.2279 | 0.1216 to 0.329 | 0.366 | 0.2507 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.352 | 0.206 | 0.0989 to 0.3083 | 0.352 | 0.2447 | < 0.001 | 322 |

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

##### 7.14.2 Visualization

The rows of `Number of runs 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.15 Number of times at bat during his career

Number of times at bat during his career: 19 to 14,053, median 1,928, skewed to high values; moves with `Number of hits during his career` most (r 0.995).

##### 7.15.1 Description

**Table 7.15.1 · Number of times at bat during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 314 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 19 |
| Maximum | 14,053 |
| Mean | 2648.7 |
| Median | 1928 |
| Mode | 41 |

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

###### 7.15.1.1 Correlation

**Table 7.15.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of hits during his career | two numbers | 0.9977 | 0.9951 | 0.9939 to 0.996 | 0.9977 | 0.961 | < 0.001 | 322 |
| Number of runs during his career | two numbers | 0.9892 | 0.9833 | 0.9793 to 0.9866 | 0.9892 | 0.9106 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.9714 | 0.9492 | 0.9371 to 0.959 | 0.9714 | 0.8537 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.9503 | 0.9065 | 0.8849 to 0.9242 | 0.9503 | 0.807 | < 0.001 | 322 |
| Number of years in the major leagues | two numbers | 0.9203 | 0.9203 | 0.9017 to 0.9355 | 0.9094 | 0.7656 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.8383 | 0.7988 | 0.7555 to 0.8352 | 0.8383 | 0.6497 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.7496 | 0.5261 | 0.4327 to 0.6084 | 0.7496 | 0.5879 | < 0.001 | 263 |
| Number of runs batted in in 1986 | two numbers | 0.3995 | 0.2947 | 0.1916 to 0.3914 | 0.3995 | 0.2795 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.3816 |  |  |  |  | 0.003071 | 322 |
| Players team at the end of 1986 | a number and a category | 0.3792 |  |  |  |  | 0.002749 | 322 |

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

##### 7.15.2 Visualization

The rows of `Number of times at bat 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.16 Number of times at bat in 1986

Number of times at bat in 1986: 16 to 687, median 380; moves with `Number of hits in 1986` most (r 0.968).

##### 7.16.1 Description

**Table 7.16.1 · Number of times at bat in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 247 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 16 |
| Maximum | 687 |
| Mean | 380.9 |
| Median | 379.5 |
| Mode | 209 |

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

###### 7.16.1.1 Correlation

**Table 7.16.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of hits in 1986 | two numbers | 0.975 | 0.9679 | 0.9602 to 0.9742 | 0.975 | 0.8646 | < 0.001 | 322 |
| Number of runs in 1986 | two numbers | 0.9264 | 0.9131 | 0.8929 to 0.9296 | 0.9264 | 0.7648 | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.8408 | 0.8205 | 0.7813 to 0.8533 | 0.8408 | 0.6489 | < 0.001 | 322 |
| Number of walks in 1986 | two numbers | 0.7026 | 0.6698 | 0.6048 to 0.726 | 0.7026 | 0.5058 | < 0.001 | 322 |
| Number of home runs in 1986 | two numbers | 0.5922 | 0.5922 | 0.5163 to 0.6589 | 0.5749 | 0.4147 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.5458 |  |  |  |  | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.4459 | 0.3948 | 0.2875 to 0.4922 | 0.4459 | 0.3181 | < 0.001 | 263 |
| Number of runs during his career | two numbers | 0.3913 | 0.2665 | 0.162 to 0.3652 | 0.3913 | 0.2729 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.376 | 0.2441 | 0.1384 to 0.3442 | 0.376 | 0.2603 | < 0.001 | 322 |
| Number of put outs in 1986 | two numbers | 0.3714 | 0.3176 | 0.2157 to 0.4125 | 0.3714 | 0.2676 | < 0.001 | 322 |

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

##### 7.16.2 Visualization

The rows of `Number of times at bat 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.17 Number of walks during his career

Number of walks during his career: 0 to 1,566, median 171, skewed to high values; moves with `Number of runs during his career` most (r 0.928).

##### 7.17.1 Description

**Table 7.17.1 · Number of walks during his career**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 248 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 1566 |
| Mean | 260.2 |
| Median | 170.5 |
| Mode | 55 |

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

###### 7.17.1.1 Correlation

**Table 7.17.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of runs during his career | two numbers | 0.9552 | 0.9278 | 0.9109 to 0.9416 | 0.9552 | 0.8179 | < 0.001 | 322 |
| Number of times at bat during his career | two numbers | 0.9503 | 0.9065 | 0.8849 to 0.9242 | 0.9503 | 0.807 | < 0.001 | 322 |
| Number of hits during his career | two numbers | 0.946 | 0.891 | 0.866 to 0.9115 | 0.946 | 0.7975 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.9393 | 0.8847 | 0.8584 to 0.9064 | 0.9393 | 0.781 | < 0.001 | 322 |
| Number of years in the major leagues | two numbers | 0.8716 | 0.8385 | 0.8028 to 0.8683 | 0.8716 | 0.7028 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.8332 | 0.8 | 0.7569 to 0.8362 | 0.8332 | 0.644 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.735 | 0.4898 | 0.3921 to 0.5766 | 0.735 | 0.5596 | < 0.001 | 263 |
| Number of walks in 1986 | two numbers | 0.5117 | 0.4245 | 0.3305 to 0.5101 | 0.5117 | 0.3694 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.4114 |  |  |  |  | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.3923 | 0.2509 | 0.1456 to 0.3506 | 0.3923 | 0.2731 | < 0.001 | 322 |

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

##### 7.17.2 Visualization

The rows of `Number of walks 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.18 Number of walks in 1986

Number of walks in 1986: 0 to 105, median 35; moves with `Number of runs in 1986` most (r 0.732).

##### 7.18.1 Description

**Table 7.18.1 · Number of walks in 1986**

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 89 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 0 |
| Maximum | 105 |
| Mean | 38.74 |
| Median | 35 |
| Mode | 22 |

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

###### 7.18.1.1 Correlation

**Table 7.18.1.1 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of runs in 1986 | two numbers | 0.7571 | 0.7322 | 0.6771 to 0.7792 | 0.7571 | 0.5621 | < 0.001 | 322 |
| Number of times at bat in 1986 | two numbers | 0.7026 | 0.6698 | 0.6048 to 0.726 | 0.7026 | 0.5058 | < 0.001 | 322 |
| Number of hits in 1986 | two numbers | 0.6928 | 0.6412 | 0.572 to 0.7014 | 0.6928 | 0.5007 | < 0.001 | 322 |
| Number of runs batted in in 1986 | two numbers | 0.6735 | 0.616 | 0.5433 to 0.6795 | 0.6735 | 0.4872 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.5117 | 0.4245 | 0.3305 to 0.5101 | 0.5117 | 0.3694 | < 0.001 | 322 |
| Number of home runs in 1986 | two numbers | 0.5026 | 0.481 | 0.3923 to 0.5608 | 0.5026 | 0.3594 | < 0.001 | 322 |
| Players position(s) in 1986 | a number and a category | 0.4766 |  |  |  |  | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.4439 | 0.4439 | 0.3412 to 0.536 | 0.4399 | 0.3076 | < 0.001 | 263 |
| Number of home runs during his career | two numbers | 0.4231 | 0.3325 | 0.2316 to 0.4263 | 0.4231 | 0.2967 | < 0.001 | 322 |
| Number of runs during his career | two numbers | 0.4135 | 0.3385 | 0.238 to 0.4318 | 0.4135 | 0.2917 | < 0.001 | 322 |

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

##### 7.18.2 Visualization

The rows of `Number of walks in 1986` 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.19 Number of years in the major leagues

Number of years in the major leagues: 1 to 24, median 6, skewed to high values, 22 distinct values; moves with `Number of times at bat during his career` most (r 0.92).

##### 7.19.1 Description

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

| Statistic | Value |
| --- | --- |
| Type | integer |
| Values present | 322 |
| Distinct values | 22 |
| Continuous | yes |
| Decimal places | 0 |
| Minimum | 1 |
| Maximum | 24 |
| Mean | 7.444 |
| Median | 6 |
| Mode | 4 |

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

###### 7.19.1.1 By Value

Number of years in the major leagues accounts for 27% of the spread in `1987 annual salary on opening day in thousands of dollars`: `13` averages 969 above `1` (95% interval 465 to 1,474). An association, not a cause.

**Table 7.19.1.1 · Groups**

| Target | Value | Rows | Average or share | 95% interval |
| --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | 13 | 10 | 1119.1 | 619.5 to 1618.6 |
| 1987 annual salary on opening day in thousands of dollars | 14 | 12 | 850.3 | 546.8 to 1153.7 |
| 1987 annual salary on opening day in thousands of dollars | 9 | 12 | 839.7 | 544.1 to 1135.2 |
| 1987 annual salary on opening day in thousands of dollars | 11 | 8 | 835.9 | 442.4 to 1229.5 |
| 1987 annual salary on opening day in thousands of dollars | 10 | 12 | 706.6 | 323.8 to 1089.4 |
| 1987 annual salary on opening day in thousands of dollars | 18 | 5 | 697.3 | 133 to 1261.6 |
| 1987 annual salary on opening day in thousands of dollars | 7 | 19 | 694 | 566.9 to 821.1 |
| 1987 annual salary on opening day in thousands of dollars | 8 | 11 | 684.2 | 364.7 to 1003.7 |
| 1987 annual salary on opening day in thousands of dollars | 17 | 5 | 630.7 | 221.2 to 1040.2 |
| 1987 annual salary on opening day in thousands of dollars | 6 | 28 | 623.9 | 478 to 769.7 |

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

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

| Number of years in the major leagues | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 22 | 40.45 | 78 | 28.45 | 9.545 | 284.3 | 149.6 | 34.95 | 34.95 | 78 | 303.3 | 7.591 | 40.45 | 7.591 | 77.5 | 28.45 | 303.3 |
| 2 | 25 | 69.04 | 86.28 | 32.48 | 9.4 | 241.5 | 217.1 | 51.24 | 37.16 | 127.3 | 345 | 8.36 | 45.48 | 11.08 | 127 | 44.8 | 506.4 |
| 3 | 29 | 91.72 | 89.1 | 33.76 | 7.931 | 280.9 | 172.6 | 90.41 | 47.14 | 185.3 | 346.1 | 12.31 | 45.9 | 22.07 | 83.72 | 66.17 | 720.7 |
| 4 | 36 | 136.8 | 97 | 33.53 | 9.556 | 240.6 | 324.3 | 114.5 | 41.81 | 274 | 374.2 | 8.361 | 48.06 | 22.97 | 140.3 | 96.03 | 1076.2 |
| 5 | 30 | 221.6 | 118.6 | 42.53 | 8.467 | 306.8 | 569.5 | 196.1 | 52.03 | 446.6 | 423.8 | 10.8 | 61.77 | 39.43 | 111.1 | 148.8 | 1618.2 |
| 6 | 30 | 264.9 | 120 | 43.6 | 7.933 | 396.3 | 623.9 | 238.9 | 58.8 | 520.5 | 437.1 | 13.77 | 60.1 | 55.2 | 124.4 | 186.2 | 1952.4 |
| 7 | 21 | 294.7 | 103.5 | 40.43 | 8.619 | 360.5 | 694 | 263.5 | 47.62 | 611 | 396.2 | 11.52 | 52.29 | 53.86 | 92.52 | 200.2 | 2291.8 |
| 8 | 16 | 340.1 | 103.5 | 43.5 | 6.75 | 288.8 | 684.2 | 268.1 | 44.88 | 660.4 | 378.1 | 8.125 | 54.13 | 46.69 | 126.8 | 247.6 | 2412.2 |
| 9 | 15 | 428.1 | 109.1 | 41.67 | 8.667 | 290.1 | 839.7 | 358.9 | 47.4 | 858.7 | 400.7 | 8.933 | 51.93 | 66.73 | 149.6 | 300.1 | 3183.6 |
| 10 | 14 | 481.4 | 105.6 | 42.93 | 9.286 | 309.6 | 706.6 | 435.9 | 51.71 | 965.3 | 395 | 11.5 | 53.29 | 90.07 | 163.4 | 355 | 3559.4 |

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

###### 7.19.1.2 Correlation

**Table 7.19.1.2 · Correlations**

| Column | Pair of | Association | Pearson's r | 95% CI (Pearson) | Spearman's ρ | Kendall's τ | q-value | Rows |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Number of times at bat during his career | two numbers | 0.9203 | 0.9203 | 0.9017 to 0.9355 | 0.9094 | 0.7656 | < 0.001 | 322 |
| Number of hits during his career | two numbers | 0.9036 | 0.9036 | 0.8814 to 0.9219 | 0.8997 | 0.7474 | < 0.001 | 322 |
| Number of runs during his career | two numbers | 0.8829 | 0.8829 | 0.8562 to 0.9049 | 0.8812 | 0.719 | < 0.001 | 322 |
| Number of runs batted in during his career | two numbers | 0.8799 | 0.8688 | 0.8392 to 0.8933 | 0.8799 | 0.7144 | < 0.001 | 322 |
| Number of walks during his career | two numbers | 0.8716 | 0.8385 | 0.8028 to 0.8683 | 0.8716 | 0.7028 | < 0.001 | 322 |
| Number of home runs during his career | two numbers | 0.7504 | 0.7269 | 0.6709 to 0.7746 | 0.7504 | 0.5681 | < 0.001 | 322 |
| 1987 annual salary on opening day in thousands of dollars | two numbers | 0.6257 | 0.4007 | 0.2939 to 0.4975 | 0.6257 | 0.462 | < 0.001 | 263 |
| Players position(s) in 1986 | a number and a category | 0.4205 |  |  |  |  | < 0.001 | 322 |
| Players team at the end of 1986 | a number and a category | 0.37 |  |  |  |  | 0.007817 | 322 |
| Players team at the beginning of 1987 | a number and a category | 0.367 |  |  |  |  | 0.008898 | 322 |

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

##### 7.19.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.02 between each value and the next), so the order carries no pattern to show.

#### 7.20 Players division at the end of 1986

Players division at the end of 1986: 2 distinct values, most often `W`.

##### 7.20.1 Description

**Table 7.20.1 · Players division at the end of 1986**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 322 |
| Distinct values | 2 |
| Continuous | no |
| Mode | W |

**Table 7.20.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players division at the end of 1986 | W | 165 | 51.24% |
| Players division at the end of 1986 | E | 157 | 48.76% |

###### 7.20.1.1 By Value

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

| Players division at the end of 1986 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| E | 157 | 359.1 | 104.4 | 40.05 | 8.191 | 290.6 | 624.3 | 325.6 | 50.05 | 708.5 | 388.1 | 10.92 | 52.94 | 68.89 | 108.9 | 261.7 | 7.338 | 2594.1 |
| W | 165 | 358.5 | 97.81 | 37.5 | 7.897 | 287.4 | 450.9 | 334.4 | 46.1 | 726.2 | 374.1 | 10.62 | 48.98 | 70.06 | 105.1 | 258.9 | 7.545 | 2700.7 |

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

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

##### 7.21.1 Description

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

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

**Table 7.21.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players league at the beginning of 1987 | A | 176 | 54.66% |
| Players league at the beginning of 1987 | N | 146 | 45.34% |

###### 7.21.1.1 By Value

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

| Players league at the beginning of 1987 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| A | 176 | 371.8 | 103.6 | 39.14 | 7.75 | 280.6 | 537.1 | 344 | 50.89 | 723.6 | 389 | 12.09 | 53.64 | 77.14 | 102.1 | 272.8 | 7.636 | 2683.6 |
| N | 146 | 343.1 | 97.94 | 38.27 | 8.39 | 299 | 534.6 | 313.4 | 44.58 | 710.4 | 371.2 | 9.185 | 47.62 | 60.27 | 112.8 | 245.1 | 7.212 | 2606.6 |

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

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

##### 7.22.1 Description

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

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

**Table 7.22.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players league at the end of 1986 | A | 175 | 54.35% |
| Players league at the end of 1986 | N | 147 | 45.65% |

###### 7.22.1.1 By Value

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

| Players league at the end of 1986 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| A | 175 | 375.5 | 105.3 | 39.64 | 7.583 | 282.8 | 542 | 346.2 | 51.51 | 733 | 395.2 | 12.18 | 54.49 | 77.26 | 101.2 | 272.7 | 7.657 | 2709.8 |
| N | 147 | 338.9 | 95.91 | 37.67 | 8.585 | 296.3 | 529.1 | 311 | 43.88 | 699.2 | 363.9 | 9.088 | 46.65 | 60.24 | 113.7 | 245.4 | 7.19 | 2575.9 |

#### 7.23 Players position(s) in 1986

Players position(s) in 1986: 25 distinct values, most often `C`.

##### 7.23.1 Description

**Table 7.23.1 · Players position(s) in 1986**

| Statistic | Value |
| --- | --- |
| Type | text |
| Values present | 322 |
| Distinct values | 25 |
| Continuous | no |
| Decimal places | 0 |
| Minimum | 13 |
| Maximum | 32 |
| Mode | C |
| Sum | 68 |

**Table 7.23.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players position(s) in 1986 | C | 40 | 12.42% |
| Players position(s) in 1986 | 3B | 32 | 9.938% |
| Players position(s) in 1986 | 1B | 31 | 9.627% |
| Players position(s) in 1986 | 2B | 31 | 9.627% |
| Players position(s) in 1986 | OF | 30 | 9.317% |
| Players position(s) in 1986 | SS | 30 | 9.317% |
| Players position(s) in 1986 | CF | 26 | 8.075% |
| Players position(s) in 1986 | RF | 26 | 8.075% |
| Players position(s) in 1986 | LF | 25 | 7.764% |
| Players position(s) in 1986 | DH | 16 | 4.969% |

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

###### 7.23.1.1 By Value

**Table 7.23.1.1 · Mean per value of Players position(s) in 1986**

| Players position(s) in 1986 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 13 | 1 | 107 | 53 | 22 | 6 | 325 |  | 124 | 23 | 283 | 221 | 2 | 21 | 15 | 58 | 106 | 8 | 1063 |
| 1B | 31 | 527.9 | 120.9 | 51.03 | 8.548 | 922.3 | 786.6 | 536.6 | 65.39 | 1070.1 | 443.2 | 15.39 | 59.45 | 117 | 83.26 | 386 | 8.903 | 3767.7 |
| 1O | 1 | 27 | 54 | 33 |  | 317 | 75 | 25 | 25 | 54 | 216 | 2 | 27 | 2 | 36 | 33 |  | 216 |
| 23 | 1 | 123 | 96 | 23 | 9 | 104 | 275 | 108 | 29 | 290 | 339 | 4 | 37 | 11 | 213 | 55 | 4 | 1064 |
| 2B | 31 | 387.5 | 116.6 | 45.13 | 10.97 | 236.2 | 513.9 | 279.3 | 43.48 | 753.8 | 437.1 | 6.452 | 57.74 | 43.32 | 334 | 298.5 | 7.355 | 2824.8 |
| 2S | 1 | 116 | 56 | 11 | 13 | 125 | 230 | 64 | 15 | 270 | 236 |  | 27 |  | 199 | 57 | 4 | 1115 |
| 32 | 1 | 216 | 85 | 20 | 12 | 91 | 362.5 | 208 | 44 | 568 | 327 | 3 | 30 | 16 | 185 | 93 | 8 | 2140 |
| 3B | 32 | 389.1 | 114.1 | 41.94 | 14.47 | 79.5 | 617.9 | 379.7 | 57.47 | 805.6 | 422.6 | 13.34 | 55.13 | 81.59 | 200.8 | 286.7 | 7.75 | 2926.6 |
| 3O | 1 | 1019 | 70 | 43 | 8 | 51 | 450 | 608 | 35 | 1661 | 255 | 7 | 49 | 154 | 54 | 820 | 15 | 6311 |
| 3S | 3 | 320.3 | 50.33 | 22.67 | 11.33 | 58.67 | 265.8 | 294.7 | 25.67 | 714.3 | 197 | 5.667 | 27.33 | 49 | 125.3 | 339.7 | 8.333 | 2914 |

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

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

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

##### 7.24.1 Description

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

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

**Table 7.24.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players team at the beginning of 1987 | N.Y. | 24 | 7.453% |
| Players team at the beginning of 1987 | Chi. | 22 | 6.832% |
| Players team at the beginning of 1987 | Pit. | 16 | 4.969% |
| Players team at the beginning of 1987 | Bal. | 15 | 4.658% |
| Players team at the beginning of 1987 | S.F. | 15 | 4.658% |
| Players team at the beginning of 1987 | K.C. | 14 | 4.348% |
| Players team at the beginning of 1987 | Mil. | 14 | 4.348% |
| Players team at the beginning of 1987 | Min. | 14 | 4.348% |
| Players team at the beginning of 1987 | Cle. | 13 | 4.037% |
| Players team at the beginning of 1987 | Det. | 13 | 4.037% |

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

###### 7.24.1.1 By Value

Players team at the beginning of 1987 accounts for 7.3% of the spread in `1987 annual salary on opening day in thousands of dollars`: `Bos.` averages 686 above `Pit.` (95% interval 151 to 1,220). An association, not a cause.

**Table 7.24.1.1 · Groups**

| Target | Value | Rows | Average or share | 95% interval |
| --- | --- | --- | --- | --- |
| 1987 annual salary on opening day in thousands of dollars | Bos. | 9 | 921.9 | 391.7 to 1452.2 |
| 1987 annual salary on opening day in thousands of dollars | N.Y. | 21 | 780.2 | 475.2 to 1085.3 |
| 1987 annual salary on opening day in thousands of dollars | St.L. | 9 | 743.5 | 251 to 1236.1 |
| 1987 annual salary on opening day in thousands of dollars | Bal. | 11 | 725 | 276 to 1174 |
| 1987 annual salary on opening day in thousands of dollars | Atl. | 9 | 723.3 | 314.4 to 1132.3 |
| 1987 annual salary on opening day in thousands of dollars | Tor. | 8 | 696.6 | 366.5 to 1026.6 |
| 1987 annual salary on opening day in thousands of dollars | Phi. | 11 | 636.9 | 219.8 to 1054 |
| 1987 annual salary on opening day in thousands of dollars | Oak. | 9 | 619.7 | 337.7 to 901.7 |
| 1987 annual salary on opening day in thousands of dollars | Cin. | 9 | 597.6 | 327.9 to 867.3 |
| 1987 annual salary on opening day in thousands of dollars | Chi. | 20 | 587.1 | 431 to 743.2 |

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

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

| Players team at the beginning of 1987 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Atl. | 12 | 586.8 | 101.2 | 40.92 | 11.08 | 297.8 | 723.3 | 549.7 | 45.5 | 1158.3 | 395.8 | 12.08 | 48.25 | 124.4 | 151.1 | 432 | 10.75 | 4293.5 |
| Bal. | 15 | 351.5 | 88.13 | 32.93 | 7 | 230.3 | 725 | 321.9 | 44.07 | 691.3 | 326.6 | 10.73 | 42.67 | 72.47 | 89.33 | 247.9 | 7.667 | 2477.3 |
| Bos. | 11 | 539.3 | 129.5 | 52.36 | 9.545 | 337 | 921.9 | 527.6 | 64.91 | 1066.3 | 472.1 | 12.82 | 69.82 | 121.2 | 134.7 | 351.1 | 9.091 | 3784.6 |
| Cal. | 12 | 397.4 | 84.5 | 37.83 | 7.75 | 341 | 490.8 | 386.1 | 47.67 | 766.4 | 324.9 | 10.33 | 47 | 87.08 | 117.4 | 349.9 | 8.417 | 2913.3 |
| Chi. | 22 | 408.5 | 107.1 | 35.86 | 7.545 | 320.9 | 587.1 | 370.7 | 48.86 | 809.7 | 410 | 11.45 | 49.68 | 77.77 | 115.9 | 296.1 | 8.182 | 3005 |
| Cin. | 11 | 630.2 | 102.8 | 41.45 | 9.364 | 328 | 597.6 | 575.5 | 50.18 | 1314.7 | 388 | 11.09 | 51.18 | 109.2 | 132 | 419.1 | 10.27 | 4592.2 |
| Cle. | 13 | 280.5 | 125.5 | 36.62 | 10 | 320.8 | 517.1 | 257.2 | 59.62 | 538.5 | 446.5 | 12.77 | 63.15 | 53.15 | 108.2 | 222.8 | 6.462 | 2034.8 |
| Det. | 13 | 502.5 | 101.3 | 43.15 | 7.077 | 225.5 | 479.1 | 428.4 | 52.54 | 965.9 | 385.5 | 13.62 | 55.69 | 94.31 | 108.3 | 402.9 | 10 | 3604.2 |
| Hou. | 12 | 450 | 105.9 | 38.67 | 8.917 | 282.8 | 512.7 | 377.8 | 47.75 | 913.9 | 386.8 | 10.08 | 51 | 64.83 | 106.2 | 338.8 | 9.833 | 3394.2 |
| K.C. | 14 | 459.9 | 100.8 | 33.21 | 7.857 | 242.1 | 502.8 | 397.6 | 47.29 | 927.6 | 383.4 | 10.64 | 48.21 | 72.64 | 96.36 | 259 | 9.786 | 3314.1 |

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

#### 7.25 Players team at the end of 1986

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

##### 7.25.1 Description

**Table 7.25.1 · Players team at the end of 1986**

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

**Table 7.25.1 · Rows per value**

| Variable | Value | Rows | Share |
| --- | --- | --- | --- |
| Players team at the end of 1986 | Chi. | 24 | 7.453% |
| Players team at the end of 1986 | N.Y. | 24 | 7.453% |
| Players team at the end of 1986 | Bal. | 15 | 4.658% |
| Players team at the end of 1986 | K.C. | 14 | 4.348% |
| Players team at the end of 1986 | L.A. | 14 | 4.348% |
| Players team at the end of 1986 | Mil. | 14 | 4.348% |
| Players team at the end of 1986 | Mon. | 14 | 4.348% |
| Players team at the end of 1986 | S.F. | 14 | 4.348% |
| Players team at the end of 1986 | Cal. | 13 | 4.037% |
| Players team at the end of 1986 | Min. | 13 | 4.037% |

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

###### 7.25.1.1 By Value

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

| Players team at the end of 1986 | Rows | Number of runs during his career | Number of hits in 1986 | Number of walks in 1986 | Number of errors in 1986 | Number of put outs in 1986 | 1987 annual salary on opening day in thousands of dollars | Number of runs batted in during his career | Number of runs batted in in 1986 | Number of hits during his career | Number of times at bat in 1986 | Number of home runs in 1986 | Number of runs in 1986 | Number of home runs during his career | Number of assists in 1986 | Number of walks during his career | Number of years in the major leagues | Number of times at bat during his career |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Atl. | 11 | 456.5 | 95.91 | 40.36 | 10.64 | 317 | 716.9 | 435 | 42.09 | 929.7 | 379.2 | 10.55 | 45.45 | 92.73 | 149 | 332.3 | 9.273 | 3456.1 |
| Bal. | 15 | 359.2 | 89.07 | 35.33 | 6.867 | 240.3 | 693.5 | 319.5 | 42.4 | 693.2 | 338.5 | 10.93 | 45 | 75 | 81.67 | 262.1 | 8.6 | 2529 |
| Bos. | 10 | 546.8 | 126.8 | 51 | 9.9 | 340.2 | 961.6 | 540.6 | 64.4 | 1083.9 | 458.9 | 12.7 | 67.4 | 124.3 | 125.1 | 354.5 | 9.1 | 3805.3 |
| Cal. | 13 | 494 | 88.62 | 42.23 | 7.231 | 294.5 | 486.4 | 479.5 | 48.46 | 922.8 | 338.1 | 10.77 | 49.62 | 121.3 | 113.6 | 410.5 | 9.385 | 3479.8 |
| Chi. | 24 | 404.3 | 101.9 | 36.88 | 7 | 274.7 | 538.3 | 364.8 | 46.96 | 785 | 396.4 | 10.46 | 48.75 | 81.83 | 104.8 | 318.3 | 7.875 | 2952.4 |
| Cin. | 12 | 646.3 | 100.3 | 42.08 | 9 | 319.1 | 533.8 | 592.7 | 48.58 | 1346.5 | 381.6 | 11.17 | 51.5 | 108.9 | 116.3 | 453.8 | 10.67 | 4770 |
| Cle. | 12 | 267.3 | 130.3 | 35.92 | 10.25 | 292.6 | 527.7 | 246.9 | 62.17 | 505.2 | 456.5 | 12.75 | 64.92 | 51.08 | 112.8 | 202.6 | 5.5 | 1875.3 |
| Det. | 12 | 555 | 105.7 | 45.25 | 7.083 | 255.3 | 497.6 | 481.8 | 56.58 | 1053.6 | 398.8 | 15.25 | 60.08 | 112.6 | 118.4 | 437.9 | 10.33 | 3914.6 |
| Hou. | 11 | 398.3 | 109.2 | 38.27 | 9 | 303.9 | 519 | 356.9 | 48.91 | 846 | 398.7 | 10.36 | 51.18 | 56.73 | 110.9 | 295 | 9.364 | 3129 |
| K.C. | 14 | 455.3 | 93.93 | 30.93 | 6.857 | 272.1 | 538.1 | 402 | 41.86 | 934.3 | 367.9 | 9.5 | 44.07 | 71.79 | 95.57 | 277.6 | 9.5 | 3376.2 |

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

#### 7.26 Column · Hitters name

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

Scanned 322 non-null values in `hitters_name`, extracted 642 content tokens (465 unique) after dropping 4 English stopword instances. The most frequent content word is `mike` (14 occurrences, 2.2% 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._
