> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Test vectors

> The statistics library's reference values, computed independently with SciPy. Every number here is read from the vectors file, never typed.

Generated with SciPy 1.18.1 and NumPy 2.5.3. The library must match each value to the tolerance its test states.

## TV-01: wilson

| Input or output | Value |
| - | - |
| `confidence` | 0.95 |
| `interval` | \[0.9154806357, 0.989745476] |
| `n` | 100 |
| `x` | 97 |

## TV-02: wilson

| Input or output | Value |
| - | - |
| `confidence` | 0.95 |
| `interval` | \[0.9930210629, 0.9977103192] |
| `n` | 3000 |
| `x` | 2988 |

## TV-03: clopperPearson

| Input or output | Value |
| - | - |
| `confidence` | 0.95 |
| `interval` | \[0.914823947, 0.9937700285] |
| `n` | 100 |
| `x` | 97 |

## TV-04: jeffreys

| Input or output | Value |
| - | - |
| `confidence` | 0.95 |
| `interval` | \[0.9221124306, 0.9914797169] |
| `n` | 100 |
| `x` | 97 |

## TV-05: upperBound

| Input or output | Value |
| - | - |
| `failures` | 0 |
| `n` | 3000 |
| `one_sided_95` | 0.000998079012 |
| `two_sided_95_upper` | 0.001228870804 |

## TV-06: lapsForClaim

`claims`:

| alpha | failures | laps | p0 |
| - | - | - | - |
| 0.05 | 0 | 59 | 0.05 |
| 0.05 | 1 | 93 | 0.05 |
| 0.05 | 2 | 124 | 0.05 |
| 0.05 | 5 | 208 | 0.05 |
| 0.05 | 0 | 299 | 0.01 |
| 0.05 | 1 | 473 | 0.01 |
| 0.05 | 2 | 628 | 0.01 |
| 0.05 | 5 | 1049 | 0.01 |
| 0.05 | 0 | 2995 | 0.001 |
| 0.05 | 1 | 4742 | 0.001 |
| 0.05 | 2 | 6294 | 0.001 |
| 0.05 | 5 | 10511 | 0.001 |
| 0.05 | 0 | 2995731 | 0.000001 |
| 0.05 | 0 | 149 | 0.02 |
| 0.01666666667 | 0 | 203 | 0.02 |
| 0.007142857143 | 0 | 245 | 0.02 |

## TV-07: clusterRate

| Input or output | Value |
| - | - |
| `deff` | 3.899647887 |
| `independent_interval` | \[0.8432915303, 0.9480428172] |
| `interval` | \[0.7567405492, 0.9692911258] |
| `laps` | \[10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10] |
| `msb` | 0.3356060606 |
| `msw` | 0.05833333333 |
| `n_eff` | 30.77200903 |
| `p` | 0.9083333333 |
| `passes` | \[10, 10, 10, 9, 10, 10, 7, 10, 10, 4, 10, 9] |
| `rho` | 0.3221830986 |

## TV-08: passK

| Input or output | Value |
| - | - |
| `k` | `{"1":{"estimate":0.925,"values":[1,1,0.875,1,0.625,1,1,0.75,1,1]},"2":{"estimate":0.8642857142857142,"values":[1,1,0.75,1,0.35714285714285715,1,1,0.5357142857142857,1,1]},"4":{"estimate":0.7785714285714286,"values":[1,1,0.5,1,0.07142857142857142,1,1,0.21428571428571427,1,1]},"8":{"estimate":0.7,"values":[1,1,0,1,0,1,1,0,1,1]}}` |
| `k2_se` | 0.07506610843 |
| `k2_t_interval` | \[0.6944743794, 1] |
| `laps` | 8 |
| `passes` | \[8, 8, 7, 8, 5, 8, 8, 6, 8, 8] |

## TV-09: stratifiedRate

| Input or output | Value |
| - | - |
| `estimate` | 0.9743 |
| `interval` | \[0.9499744362, 0.9869593264] |
| `laps` | \[200, 300, 500] |
| `n_eff` | 308.5135639 |
| `passes` | \[196, 279, 430] |
| `pooled` | 0.905 |
| `se` | 0.009008983294 |
| `weights` | \[0.9, 0.09, 0.01] |

## TV-10: pairedDifference

| Input or output | Value |
| - | - |
| `base` | \[1, 0.9, 0.8, 1, 0.6, 1, 0.9, 0.7, 1, 1, 0.5, 0.9, 1, 0.8, 1, 0.9, 1, 0.4, 1, 0.9] |
| `candidate` | \[1, 1, 0.9, 1, 0.9, 1, 0.9, 0.8, 1, 0.9, 0.9, 1, 1, 0.8, 1, 1, 1, 0.8, 1, 0.9] |
| `d` | 0.075 |
| `interval` | \[0.01080215582, 0.1391978442] |
| `look1` | `{"alpha":0.025,"interval":[0.0003608121785500795,0.14963918782144991],"t":2.433440211374971}` |
| `s_d` | 0.1371706582 |
| `se` | 0.03067229163 |
| `t` | 2.093024054 |
| `verdict` | improved |

## TV-11: lookAlpha

| Input or output | Value |
| - | - |
| `alpha` | 0.05 |
| `looks` | \[0.025, 0.008333333333, 0.004166666667, 0.0025, 0.001666666667] |

## TV-12: normQuantile

`quantiles`:

| p | value |
| - | - |
| 0.95 | 1.644853627 |
| 0.9833333333 | 2.128045234 |
| 0.9928571429 | 2.449997661 |
| 0.9983870968 | 2.945358513 |

## TV-21: lapsForClaim

`claims`:

| alpha | failures | laps | p0 |
| - | - | - | - |
| 0.01666666667 | 0 | 2046 | 0.002 |
| 0.05 | 0 | 1497 | 0.002 |

## TV-22:

| Input or output | Value |
| - | - |
| `base` | 0.99 |
| `power` | 100 |
| `value` | 0.3660323413 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.