@mark1russell7/rigor-statistics 0.1.28 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -155,6 +155,36 @@ logLoss([{ p: p.a, hit: true }]); // the probability of the obser
155
155
 
156
156
  `glicko2Update` gives the update of one player after one rating period (Glickman, 2012). A test examines the worked example of the paper: 1500, 200 and 0.06 against three opponents give 1464.06, 151.52 and 0.05999. `glicko2Idle` gives the growth of the RD for a period with no games.
157
157
 
158
+ ### A large log, an ordered replay and the next pair
159
+
160
+ ```ts
161
+ import { bradleyTerrySparse, choosePair, eloReplay, fitRatings, glicko2Replay, selectRatingModel } from "@mark1russell7/rigor-statistics";
162
+
163
+ const sparse = bradleyTerrySparse(10_000, picks); // the model of bradleyTerry, with memory in proportion to the pairs
164
+ sparse.bound; // a bound of the distance from the exact optimum
165
+ eloReplay(3, picks, { k: 32 }); // one Elo update for each pick, in the order of the log
166
+ glicko2Replay(3, picks); // one Glicko-2 rating period for each pick
167
+ const choice = selectRatingModel(3, picks); // the model with the lowest log-loss on the last picks
168
+ fitRatings(choice.model, 3, picks); // the log-strengths of that model
169
+ choosePair(pool, { seed: "duel-1" }); // the next pair of a duel, the same for each seed
170
+ ```
171
+
172
+ `bradleyTerrySparse` has the model, the prior and the tie models of `bradleyTerry`. Its memory is in proportion to the items plus the distinct pairs. At 10,000 items, the Hessian of `bradleyTerry` has 800 MB. The sparse fit uses a few MB.
173
+
174
+ - The fit uses Newton steps, as `bradleyTerry` does. Preconditioned conjugate gradients solve each Newton system, so the fit does not factor the Hessian. One product with the Hessian reads each pair one time.
175
+ - The solve is loose far from the minimum and tight near it (an inexact Newton method). A line search with the Armijo rule makes the objective smaller at each step.
176
+ - The option `start` of both fits sets the start point. A start from the fit before the last comparisons saves steps, and the optimum does not change.
177
+ - The objective is strongly convex. Thus the norm of the gradient over the smallest prior precision is a bound of the distance from the exact optimum. The fit stops when `bound` is `tolerance` (1e-8) or less.
178
+ - A property test compares the two fits on small logs. The strengths agree to 1e-7, and the distance is at most `bound`.
179
+ - The standard errors are approximate. The variance of an item is `1 / (n * p) + (1 - 1 / n) / h`. Here `n` is the number of items of its connected group, `p` is the prior precision and `h` is the diagonal entry of the Hessian.
180
+ - These errors do not include the uncertainty of the tie parameter. On a log of 20 items and 1,500 comparisons, they are within 2 percent of the errors of `bradleyTerry`.
181
+
182
+ `eloReplay` and `glicko2Replay` read the log in its order, and the order changes the ratings. Each pick is one update, so each weight is 1. In `glicko2Replay`, each pick is one rating period of its two items.
183
+
184
+ `selectRatingModel` fits each model on the first picks of the log. It gives the log-loss of each model on the last picks, 20 percent by default. All the models use the tie parameter of the Bradley-Terry fit of the first picks. With fewer than 30 picks, the choice is `"bradley-terry"` with no test. `fitRatings` fits one model. Above `BRADLEY_TERRY_DENSE_LIMIT` items (200), it uses `bradleyTerrySparse`.
185
+
186
+ `choosePair` chooses the next pair of a duel from a pool of rated items. A draw selects the first item with the weight `1 / (1 + picks)`. The second item is the candidate with the most `pairInformation`. A recent pair loses to each pair that is not recent. The option `information` changes the value of a pair, or forbids a pair.
187
+
158
188
  ## The functions
159
189
 
160
190
  | Function | What it gives |
@@ -199,6 +229,11 @@ logLoss([{ p: p.a, hit: true }]); // the probability of the obser
199
229
  | `eloExpected(ra, rb, { scale, base })`, `eloUpdate(ra, rb, score, { k, scale, base })` | The expected score of the first item, and the ratings of a pair after one result. The defaults are 400, 10 and a `k` of 32. |
