<title>One‑Way ANOVA</title>
<description>Classic (pooled) and Welch’s ANOVA.</description>
<keywords>one, way, anova, class, onewayanova, returned, comparemeans.anova, anovawelch, public, fields, js, new</keywords>

# One‑Way ANOVA

Classic (pooled) and Welch’s ANOVA.

## Class: `OneWayAnova` (returned by `CompareMeans.anova` / `anovaWelch`)

**Constructor**

```js
new OneWayAnova(data: Record<string, number[]>, welch=false)
```

- `data` – `group → values`.
- Set `welch=true` for **Welch ANOVA**.

### Public fields

- `F: number`
- `dfBetween: number`
- `dfWithin: number`
- `p: number` – right‑tail p‑value via F CDF.
- `k: number` – number of groups.
- `msw: number` – mean square within.
