Glossary
Every term the book uses in its own sense, in one or two sentences each. Primers L and S and chapter 0 introduce the mathematical terms with a worked example, and the chapter named after a definition is where the book first uses it in earnest.
abstention. The verdict a group receives when it has too few rows or too few queries to score. It is reported as a verdict, not dropped. Chapter 10.
accuracy. The fraction of all rows a classifier labels correctly, the score most easily fooled, since predicting the majority class for every row scores the majority's share. Balanced accuracy averages the per-class recalls instead. Primer S section S.9.
aggregation. Combining rows or groups into one number. An average lies between its members, and an aggregate over strata can pass a bar that one stratum fails and can reverse the sign every group shows. Chapter 2 section 2.7 and chapter 10 section 10.4.
alignment. The normalized overlap between a consumer's average read operator and the covariance of the data on the read subspace, written kappa, between zero and one. Near one the read subspace and the high-variance subspace coincide and no flip is possible. Chapter 4, equation 4.6.
allocation. The assignment of a bit budget across directions. Water-filling gives directions below the water no bits, and the allocation report warns below effective rank two. Chapter 4 section 4.2.
anisotropic. Of a covariance, having different variances in different directions. Chapter 0.
anti arm. In a flip comparison, a third code built to destroy the consumer's read subspace at the same bits. It is expected to score worst, and a comparison in which it does not is not a flip. Chapter 4.
anti-hub. A row that is never or almost never retrieved as anyone's nearest neighbour. Chapter 10 names five kinds and shows one is manufactured by the query budget. Chapters 3 and 10.
anti-hub recall. Recall at k restricted to the rows that are rarely retrieved, the observer's outliers, reported as the minimum over strata so that a mean cannot hide the tail. Chapter 10.
anti-monotonicity. The property that support cannot increase when an itemset grows, which licenses Apriori to prune every superset of an infrequent itemset without loss. Chapter 5.
Apriori principle. The statement that every subset of a frequent itemset is frequent, the contrapositive of anti-monotonicity. Chapter 5.
attention. The operation inside a language model that lets each token look at earlier ones by comparing its query to their keys and averaging their values. Chapter 0 section 0.11.
attribute type. The declaration of which transformations of a column keep its meaning, any injective relabelling for nominal, a strictly increasing map for ordinal, an affine map for interval, and a positive rescaling for ratio, nested in that order. Chapter 2 section 2.1.
attribution. An assignment to each feature of a share of one prediction. The raw gradient is the sensitivity at a row, gradient times input is the share of the change in output, and the averaged squared gradient is a diagonal entry of the read operator, and the three are kept apart. Shapley, permutation, and partial-dependence methods measure other things and are named for them. Chapter 14.
audit. A check of a number or system against its record by a reader who did not produce it, bound to a sealed file. Chapter 8 section 8.9 and chapter 14 section 14.1.
AUROC. The area under the receiver operating characteristic curve, equal to the probability that a random positive scores above a random negative, ties counted as one half. A strictly increasing transform of the score leaves it unchanged and a strictly decreasing one sends it to one minus itself. Equation 0.16.
bag of words. A representation of a document as a vector with one coordinate per vocabulary term holding that term's count. Chapter 12.
bagging. Fitting the same model on bootstrap resamples and averaging. The average's squared error is at most the members' mean squared error, which is how it reduces variance. Chapter 7.
balanced accuracy. The mean of the per-class recalls, so that a large class cannot hide a small one. Equation 0.34.
bar. A threshold a statistic must reach, written down before the measurement. A bar discriminates only when the null fails it and the real system passes it, and a bar the null passes is vacuous. Chapter 8 section 8.3.
baseline. The simplest scorer a claim must beat under the same protocol, chance, a constant, an untrained encoder, or a single model. A score below it is a finding. Chapter 6 section 6.3 and chapter 7 section 7.4.
base rate. How common a cause or class is before any observation, the prior that Bayes' rule multiplies by. A classifier's precision falls with it, and accuracy is fooled by it. Primer S, equations S.3 and S.17.
basis. A set of independent vectors whose span is the whole space, so that every vector is exactly one combination of them. The standard basis vectors have a one in one coordinate and zeros elsewhere. Primer L section L.1.
Bayes' rule. The probability of a cause given an observation, equal to the probability of the observation given the cause times the base rate, divided by the overall probability of the observation. Precision is Bayes' rule with a classifier as the test. Primer S, equation S.3.
Bernoulli, binomial. A Bernoulli variable is one with probability p and zero otherwise, with mean p and variance p(1 minus p). A binomial variable counts the ones among n independent Bernoulli trials, with mean np. Primer S, equation S.6.
bi-Lipschitz. Of a map between two spaces, neither stretching nor shrinking any distance by more than a fixed factor. Equation 0.21.
bit. The unit of a budget. A direction quantized with b bits is stored at one of two to the power b levels. Chapter 0 section 0.7.
blind probe. An instrument that recovers a consumer's read operator from calls to the consumer alone, without access to its gradients or its code. Chapters 11 and 12.
block error rate. The fraction of transmitted radio blocks the receiver cannot decode, abbreviated BLER. Chapter 13.
Bonferroni correction. Dividing the significance threshold by the number of tests, which holds the family-wise error rate at or below the original threshold whatever the dependence among the tests, at the price of being conservative. Primer S, equation S.16.
boosting. Fitting a sequence of weak scorers, each on the rows the previous ones got wrong, and summing them. Its step size is positive exactly when the weak scorer beats chance, and the reweighting makes the last scorer's weighted error one half. Chapter 7.
bootstrap. An estimate of a confidence interval made by resampling the data with replacement many times and recomputing the statistic each time. A paired bootstrap resamples the same rows for two methods at once so that shared sampling variation cancels. Chapter 0 section 0.9.
budget. The third element of an observer. The bits, rows, calls, seconds, or dollars a consumer may spend. Chapter 1.
budget cliff. The finding that recovery of a read operator by a probe is a cliff at the full dimension of the space rather than a slope, and that the cliff does not move with the operator's rank. Chapter 11.
cache. A store of recently used data kept so that it need not be fetched again. A cold measurement is taken before the cache holds anything useful, a warm one after. Chapter 13.
calibration. The property of a score that a value of 0.8 means the row is positive eighty percent of the time. Measured by expected calibration error, equation 0.29.
capacity. The number of distinctions a model class can draw, the model-side half of the budget. Chapter 6.
central limit theorem. The sampling distribution of a mean of n independent values is close to normal once n is a few dozen, whatever the shape of the values, with standard error sigma over the square root of n. Primer S, equation S.11.
certificate. A claim, made at a time, that something is safe to act on. A clustering, a benchmark score, a freshness guarantee, and a rank bound are all certificates. Chapters 9 and 13.
chance level. The value a rank statistic reaches on average under a random ranking. Zero for a correlation, one half for AUROC. Chapter 0 section 0.8.
challenge set. A test collection built so that a shortcut which passes the benchmark fails on it. Chapter 12.
chunk. A piece of a document, the unit a retrieval pipeline encodes and indexes. Chunking is a discrete stage with no Jacobian. Chapter 12.
classifier. A consumer that produces a score per row and turns it into a decision with a threshold. Chapter 6.
codebook. The small set of allowed values a quantizer replaces each number with. Chapter 0 section 0.11.
coherence time. The interval over which a changing quantity stays correlated with itself. A value measured longer ago than the coherence time is a guess. Equation 0.25.
cold, warm. A cold measurement is taken before the cache holds anything useful, a warm one after. A cost figure without one of the two words beside it is not a cost figure. Chapter 0 section 0.13 and chapter 13.
column space. The span of a matrix's columns, which is the set of every output the matrix can produce, of dimension equal to the rank. Primer L section L.4.
commit hash. The fingerprint git assigns to a snapshot of a repository and its history, which identifies the content exactly and does not by itself prove when it existed. Chronology comes from a public push, a signed tag, or an archival deposit. Chapter 0 section 0.12.
commute time. The expected number of steps a random walk on a graph needs to go from one node to another and back. Divided by the graph's volume it is the resistance, which a particular scaling of the spectral embedding makes equal to the squared Euclidean distance. Equation 0.20.
concentrated. Of a spectrum, having a few eigenvalues that carry most of the total. Chapter 0 section 0.4.
conditional probability. The probability of A among the repetitions in which B occurred, the probability of both divided by the probability of B. Precision, recall, and calibration are each one. Primer S, equation S.2.
confidence. Of a rule, the support of the rule's itemset divided by the support of its antecedent. It is not symmetric and it misleads when the consequent is common. Chapter 5.
confidence interval. A range that would contain the true value in a stated fraction of repeated samples, usually 95 percent. Chapter 0 section 0.9.
confound. A variable that moves with both the treatment and the outcome so that a measured difference cannot be attributed. Chapter 8 requires controls before a claim.
confusion matrix. The four counts a two-class classifier with a threshold produces on a test set, true and false positives and negatives, from which precision, recall, the false positive rate, and accuracy are read as conditional probabilities. Primer S, equation S.17.
consumer. The function that acts on a vector, the first element of an observer. A softmax, a classifier, an index, a person reading a report. Chapter 1.
contraction. A formula that reduces several axes to one verdict. The instrument's contraction from ten axes is fairness minus the general valence component. Chapter 14 section 14.5.
contrastive objective. A training rule that pulls pairs declared similar together and pushes other pairs apart. The declared pairs are where an encoder learns what similar means. Chapter 12.
control. A comparison arm that should not show the effect, run beside the arm that should. A control that passes the bar makes the bar vacuous. Chapter 8 section 8.4.
correction. An erratum or retraction, a change to a published number or claim that the record keeps beside the original, naming what was wrong. The rescaling of a variance for a dependence the harness ignored is a statistical adjustment, the Nadeau and Bengio correction, and a different object. Chapter 2 section 2.4 and chapter 8 section 8.5.
correlation. The cosine of two centred columns, between minus one and one, unchanged by shifting or rescaling either. Its distance lives on the quotient that discards shift and scale. Chapter 0 section 0.6.
cosine. The dot product divided by the product of the two lengths, between minus one and one, unchanged by rescaling either vector. Its distance is the angle. Equation 0.1.
coupling null. The case, alignment near one, in which the read subspace and the high-variance subspace coincide and the reconstruction-optimal code is also the read-preserving one. The flip's stated boundary. Chapter 4.
covariance. The expectation of the product of two variables' deviations from their means, positive when they move together, the off-diagonal entry of the covariance matrix and the numerator of the correlation. Primer S, equation S.12.
coverage. The fraction of decisions a certificate clears, reported beside its false-clear rate, since a certificate that clears nothing has a false-clear rate of zero and no use. Equation 0.26.
covariance matrix. The matrix of pairwise covariances of a set of rows, whose trace is the total variance. Equation 0.3.
cross-corpus gate. The validation rule that an encoder votes only if its held-out AUROC on a corpus it was not trained on clears a preregistered margin over a bag-of-words null. Chapters 12 and 14.
cross-entropy. The expected bits per outcome when outcomes drawn from p are coded as if from a model q. Its excess over the entropy is the KL divergence, and perplexity is two to the power of the cross-entropy per token. Primer S, equation S.20.
cross-support ratio. The smallest item support in an itemset over the largest, with a threshold below which the itemset is discarded. Chapter 5.
cross-validation. Splitting the data into folds and evaluating on each fold a model trained on the others. Repeated cross-validation multiplies confidence it did not earn, chapter 8 section 8.5.
curvature. The second derivative of a consumer, which the finite difference of equation 0.8 does not read and which sets the error of the linear model at a step. Chapter 0 section 0.5 and chapter 7 section 7.2.
DBSCAN. A clustering that calls a point a core point when at least a minimum number of points lie within a radius, grows clusters by reachability from core points, and leaves the rest as noise. Chapter 9.
decision boundary. The set of inputs whose score equals the threshold. Chapter 6.
decision tree. A classifier that scores by a sequence of axis-aligned splits, flat within each leaf, so that its sensitivity is zero almost everywhere and its importances count splits. Chapter 6.
declaration. A sealed statement of what a study will count, drop, or treat as a failure, written before the run. Chapter 8 section 8.8.
density. The local crowding of rows around a point, the coordinate the geodesic reader of a spectral embedding discards and DBSCAN and the density detector read. Chapter 3 section 3.3 and chapter 9.
deployment mismatch. The failure in which the consumer that was evaluated is not the consumer that was deployed, or time moved between the two. Chapters 1 and 13.
degree. Of a node in a graph, the number of edges it has. Chapter 0 section 0.10.
detector. A scorer that calls a row an outlier, of four families reading distance from the mean, distance to neighbours, density relative to neighbours, or cluster membership. Chapter 10 section 10.1.
determinant. For a two by two matrix, ad minus bc, the number whose vanishing means the columns are dependent and no inverse exists. For a symmetric matrix it is the product of the eigenvalues. Primer L, equation L.6.
direction-only quantizer. A quantizer that stores each vector's length exactly and rounds its direction. Chapter 11.
discretization. Collapsing an ordered quantity to a few labels by binning it, so that values in one cell become indistinguishable. It forms a quotient. Chapter 2 section 2.5.
disparate impact ratio. The rate of a favourable decision in one group divided by the rate in another. Equation 0.37.
distance concentration. The narrowing of the spread of pairwise distances as dimension grows, read in the book as the reader running out of resolution. Chapter 3.
distortion. The error a code costs a reader, the trace of the read operator against the error covariance. For the identity reader it is the reconstruction error. Chapter 4 section 4.2.
dot product. The sum of the coordinatewise products of two vectors. Equation 0.1.
drift. A change over time in what a consumer reads or in the data it reads. Chapter 8 tests a drift claim against its null and finds half of it was noise.
early stopping. Halting a boosting run when a held-out score stops improving. The rule reads the held-out fold, so it is a harness and the round count is a fitted parameter. Chapter 7 section 7.5.
effective rank. The number of directions a matrix really uses, the square of the sum of its eigenvalues over the sum of their squares, defined for a nonnegative spectrum that is not all zero, with no cutoff to choose. Equation 0.7.
eigenvalue, eigenvector. A direction a symmetric matrix only stretches, and the factor by which it stretches it. The eigenvectors of a covariance are its principal directions. Equation 0.5.
embedding. A vector assigned to an object, a word, a sentence, a node, a document, so that nearness in the vector space stands for a relation between the objects. Chapter 11.
encoder. A model that maps an input to an embedding. Chapter 12.
ensemble. A scorer that averages or votes several scorers. Its average lies between its members and its squared error is at most their mean squared error. Chapter 7.
entropy. The expected surprise of a distribution, the bits needed per outcome under the best code, at most the log base two of the number of outcomes. Primer S, equation S.19.
equalized odds. The requirement that the true-positive rate and the false-positive rate be the same across groups. Equation 0.37.
escalation. The decision to hand an item to a person rather than decide it, the single-decision form of abstention. Chapter 14.
estimator, unbiased. A rule that produces an estimate of an unknown quantity from a sample, unbiased when its expectation over samples is that quantity. An estimate without a statement of its spread is not interpretable. Primer S section S.6.
Euclidean distance. The straight-line distance between two vectors, which reads every coordinate at the scale it arrives in. Chapter 3.
event. A set of outcomes of an experiment, the thing a probability is assigned to. Primer S section S.1.
eviction. Choosing what to drop when a cache is full. Chapter 13.
expectation. The average of a random variable's values weighted by their probabilities, its long-run average over repetitions, also called the mean. It is linear whether or not the variables are independent. Primer S, equations S.4 and S.5.
expected calibration error. The average over score bins of the absolute difference between the mean score and the fraction of positives in the bin. Equation 0.29.
explained variance. The fraction of total variance retained by a set of principal components, the identity reader's criterion for a reduction. Chapter 4.
F1. Twice the product of precision and recall over their sum. The optimal thresholded F1 of a score is the best F1 over every threshold and depends only on the score's ranking. Equation 0.28.
false-clear rate. The fraction of the decisions a certificate cleared in which the witness said otherwise, conditional on clearing and reported beside the certificate's coverage. Equation 0.26.
false positive rate. The fraction of negatives a classifier labels positive, which like recall does not depend on the base rate, so that classifiers are compared across datasets by those two and not by precision. Primer S section S.9.
family-wise error rate. The probability of at least one false alarm across a set of tests, at most the number of tests times the per-test threshold by the union bound. Primer S, equation S.16.
fine-tuning. Continuing to train an encoder on a new objective or corpus, so that its quotient changes. Chapter 11 section 11.8 and chapter 12 section 12.4.
finite difference. An estimate of a derivative from two evaluations of the function at points a small step apart. Equation 0.8.
flip, the. At matched bits, the outcome in which the code with the worse reconstruction error scores better on the consumer's task, while a code built to destroy the read subspace scores worst. The book's central empirical claim. Chapter 4.
floor, ceiling. A floor is a lower bound a quantity cannot fall below and a ceiling an upper bound it cannot exceed, each proved or measured and named as such. Chapter 0 section 0.9 and chapter 13.
footprint. The set of entries a reader reads. What the reader reads decides how warm and how stale the reader is. Chapter 13 section 13.3.
formula classifier. A score written as a short expression in the features, such as the smaller of two features plus a third, with a threshold. Chapter 6.
freshness. Whether a stored value is still within its coherence time when it is read. Consumer-relative, since two readers of the same replica can have different freshness. Chapter 13.
Frobenius norm. The square root of the sum of a matrix's squared entries, which also equals the square root of the sum of its squared singular values. The error of a low-rank approximation is measured in it. Primer L, equation L.18.
gate. A bar that a build or a claim must pass before it proceeds, with the bar and the null written down first. Chapter 8 section 8.3 and chapter 11 section 11.6.
Gaussian. The normal distribution, in many dimensions the one whose density falls with the Mahalanobis distance. An isotropic Gaussian has every direction the same. Chapter 9 and chapter 10.
geodesic distance. The length of the shortest path along edges between two nodes of a graph. Chapter 0 section 0.10.
gradient. The vector of a function's partial derivatives, the direction of fastest increase, whose dot product with a small step is the first-order change in the function. The book calls the gradient of a consumer its sensitivity. Primer L, equations L.19 and L.20.
Gram and Schmidt. The procedure that turns independent vectors into an orthonormal basis for their span, dividing the first by its length and subtracting from each next vector its projections onto the basis made so far. Primer L section L.5.
graph. A set of nodes and a set of edges joining pairs of them. A neighbourhood graph joins each row of a dataset to its nearest rows. Chapter 0 section 0.10.
harness. The code that evaluates a model. It is itself a consumer with a read subspace, and chapter 8 shows how it reads the test fold when allowed to.
hash. A short fixed-length fingerprint of a file, computed so that any change to the file changes the fingerprint. Chapter 0 section 0.12.
head. One attention operation. A model has many, each with its own queries, keys, and values. Chapter 0 section 0.11.
Hessian. The matrix of second derivatives of a score, whose off-diagonal entries are the interactions. Naive Bayes has a diagonal one. Chapter 6.
hierarchical clustering. A clustering that merges the closest pair of clusters at each step, under a linkage that reads the nearest pair, the farthest, or the average, so that merge heights never decrease. Chapter 9.
hub. A row retrieved as a nearest neighbour far more often than chance allows. The book shows hubness is almost entirely a property of the queries and the reader, not of the corpus. Chapters 3 and 10.
hubness. The excess of a few rows in the nearest-neighbour lists of many queries over what the Poisson ceiling allows, measured by the busiest count and the Robin Hood index, a property of the queries. Chapter 3 section 3.5 and chapter 10.
identity matrix. The square matrix with ones on the diagonal and zeros elsewhere, which leaves every vector unchanged. The identity reader is the read operator equal to it. Primer L section L.3.
identity reader. The consumer whose read operator is the identity, for which read distortion is mean squared error. Every consumer-blind metric assumes it. Chapter 0 section 0.5.
importance. A per-feature score of how much a classifier reads it. For a tree it counts splits, which is the right sensitivity for a reader that is flat within leaves. Permutation importance and partial dependence answer related questions. Chapter 7 and chapter 14.
imputation. Writing a value into a missing cell that the consumer will read. Mean imputation leaves the column mean unchanged and shrinks its variance. Chapter 2.
independence. Two events are independent when knowing one changes nothing about the other, so that the probability of both is the product. Independent variables have variances that add, and tests on overlapping data are not independent. Primer S, equation S.2.
intrinsic dimension. The number of directions a dataset varies along locally, whatever the number of its coordinates and whatever the number of its covariance directions. Chapter 0 section 0.10.
inverse. The matrix that undoes a square matrix, so that the inverse times A times x is x. It exists exactly when the columns are independent, which for a two by two matrix means ad minus bc is not zero, and for a symmetric matrix it inverts each eigenvalue. Primer L, equations L.6 and L.15.
inverted file. An index that partitions vectors into cells by k-means and answers a query by searching only the cells nearest to it. The number of cells searched is the probe count. Chapter 11.
isotropic. Of a covariance, having the same variance in every direction. Chapter 0.
itemset. A set of items that appear together in a transaction. A closed itemset has no superset with the same support and a maximal one has no frequent superset. Chapter 5.
Jaccard. The size of the intersection of two sets over the size of their union, between zero and one, zero exactly when the sets are disjoint, which discards joint absence. Chapter 0 section 0.6 and chapter 3.
Jacobian. The matrix of partial derivatives of a vector-valued consumer, whose transpose times itself averages to the read operator. A discrete stage has none. Chapter 0 section 0.5 and chapter 12.
Kendall correlation. The fraction of item pairs two rankings order the same way, minus the fraction they order differently. Equation 0.15.
kernel. The directions a matrix sends to zero. The kernel of the read operator is the nuisance. Chapter 0 section 0.5.
KL divergence. A measure of how far one probability distribution is from another, zero when they are identical. Equation 0.24.
k-means. A clustering that minimizes the sum of squared errors to the cluster centres. The mean minimizes each cluster's error and assigning each row to its nearest centre never raises the total, so it is the identity reader's clustering. Chapter 9.
KV cache. The stored keys and values of earlier tokens, kept so they need not be recomputed. Compressing it is where several of the book's examples go wrong. Chapters 0 and 11.
lag. How far a replica trails the primary. The same lag gives two readers two staleness rates. Chapter 0 section 0.13 and chapter 13.
Landauer's principle. Erasing one bit costs at least Boltzmann's constant times the absolute temperature times the natural log of two. Equation 0.27.
language model. A model that reads a sequence of tokens and outputs a probability for the next one, scored by perplexity. Chapter 0 section 0.11.
Laplacian. A matrix built from a graph's edges whose eigenvectors, from the smallest eigenvalue up, are the smoothest functions on the graph. The unnormalized form is zero on the constant vector, and the normalized form of equation 0.19 is zero on the square root of the degree. Equation 0.19.
latent semantic analysis. The truncated singular value decomposition of the term-document matrix, ordinarily uncentred, which coincides with principal components on documents only after centring. Chapter 12.
law of large numbers. The sample mean settles toward the expectation as the sample grows, its standard error falling with the square root of n, so that halving the error takes four times the data. Primer S, equation S.11.
leakage. Any information in the training data that could only be known after the decision, or any identifier that lets the model recognize a row it will be tested on. Chapter 8.
least-squares line. The straight line predicting one column from another that minimizes the sum of squared vertical errors, with slope the covariance over the variance of the predictor, passing through the two means, and accounting for r squared of the variance. Primer S, equation S.13.
ledger class. One of six labels every headline claim carries, proved, demonstrated, replicated, predicted, exploratory, or refuted, defined in the evidence ledger of Volume 14. Chapter 1.
length, norm. The square root of the sum of a vector's squared coordinates, Pythagoras in d dimensions, which is also the square root of the vector's dot product with itself. Primer L, equations L.2 and L.3.
licensed, not licensed. A claim is licensed when it is a theorem checked in Lean in appendix C, or a measurement sealed with its commit hash before the run that survived its registered null and bar, and a chapter may rest on it. A claim is not licensed when it is exploratory, a retrospective fit, a single seed, or posited, and a chapter may mention it and not lean on it. How to use this book, and chapter 8 section 8.10.
lift. Confidence divided by the consequent's support, so that lift one is the independence baseline. It fails at low support. Chapter 5.
likelihood, maximum likelihood. The likelihood of a model is the probability it assigns to the observed data, and maximum likelihood chooses the parameters that make it largest, which is minimizing the total surprise the model assigns, the cross-entropy with the sample standing in for the truth. Primer S section S.10.
linear classifier. A classifier that scores by a weighted sum, logistic regression or a linear support vector machine. Its read subspace is the one direction of its weight vector. Chapter 6.
linear combination. A sum of scalar multiples of vectors. A matrix sends a vector to the linear combination of its columns with the vector's coordinates as the scalars. Primer L, equations L.1 and L.5.
linear independence. Vectors none of which is a linear combination of the others, so that the only combination giving zero has every scalar zero. The rank counts the independent columns. Primer L section L.4.
logistic regression. A linear classifier whose score is the sigmoid of a weighted sum, strictly between zero and one, above one half exactly on one side of the hyperplane. Chapter 6.
low-rank approximation. The best approximation of a matrix by one of rank k in total squared error keeps the first k terms of its singular value decomposition, and the error is the sum of the squared singular values dropped, the Eckart and Young theorem. It is the identity reader's best approximation, and chapter 4 is about consumers for which it is not the best. Primer L, equation L.18.
Mahalanobis distance. The Euclidean distance of a row from the mean after whitening, which needs a positive-definite covariance or a pseudoinverse on its support. Equation 0.33.
manifold. A curved surface of some dimension that looks flat when viewed closely. A dataset lies on one when it is locally low-dimensional, which is not the same as varying along fewer covariance directions, since a circle is one-dimensional and uses two coordinates. Chapter 0 section 0.10.
margin. How far a row's score sits from the threshold. Chapter 6.
matched bits. The rule that two codes are compared only at the same bit count. At matched bits two codes with equal reconstruction error can still differ for a reader, which is the flip. Chapter 4 section 4.3.
matrix. A table of numbers with n rows and d columns that sends a vector to the linear combination of its columns with the vector's coordinates as the scalars. A data table with numeric columns is one. Primer L, equation L.5.
mean, median. The mean of a sample is its average and the median its middle value once sorted. One wild value moves the mean and leaves the median, which is why the book reports a median where one value can be wild. Primer S, equation S.9.
metric. A rule for the distance between two rows or two outputs. A distance is a choice of what to ignore, and a local metric on an output is a positive semidefinite matrix, a pseudometric until its kernel is quotiented out, which the book calls a metric by convention. Chapter 3 section 3.1 and chapter 0 section 0.5.
min-over-strata. The rule that a verdict over several groups is the worst group's verdict, with abstention counted as a verdict, never the average. Chapter 10.
Monotone Invariance Theorem. A strictly monotone transform of a score in either direction cannot change its optimal thresholded F1, because the sweep tries thresholds both ways. A strictly increasing transform leaves the AUROC unchanged, and a strictly decreasing one sends it to one minus itself. Equation 6.2.
Monte Carlo. Estimating a probability or an expectation as the fraction or average over many simulated runs, a sample proportion with standard error the square root of p(1 minus p) over N. A null model run many times is one. Primer S, equation S.21.
multiple comparisons. The inflation of false positives when many hypotheses are tested and the best is reported. The rate one minus one minus alpha to the m assumes independent tests, and the Bonferroni bound, which divides the threshold by the number of tests, holds under any dependence. Chapter 0 section 0.9.
multiplet. A group of eigenvalues that are equal or nearly so, whose pattern names the shape a dataset lies on against a finite list of templates. On a finite graph the groups are approximate. Chapter 9.
Nadeau and Bengio correction. The inflation of the variance of a repeated cross-validation estimate by one plus the ratio of test to training size times the number of repeats, because the folds are not independent. Equation 0.18.
naive Bayes. A classifier that multiplies one-dimensional likelihoods and adds their logs, so that each feature's contribution is the same whatever the others are and it cannot read an interaction. Chapter 6.
nat. The unit of information measured with the natural logarithm, between 1.4426 and 1.4427 bits. Chapter 0 section 0.7.
nearest neighbour. A row at minimal distance from a query. A strictly increasing transform of the distance names the same nearest neighbours, so the classifier reads the distance's order and nothing else. Chapter 6.
neighbourhood graph. A graph on a dataset that joins each row to its k nearest rows, or to every row within a radius. Chapter 0 section 0.10.
normal distribution. The bell-shaped distribution with mean mu and standard deviation sigma, with about 68 percent of its mass within one standard deviation, 95 within two, and 99.7 within three, and 1.96 the multiplier for exactly 95. Averages of many independent variables are close to it. Primer S, equation S.8.
nuisance. The directions of the data a consumer cannot distinguish, the kernel of its read operator. Chapter 1.
null hypothesis. The statement that the effect under study is absent, under which a test statistic's p-value is computed. A null model is its simulated form. Primer S, equation S.15.
null model. A version of the data with the structure under test removed and everything else kept, the right comparison for any measured statistic. Chapter 0 section 0.9.
null space. The set of vectors a matrix sends to zero, also called the kernel, the directions the matrix cannot see. Its dimension plus the rank is the number of columns. Primer L, equation L.7.
observer. A consumer, its output metric, and its budget, written as the triple in equation 1.1. Naming all three is what every later chapter checks.
operating point. The row at which a consumer is read, or the threshold at which a classifier is scored. A probe pays 2d evaluations for one. Chapter 0 section 0.5 and chapter 11 section 11.7.
orthogonal. Of two vectors, having dot product zero. The squared length of a sum of orthogonal vectors is the sum of the squared lengths. Chapter 0 section 0.1.
orthogonal matrix. A square matrix with orthonormal columns, whose transpose is its inverse and which preserves every length, dot product, and angle. The rotations and reflections. Primer L, equation L.10.
orthonormal basis. A basis of unit vectors orthogonal to each other. Projection onto their span is the sum of the projections onto each, and a square matrix whose columns form one is an orthogonal matrix. Primer L section L.5.
outer product. The matrix whose entry in row i and column j is the product of a vector's i-th and j-th coordinates, of rank at most one and positive semidefinite for a vector with itself. Chapter 0 section 0.5.
outlier. A row the reader cannot place. The statistical detector calls a row an outlier when its distance from the mean in units of spread passes a threshold, and no more than one over the threshold squared of the weight can. Chapter 10.
output metric. The rule by which a consumer's mistakes are scored, the second element of an observer. Chapter 1.
paired. Of a comparison, made on the same rows or seeds for both arms. Pairing helps exactly when the two arms covary. Chapter 0 section 0.9.
partial derivative. The rate of change of a function of a vector when one coordinate moves and the others stay fixed. The gradient collects them. Primer L, equation L.19.
percentile. The value below which a given fraction of the rows fall. The fraction at or below a value is nondecreasing in the value. Chapter 11 section 11.3.
percentile interval. The bootstrap interval that takes the 2.5th and 97.5th percentiles of a statistic recomputed on a few thousand resamples. It works for statistics with no standard error formula, a median, an AUROC, a rank correlation. Primer S section S.6.
permutation test. A test that computes the p-value by reassigning the labels under the null, every way or a few thousand random ways, and counting the fraction of statistics at least as extreme as the observed. It needs no assumption about the shape of the data, and the sample size fixes the smallest p-value it can give. Primer S, equation S.15.
planted. Of a case, built so that the answer is known before the instrument reads it, such as an affine consumer whose read operator is its weight vector's outer product. Chapter 6 section 6.2.
Poisson distribution. The distribution of a count of rare events, the limit of the binomial when n is large and p small with np held at mu, with mean and variance both mu. It is the null under which retrieval slots are handed out at random, and the Poisson ceiling is its tail. Primer S, equation S.7.
positive definite. A symmetric matrix whose quadratic form is positive for every nonzero vector, which is the same as every eigenvalue being positive. Positive semidefinite allows zero. Primer L section L.6.
positive semidefinite. Of a symmetric matrix, having every quadratic form nonnegative, as the read operator and the covariance are. Chapter 0 section 0.3.
power iteration. Multiplying a starting vector by a symmetric matrix and rescaling, repeatedly, so that the component along the top eigenvector grows fastest and the vector turns toward it. Primer L section L.7.
probability. The fraction of repetitions in which an event would occur if the experiment were repeated without end, a number between zero and one, obeying the complement rule and the addition rule. Primer S, equation S.1.
pseudo-random generator. A deterministic rule that produces a sequence indistinguishable from chance from a starting value, the seed, so that a simulation which records its seed reruns to the last digit and one that does not cannot. Primer S section S.11.
p-value. The probability of seeing a difference at least as large as the one observed if the true difference were zero. Chapter 0 section 0.9.
paraphrase class. A set of rewordings of one input that preserve its meaning. A decision is invariant to re-description when it does not move across the class. Chapter 14.
per-channel quantizer. A quantizer that chooses a scale per coordinate. Chapter 11.
perplexity. Two to the power of the average number of bits a language model needs per token of a test text. Lower is better. Equation 0.22.
Poisson ceiling. The largest neighbour count that at least one point in a dataset would reach by chance under a Poisson null, above which a count is evidence of a hub. Equation 0.17.
posited versus measured. The division of every claim in a report into those asserted by design and those backed by an artifact. Chapter 14.
precision, recall. The fraction of predicted positives that are truly positive, and the fraction of true positives that were predicted. Equation 0.28.
preregistration. Committing the hypothesis, the bar, and the analysis before the measurement is run, so that the record shows what was predicted. Chapter 8.
principal component analysis. Projection of the centred data onto the eigenvectors of its covariance with the largest eigenvalues, the linear orthogonal projection of rank k that minimizes reconstruction error for the identity reader. Chapter 4.
product quantization. Splitting a vector into pieces and quantizing each piece with its own codebook. Chapter 11.
projection. The component of a vector along a unit direction. Equation 0.2.
quadratic form. The number x transposed A x that a symmetric matrix assigns to a vector, a sum of the entries times pairs of coordinates. Along a unit direction the covariance's quadratic form is a variance and the read operator's is a read distortion. Primer L, equation L.11.
quantization. Replacing each number with one of a small set of allowed values so that it can be stored in a few bits. Chapter 0 section 0.11.
query, key, value. The three vectors each token produces inside attention. The query is compared to earlier keys and the result weights the values. Chapter 0 section 0.11.
query set. The rows a retrieval benchmark asks about. Hubness and the never-retrieved floor are properties of it. Chapter 3 section 3.5 and chapter 10 section 10.2.
quotient. The space of data with a set of transformations declared not to matter, so that two rows differing only by such a transformation are the same point. Every distance is a distance on some quotient. Equation 0.12.
random forest. An ensemble of decision trees, each fit on a bootstrap sample with a random subset of features at each split. Chapter 7.
random variable. A number attached to each outcome of an experiment, described by its distribution, the values it can take with the probability of each. Primer S, equation S.4.
rank. The dimension of a matrix's column space, at most the number of rows and of columns. An outer product has rank at most one, and a product has rank at most either factor's. Chapter 0 section 0.2.
rank certificate. A bound, computed from a compressed representation, that certifies which neighbour rankings the compression preserved for a consumer and which it did not. In its strict setting the floor is a guarantee, in its percentile setting an estimate. A vacuous result supplies no guarantee about the corpus, and falling back to exact reranking is the program's policy for it rather than a consequence. Chapter 11.
rank-faithful. Of a map, preserving the ordering of distances without any bound on the stretch. Chapter 0 section 0.10.
read direction. An eigenvector of the read operator with a nonzero eigenvalue, a direction the consumer is sensitive to. Chapter 2 section 2.2.
read distortion. The error as a consumer experiences it, the trace of the read operator times the error's second-moment matrix, which is its covariance when the error is centered. For the identity reader it is mean squared error. Equation 0.10.
read operator. The average outer product of a consumer's sensitivity over a dataset, an average of local linearizations whose kernel is the set of directions unread at almost every row of the workload. Its range is the read subspace and its kernel is the nuisance. Equations 0.9 and 0.11.
read subspace. The directions of the data a consumer can distinguish, spanned by the eigenvectors of its read operator with nonzero eigenvalue. Chapter 0 section 0.5.
recall at k. The fraction of a query's true k nearest neighbours that an index returned. Equation 11.3.
recognizer. The instrument that decides whether a clustering certificate is right, wrong, or vacuous, by naming the manifold from the eigenvalue multiplets or certifying that none is present. Chapter 9.
reconstruction error. The squared length of the difference between a row and its approximation, the identity reader's distortion. Chapter 1 section 1.4.
refresh floor. A claimed lower bound on how often a certificate must be renewed. The proportional-to-coherence-time version was refuted and replaced by a sealed horizon. Chapter 13.
refresh interval. The longest renewal period that keeps a certificate within its promised error, a measured property of the system and not a convention. Chapter 13.
refusal. An instrument's declining to report a number it cannot support. A refusal is a verdict, and it is counted. Chapter 2 section 2.4 and chapter 9 section 9.2.
registered. Of a claim, bar, null, or budget, written into a sealed file before the measurement. Chapter 8 section 8.8.
reliability weight. Zero or twice a validated encoder's held-out AUROC minus one, whichever is larger, used as that encoder's authority. It is a discrimination weight, unchanged by increasing transforms of the score and not by decreasing ones, and the calibration evidence is the expected calibration error reported beside it. Equation 0.38.
replica. A copy of a database kept on another machine. Its lag is how far it trails the primary. Chapter 13.
rerank. Reordering a candidate list with a second scorer. Its recall is at most the candidate coverage. Chapter 10 section 10.5.
residual. What is left of a vector after its projection is subtracted, orthogonal to the direction projected onto. In a regression, the vertical distance from a point to the fitted line. Primer L, equation L.9.
residualization. Removing from a column the least-squares multiple of another. The residual is orthogonal to the column removed. Chapter 8 section 8.6 and chapter 12 section 12.5.
retrieval-augmented pipeline. A system that answers a question by chunking documents, embedding the chunks, indexing them, retrieving the nearest to the embedded question, and handing them to a generator. A chain of observers. Chapter 12.
Robin Hood index. The fraction of a total count that would have to move from points above the mean to points below it to make every count equal. Equation 0.35.
ROC curve. The path of true positive rate against false positive rate as the threshold sweeps, whose area is the AUROC. Chapter 5 section 5.4.
rotary position embedding. A rotation applied to queries and keys that encodes where each token sits in the sequence. Chapter 0 section 0.11.
ROUGE. A family of scores for generated text against a reference. Chapter 0 section 0.11.
safe pruning. A rule for discarding candidates during a search that is guaranteed to discard no solution. The Apriori principle and the Monotone Invariance Theorem are the book's two instances. Chapter 5.
sample variance. The average squared deviation from the sample mean with n minus 1 in the denominator, because the sample mean sits closer to its own sample than the true mean does and the deviations come out a little small. Primer S, equation S.9.
sampling. Choosing which rows to read. The standard error of a sample mean falls as one over the square root of the sample size. Chapter 2 section 2.7.
sampling distribution. The distribution of a statistic across repeated samples of the same size, whose standard deviation is the statistic's standard error. The bootstrap estimates it from one sample. Primer S, equation S.11.
score. The number a classifier produces per row before a threshold turns it into a decision. Chapter 6.
sealed. Of a prediction, committed with its hash recorded before the measurement was run, so that anyone with the repository can verify it has not changed, and with a public push, a signed tag, or an archival deposit to fix when. Chapter 0 section 0.12.
seed. The number that fixes a run's pseudo-randomness. Two runs with the same seed agree only when code, data, environment, and execution are also fixed, and different seeds are necessary but not sufficient for an independent replication. Chapter 8.
sensitivity. The vector of partial derivatives of a consumer with respect to each coordinate of its input, at one point. Equation 0.8.
session deck. The lecture deck of ECE 514, cited by line range from the instructor's session outlines, which are not public. Chapter 1 section 1.6.
shard. One partition of an index that is searched separately, with the results merged. The global top k lies inside the union of the shards' top k. Chapter 13.
silhouette. For a row, the difference between its mean distance to the nearest other cluster and its mean distance to its own cluster, divided by the larger of the two. Equation 0.30.
Simpson's paradox. A reversal of a comparison when groups are combined, which the book reads as an aggregation quotient. Chapter 5.
singular value. The size of one rank-one term of the singular value decomposition, the square root of an eigenvalue of A transposed A. The count of nonzero ones is the rank, and their squares sum to the squared Frobenius norm. Primer L, equations L.17 and L.18.
singular value decomposition. Any matrix written as a sum of rank-one outer products ordered by size, with orthonormal vectors on both sides, the eigenvector idea for a matrix that is not square. Its right singular vectors are the eigenvectors of A transposed A, and for centered data they are the principal components. Primer L, equations L.16 and L.17.
skewness. The mean cubed deviation of a column from its mean over the cube of its spread, zero for a symmetric column. The hubness gate reads it. Chapter 3 section 3.5.
softmax. The function that exponentiates a list of numbers and divides by their sum, so that they are positive and add to one. Equation 0.23.
sources table. The table at the end of every chapter naming, for each number, the repository, file, and line range it came from. Chapter 0 section 0.21.
span. The set of all linear combinations of a set of vectors. One nonzero vector spans a line, two off one line span a plane, and the columns of a matrix span its column space. Primer L section L.1.
Spearman correlation. The ordinary correlation between two lists of ranks. Equation 0.14.
spectral clustering. Clustering the rows of the row-normalized spectral embedding, which reads the angle and discards the density. Chapter 3 section 3.3 and chapter 9.
spectral decomposition. A symmetric matrix written as the sum of its eigenvalues times the outer products of its orthonormal eigenvectors. Powers, inverses, and square roots act on the eigenvalues alone, and the quadratic form becomes a weighted sum of squared coordinates in the eigenvector basis. Primer L, equations L.14 and L.15.
spectral embedding. The coordinates a node receives from its values in the first few nontrivial eigenvectors of the graph Laplacian. Clustering those coordinates is spectral clustering. Chapter 3.
spectrum. The list of a matrix's eigenvalues. Chapter 0 section 0.4.
split. A partition of the rows into a part the model is fit on and a part it is scored on. A scorer that has read the test part scores it perfectly. Chapter 8 section 8.1.
standard deviation. The square root of the variance, the spread of a variable in its own units. Scaling a variable by a scales it by the size of a, and shifting it changes nothing. Primer S, equation S.4.
standard error. The spread of an estimate across repeated samples. Chapter 0 section 0.9.
standardization. Subtracting a column's mean and dividing by its spread, so that it has mean zero and variance one. It is invertible and preserves every ordering, so it changes the reader and not the data. Chapter 2.
stratification. Splitting rows into strata, by difficulty or by group, and scoring each separately, so that the report can take the minimum over strata. Chapter 10 and chapter 12.
sum of squared errors. The sum over rows of the squared distance to the row's cluster centre, the validity index k-means minimizes. Chapter 0 section 0.15.
support. Of an itemset, the fraction of transactions that contain it. Chapter 5.
surprise. Minus the log base two of an outcome's probability, its information in bits. Certainty carries none, a fair coin's outcome one bit, and one chance in eight three. Primer S, equation S.19.
surrogate. A quadratic stand-in for the consumer's output metric, the read distortion, used to allocate bits when the output itself cannot be. Chapter 4 section 4.2.
sweep. Running a measurement across a range of one parameter and reading the curve. Chapter 5 section 5.4 and chapter 9 section 9.3.
symmetric matrix. A square matrix equal to its own transpose. Its eigenvalues are real, its eigenvectors can be chosen orthonormal, and it is the sum of its eigenvalues times the outer products of its eigenvectors. Almost every matrix in the book is one. Primer L, equation L.14.
teacher forcing. Feeding a language model the correct text as context rather than its own earlier outputs. Chapter 0 section 0.11.
template match. Comparing a measured list of numbers, such as eigenvalue ratios, to a stored list for each candidate shape and picking the smallest distance between the logarithms. Equation 0.32.
test statistic. A number computed from the sample that sits near a reference value under the null and far from it otherwise, whose observed value the p-value compares with its distribution under the null. Primer S, equation S.15.
TF-IDF. A weighting of term counts by how rare the term is across the collection, so that a term in every document carries no weight. Equation 0.36.
threshold. The value at which a score becomes a positive decision. Chapter 6.
token. A piece of text, roughly a word, the unit a language model reads and writes. Chapter 0 section 0.11.
trace. The sum of a matrix's diagonal, which for a covariance is the total variance. Equation 0.3.
transaction. One row of a market-basket table, the set of items bought together. Chapter 5 section 5.1.
transmission time interval. The one-millisecond slot in which a 5G tower schedules a transmission, abbreviated TTI. Chapter 13.
transpose. The matrix with rows and columns swapped, written with a superscript T. A column becomes a row, so x transposed times y is the dot product and x times y transposed is the outer product, and the transpose of a product reverses the order. Primer L section L.3.
truncation. Keeping the first k components of a spectrum and dropping the rest, a bet that the consumer reads the top of the spectrum. Chapter 4 section 4.5.
type I and type II error, power. A type I error rejects a true null, at the rate the threshold fixes. A type II error fails to reject a false null, and power is one minus that rate, growing with the sample size and the size of the effect. Primer S section S.7.
uniform distribution. Equally likely to fall anywhere in an interval, with mean one half and variance one twelfth on the unit interval. A correctly computed p-value is uniform under its null. Primer S section S.3.
unit vector. A vector of length one, a pure direction. Any nonzero vector becomes one when divided by its length. Primer L, equation L.2.
vacuity threshold. The value of a certificate's statistic below which the certificate is uninformative, derived from the problem rather than tuned to the data. Chapter 9.
validity index. A score for a clustering computed without labels. Chapter 9.
variance. The mean squared deviation of a column from its mean, the identity reader's measure of spread. Chapter 0 section 0.3.
vector. A list of d numbers, and the arrow from the origin to the point with those coordinates. A row of a table with d numeric columns is one. Primer L, equation L.1.
verdict. The outcome of a registered test, pass, fail, or abstain, taken as the worst group with the groups too thin to score counted. Chapter 1 section 1.5 and chapter 10 section 10.4.
water-filling. The allocation of a bit budget across directions that gives each direction half the log of its sensitivity-weighted variance over a common water level, and nothing to directions under the water. Equation 0.13.
Weyl's law. The asymptotic rule for how the number of eigenvalues of a continuum Laplacian below a value grows with that value, whose exponent reveals the dimension of the space. Reading it from a finite graph needs the conditions under which the graph Laplacian converges. Equation 0.31.
whitening. Rescaling centred data by the inverse square root of a positive-definite covariance, or a pseudoinverse on its support, so that the covariance becomes the identity. Euclidean distance after whitening is Mahalanobis distance before it. Equation 0.6.
with replacement, without replacement. Drawing rows with replacement lets a row appear more than once, as the bootstrap does, and drawing without replacement lets each appear at most once. Primer S section S.11.
witness. An independent measurement of whether a certificate's claim was true. Chapter 13.
Youden index. True positive rate minus false positive rate at a threshold, whose maximum over thresholds is the pointwise ceiling that prunes the formula search. Chapter 5 section 5.4.
z-score. A value with the mean subtracted and the result divided by the standard deviation, the number of standard deviations it sits from the mean. Standardizing a column is the same operation with the column's own mean and spread. Primer S section S.2.