200
230
  | `glicko2Update(player, games, { tau, tolerance })`, `glicko2Idle(player)` | The Glicko-2 rating, RD and volatility after one rating period, and after a period with no games. The default `tau` is 0.5. |
201
231
  | `bradleyTerry(items, comparisons, options)` | The Bradley-Terry fit of pairwise comparisons, with a normal prior and Davidson ties. It gives the strengths, the standard errors, the tie parameter, the log-likelihood, the steps and `converged`. |
232
+ | `bradleyTerrySparse(items, comparisons, options)` | The fit of `bradleyTerry`, with memory in proportion to the distinct pairs. It also gives `bound`, `pairs` and approximate standard errors. |
233
+ | `eloReplay(items, picks, { start, k })`, `glicko2Replay(items, picks, { start, tau })` | The ratings after one update for each pick, in the order of the log. |
234
+ | `fitRatings(model, items, picks, options)`, `selectRatingModel(items, picks, options)` | The log-strengths of one rating model, and the model with the lowest log-loss on held-out picks. |
235
+ | `choosePair(items, { seed, recent, candidates, information })` | The next pair of a duel. The same seed gives the same pair. |
236
+ | `pairInformation(a, b)`, `ratingUncertainty(item)` | The expected information of a pick, `p * (1 - p) * (ua^2 + ub^2)`, and the uncertainty of one rating. |
202
237
  | `pairProbabilities(sa, sb, tie)` | The probabilities of a win of each item and of a tie, from two log-strengths and the tie parameter. |
203
238
  | `strengthToRating(strength, { center, scale, base })`, `ratingToStrength(rating, options)` | The rating of a log-strength, `center + scale * strength / ln(base)`, and the inverse. |
204
239
  | `fitResponse(data, options)` | A record of the format `response-records/1`, with one model for each measure and held-out folds. |
package/build/index.d.ts CHANGED
@@ -1613,6 +1613,19 @@ interface BradleyTerryOptions {
1613
1613
  readonly maxIterations?: number;
1614
1614
  /** The fit stops when the full Newton step moves no parameter more than this value. The default is 1e-10. */
1615
1615
  readonly tolerance?: number;
1616
+ /**
1617
+ * The point where the fit starts. The default is the prior mean for each log-strength, and 1 for the tie parameter.
1618
+ * A start near the optimum saves steps. An example is the fit of the log before its last comparisons. The optimum
1619
+ * does not change.
1620
+ */
1621
+ readonly start?: BradleyTerryStart;
1622
+ }
1623
+ /** The start of a Bradley-Terry fit: a log-strength for each item, and the Davidson tie parameter. */
1624
+ interface BradleyTerryStart {
1625
+ /** The log-strength of each item, in the order of the indexes. Each value is a finite number. */
1626
+ readonly strengths: readonly number[];
1627
+ /** The Davidson tie parameter, a finite number above 0. The default is 1. A fit with no Davidson tie does not use it. */
1628
+ readonly tie?: number;
1616
1629
  }
1617
1630
  /** The result of `bradleyTerry`. The lists have one value for each item, in the order of the indexes. */
1618
1631
  interface BradleyTerryFit {
@@ -1638,5 +1651,192 @@ interface BradleyTerryFit {
1638
1651
  * outcome, a bad weight and a bad option.
1639
1652
  */
1640
1653
  export declare function bradleyTerry(items: number, comparisons: readonly PairComparison[], options?: BradleyTerryOptions): BradleyTerryFit;
1641
- export { type BinomialSide, type BootstrapOptions, type BradleyTerryFit, type BradleyTerryOptions, type CalibrationLevel, type CategoricalDimension, type CompareOptions, type Comparison, type ContinuousDimension, type Corrected, type CountInterval, type CoverageBar, type CoverageCell, type CoverageMinSample, type CoverageReason, type CoverageStep, type Effect, type EloOptions, type EloUpdate, type Forecast, type Glicko2Game, type Glicko2Options, type Glicko2Rating, type Interval, type Kappa, type LeastSquaresFit, type LeastSquaresOptions, type MedianInterval, type ModeOptions, type NoiseOptions, type NoiseState, type NoiseVerdict, type OptionFloorOptions, type OrdinalDimension, type PairComparison, type PairOutcome, type PairProbabilities, type ParsedResponseRecord, type PermutationOptions, type PermutationResult, type Proportion, type QuantileInterval, type QuantileMethod, type RatingScale, type ResponseAbsentPoint, type ResponseBand, type ResponseCurvePoint, type ResponseData, type ResponseDimension, type ResponseDimensionBase, type ResponseFactor, type ResponseFault, type ResponseFitOptions, type ResponseFold, type ResponseFoldError, type ResponseHeldOutError, type ResponseInputValue, type ResponseMeasure, type ResponseModel, type ResponseModelBase, type ResponsePoint, type ResponseReason, type ResponseRecord, type ResponseSlice, type ResponseSliceOptions, type ResponseSlicePoint, type ResponseSurface, type ResponseSurfaceAbsentPoint, type ResponseSurfaceOptions, type ResponseSurfacePoint, type ResponseTableCell, type ResponseValue, type ResponseViewOptions, type ResponseWhen, type RidgeInput, type RidgeInputBase, type RidgeLevelInput, type RidgeNumberInput, type RidgeOptions, type RidgeRankInput, type RidgeResponseModel, type RidgeTerm, type RunningSummary, type SampleTotalOptions, type SideP, type SignFlipOptions, type SignFlipResult, type SmoothLaw, type SmoothLawScore, type SobolIndex, type SobolIndices, type SobolOptions, type Summary, type TableResponseModel, type TieModel, type TwoSamplePermutationOptions, type TwoSamplePermutationResult, type UStatisticInterval, type UStatisticMean, type UStatisticMethod, type UStatisticOptions, normalCdf, normalQuantile };
1654
+ /** The options of `bradleyTerrySparse`. The prior and the tie model are the same as in `bradleyTerry`. */
1655
+ interface BradleyTerrySparseOptions extends BradleyTerryOptions {
1656
+ /** The largest number of Newton steps. The default is 100. */
1657
+ readonly maxIterations?: number;
1658
+ /**
1659
+ * The largest distance of the parameters from the exact optimum at the stop. The default is 1e-8. The distance is the
1660
+ * Euclidean norm over the log-strengths and the log of the tie parameter.
1661
+ */
1662
+ readonly tolerance?: number;
1663
+ }
1664
+ /** The result of `bradleyTerrySparse`. The lists have one value for each item, in the order of the indexes. */
1665
+ interface BradleyTerrySparseFit extends BradleyTerryFit {
1666
+ /**
1667
+ * The approximate standard error of each log-strength. For an item in a connected group of `n` items, the variance
1668
+ * is `1 / (n * p) + (1 - 1 / n) / h`. Here `p` is the prior precision, and `h` is the diagonal entry of the Hessian.
1669
+ * The first term is the variance of the mean of the group, which only the prior sets. An item with no comparison
1670
+ * has the prior SD, as in `bradleyTerry`.
1671
+ */
1672
+ readonly se: number[];
1673
+ /** The number of Newton steps. */
1674
+ readonly iterations: number;
1675
+ /**
1676
+ * True when `bound` is the tolerance or less, or when the gradient is at the rounding level of floating point. At the
1677
+ * rounding level, a step gains nothing, but a weak prior can keep `bound` above the tolerance.
1678
+ */
1679
+ readonly converged: boolean;
1680
+ /**
1681
+ * An upper bound of the distance of the parameters from the exact optimum: the norm of the gradient over the
1682
+ * smallest prior precision. The objective is strongly convex, so this bound holds.
1683
+ */
1684
+ readonly bound: number;
1685
+ /** The number of distinct pairs of items with a comparison. The memory of the fit is in proportion to it. */
1686
+ readonly pairs: number;
1687
+ }
1688
+ /**
1689
+ * The sparse Bradley-Terry fit of `comparisons` among `items` items. It has the model, the options and the checks of
1690
+ * `bradleyTerry`, and its memory is in proportion to `items` plus the distinct pairs. The function does not sort or
1691
+ * change its inputs. It throws a RangeError for a bad index, a bad outcome, a bad weight and a bad option.
1692
+ */
1693
+ export declare function bradleyTerrySparse(items: number, comparisons: readonly PairComparison[], options?: BradleyTerrySparseOptions): BradleyTerrySparseFit;
1694
+ /** The options of `eloReplay`. */
1695
+ interface EloReplayOptions extends EloOptions {
1696
+ /** The rating of each item before its first pick. The default is 1500. */
1697
+ readonly start?: number;
1698
+ }
1699
+ /** The options of `glicko2Replay`. */
1700
+ interface Glicko2ReplayOptions extends Glicko2Options {
1701
+ /** The rating of each item before its first pick. The default is the rating 1500, the RD 350 and the volatility 0.06. */
1702
+ readonly start?: Glicko2Rating;
1703
+ }
1704
+ /**
1705
+ * The Elo ratings of `items` items after each pick of `comparisons`, in the order of the list. Each item starts at
1706
+ * `start`. The update of each pick is `eloUpdate` with the options. The order of the picks changes the result.
1707
+ */
1708
+ export declare function eloReplay(items: number, comparisons: readonly PairComparison[], options?: EloReplayOptions): number[];
1709
+ /**
1710
+ * The Glicko-2 ratings of `items` items after each pick of `comparisons`, in the order of the list. Each pick is one
1711
+ * rating period of its two items. Each item of a pick gets `glicko2Update` against the rating of the other item before
1712
+ * the pick. An item that is not in a pick does not change in that period. The order of the picks changes the result.
1713
+ */
1714
+ export declare function glicko2Replay(items: number, comparisons: readonly PairComparison[], options?: Glicko2ReplayOptions): Glicko2Rating[];
1715
+ /** The rating models. */
1716
+ type RatingModel = "bradley-terry" | "elo" | "glicko2";
1717
+ /** The options of `fitRatings`. */
1718
+ interface RatingFitOptions {
1719
+ /** The options of the Bradley-Terry fit. They go to `bradleyTerry` and to `bradleyTerrySparse`. */
1720
+ readonly bradleyTerry?: BradleyTerryOptions;
1721
+ /** The largest number of items for the dense fit `bradleyTerry`. A larger log uses `bradleyTerrySparse`. The default is 200. */
1722
+ readonly denseLimit?: number;
1723
+ /** The options of the Elo replay. Its scale also converts the ratings to log-strengths. */
1724
+ readonly elo?: EloReplayOptions;
1725
+ /** The options of the Glicko-2 replay. */
1726
+ readonly glicko2?: Glicko2ReplayOptions;
1727
+ }
1728
+ /** The result of `fitRatings`. The lists have one value for each item, in the order of the indexes. */
1729
+ interface RatingFit {
1730
+ /** The log-strength of each item. `strengthToRating` gives the rating. */
1731
+ readonly strengths: number[];
1732
+ /**
1733
+ * The standard error of each log-strength. Elo has no standard error, so each value is `undefined`. For Glicko-2, it
1734
+ * is the RD as a log-strength.
1735
+ */
1736
+ readonly se: (number | undefined)[];
1737
+ /** The Davidson tie parameter of the Bradley-Terry fit, or 0 for the other models. */
1738
+ readonly tie: number;
1739
+ }
1740
+ /** The default largest number of items of the dense Bradley-Terry fit in `fitRatings`. */
1741
+ export declare const BRADLEY_TERRY_DENSE_LIMIT = 200;
1742
+ /**
1743
+ * The log-strengths of `items` items with one rating model. The model `"bradley-terry"` uses `bradleyTerry`, or
1744
+ * `bradleyTerrySparse` above `denseLimit` items. The models `"elo"` and `"glicko2"` use `eloReplay` and
1745
+ * `glicko2Replay`, and they refuse a weight other than 1. A log of 0 items gives empty lists.
1746
+ */
1747
+ export declare function fitRatings(model: RatingModel, items: number, comparisons: readonly PairComparison[], options?: RatingFitOptions): RatingFit;
1748
+ /** The log-loss of one model on the held-out picks. */
1749
+ interface RatingModelScore {
1750
+ readonly model: RatingModel;
1751
+ /** The mean of `-ln(p)` over the held-out picks, with `p` the forecast of the outcome of the pick. Lower is better. */
1752
+ readonly logLoss: number;
1753
+ }
1754
+ /** The result of `selectRatingModel`. */
1755
+ interface RatingModelChoice {
1756
+ /** The model with the lowest log-loss, or `"bradley-terry"` when the log has too few picks for a test. */
1757
+ readonly model: RatingModel;
1758
+ /** The score of each model, from the best to the worst. It is empty when the log has too few picks for a test. */
1759
+ readonly scores: RatingModelScore[];
1760
+ /** The number of picks that the models learn from. */
1761
+ readonly trained: number;
1762
+ /** The number of held-out picks. */
1763
+ readonly tested: number;
1764
+ }
1765
+ /** The options of `selectRatingModel`. */
1766
+ interface RatingModelOptions extends RatingFitOptions {
1767
+ /** The part of the picks, at the end of the log, that the test uses. It is above 0 and below 1. The default is 0.2. */
1768
+ readonly holdout?: number;
1769
+ /** The fewest picks for a test. With fewer picks, the choice is `"bradley-terry"`. The default is 30. */
1770
+ readonly minimum?: number;
1771
+ /** The models to compare. The default is all three, in the order `"bradley-terry"`, `"elo"` and `"glicko2"`. */
1772
+ readonly models?: readonly RatingModel[];
1773
+ }
1774
+ /**
1775
+ * The choice of a rating model by the log-loss on held-out picks. Each model learns from the first picks of the log
1776
+ * and forecasts the last `holdout` part. All models use the tie parameter of the Bradley-Terry fit of the first picks.
1777
+ * Thus the strengths are the only difference. Two equal scores keep the order of `models`. Each pick has the weight 1.
1778
+ */
1779
+ export declare function selectRatingModel(items: number, comparisons: readonly PairComparison[], options?: RatingModelOptions): RatingModelChoice;
1780
+ /**
1781
+ * The uncertainty of an item with no standard error and no picks, in rating points. It is the first RD of Glicko-2.
1782
+ * An item with no standard error has the uncertainty `350 / sqrt(1 + picks)`.
1783
+ */
1784
+ export declare const RATING_START_UNCERTAINTY = 350;
1785
+ /** The largest pool of items for a full search of a pair that is not recent. */
1786
+ export declare const PAIR_FULL_SEARCH = 64;
1787
+ /** One item of a pool. The rating gives the order of the pool. */
1788
+ interface RatedItem {
1789
+ /** The key of the item. Each key occurs one time in a pool. A second item with the same key does not count. */
1790
+ readonly id: string;
1791
+ /** The rating, on the Elo scale of the options. */
1792
+ readonly rating: number;
1793
+ /** The standard error of the rating, in rating points, or `undefined` when the model gives none. */
1794
+ readonly se?: number | undefined;
1795
+ /** The number of picks of the item. */
1796
+ readonly picks: number;
1797
+ }
1798
+ /** The uncertainty of a rating, in rating points: its standard error, or `RATING_START_UNCERTAINTY / sqrt(1 + picks)`. */
1799
+ export declare function ratingUncertainty(item: Pick<RatedItem, "se" | "picks">): number;
1800
+ /**
1801
+ * The expected information of a pick between two items: `p * (1 - p) * (ua^2 + ub^2)`. Here `p` is `eloExpected` of
1802
+ * the two ratings, and `ua` and `ub` are the uncertainties. The value is high when the result is not sure (a `p` near
1803
+ * 0.5) and the two ratings are not sure.
1804
+ */
1805
+ export declare function pairInformation(a: RatedItem, b: RatedItem, options?: RatingScale): number;
1806
+ /** The options of `choosePair`. */
1807
+ interface PairChoiceOptions<T extends RatedItem = RatedItem> {
1808
+ /** The seed of the draws. */
1809
+ readonly seed: number | string;
1810
+ /** The pairs of the last duels, by key, in each order. The choice takes a recent pair only when there is no other pair. */
1811
+ readonly recent?: readonly (readonly [string, string])[];
1812
+ /** The number of second items to examine for the first item. It is a whole number of 1 or more. The default is 24. */
1813
+ readonly candidates?: number;
1814
+ /**
1815
+ * This function gives the information of a pick between two items, or `undefined` when the pair is not permitted.
1816
+ * The value is a finite number. The default is `pairInformation` with the default scale, and it permits each pair.
1817
+ */
1818
+ readonly information?: (a: T, b: T) => number | undefined;
1819
+ }
1820
+ /** A pair for a duel. `a` is the left item, and `b` is the right item. */
1821
+ interface PairChoice {
1822
+ readonly a: string;
1823
+ readonly b: string;
1824
+ /** The information of the pair. */
1825
+ readonly information: number;
1826
+ }
1827
+ /**
1828
+ * The choice of the next pair of a duel from a pool of rated items. The pool goes in the order of the ratings, from
1829
+ * the highest. These are the steps:
1830
+ *
1831
+ * 1. A draw selects the first item. The weight of an item is `1 / (1 + picks)`, so the items with few picks come first.
1832
+ * An item with no permitted pair leaves the draw.
1833
+ * 2. The second item is the candidate with the most information. The candidates are the neighbors of the first item in
1834
+ * the order, and random items, each in a permitted pair. A recent pair loses to each pair that is not recent.
1835
+ * 3. A draw selects the left and the right side, so the side does not change the picks.
1836
+ *
1837
+ * In a pool of `PAIR_FULL_SEARCH` items or fewer, a recent pair comes only when each permitted pair is recent. The
1838
+ * function gives `undefined` when there is no permitted pair. Each step has its own stream of the seed.
1839
+ */
1840
+ export declare function choosePair<T extends RatedItem>(items: readonly T[], options: PairChoiceOptions<T>): PairChoice | undefined;
1841
+ export { type BinomialSide, type BootstrapOptions, type BradleyTerryFit, type BradleyTerryOptions, type BradleyTerrySparseFit, type BradleyTerrySparseOptions, type BradleyTerryStart, type CalibrationLevel, type CategoricalDimension, type CompareOptions, type Comparison, type ContinuousDimension, type Corrected, type CountInterval, type CoverageBar, type CoverageCell, type CoverageMinSample, type CoverageReason, type CoverageStep, type Effect, type EloOptions, type EloReplayOptions, type EloUpdate, type Forecast, type Glicko2Game, type Glicko2Options, type Glicko2Rating, type Glicko2ReplayOptions, type Interval, type Kappa, type LeastSquaresFit, type LeastSquaresOptions, type MedianInterval, type ModeOptions, type NoiseOptions, type NoiseState, type NoiseVerdict, type OptionFloorOptions, type OrdinalDimension, type PairChoice, type PairChoiceOptions, type PairComparison, type PairOutcome, type PairProbabilities, type ParsedResponseRecord, type PermutationOptions, type PermutationResult, type Proportion, type QuantileInterval, type QuantileMethod, type RatedItem, type RatingFit, type RatingFitOptions, type RatingModel, type RatingModelChoice, type RatingModelOptions, type RatingModelScore, type RatingScale, type ResponseAbsentPoint, type ResponseBand, type ResponseCurvePoint, type ResponseData, type ResponseDimension, type ResponseDimensionBase, type ResponseFactor, type ResponseFault, type ResponseFitOptions, type ResponseFold, type ResponseFoldError, type ResponseHeldOutError, type ResponseInputValue, type ResponseMeasure, type ResponseModel, type ResponseModelBase, type ResponsePoint, type ResponseReason, type ResponseRecord, type ResponseSlice, type ResponseSliceOptions, type ResponseSlicePoint, type ResponseSurface, type ResponseSurfaceAbsentPoint, type ResponseSurfaceOptions, type ResponseSurfacePoint, type ResponseTableCell, type ResponseValue, type ResponseViewOptions, type ResponseWhen, type RidgeInput, type RidgeInputBase, type RidgeLevelInput, type RidgeNumberInput, type RidgeOptions, type RidgeRankInput, type RidgeResponseModel, type RidgeTerm, type RunningSummary, type SampleTotalOptions, type SideP, type SignFlipOptions, type SignFlipResult, type SmoothLaw, type SmoothLawScore, type SobolIndex, type SobolIndices, type SobolOptions, type Summary, type TableResponseModel, type TieModel, type TwoSamplePermutationOptions, type TwoSamplePermutationResult, type UStatisticInterval, type UStatisticMean, type UStatisticMethod, type UStatisticOptions, normalCdf, normalQuantile };
1642
1842
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/describe.ts","../src/running.ts","../src/regression.ts","../src/bootstrap.ts","../src/distribution.ts","../src/ridge.ts","../src/response.ts","../src/response-parse.ts","../src/response-fit.ts","../src/response-sobol.ts","../src/tests.ts","../src/agreement.ts","../src/rank.ts","../src/discrete.ts","../src/compare.ts","../src/power.ts","../src/coverage.ts","../src/u-statistic.ts","../src/rating.ts","../src/bradley-terry.ts"],"mappings":";;;;;;;KAOY;;wBAmBI,OAAO;wBAIP,KAAK;;;;;wBAgBL,GAAG;;;;;;;wBAgBH,eAAe,iCAAiC,WAAW,SAAQ;;wBAkBnE,SAAS,2BAA2B,WAAW,SAAQ;;;;;wBASvD,OAAO;;UAQN;WACN;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;;wBAGK,UAAU,4BAA4B;;;;;;;;;;UCvGrC;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;qBAIE,eAAe;;;;;wBAMZ,aAAa,GAAG,gBAAgB,gBAAgB;;wBAWhD,UAAU,QAAQ,mBAAmB;;;;;wBAUrC,aAAa,GAAG,gBAAgB,GAAG,iBAAiB;;wBAepD,YAAY,GAAG;;;;;wBASf,UAAU,GAAG;;;;;;UCrEZ;;WAEN;;UAGM;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA;;;;;;;;;;;wBAkBK,aAAa,mCAAmC,sBAAsB,UAAS,sBAA2B;UC7BzG;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;;;;;WAMT;;;;;WAKA;;;UAIM;;WAEN;;WAEA;;WAEA;;UAGM,iBAAiB,QAAQ;;WAE/B;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;;;;;wBAOK,UAAU,GAAG,eAAe,KAAK,YAAY,iBAAiB,gBAAgB,UAAS,mBAAwB;;;;;;;;wBAsB/G,aAAa,GAAG,GAC9B,YAAY,KACZ,YAAY,KACZ,YAAY,YAAY,KAAK,YAAY,gBACzC,UAAS,mBACR;;;;;;wBAwBa,qBAAqB,8BAA8B,gCAAgC,UAAS,mBAAwB;;;;;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;;;;;wBAmBK,cAAc,QAAQ,eAAe,gBAAgB,eAAe,UAAS,iBAAsB;;;;;wBAuEnG,YAAY,QAAQ,gBAAgB;;UAQnC;;WAEN;;WAEA;;WAEA;;;;;;;wBAuBK,kBAAkB,YAAY,YAAY,eAAU;;;;;wBAWpD,iBAAiB,kBAAkB,UAAS;;wBAO5C,iBAAiB,gBAAgB,UAAS;;KCtO9C;;UAGK;WACN;WACA;WACA,SAAS;;WAET;;;KAIC;;UAGK;;WAEN;;WAEA;;;;;WAKA,OAAO;;;;;WAKP;;WAEA;;WAEA;;;UAIM;;WAEN;;;;;WAKA;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;wBA6CK,aAAa,eAAe,sBAAsB,kBAAkB,UAAS,sBAA2B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/describe.ts","../src/running.ts","../src/regression.ts","../src/bootstrap.ts","../src/distribution.ts","../src/ridge.ts","../src/response.ts","../src/response-parse.ts","../src/response-fit.ts","../src/response-sobol.ts","../src/tests.ts","../src/agreement.ts","../src/rank.ts","../src/discrete.ts","../src/compare.ts","../src/power.ts","../src/coverage.ts","../src/u-statistic.ts","../src/rating.ts","../src/bradley-terry.ts","../src/bradley-terry-sparse.ts","../src/rating-models.ts","../src/pair-choice.ts"],"mappings":";;;;;;;KAOY;;wBAmBI,OAAO;wBAIP,KAAK;;;;;wBAgBL,GAAG;;;;;;;wBAgBH,eAAe,iCAAiC,WAAW,SAAQ;;wBAkBnE,SAAS,2BAA2B,WAAW,SAAQ;;;;;wBASvD,OAAO;;UAQN;WACN;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;;wBAGK,UAAU,4BAA4B;;;;;;;;;;UCvGrC;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;qBAIE,eAAe;;;;;wBAMZ,aAAa,GAAG,gBAAgB,gBAAgB;;wBAWhD,UAAU,QAAQ,mBAAmB;;;;;wBAUrC,aAAa,GAAG,gBAAgB,GAAG,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