Glossary

The 2222 terms from the word tables of all 146 topics, in one place. Type part of a word to narrow the list, then follow the link to the topic that explains it.

Textbook termPlain wordsTopic
(full) factorial design; with two levels each, a 2^k factorial designa design that tests every combinationFactorial designs and interaction
(path of) steepest ascent; going down, steepest descentthe steepest way upResponse surface methodology
(Simple) random samplingEveryone has the same chance of being pickedSamples, sampling distributions and the standard error
0-1 knapsack problemThe knapsack where items cannot be cutDynamic programming
1 ÷ temperatureMultiplierAttention
1-nearest neighbor (k-NN with k = 1)Nearest neighbor classifierData splits and leakage
1D convolution, temporal convolution1D convolutionRNNs and LSTMs
1×1 convolution, pointwise convolution1×1 convolutionReading CNN architectures
2-3 tree (2-3 search tree). One key is a 2-node, two keys a 3-nodetree of nodes holding one or two keysRed-black trees
3-way partitioningsplitting into smaller, equal, largerMerge sort and quicksort
3D convolutionsliding a cube-shaped kernel3D vision: voxels, point clouds and NeRF
3D convolution, 3D kernela filter that also slides along timeVideo classification: convolution with a time axis
3D Gaussian splattingstamping 3D blobs onto the screen3D vision: voxels, point clouds and NeRF
a 2×3 matrix, read "2 by 3"size 2×3Matrix multiplication
A/B testing, online controlled experimentsA/B tests of web pagesRandomization and control groups
abstention, selective predictionsaying "I don't know"Hallucination and evaluating LLMs
accumulation functionthe amount F(x) piled up from a to xIntegrals
AccuracyShare of correct answersLogistic regression
accuracyshare of right answersConfusion matrix, precision, recall and F1
action recognition, video classificationtelling what a person in a video is doingVideo classification: convolution with a time axis
activationwhat a neuron gives back, aNeural networks
Activation functionThe function a neuron applies at the endLogistic regression
activation function, nonlinearityThe function that bends a neuron's outputActivation functions
activation function, nonlinearitybending functionNeural networks
activation function: tanh, sigmoid, ReLUBent functionWeight initialization
activationsin-between values from the forward passBatch size and gradient accumulation
activationsvalues flowing between layersQuantization
active controla control group that gets the existing treatmentRandomization and control groups
activity selection, interval schedulingFitting the most meetings into one roomGreedy algorithms
adapterthe small package you swap inFine-tuning and LoRA
adaptive learning ratea different step size for each directionGradient descent
Add & Norm (residual connection + layer normalization)add and normalizeEncoders and decoders: three kinds of transformer
Additive model. y_ij = μ + τ_j + β_i + ε_ijvalue = overall mean + treatment + block + leftoverBlock designs
Adherence, complianceSticking with the treatmentClinical trial design
adjacency matrixtable of all node pairsGraph search: BFS and DFS
adjacent vertexneighborGraph search: BFS and DFS
adjugate (classical adjoint), written adj(A)cofactors in place, then transposedCramer's rule
adjugate matrix. Written adj Amatrix with a and d swapped and the signs of b and c changedInverse matrix
Adjusted hazard ratioHazard ratio when the other values are the sameSurvival analysis
adjusted mean, least-squares meanmean with the starting point lined upANCOVA
adjusted odds ratioan odds ratio with other variables held the sameRisk, relative risk and odds ratio
Adjusted odds ratio (adjusted OR). The one from a single variable is the crude odds ratio (crude OR)Odds ratio with the other variables held the sameLogistic regression
Adjusted p-valuep recalculated for the stricter thresholdMultiple comparisons
Adjustment, controlling forTaking the mix outConfounding and bias
affine subspacea line or plane that misses the originVector spaces and subspaces
affine transformationA linear transformation plus a shiftLinear transformations
AgentThe one that looks, picks, and learnsReinforcement learning
Agent loopThe loopAI agents
Agent. A different meaning from the AI agent on this pageIn reinforcement learning, the one that acts and learns from rewardsAI agents
AI agent, LLM agentAn LLM that uses tools and works in stepsAI agents
alias, aliasing; also called confoundingmixed up so they cannot be told apartFractional factorials and confounding
aliasing, confounding (in fractional designs)mixed up so they cannot be told apartFactorial designs and interaction
ALiBi (attention with linear biases)Subtracting a penalty for distancePositional encoding
Alignment weightsAlignment weights aₜRNNs and LSTMs
Allocation concealmentHiding the next assignment in advanceClinical trial design
allocation concealmentkeeping the assignment order unknown in advanceRandomization and control groups
allocation ratioRatio of group sizesSample size calculation
Alternative hypothesis (H₁)"There is a difference"Hypothesis testing and the p-value
ambient dimensionhow many numbers write a point downManifolds
AmortizedA big job now and then, but constant on averageHash tables
amortized analysisspreading the costTime complexity (Big O)
Analysis of covariance (ANCOVA)Adjusting for the starting valueRepeated measures and crossover designs
analysis of covariance (ANCOVA)comparing groups after lining up the starting pointANCOVA
analysis of variance (ANOVA). One factor: one-way. Two factors: two-waychecking in one go whether all means are equalAnalysis of variance (ANOVA)
anchor · positive · negativethe reference · another augmentation of the same photo · other photosSelf-supervised learning: representations without labels
anchor · positive · negative, tripletthe reference · the same thing · a different thing, and the group of threeMetric learning: learning a distance
anchor, anchor boxreference boxDetector architectures: the R-CNN family and YOLO
angle addition formulas, trigonometric identitiesbuilding the cos and sin of a sum of anglesGrokking: generalizing long after memorizing
angle between vectors. θ is read "theta"angle between, θDot product
anisotropic covariancea shape that spreads differently in each direction3D vision: voxels, point clouds and NeRF
ANOVA tablethe table of resultsAnalysis of variance (ANOVA)
answer relevance / context relevancedoes the answer fit / do the chunks fitRetrieval metrics
anticommutativityswapping the order flips itCross product
antiderivative, primitivea function whose derivative is fIntegrals
Approximate nearest neighbor search (ANN)Quickly finding nearly the nearestVector search
Approximate posterior, q(z | x)The N(μ, σ²) the encoder outputsAutoencoders and VAEs
Arithmetic mean, sample mean x̄ ("x bar")MeanDescriptive statistics
arm / treatment arm / control armGroup / treatment group / control groupSample size calculation
artificial neuron, unit, nodeneuronNeural networks
assignment step · update stepassign · move the centersk-means clustering
associative lawgrouping does not matterMatrix multiplication
associative law. The cross product does not have itcan be regroupedCross product
Attention map, heatmapThe grid pictureAttention
attention maskThe "who can see whom" tableEncoders and decoders: three kinds of transformer
Attention matrix, self-attentionTable of scores for every pairVision Transformer (ViT)
Attention score, logitScore before softmaxAttention
Attention weightShare, how much it looksAttention
AUC, AUROC. For risk scores, the c-statistic (concordance)area under the curveDiagnostic tests and the ROC curve
augmented matrix. Written [A | b]the table of numbers split by a barLinear systems and elimination
AutoencoderA network that squeezes and rebuildsAutoencoders and VAEs
Autoencoder. The shrinking half is the encoder, the spreading half is the decoderNetwork that shrinks and spreads backDiffusion models
automatic differentiation (autodiff)computing with the rules of basic operations and the chain ruleDerivatives and the chain rule
automatic differentiation, reverse modebackpropagation done for you by the computerBackpropagation
Autoregressive generationWriting one word at a timeSoftmax and sampling
autoregressive generationWriting one token at a time, each after the lastContext windows and the KV cache
autoregressive generationadding one token at a timeTransformers and LLMs
average precision (AP)Area under the curveObject detection
average precision (AP)each rise in recall × the precision there, added upConfusion matrix, precision, recall and F1
average precision (AP). The average over questions is MAP (mean average precision)precision at each right answer, gathered upRetrieval metrics
average rate of change, difference quotientthe average slope between two pointsDerivatives and the chain rule
average treatment effect (ATE)the average effect over the whole groupRandomization and control groups
average value of a functionthe average height of a curveIntegrals
axial point, star pointpoint on an axisResponse surface methodology
axisa direction in which numbers line upTensors and shapes: axes, shape and broadcasting
Axis. NumPy's shape is the size along each axisA direction you count alongMatrix basics
Aᵢ. Some books use another letter, such as BᵢA with column i replaced by bCramer's rule
B-spline transform, control point · regularizationbending the board with grid points · keeping it smoothRegistration: from rigid to non-rigid
back substitutionsolving by plugging in from the bottom row upLinear systems and elimination
backbonebackboneDetector architectures: the R-CNN family and YOLO
backbone, head (the head is also called the classifier)Body, headTransfer learning and fine-tuning
Backdoor pathBack doorConfounding and bias
Backpropagation through time (BPTT)Backpropagation back across the stepsRNNs and LSTMs
backpropagation, backward passhanding gradients back to frontBackpropagation
BacktrackingTry a path, step back when stuckBacktracking
backward pass, backpropagationcomputing the gradientThe training loop: one step, one epoch
balanced BSTA tree that keeps its height near log nBinary search trees
balanced designthe same number of people in every cellFactorial designs and interaction
balanced search treea tree that keeps its balanceRed-black trees
base / exponentThe number multiplied / how many timesFunctions and graphs
base rate neglect, base rate fallacythe mistake of forgetting the priorProbability and Bayes' theorem
baselinethe value before treatmentANCOVA
Baseline hazardHazard of someone whose values are all 0Survival analysis
baseline risk, control event ratethe risk in the unexposed groupRisk, relative risk and odds ratio
basisa group of arrows with nothing extra and nothing missingLinear combinations and span
basis vectorsbase arrows î, ĵDeterminant
basis vectorsbase arrows î, ĵMatrix multiplication
basis. One arrow in it is a basis vectorset of base arrowsBasis and change of coordinates
batchseveral data items fed at onceTensors and shapes: axes, shape and broadcasting
batchthe N pairs looked at at onceMultimodal learning: how CLIP puts images and text in one space
batch dimension / feature dimensionbatch direction / sample directionBatch norm and layer norm
Batch normalization (BN)Rescaling per batchNormalization and standardization
batch normalization (BN)normalizing over the batchBatch norm and layer norm
batch sizethe size of that groupBatch size and gradient accumulation
Beam widthHow many candidates are carried along togetherSoftmax and sampling
Bellman equationValue now = reward + γ × next valueReinforcement learning
Bernoulli trial. Working is a success, not working a failureSomething you try once that works or notBinomial and Poisson distributions
Beta distributionThe distribution λ is drawn fromData augmentation
between-class scatter matrixSpread between the classes, S_BLinear discriminant analysis (LDA)
between-group sum of squares, treatment sum of squares (SSB)between sum of squaresAnalysis of variance (ANOVA)
Between-subject variation / within-subject variationBetween-person / within-person variationRepeated measures and crossover designs
Bi-encoderModel that reads them separately and compares vectorsKeyword and hybrid search
bi-encoder. Reading separately with the same model is a siamese networkTwo towersEmbedding models: one vector per sentence
BiasThe one number a filter adds at the endConvolution and CNNs
biasAdded constantWeight initialization
biasThe added number bActivation functions
biaslopsided pickingConfidence intervals
biasskewEmbeddings
biasthe added numberReading CNN architectures
bias, offsetbiasNeural networks
bias, variance, bias-variance tradeoffsteady misses, shaking with every redrawOverfitting and generalization
Bias. Systematic error, unlike random errorTilted to one sideConfounding and bias
Biased sample, selection biasA sample that leans to one sideSamples, sampling distributions and the standard error
bidirectionalLooks both waysEncoders and decoders: three kinds of transformer
Big O notation, asymptotic notationBig O, upper boundTime complexity (Big O)
big O notation, asymptotic notationWhich function the work grows like for large nFunctions and graphs
bijectiveBoth injective and surjectiveLinear transformations
BimodalTwo peaksDescriptive statistics
binA group split by confidenceCalibration
Bin (class interval), bin widthBin, bin widthDescriptive statistics
bin, intervalBinData drift and monitoring models in production
binary cross-entropy (BCE)the loss for 0 or 1 per classLabel formats
Binary heap, min-heap. The opposite is a max-heapHeap, a heap with the smallest on topHeaps and priority queues
Binary searchFind it by cutting in halfBinary search
binary search tree (BST)A tree with smaller on the left, bigger on the rightBinary search trees
Binomial distributionProbability of k successes out of nBinomial and Poisson distributions
binormal modeltwo normal distributions with the same spreadDiagnostic tests and the ROC curve
Bioequivalence studyA trial comparing two drugs with the same ingredientRepeated measures and crossover designs
bit (also called shannon), natunit for base 2, unit for base eEntropy and cross-entropy
Blinding, masking. Double-blindNot knowing who is in which groupClinical trial design
blinding, masking. Single and double blindnot knowing who is in which groupRandomization and control groups
Block randomization, permuted block randomizationA few people at a time, split half and half as they joinBlock designs
block randomization, permuted blockshalf and half in every blockRandomization and control groups
Block. In clinical trials, stratumA group of similar unitsBlock designs
blocksgroups formed by something that moves the resultFactorial designs and interaction
blocksgroups formed by something that shifts all resultsFractional factorials and confounding
Bonferroni correctionDividing α by the number of outcomesSample size calculation
Bonferroni correctionsignificance level ÷ number of pairsAnalysis of variance (ANOVA)
Bonferroni correction / Holm's step-down procedure / Benjamini-Hochberg procedureBonferroni / Holm / BHMultiple comparisons
Bonferroni correction / O'Brien-Fleming boundary. The same rule every time is the Pocock boundarySplit evenly / strict earlyClinical trial design
boosting, gradient boostingfix earlier mistakes one after anotherDecision trees, random forests and boosting
BootstrapRepeatedly drawing with putting back to see how much something wobblesNonparametric tests
Bootstrap, resamplingDrawing again from the sample you haveSamples, sampling distributions and the standard error
bootstrap. Growing and combining models that way is baggingmaking copies by drawing and putting backDecision trees, random forests and boosting
bottleneck blockbottleneck blockReading CNN architectures
Bottleneck, latent variable or latent representation, codeThe narrow neck, the numbers z after itAutoencoders and VAEs
bounding boxBoxObject detection
bounding box regressionbox correctionDetector architectures: the R-CNN family and YOLO
Box plot (box-and-whisker plot), whisker, fenceBox plot, whiskers, fencesDescriptive statistics
breadth-first search, BFSbreadth-firstGraph search: BFS and DFS
BroadcastingStretching axes of size 1 to fitMatrix basics
broadcastingcomputing with tensors of different shapesTensors and shapes: axes, shape and broadcasting
brute force · k-d tree · ball treemeasure all · KD tree · ball treek-nearest neighbors
Brute force, generate and testPlace everything, then checkBacktracking
Brute-force search, exhaustive search, exact searchMeasuring everythingVector search
bubble sortcompare neighbors, push the big one rightElementary sorts
Bucket, slotSlotHash tables
Budget, n_iterNumber of trialsHyperparameter search: grid and random
byte pair encoding (BPE)merging the most frequent pairTokenization
byte-level BPEBPE that starts from bytesTokenization
calibrationHow well confidence matches realityCalibration
calibrationconfidence matches how often it is rightHallucination and evaluating LLMs
calibrationmeasure the range of activationsQuantization
camera posewhere a photo was taken from and which way it faced3D vision: voxels, point clouds and NeRF
Candidate cell state. The PyTorch docs call it the cell gateCandidate gₜRNNs and LSTMs
Carryover effectAn earlier treatment spilling into the next periodRepeated measures and crossover designs
Case-control studyA study that gathers patients and controls and asks about the pastConfounding and bias
case-control studya study that gathers cases and controls and asks about the pastRisk, relative risk and odds ratio
catastrophic forgettingLosing the old task while learning a new oneTransfer learning and fine-tuning
Categorical (nominal) / ordinal dataOnly the names differ / there is an orderDescriptive statistics
Categorical variable. Nominal if there is no order, ordinal if there isA value that is one of a few namesThe chi-square test
Causal diagram, DAG (directed acyclic graph)A drawing of what changes whatConfounding and bias
Causal maskLetting each token see only earlier onesPositional encoding
Causal maskLook only backwardHow LLMs are trained
causal maskLetting each token see only earlier tokensContext windows and the KV cache
causal maskhiding later tokensTransformers and LLMs
Causal mask, masked self-attentionCan't see later wordsAttention
Cell state, memory cellCell state cₜRNNs and LSTMs
Censoring: right, left and interval censoringDid not see the endingSurvival analysis
centerwhere the bump sitsRBF
center pointcentre pointResponse surface methodology
center, expansion pointcenter aTaylor approximation
CenteringSubtracting the meanNormalization and standardization
centeringsubtracting the meanPrincipal component analysis
central composite design (CCD)corners + axial points + centreResponse surface methodology
Central limit theoremAdding things up gives a bellNormal distribution
Central limit theorem (CLT)Averages turn into a bellSamples, sampling distributions and the standard error
CentroidCenter of a cellVector search
centroidcenterk-means clustering
centroidthe middle of a setRegistration: from rigid to non-rigid
chain rulelinking rates by multiplyingBackpropagation
chain rulemultiply the multiplier of each stepDerivatives and the chain rule
chain rule, backpropagationmultiply and pass backwardResidual connections (ResNet)
chain rule, backpropagationmultiplying on the way backVanishing and exploding gradients
change scoreafter − beforeANCOVA
change-of-basis matrix, transition matrixchange-of-coordinates matrix BBasis and change of coordinates
change-of-basis matrix, transition matrix. Some books give this name to P⁻¹The matrix P with the new basis as columnsLinear transformations
ChannelOne color gridConvolution and CNNs
channel, channels-first · channels-lastthe axis of color values per cellTensors and shapes: axes, shape and broadcasting
Channels (3 for RGB color)Number of color numbersVision Transformer (ViT)
character encoding, UTF-8the rule for writing characters as bytesTokenization
characteristic equationthe quadratic equation for the eigenvaluesEigenvalues and eigenvectors
checkerboard artifactcheckerboard patternImage segmentation
CheckpointTraining state saved to a fileEarly stopping and reading learning curves
Chunk overlapText two neighboring chunks shareChunking
Chunk sizeMost text one chunk can holdChunking
Chunk, passagePieceChunking
chunk, passagechunkRAG
chunkingSplitting material into piecesContext windows and the KV cache
chunkingcutting documents into chunksRAG
Chunking, text splittingCutting documents into piecesChunking
citation, groundingadding sources to an answerRAG
classObject typeObject detection
class imbalancedata where one answer is far more commonConfusion matrix, precision, recall and F1
class imbalancemostly backgroundImage segmentation
class imbalance, imbalanced dataone class is much more commonClass imbalance
class index, hard labelthe answer's numberLabel formats
Class token, [CLS]Token for the classVision Transformer (ViT)
class weight, weighted cross-entropya number multiplied into each class's lossClass imbalance
class, labelClass, the label with the right answerLinear discriminant analysis (LDA)
class, labelgroupk-nearest neighbors
Classification headFinal classifying layerVision Transformer (ViT)
classification threshold, decision thresholdthresholdConfusion matrix, precision, recall and F1
Classification. With two groups, binary classificationGuessing which sideLogistic regression
Classifier-free guidance (CFG), guidance scaleGuidance, guidance strengthDiffusion models
Clinical equipoiseTruly not knowing which option is betterClinical trial design
Clinical trialA treatment experiment in peopleClinical trial design
clippingcut values outside the range to the endQuantization
Closed interval [lo, hi] / half-open interval [lo, hi)Range with both ends in / with the right end outBinary search
closed under addition and scalar multiplicationyou cannot leave itVector spaces and subspaces
Clustered data, cluster randomizationGrouped data, assigning whole groupsRepeated measures and crossover designs
clustering, a clustergrouping what is close, a groupk-means clustering
Clustering, k-meansGrouping pointsVector search
CNNConvolutional neural networkConvolution and CNNs
co-adaptationneurons leaning on each otherDropout
coded units, coded variablesthe scale with the centre at 0 and the corners at ±1Response surface methodology
Coefficient of determination (R²) / adjusted R²The share the formula explains / with a charge for the number of inputsMultiple regression
Coefficient of determination, r² or R²The share of the spread the line explainsCorrelation and regression
coefficients, parametersThe numbers in a formulaFunctions and graphs
coefficients, parametersweightsOverfitting and generalization
coefficients. Each is one number, so they are also scalarsthe numbers s, tLinear combinations and span
coefficients. Together they form the coefficient matrixthe numbers in front of x and yLinear systems and elimination
cofactor expansion, Laplace expansionexpanding along the first rowCramer's rule
cofactor, Cᵢⱼ = (−1)^(i+j) Mᵢⱼminor with a sign attachedCramer's rule
Cohen's d, standardized mean differenceEffect size dMultiple comparisons
Cohen's d, standardized mean differenceeffect size dThe t-test
cohort studya study that follows people forwardRisk, relative risk and odds ratio
coin change problemMaking changeGreedy algorithms
ColliderA factor two arrows crash intoConfounding and bias
CollisionDifferent keys landing in the same slotHash tables
color flipflip colorsRed-black trees
Color jitterBrightness and color changesData augmentation
ColumnA line downMatrix basics
column spacewhat you can make by mixing the columnsProjection and least squares
column spacewhere A·x can reachVector spaces and subspaces
column space, range, imageevery place the output can reachRank
Column vectorA matrix with one columnMatrix basics
Column vector, row vectorA vector standing up, a vector lying downVectors in n dimensions
Combination, binomial coefficient. Written C(n, k) or ₙCₖNumber of ways to choose k of nBinomial and Poisson distributions
common slope, pooled within-group regression coefficientthe slope both lines shareANCOVA
commutative law · distributive laworder does not matter · add first or after, same resultDot product
commutative law. Usually false for matrix multiplicationorder does not matterMatrix multiplication
comparecompareElementary sorts
Competing risksAnother event that prevents the eventSurvival analysis
complementA does not happenProbability and Bayes' theorem
Complementary error function (erfc)The function used for outer areas of the normal curveHypothesis testing and the p-value
Complete binary treeComplete treeHeaps and priority queues
Completely randomized design (CRD)Anywhere in the fieldBlock designs
complex eigenvalueeigenvalue that is not a real numberEigenvalues and eigenvectors
Component, entry. Written viThe number in one positionVectors in n dimensions
componentsacross, upVectors
componentsnumbers in matching places (across, up)Dot product
components. a1, a2, a3x, y, z partsCross product
composite function. f(g(x))a function with another function insideDerivatives and the chain rule
compositionDoing one transformation after anotherLinear transformations
compositionjoining two changes into oneMatrix multiplication
composition, composite function, f ∘ gChaining functionsFunctions and graphs
computational graphthe picture of circles, boxes and arrowsBackpropagation
concatenation, concatconcatenating along the channelsReading CNN architectures
concept drift, concept shiftThe link between input and label changesData drift and monitoring models in production
concordance probability. Mann-Whitney U ÷ (n₁ × n₂)chance the sick person winsDiagnostic tests and the ROC curve
condition numberlargest eigenvalue ÷ smallest eigenvalueJacobian and Hessian
Conditional generation, promptCondition, ordering with wordsDiffusion models
conditional probabilitythe probability of A given BProbability and Bayes' theorem
confidenceProbability of the chosen answerCalibration
Confidence band / prediction band, prediction intervalBand for the mean / band for one new personCorrelation and regression
confidence intervalestimated range of the differenceThe t-test
confidence level, confidence coefficienta level such as 95%Confidence intervals
confidence scoreHow sure the model isObject detection
confidence scoreconfidenceDetector architectures: the R-CNN family and YOLO
confirmation runtrying the spot you found againResponse surface methodology
Confirmatory / exploratory studyConfirming study / scanning studyMultiple comparisons
Confounder, confounding variableA hidden third variableCorrelation and regression
Confounder, confounding variableThe factor that leaks inConfounding and bias
ConfoundingA third factor leaking into a comparisonConfounding and bias
ConfoundingTreatment mixed up with another causeBlock designs
confoundingan unmeasured difference mixed into the effectANCOVA
confoundinganother cause affecting the result along with the treatmentRandomization and control groups
Confounding / omitted variable biasA hidden value changes the coefficient / the error from leaving it outMultiple regression
confounding in blocksletting an effect overlap with blocks on purposeFractional factorials and confounding
confusion matrixtable of four boxesConfusion matrix, precision, recall and F1
connected componentgroupMinimum spanning trees
connected componentone connected pieceGraph search: BFS and DFS
CONSORT flow diagram, CONSORT statementThe flow diagram and reporting checklistClinical trial design
constant of integration+ CIntegrals
constant · logarithmic · linear · linearithmic · quadratic · exponentialsame · one more step · double · a bit more than double · four times · double per extra itemTime complexity (Big O)
constrained decoding, grammar-constrained decoding, guided generationswitching off tokens outside the grammar when pickingStructured output
Constraint region, norm ballThe penalty fence (circle, diamond)Weight decay and L1/L2 regularization
Constraint satisfaction problemFinding an arrangement that meets the rulesBacktracking
Context vector. Section 7 uses one to the end; with attention a new one is built for every wordSummary state, cₜ in section 8RNNs and LSTMs
Context windowHow much the model can read at onceAI agents
context windowthe amount of text a model reads at onceRAG
Context window, context lengthHow many tokens fit at onceAttention
context window, context lengthHow many tokens the model sees at onceContext windows and the KV cache
context window, context lengthhow many tokens it can see at onceTransformers and LLMs
context window, context lengthmost tokens a model can look at at onceTokenization
context, context windowthe words around a wordEmbeddings
contextual embeddingembedding that changes with contextEmbeddings
Contingency table, cross-tabulationA table that sorts people by two thingsThe chi-square test
contingency table, two-by-two table2×2 tableRisk, relative risk and odds ratio
Continuity correctionSubtracting ½Nonparametric tests
ContinuousYou can draw it without lifting your pencilLimits and continuity
contour line, level curvea line joining places of the same heightDerivatives and the chain rule
contour line, level curvea line joining places of the same heightPartial derivatives and the gradient
contrastsum with signs attachedFactorial designs and interaction
Contrastive learningPull pairs together, push others apartHow LLMs are trained
contrastive learningTraining that pulls pairs and pushes non-pairsEmbedding models: one vector per sentence
contrastive learninglearning by comparingSelf-supervised learning: representations without labels
contrastive learninglearning by comparing pairs with the restMultimodal learning: how CLIP puts images and text in one space
contrastive losspull same pairs, push different pairs out to the marginMetric learning: learning a distance
Control group / placebo / active controlThe comparison group / dummy pill / comparing with the current treatmentClinical trial design
convergencestopping because nothing changesk-means clustering
Converges (convergence)Settles on one valueLimits and continuity
convex / concavecup shape / hill shapeTaylor approximation
convex functionbowl-shaped everywhereJacobian and Hessian
Convex hullArea the data coversDiffusion models
coordinates, coordinate vectoraddress (u, v)Basis and change of coordinates
correlation matrixcovariance matrix of standardized dataPrincipal component analysis
correspondence, corresponding pointswhich point belongs with whichRegistration: from rigid to non-rigid
cosine annealing, cosine decaydrop in a cosine shapeLearning rate schedules
cosine similaritycosine similarityDot product
cosine similarityhow much two directions agreeSelf-supervised learning: representations without labels
cosine similarityhow much two vectors point the same wayMultimodal learning: how CLIP puts images and text in one space
cosine similarityhow similarRAG
cosine similarity. 1 − cosine similarity is called cosine distancecosine similarityEmbeddings
counterexampleAn example where it goes wrongGreedy algorithms
CovarianceHow much they move together (has units)Correlation and regression
covariancegrowing together or moving oppositePrincipal component analysis
covariance matrixTable of how inputs spread together, ΣLinear discriminant analysis (LDA)
covariance matrixthe table of variances and covariancesPrincipal component analysis
Covariance, correlation coefficientHow much two inputs move togetherNormalization and standardization
covariateanother value measured alongsideANCOVA
Covariate adjustmentCorrecting later, in the analysisBlock designs
covariate shiftThe inputs changeData drift and monitoring models in production
coverageshare of questions answeredHallucination and evaluating LLMs
coverage probabilityshare of intervals that contain the true valueConfidence intervals
Cox proportional hazards model, Cox regressionModel that adjusts for other valuesSurvival analysis
Cramer's rulesolving equations with ratios of areasInverse matrix
Cramer's rulethe formula that finds s and t as "area made with the target ÷ area of a and b"Linear combinations and span
credible interval / prior, posteriorinterval built from beliefConfidence intervals
critical point, stationary pointa spot where the gradient is 0Partial derivatives and the gradient
critical point, stationary pointa spot where the slope is 0Derivatives and the chain rule
critical point, stationary pointstopping point (where the gradient is 0)Jacobian and Hessian
critical value / rejection regionthe cutoff / the region past itType I and type II errors, and statistical power
critical value, edge of the rejection regionCutoffSample size calculation
critical value, t*cutoff, edgeThe t-test
Critical value. Beyond it is the rejection regionThe line where the two outer areas add up to α (1.96)Hypothesis testing and the p-value
Critical value. The 5% is the significance level (α)The 5% lineThe chi-square test
critical value; for the normal distribution, the z valuemultiplier (1.96, t)Confidence intervals
cross product, vector product. Written a × bcross productCross product
cross-attentionAttention from the decoder to the sourceEncoders and decoders: three kinds of transformer
cross-attentionattention from the decoder to the encoderTransformers and LLMs
Cross-attention, encoder-decoder attentionLooking at another sentenceAttention
Cross-correlationPlacing the filter without flipping itConvolution and CNNs
Cross-encoderModel that reads the query and document togetherKeyword and hybrid search
cross-encoderOne towerEmbedding models: one vector per sentence
cross-entropyaverage surprise through your predictionEntropy and cross-entropy
cross-entropy lossthe penalty for guessing the next tokenTransformers and LLMs
Cross-entropy loss, log loss, negative log-likelihoodLoss (cross-entropy)Logistic regression
cross-section, tracethe shape you get by fixing one input and cutting the groundPartial derivatives and the gradient
cross-validationchoosing with held-out dataRBF
Crossover design. Two orders × two periods: 2×2 crossover (AB/BA)Everyone gets both treatments in turnRepeated measures and crossover designs
crowding problempoints crowding on a planet-SNE and UMAP
Crude difference, crude (unadjusted) estimateThe pooled differenceConfounding and bias
Cumulative distribution function (CDF)Probability of a value below xNormal distribution
cumulative gain (CG) / discounted cumulative gain (DCG)grades added up / added with lower places shrunkRetrieval metrics
curse of dimensionalitythe number of cells to cover multiplying with each dimensionRBF
Curse of dimensionality, distance concentrationDistances becoming similar in many dimensionsVector search
Curse of dimensionality, distance concentrationWays high dimensions break your intuitionVectors in n dimensions
curvaturebendResponse surface methodology
curvaturehow much the bowl bendsLearning rate schedules
Curvature, eigenvalues of the HessianHow sharply the loss curves, hWeight decay and L1/L2 regularization
cut propertythe cheapest crossing line is in the treeMinimum spanning trees
cut, crossing edgesplitting into two groups, crossing lineMinimum spanning trees
cut-off value, thresholdcutoffDiagnostic tests and the ROC curve
CutMixCutting and pasting a pieceData augmentation
Cutout, random erasingBlanking out a squareData augmentation
cycleloopMinimum spanning trees
DAG, directed acyclic graphgraph with arrows and no cycleTopological sort
Data augmentationGrowing data by changing itData augmentation
data augmentationadding data by meaning-keeping changesDropout
data augmentationmaking more training data from what you haveOverfitting and generalization
data contamination, leakagetest questions mixed into trainingHallucination and evaluating LLMs
Data leakageTest data leaking into trainingData augmentation
Data leakageTest data seeping into trainingNormalization and standardization
data leakage, data contaminationtest data leaking into trainingOverfitting and generalization
Data leakage. A column filled in only after the outcome is target leakageInformation slipping inData splits and leakage
data type, dtypethe kind of element (integer, float …)Tensors and shapes: axes, shape and broadcasting
dataset shift, distribution shiftData driftData drift and monitoring models in production
DDIM (denoising diffusion implicit model)Drawing with no new noiseDiffusion models
decay, annealingmaking it smallerLearning rate schedules
Decision boundaryDividing lineLogistic regression
decision boundarythe line where the answer flipsNeural networks
decision boundarythe line where the two colors meetk-nearest neighbors
decision boundary, hyperplaneboundary (a flat sheet with three or more inputs)Support vector machines
decision functionthe SVM scoreRBF
decision thresholdCutoffData drift and monitoring models in production
decision tree. A common way of growing one is called CARTa model made of chained questionsDecision trees, random forests and boosting
Decoding strategyThe whole way of picking the next tokenSoftmax and sampling
Decoupled weight decay, AdamWShrinking taken out of the slopeWeight decay and L1/L2 regularization
Deep Q-network (DQN)A neural network that gives QReinforcement learning
defective matrixmatrix without enough eigen directions to diagonalizeEigenvalues and eigenvectors
defining relation (defining contrast), e.g. I = ABCthe equation that fixes the overlapping pairsFractional factorials and confounding
degenerate treeA tree stretched into one lineBinary search trees
degradation problemdeeper means higher training errorResidual connections (ResNet)
degrees of freedomhow many numbers a transform hasRegistration: from rigid to non-rigid
Degrees of freedom (df)How many values are freeBlock designs
Degrees of freedom (df)The number of cells you can choose freelyThe chi-square test
Degrees of freedom (df)n − 2Correlation and regression
degrees of freedom (df)number of pieces free to moveAnalysis of variance (ANOVA)
degrees of freedom (df, ν)pieces of information left for estimating the spreadThe t-test
Denoising autoencoderAdd noise, then ask for the originalAutoencoders and VAEs
Dense retrieval, semantic searchVector searchKeyword and hybrid search
density-based clustering, DBSCANgrouping by following dense areask-means clustering
depth mapa picture with a distance in each cell3D vision: voxels, point clouds and NeRF
Depth-first search (DFS)Going all the way down one branch firstBacktracking
depth-first search, DFSdepth-firstGraph search: BFS and DFS
dequantizationgo back, x̂ = s·(q − z)Quantization
deque, double-ended queuelist with two open endsGraph search: BFS and DFS
derivative (derivative function). f′(x), dy/dxthe function that collects the slopesDerivatives and the chain rule
derivative at a point, instantaneous rate of changethe slope at a spotDerivatives and the chain rule
derivative. With many directions, the gradientslopeGradient descent
Descriptive statistics. Estimating a bigger group is inferential statisticsSummarizing the data you have, as it isDescriptive statistics
Design effectHow many times the variance was understatedRepeated measures and crossover designs
determinant. Written det Awhat area gets multiplied byInverse matrix
determinant. Written det A or |A|determinantDeterminant
dev set / test setdevelopment questions / test questionsRetrieval metrics
Development set, evaluation set (held-out samples)Development data, evaluation dataHyperparameter search: grid and random
DeviationA value minus the meanDescriptive statistics
DeviationDistance to the meanNormal distribution
diagonal matrixa matrix with numbers only on its diagonal, like ΣSingular value decomposition
diagonal matrixmatrix with numbers only on the diagonalEigenvalues and eigenvectors
diagonalization. A = P D P⁻¹writing a matrix with eigenvectors as the baseEigenvalues and eigenvectors
Dice coefficient (Sørensen–Dice). Same value as the F1 score2 × overlap ÷ the two sizes addedImage segmentation
dichotomizationcutting a number in twoDiagnostic tests and the ROC curve
difference to be detected, minimal clinically important differenceThe smallest effect worth finding, δSample size calculation
differentiationfinding the slopeDerivatives and the chain rule
Diffusion model, denoising diffusion probabilistic model (DDPM)Diffusion modelDiffusion models
DimensionHow many numbersVectors in n dimensions
dimensionhow many numbersEmbeddings
dimensionhow many numbers each point hasPrincipal component analysis
dimensionhow many numbers you need to write one pointLinear combinations and span
dimensionnumber of placesDot product
dimension reduction, restoringcutting channels, restoring themReading CNN architectures
Dimension, d or dkHow many numbers a vector hasAttention
dimension. Written dimnumber of arrows in a basisBasis and change of coordinates
dimensionality reductioncutting down the number of valuesPrincipal component analysis
dimensionality reductionsquashing down the dimensionsEmbeddings
dimensionality reduction, visualizationflattening high-dimensional points into 2Dt-SNE and UMAP
directed cyclecycleTopological sort
directed edgearrowTopological sort
directed graph, digraphgraph of one-way edgesDijkstra's algorithm
directed graph, digraphgraph with arrowsTopological sort
directional derivative. Dufthe slope when you walk any way you likePartial derivatives and the gradient
DiscontinuityA breakLimits and continuity
Discount factor (γ)DiscountReinforcement learning
Discrete / continuousSeparate steps / any value in betweenNormal distribution
Discrete / continuous dataNumbers you count / values in between exist tooDescriptive statistics
discrete Fourier transform (DFT)splitting values into waves of each frequencyGrokking: generalizing long after memorizing
discriminative fine-tuning, layer-wise learning ratesA different learning rate for each layerTransfer learning and fine-tuning
discriminator (D)The inspectorGANs
distance estimate (distTo[v], dist[v])shortest distance known so farDijkstra's algorithm
distributional hypothesiswords in similar places have similar meaningsEmbeddings
distributive lawcan be split upCross product
distributive lawsplitting over a sumMatrix multiplication
divergencejumping farther and fartherLearning rate schedules
Diverges (divergence)Does not settle, grows without endLimits and continuity
divide and conquerSplitting and solving when the pieces do not overlapDynamic programming
divide and conquersplit, solve, combineMerge sort and quicksort
Document length normalizationLength factorKeyword and hybrid search
domainThe x values you can put inFunctions and graphs
domain, codomainInput space, output spaceLinear transformations
Dot plot, strip plotA picture with every pointDescriptive statistics
Dot productPair up, multiply, addMatrix basics
Dot product, inner productMultiply position by position and add upVectors in n dimensions
dot product, scalar product. Written a · bdot productCross product
dot product, scalar product. Written a · b. "Inner product" is a wider term, and the dot product is the most common kinddot productDot product
downstream taskthe job you actually care aboutSelf-supervised learning: representations without labels
dropoutswitch off some neuronsOverfitting and generalization
dropoutturning neurons off at random in trainingDropout
dropout rate, drop probability. The original paper uses p for the retention probabilitydrop rate pDropout
dropout, loss to follow-upLeaving partwaySample size calculation
Dummy variable, indicator variableColumns marked 0 and 1Multiple regression
dummy variable, indicator variablea column holding 0 and 1 for the groupsANCOVA
dying ReLUa ReLU stuck on negative inputsVanishing and exploding gradients
dying ReLU, dead neuronA neuron that always outputs 0Activation functions
dynamic programming (DP)Write small answers down and reuse themDynamic programming
e, Euler's numberThe number for interest that never stops, 2.718…Functions and graphs
early exaggerationmaking P bigger in the first stepst-SNE and UMAP
Early stoppingDeciding when to stop from validation lossEarly stopping and reading learning curves
early stoppingstop earlyOverfitting and generalization
early stoppingstopping when validation loss stops improvingDropout
easy negative · semi-hard negative · hard negativeloss 0 · order right but slack short · order wrongMetric learning: learning a distance
edgelineMinimum spanning trees
edge weightedge lengthDijkstra's algorithm
Effect modificationThe effect differs by layerConfounding and bias
effect size inflation, winner's cursesignificant effects coming out too bigType I and type II errors, and statistical power
effect size, clinical significance, minimal clinically important differencebig enough to matterConfidence intervals
effect size, Cohen's dδ ÷ σSample size calculation
effect size, Cohen's d, standardized mean differencethe effect δ, and the effect divided by the standard deviation, dType I and type II errors, and statistical power
Effect size. Divided by the spread, it is Cohen's dHow big the difference isHypothesis testing and the p-value
Effect size: Cramér's V, phi coefficient (φ)The size of the relationshipThe chi-square test
effect size: eta squared (η²), omega squared (ω²)share of the total spread from group differencesAnalysis of variance (ANOVA)
effective batch sizethe examples behind one updateBatch size and gradient accumulation
Effective stride, jumpProduct of the strides below, jPooling and receptive fields
eigenfaceeigenfacePrincipal component analysis
eigenspaceeigen direction (the line)Eigenvalues and eigenvectors
eigenvalue. Usually written λhow many times longerEigenvalues and eigenvectors
eigenvectorarrow that keeps its directionEigenvalues and eigenvectors
eigenvector and eigenvaluean arrow whose direction stays the same, and how much it is stretchedSingular value decomposition
elbow method · silhouette coefficientelbow · silhouettek-means clustering
element · sizethe number in one cell · how many there areTensors and shapes: axes, shape and broadcasting
elementary row operationsswap, multiply, add a multipleLinear systems and elimination
eliminationmultiply two equations by numbers and subtract to remove one unknownLinear combinations and span
embeddingthe vector an input turns intoMetric learning: learning a distance
embeddingthe vector data is turned intoMultimodal learning: how CLIP puts images and text in one space
embeddingturning text into a list of numbers that holds its meaningRAG
embedding matrix, embedding layertable from token number to vectorEmbeddings
Embedding modelA model that turns text into a list of numbersChunking
embedding model, sentence encoderEmbedding modelEmbedding models: one vector per sentence
embedding, embedding matrixa token's vector, vocabulary tableTransformers and LLMs
embedding. For one word, a word embedding. For a sentence or document, a sentence embedding or document embeddingembeddingEmbeddings
empirical CDFCumulative share curveData drift and monitoring models in production
Empirical rule, three-sigma rule68-95-99.7 ruleNormal distribution
encoder / decoderThe part that reads / the part that writesEncoders and decoders: three kinds of transformer
encoder / decoderthe reading part / the writing partTransformers and LLMs
Encoder, decoderThe squeezing part, the rebuilding partAutoencoders and VAEs
encoder, decoder. The U-Net paper says contracting path, expansive pathshrinking half, growing halfImage segmentation
encoder-decoderBoth parts joinedEncoders and decoders: three kinds of transformer
Encoder-decoder, seq2seq (sequence to sequence)Reading one row and writing anotherRNNs and LSTMs
encoder-only model / decoder-only modelA model with only the encoder / only the decoderEncoders and decoders: three kinds of transformer
encoder: image encoder, text encodera neural network that turns data into a vectorMultimodal learning: how CLIP puts images and text in one space
ensembleaveraging the answers of many modelsDropout
ensemblecombining many modelsDecision trees, random forests and boosting
entropythe floor of the lossLabel formats
Entropy, measured in bitsSpreadSoftmax and sampling
entropy, Shannon entropyaverage surpriseEntropy and cross-entropy
Entry, element. Written aᵢⱼAn entry, the number in itMatrix basics
entry, element. Written like a₁₂one number in the matrixMatrix multiplication
EnvironmentEverything outside the agentReinforcement learning
EpisodeOne roundReinforcement learning
EpochOne full pass over the training dataEarly stopping and reading learning curves
EpochOne pass over the training dataData augmentation
epochone pass over all the dataBatch size and gradient accumulation
epochone pass over all the dataThe training loop: one step, one epoch
epsilon (ε)tiny number that prevents division by 0Batch norm and layer norm
Epsilon-delta definitionPinning it down with an allowed height ε and a width δLimits and continuity
equal variances, homogeneity of variancethe two groups have the same spreadThe t-test
equivalence testa test that shows an effect is tinyType I and type II errors, and statistical power
Error barThe spread marks on a figureSamples, sampling distributions and the standard error
Error function (erf)The function used to get areas under the normal curveNormal distribution
error, remainder. Rₙ(x)gap between the approximation and the real functionTaylor approximation
error, residualleftover (spread within cells)Factorial designs and interaction
EstimandWhat you are trying to estimateClinical trial design
estimate, point estimate; for a mean, the sample mean x̄estimate, single estimateConfidence intervals
Euclidean distanceStraight-line distanceVectors in n dimensions
Euclidean distancestraight-line distanceEmbeddings
Euclidean distancestraight-line distancek-means clustering
Euclidean distancestraight-line distancek-nearest neighbors
Euclidean distancestraight-line distanceManifolds
Euclidean distancestraight-line distanceMetric learning: learning a distance
Euclidean distance, L2 distanceStraight-line distanceVector search
eval set, benchmarkfixed test setHallucination and evaluating LLMs
eventsomething that may or may not happenProbability and Bayes' theorem
Event, failureThat something (relapse, death, failure, cancellation)Survival analysis
Evidence lower bound (ELBO)The VAE loss with its sign flippedAutoencoders and VAEs
EWC (elastic weight consolidation)Moving the important weights lessTransfer learning and fine-tuning
exact match (EM)same text as the right answerHallucination and evaluating LLMs
Exact test / normal approximationp from counting every arrangement / p from a bell-shaped estimateNonparametric tests
Excessive agency / principle of least privilegeToo much power / only the narrowest permissionsAI agents
exchange, swapswapElementary sorts
exclusive or (XOR)true when exactly one is trueNeural networks
exhaustive search, brute forceChecking every caseGreedy algorithms
expectationAverage EGANs
expectation, expected valueaverage E[ ]Dropout
Expectation, meanMean E[x]Normalization and standardization
expected calibration error (ECE)Per-bin gaps added up by bin shareCalibration
expected cost, expected lossaverage cost per personDiagnostic tests and the ROC curve
Expected frequencyExpected count E (if unrelated)The chi-square test
Expected value, mean. Written μMean of a distributionNormal distribution
Experience replayStoring past steps and learning from them againReinforcement learning
explained variance ratioshare explainedPrincipal component analysis
exploding gradientgradient getting hugeVanishing and exploding gradients
exploding gradientthe gradient gets large near the inputResidual connections (ResNet)
Exploration / exploitationTrying what you have not tried / using the good thing you knowReinforcement learning
Exponential distribution, Weibull distributionDistributions with a constant, rising or falling hazardSurvival analysis
exponential functionThe same multiplier at every stepFunctions and graphs
Exponential timeEach step up in n multiplies the workBacktracking
exposure, outcome, eventwhat you are exposed to, what you watch forRisk, relative risk and odds ratio
ExtrapolationStretching beyond the dataCorrelation and regression
F distributionhow F spreads when all means are equalAnalysis of variance (ANOVA)
F statistic, F ratiobetween ÷ withinAnalysis of variance (ANOVA)
F-beta scoreF with more weight on one sideConfusion matrix, precision, recall and F1
F1 score, F-measureharmonic mean of precision and recallConfusion matrix, precision, recall and F1
F1 score, F-measureharmonic mean of precision and recallRetrieval metrics
factorsomething the experimenter sets to learn its effectFactorial designs and interaction
factor, independent variablesettingResponse surface methodology
factorial. n!all numbers from 1 to n multipliedTaylor approximation
faithfulness problem · factuality problemnot matching the source · not matching the worldHallucination and evaluating LLMs
faithfulness, groundednesssticking to the sourcesRetrieval metrics
fake quantization, simulated quantizationquantize then restore, only in the forward passQuantization
False discovery proportion (FDP)False share in the one list you gotMultiple comparisons
False discovery rate (FDR)Average share of false discoveriesMultiple comparisons
False negative (FN)MissLogistic regression
false negative (FN), type II errormissConfusion matrix, precision, recall and F1
false negative, false positivemiss, false alarmDiagnostic tests and the ROC curve
false positiveFalse alarmData drift and monitoring models in production
False positive (FP)False alarmLogistic regression
false positive (FP), type I errorfalse alarmConfusion matrix, precision, recall and F1
false positive rateshare of negatives called positiveClass imbalance
false positive rate (FPR)1 − specificity, share flagged by mistakeDiagnostic tests and the ROC curve
Family of testsThe group of tests run togetherMultiple comparisons
Family-wise error rate (FWER)Chance of at least one false discoveryMultiple comparisons
familywise error rate (FWER)chance of at least one false "significant" over many testsAnalysis of variance (ANOVA)
fan-in (n_in), fan-out (n_out)Number of incoming units n, outgoing unitsWeight initialization
fan-in, fan-outnumber of values coming in, going outVanishing and exploding gradients
feature extraction, linear probingFreezing the body and training only the headTransfer learning and fine-tuning
feature mapfeature mapDetector architectures: the R-CNN family and YOLO
Feature map, activation mapOutput gridConvolution and CNNs
Feature map, channelOne grid of numbersPooling and receptive fields
feature map, channelfeature map, channelReading CNN architectures
Feature scaling, normalizationMatching the scales of the inputsNormalization and standardization
feature scaling, normalization, standardizationmatching the scalesk-nearest neighbors
feature, neuron, or channel in imagesa featureBatch norm and layer norm
Feature, variableInput, one numberNormalization and standardization
feed-forward network, MLPSmall neural networkEncoders and decoders: three kinds of transformer
FIFO, first in first outqueue (oldest out first)Graph search: BFS and DFS
Filter, kernelSmall grid of numbers, filterConvolution and CNNs
filter, kernelfilter, windowReading CNN architectures
fine-tuningStarting from pretrained weights and training moreTransfer learning and fine-tuning
fine-tuningTraining the model further to fit a jobContext windows and the KV cache
fine-tuningtraining the model more on your own dataRAG
Fine-tuning, transfer learningTake it and adjust it to your dataVision Transformer (ViT)
fine-tuning. Changing every weight is full fine-tuningtraining a little moreFine-tuning and LoRA
Finite population correctionThe adjustment when the sample is a big share of the populationSamples, sampling distributions and the standard error
First and second moment estimates (m̂, v̂)Recent average and size of the slopeWeight decay and L1/L2 regularization
first-order / second-order accuracytwice the bars, half / a quarter of the errorIntegrals
first-order modelplane formulaResponse surface methodology
Fisher criterionJ(w)Linear discriminant analysis (LDA)
Fisher's exact test. The chances follow the hypergeometric distributionCounting every table with the same totalsThe chi-square test
fixed image · moving image, target · sourcethe side kept still · the side movedRegistration: from rigid to non-rigid
flattenlaying out in one lineReading CNN architectures
Floating-point numbersComputer decimalsLimits and continuity
FloorDrop everything after the decimal point, ⌊ ⌋Pooling and receptive fields
Floor function, greatest integer functionThe staircase ⌊x⌋Limits and continuity
focal loss. (1 − p_t)^γ is the modulating factor, γ the focusing parametera loss that shrinks easy examplesClass imbalance
fold-overrunning the other half tooFractional factorials and confounding
forest plota picture of intervals stacked on a log scaleRisk, relative risk and odds ratio
Forget gate, input gate, output gateForget gate, input gate, output gateRNNs and LSTMs
forward passmaking a guessThe training loop: one step, one epoch
forward passrunning it forwardNeural networks
forward pass, forward propagationworking out values front to backBackpropagation
Forward process, diffusion process, noisingDestroy, forward processDiffusion models
fractional factorial designa design that tests only part of the combinationsFactorial designs and interaction
fractional factorial design, a 2^(k−p) designan experiment that tests only part of the combinationsFractional factorials and confounding
fractional knapsack problemThe knapsack where items can be cutDynamic programming
frame rateframes per secondVideo classification: convolution with a time axis
frame · clipone photo of a video · a short pieceVideo classification: convolution with a time axis
freezingkeeping fixedFine-tuning and LoRA
freezing, unfreezingFreeze, unfreezeTransfer learning and fine-tuning
frequency · phasehow many times a wave goes up and down · how far it is shiftedGrokking: generalizing long after memorizing
Frequency, wavelengthHow fast a wave turns, the length of one turnPositional encoding
Frisch–Waugh–Lovell theoremThe slope seen through what is left after the other inputsMultiple regression
Frobenius normsquare the cell differences, add, take the square rootFine-tuning and LoRA
full rank: the rank equals the smaller of the number of rows and the number of columnsthe rank is fullRank
Fully connected layerA layer that takes every inputPooling and receptive fields
Fully connected layer, dense layerA layer at the end that connects everythingConvolution and CNNs
fully connected layer, dense layer, Linear in PyTorchlayer that links every valueReading CNN architectures
Function value. f(a)The value on the spotLimits and continuity
function, f(x)A rule that gives one output per inputFunctions and graphs
fundamental theorem of calculusthe slope of the piled-up amount is the rateIntegrals
gainFactor matched to the activationWeight initialization
GateGateRNNs and LSTMs
Gated recurrent unit (GRU), with an update gate and a reset gateThe variant with two gatesRNNs and LSTMs
Gaussian elimination, LU decompositionsolving by subtracting rows to clear entriesCramer's rule
Gaussian elimination. If you also clear above each pivot: Gauss–Jordan eliminationsolving by removing unknownsLinear systems and elimination
Gaussian kernelbell shapet-SNE and UMAP
Gaussian mixture model (GMM)grouping where each cluster learns an ellipsek-means clustering
Gaussian noise, ε (epsilon)NoiseDiffusion models
Gaussian radial basis function (Gaussian RBF), Gaussian kernelbell-shaped bumpRBF
Gaussians with a shared covarianceBell shapes with the same spreadLinear discriminant analysis (LDA)
generalizationdoes well on data it has never seenOverfitting and generalization
generalization errorhow often it is wrong on data it has not seenSupport vector machines
generalization error, out-of-sample errortest errorOverfitting and generalization
generative adversarial network (GAN)Training a maker and an inspector against each otherGANs
generator (G)The makerGANs
generator, e.g. C = ABthe rule that picks the runsFractional factorials and confounding
geodesic distancedistance along the surfaceManifolds
Geometric / negative binomial distributionTries until the first success / until r successesBinomial and Poisson distributions
Global attention. The kind that looks at only part of it at a time is local attentionAttention that always looks at the whole sourceRNNs and LSTMs
Global average pooling (GAP)Average over a whole channelPooling and receptive fields
global minimumlowest place of allJacobian and Hessian
Glorot initialization, Kaiming initializationXavier initialization, He initializationVanishing and exploding gradients
Glorot initialization, Xavier initializationXavierWeight initialization
graded relevance / binary relevancerelevance grades / only right or wrongRetrieval metrics
gradient accumulation. Each small batch is a micro-batchcollecting k small batches before one updateBatch size and gradient accumulation
Gradient clippingPutting a cap on the gradient sizeRNNs and LSTMs
gradient clippingshrinking a gradient that is too bigBackpropagation
gradient clipping. By total length: clipping by normcutting the gradient downVanishing and exploding gradients
gradient descent, first-order optimizationtrusting the degree 1 approximation and stepping downhillTaylor approximation
gradient descent, steepest descentsteps the opposite way from the gradientPartial derivatives and the gradient
gradient noise (from stochastic gradients)noise in the slopeLearning rate schedules
gradient, derivative of the loss. In statistics, the psi function (ψ)how hard a point pullsRegression losses
gradient, gradient vector. ∇fthe arrow made of the partial derivativesPartial derivatives and the gradient
gradient. ∇fthe arrow made of the partial derivativesDerivatives and the chain rule
gradual unfreezingUnfreezing one layer at a time from the lastTransfer learning and fine-tuning
Graeco-Latin squareTwo Latin squares laid over each other to block three directionsBlock designs
Gram-Schmidt processmaking right-angle base arrowsProjection and least squares
greedy algorithmTaking what looks best right nowGreedy algorithms
greedy algorithmtaking what looks best right nowMinimum spanning trees
greedy choiceThe thing picked at each stepGreedy algorithms
Greedy decodingAlways taking the top wordSoftmax and sampling
greedy-choice propertyThe choice now is part of a best answerGreedy algorithms
Grid search, GridSearchCVGrid searchHyperparameter search: grid and random
grokkinggeneralizing long after memorizingGrokking: generalizing long after memorizing
ground truth boxTrue boxObject detection
Group k-fold. One group at a time is leave-one-group-outSplitting by groupData splits and leakage
group normalization (GN)normalizing groups of channelsBatch norm and layer norm
group, treatment, level / factorgroup / what splits the groupsAnalysis of variance (ANOVA)
Hadamard product, element-wise productmultiplying the numbers in the same spotsMatrix multiplication
Haldane-Anscombe correction, zero-cell correctionadding 0.5 to cells when one is 0Risk, relative risk and odds ratio
half fraction, 2^(k−1)half of the combinationsFractional factorials and confounding
hallucinationa believable answer that was made upRAG
hallucinationmaking up something that sounds right but is wrongHallucination and evaluating LLMs
hallucinationwrong content that sounds rightTransformers and LLMs
hard marginSVM that keeps every point outside the bandSupport vector machines
harmonic mean. The plain average is the arithmetic meanflip, average, flip backConfusion matrix, precision, recall and F1
Hash function; hash value, hash codeThe calculation that turns a name into a number, and that numberHash tables
Hash table, hash map. Holding key-value pairs: symbol table, mappingA table that turns a key into a number to pick a slotHash tables
Hazard function, hazard rateSpeed of events in the next momentSurvival analysis
Hazard ratio (HR)Ratio of two groups' hazardsSurvival analysis
hazard ratio (HR)a ratio of how fast it happens at each momentRisk, relative risk and odds ratio
He initialization, Kaiming initializationHeWeight initialization
headheadDetector architectures: the R-CNN family and YOLO
Heap order, heap invariantThe parent ≤ child ruleHeaps and priority queues
Heapify, heap constructionTurn a list into a heap in placeHeaps and priority queues
HeapsortPut everything in and take it out to sortHeaps and priority queues
height · depth. Some books count links instead of levels, which gives one lessNumber of levels · which level a node is onBinary search trees
HessianTable of how much the bowl curvesNormalization and standardization
Hessianmatrix of second derivativesResponse surface methodology
Hessian matrixtable of all the bendsTaylor approximation
Hessian matrixthe table of second partial derivativesPartial derivatives and the gradient
Hessian matrix. H, ∇²ftable of second derivativesJacobian and Hessian
Hessian-vector productHessian × one arrowJacobian and Hessian
Hibbard deletionDeleting a two-children node by swapping in its successorBinary search trees
hidden replicationeach person's data used for several effectsFactorial designs and interaction
Hidden stateState hₜRNNs and LSTMs
hierarchical clustering, dendrogramgrouping by merging, the tree picturek-means clustering
High precision, low accuracyA narrow but wrong answerConfounding and bias
hit rate, success@kis at least one right answer in the top kRetrieval metrics
HNSW (Hierarchical Navigable Small World) graphNeighbor graphVector search
Hodges-Lehmann estimatorThe median of all pairwise differencesNonparametric tests
Hold-outHolding part of the data backData splits and leakage
homogeneity of regression slopes, parallel slopes assumptionthe slope is the same in every groupANCOVA
homogeneity of variance, homoscedasticitysimilar spreadAnalysis of variance (ANOVA)
homogeneous coordinatesAdding a 1 to coordinates so shifts become matricesLinear transformations
HomoscedasticityThe spread is evenCorrelation and regression
Horizontal asymptoteThe line across that the curve hugs far outLimits and continuity
Horizontal flipFlip left-rightData augmentation
Huber loss. Almost the same: Smooth L1a loss that joins a square and a lineRegression losses
Human-in-the-loopA person approvesAI agents
Hybrid, window attentionA mix of convolution and transformerVision Transformer (ViT)
Hypergeometric distributionDistribution when drawn balls are not put backBinomial and Poisson distributions
HyperparameterSettingHyperparameter search: grid and random
HyperparametersSettingsData splits and leakage
hyperparameterssettings a person picks, like the degree and λOverfitting and generalization
ICP (iterative closest point)pairing with the nearest point, again and againRegistration: from rigid to non-rigid
ideal DCG (IDCG)DCG of the best orderRetrieval metrics
identity column, Ithe column of all +Fractional factorials and confounding
identity mapThe map that leaves everything in placeLinear transformations
identity mapping, identity shortcuta shortcut that adds x unchangedResidual connections (ResNet)
identity matrixtable with 1s on the diagonalOverfitting and generalization
identity matrixthe matrix I that changes nothingEigenvalues and eigenvectors
Identity matrix, IThe do-nothing matrixOrthogonal matrices and inner product spaces
Identity matrix. Written IA matrix that changes nothingMatrix basics
identity matrix. Written Imatrix that does nothingInverse matrix
identity matrix. Written Ithe matrix that changes nothingMatrix multiplication
IDMC, DMC, DSMB (data and safety monitoring board)Independent data monitoring committeeClinical trial design
ill-conditionedhas an answer but is nearly impossible to solveRBF
image registrationaligning imagesRBF
image segmentationa label for every pixelImage segmentation
Immutable, hashableA value that cannot change, a value that has a hash valueHash tables
implicit generative modelA model that makes samples but gives no probabilityGANs
implicit representationstoring as a function3D vision: voxels, point clouds and NeRF
impurity decrease, information gainhow much a cut lowers the mixingDecision trees, random forests and boosting
impurity. Gini impurity, entropyhow mixed a box isDecision trees, random forests and boosting
in-context learning, few-shot promptingPrompting onlyTransfer learning and fine-tuning
in-degreenumber of incoming arrowsTopological sort
in-order traversalWalking left, me, rightBinary search trees
in-order traversalwalk left, node, rightRed-black trees
in-place sortin place, with no second arrayMerge sort and quicksort
in-place sortsorts inside the given arrayElementary sorts
Inclusion and exclusion criteria, eligibilityRules for who can joinClinical trial design
Incomplete block design, balanced incomplete block design (BIBD)Only some treatments per blockBlock designs
indefinite integral. ∫ f(x) dxall the antiderivatives togetherIntegrals
IndependentNot affecting each otherBinomial and Poisson distributions
IndependentNot affecting each otherNormal distribution
IndependentNot affecting each otherSamples, sampling distributions and the standard error
IndependentUnrelatedThe chi-square test
independentknowing one does not change the otherProbability and Bayes' theorem
independent two-sample t-testtwo separate groupsThe t-test
Independent two-sample t-test. Without assuming equal variances: Welch's t-testComparing two groups of different peopleRepeated measures and crossover designs
Indeterminate formThe 0 ÷ 0 formLimits and continuity
IndexA map built ahead of timeVector search
indexingmaking documents searchable ahead of timeRAG
Indirect prompt injectionFalling for instructions hidden in dataAI agents
indirect prompt injectionthe model falling for instructions inside a documentRAG
Inductive biasRules built into the structureVision Transformer (ViT)
InferenceUsing the finished modelNormalization and standardization
inferenceusing a finished modelDropout
inferenceusing a finished modelQuantization
inference. Evaluation mode, eval(), in PyTorchusing the finished modelBatch norm and layer norm
inflation, I3Dadding a time axis to a 2D filter to make it 3DVideo classification: convolution with a time axis
InfoNCE, NT-Xent (normalized temperature-scaled cross entropy)−log of the probability given to the positiveSelf-supervised learning: representations without labels
Informed consent / institutional review board (IRB), research ethics committeeAgreement after explanation / ethics committeeClinical trial design
initial transformation, global registrationthe rough starting placeRegistration: from rigid to non-rigid
injective, one-to-oneDifferent inputs go to different placesLinear transformations
Inner product spaceA space with a dot product chosenOrthogonal matrices and inner product spaces
inner product, scalar product. Written a · bdot productVectors
Input schema, JSON SchemaShape of the values a tool takesAI agents
input, independent variable / output, function value, dependent variableWhat goes in / what comes outFunctions and graphs
Insertion pointWhere a missing value would goBinary search
insertion sortslot into the sorted partElementary sorts
instance segmentation. Both together: panoptic segmentationeach object on its ownImage segmentation
instance-based learning, non-generalizing learningremembering the data instead of trainingk-nearest neighbors
Instruction tuning, supervised fine-tuning (SFT)Instruction tuningHow LLMs are trained
integral, definite integral. ∫ₐᵇ f(x) dxthe area you get by cutting thin and adding upIntegrals
integrandthe function being integratedIntegrals
intention-to-treat (ITT) / per-protocolanalyzing as assigned / only people who finishedRandomization and control groups
Intention-to-treat (ITT), full analysis set / per-protocol (PP) analysisAnalysis as assigned / only those who stuck with itClinical trial design
InteractionThe treatment effect differs by blockBlock designs
interactionan effect that depends on another factorAnalysis of variance (ANOVA)
interaction plot, profile plotinteraction plotFactorial designs and interaction
Interaction termA multiplied columnMultiple regression
interaction; in epidemiology, effect modification is used in a similar sensedifference of differencesFactorial designs and interaction
intercept, y-interceptheight kProjection and least squares
Interim analysis, group sequential designLooking during the trialClinical trial design
Interim analysis, peekingLooking earlyMultiple comparisons
Internal covariate shiftA later layer's input distribution shifting as earlier layers learnNormalization and standardization
InterpolationFill in values between known onesVision Transformer (ViT)
interpolationSmoothing the zigzagObject detection
interpolation matrix, kernel matrixthe table of how much the bumps overlap, ΦRBF
interpolation, scattered data interpolationmaking a curve (surface) through the pointsRBF
Interquartile range (IQR)Width of the middle halfDescriptive statistics
intersection, written A ∩ B. Its probability is the joint probabilityA and BProbability and Bayes' theorem
interval estimate, confidence interval (CI)range around an estimateConfidence intervals
interval of integration, lower and upper limitswhere to start and stop (a, b)Integrals
Intraclass correlation (ICC)How alike one person's values areRepeated measures and crossover designs
intrinsic dimensiondimension of the surfaceManifolds
InvarianceThe answer does not change when the input doesData augmentation
Inverse document frequency (idf)How rare the word isKeyword and hybrid search
inverse function, f⁻¹The function that goes backwardFunctions and graphs
inverse matrixmatrix that undoes itDeterminant
inverse matrix. Written A⁻¹the matrix that undoes a changeMatrix multiplication
inverse matrix. Written A⁻¹, read "A inverse"matrix that undoesInverse matrix
inverse matrix. Written B⁻¹matrix that undoes itBasis and change of coordinates
inversiona pair in the wrong orderElementary sorts
inverted dropoutscaling survivors by 1 ÷ (1 − p)Dropout
Inverted file index (IVF)Splitting into cellsVector search
inverted file index (IVF)searching by splitting into cellsk-means clustering
Inverted index. The row for one word is a posting listTable from words to document numbersKeyword and hybrid search
invertible matrix, nonsingular matrixmatrix that can be undoneInverse matrix
IoU (intersection over union), Jaccard indexOverlap ÷ unionObject detection
IoU (intersection over union), Jaccard indexoverlap ÷ unionImage segmentation
isomorphismA bijective linear mapLinear transformations
isotonic regressionFitting a staircase that never goes downCalibration
Jacobianthe table of slopes of a layerResidual connections (ResNet)
Jacobian determinant. Some books call only this "the Jacobian"determinant of the Jacobian, area factor at that spotJacobian and Hessian
Jacobian matrixthe table that stacks the gradient of each outputPartial derivatives and the gradient
Jacobian matrix. J, ∂(x, y)/∂(r, θ)table of all the partial derivativesJacobian and Hessian
Jeffreys divergence, symmetric KLKL both ways, addedData drift and monitoring models in production
Jensen-Shannon divergenceHow far V sits above −log 4 (how different the two are)GANs
JSON modea service's JSON settingStructured output
JSON Schemaa description of the fields and their typesStructured output
k-fold cross-validationtaking turns as the validation setOverfitting and generalization
k-fold cross-validation, fold, splitk-fold cross-validation, fold, roundData splits and leakage
k-means++ initializationspreading out the starting centersk-means clustering
k-nearest neighbor graphneighbor grapht-SNE and UMAP
k-nearest neighbors (kNN)deciding with the k closest neighborsk-nearest neighbors
k-nearest neighbors (kNN), nearest neighbor searchFinding the k nearestVector search
Kahn's algorithmqueue methodTopological sort
Kaplan-Meier estimator, product-limit estimatorThe staircase curveSurvival analysis
kernel sizefilter sizeReading CNN architectures
kernel trickcomputing only K instead of moving the inputsRBF
kernel, null spaceArrows squashed to 0Linear transformations
kernel: linear, polynomial, rbf, sigmoidchoosing the function φ that maps to more dimensionsSupport vector machines
KeyThe label a word showsAttention
key (K), value (V). The new token's side is the query (Q)The label and content of an earlier tokenContext windows and the KV cache
KL divergence (Kullback-Leibler divergence)the gap leftLabel formats
KL divergence (Kullback-Leibler divergence), relative entropyextra surprise from a wrong predictionEntropy and cross-entropy
Knowledge distillationTeaching a small model with a big model's probabilitiesSoftmax and sampling
knowledge distillationa small model learning a big model's probabilitiesEntropy and cross-entropy
knowledge distillationa small model learns a big model's answersQuantization
knowledge distillationmaking a small model that copies a big oneFine-tuning and LoRA
knowledge distillation. The big model is the teacher, the small one the studentteaching a small model with a big model's probabilitiesLabel formats
Kolmogorov-Smirnov test, a two-sample testKS testData drift and monitoring models in production
Kruskal-Wallis testANOVA with ranksAnalysis of variance (ANOVA)
Kruskal-Wallis test, H statisticComparing three or more groups by rankNonparametric tests
Kullback-Leibler (KL) divergenceHow different two distributions areAutoencoders and VAEs
Kullback-Leibler (KL) divergencegap between two lists of chancest-SNE and UMAP
Kullback-Leibler divergenceKLData drift and monitoring models in production
KV cachesaving the K and V of earlier tokensTransformers and LLMs
KV cachestored keys and values of earlier tokensQuantization
KV cache (key-value cache)The stored K and VContext windows and the KV cache
L1 regularization, lassoAbsolute value penaltyWeight decay and L1/L2 regularization
L1 regularization, lassoabsolute value penaltyOverfitting and generalization
L2 normalizationmaking the length 1Metric learning: learning a distance
L2 regularization, ridge regression, weight decaysquared penaltyOverfitting and generalization
L2 regularization, ridge, Tikhonov regularizationSquared penaltyWeight decay and L1/L2 regularization
label delayLabels come lateData drift and monitoring models in production
label shift, prior probability shiftThe label mix changesData drift and monitoring models in production
label smoothingGiving the right answer 1 − ε instead of 1Calibration
label smoothingtaking some off the answer and sharing it over every classLabel formats
late fusionlook at each frame on its own, combine at the endVideo classification: convolution with a time axis
Latent diffusion model (LDM)Diffusion in the smaller spaceDiffusion models
latent Dirichlet allocationThe other LDA with the same nameLinear discriminant analysis (LDA)
Latent spaceThe space z lives inAutoencoders and VAEs
Latent space, latentSmaller space, small grid of numbersDiffusion models
latent space, latent representationcoordinates of the unrolled surfaceManifolds
Lateral inhibitionNeighbors compete and the weaker one is pushed downPooling and receptive fields
Latin squareA grid that blocks two directionsBlock designs
layer normalizationsetting each row to mean 0 and size 1Transformers and LLMs
Layer normalization (LN)Rescaling within one exampleNormalization and standardization
layer normalization (LN)normalizing within one exampleBatch norm and layer norm
leaf, leaf nodean end box with nowhere to goDecision trees, random forests and boosting
Learned positional embedding, absolute positionA table that learns one row per positionPositional encoding
Learning curve. Some books use the same name for score versus amount of training dataLoss per epoch, plottedEarly stopping and reading learning curves
Learning rateStep sizeLogistic regression
Learning rateStep size ηWeight decay and L1/L2 regularization
learning rateStep sizeEmbedding models: one vector per sentence
learning ratehow far one update movesThe training loop: one step, one epoch
learning ratestep sizeBackpropagation
learning ratestep sizeGradient descent
learning ratestep sizeNeural networks
learning rate (η)the size of a stepBatch size and gradient accumulation
learning rate (η, lr), step sizesize of one stepLearning rate schedules
learning rate schedule, schedulera rule that sets the learning rate at each stepLearning rate schedules
learning rate, shrinkagethe small share added each timeDecision trees, random forests and boosting
learning rate, step sizestep size ηJacobian and Hessian
Learning rate, step size (α)Learning rateReinforcement learning
learning rate, step size. ηstep sizePartial derivatives and the gradient
learning rate. ηstep sizeTaylor approximation
least squaresmake the sum of squared misses as small as possibleRBF
least squaresthe line with the smallest squared errorRegression losses
least squares line, regression linebest-fit lineProjection and least squares
Leave-one-out (LOO)Leaving one out at a timeData splits and leakage
left / right Riemann sumleft end / right endIntegrals
left rotation, right rotationrotate left, rotate rightRed-black trees
left singular vectorsthe two output directions u1, u2Singular value decomposition
Left-hand limit / right-hand limit. lim x→a⁻, lim x→a⁺The value from the left / from the rightLimits and continuity
left-leaning red-black BST (LLRB)left-leaning red-black treeRed-black trees
Legendre polynomials. Polynomials that are orthogonal to each other between −1 and 1Legendre polynomialsOverfitting and generalization
Length extrapolationUsing a model on text longer than in trainingPositional encoding
levela value a factor can takeFactorial designs and interaction
Lexical search, sparse retrieval, full-text searchKeyword searchKeyword and hybrid search
lg n (log base 2)log₂ nRed-black trees
LIFO, last in first outstack (newest out first)Graph search: BFS and DFS
likelihoodchance of this evidence if that case is trueProbability and Bayes' theorem
likelihood ratio (LR+, LR−). LR+ ÷ LR− is the diagnostic odds ratiohow much one result multiplies the "disease : no disease" ratioDiagnostic tests and the ROC curve
limit. lim h→0as h gets closer to 0Derivatives and the chain rule
Limit. lim x→a f(x)The value it is heading forLimits and continuity
linear approximation, linearizationup close, it is a matrixJacobian and Hessian
linear combinationstretch, then addLinear combinations and span
linear combinationstretching and addingBasis and change of coordinates
linear combinationstretching and addingRank
linear combination. Reading A by columns is the column picturebuilding b from multiples of the columnsCramer's rule
linear discriminant analysis (LDA), Fisher's linear discriminantThe method on this pageLinear discriminant analysis (LDA)
linear equationan equation where x and y are only multiplied by numbers and addedLinear systems and elimination
linear evaluation, linear probingfreeze the encoder, train only a linear classifierSelf-supervised learning: representations without labels
linear functionA straight-line functionFunctions and graphs
linear projectionsquashing in straight linesManifolds
linear projection, principal component analysis (PCA)squashing along straight linest-SNE and UMAP
linear scaling ruleraising the learning rate with the batchBatch size and gradient accumulation
linear search · binary searchone by one from the front · cutting in halfTime complexity (Big O)
Linear search, sequential searchCheck from the front, one by oneBinary search
linear transformationchanging the planeDeterminant
linear transformationchanging the planeMatrix multiplication
Linear transformation (linear map)A rule from n dimensions to m dimensionsMatrix basics
linear transformation, linear mapA function that keeps sums and scalingLinear transformations
linear, affine transformationStraight line (only multiply and add)Activation functions
linearly dependentlying on one line (something is extra)Basis and change of coordinates
linearly dependentone can be made from the othersLinear combinations and span
linearly independentcolumns that do not repeat each otherRank
linearly independentnone can be made from the othersLinear combinations and span
linearly independentnothing is extraBasis and change of coordinates
Linearly separableCan be split by one straight lineLogistic regression
linearly separablesplittable by one straight lineNeural networks
link, arc (when it has a direction)edgeGraph search: BFS and DFS
LLMlarge language modelTransformers and LLMs
LLM-as-a-judgehaving an LLM grade answersHallucination and evaluating LLMs
LLM-as-a-judgeusing an LLM as the graderRetrieval metrics
Lloyd's algorithmthe two steps, repeatedk-means clustering
lo, hi, mid (low, high, middle)Left end, right end and middle of the rangeBinary search
Load factor (α)How full it isHash tables
local gradienta box's own slopeBackpropagation
local gradient. With many values, the Jacobian matrixa layer's ratioVanishing and exploding gradients
local minimumlowest only in its neighborhoodk-means clustering
local minimumstopping in the wrong placeRegistration: from rigid to non-rigid
local minimum / local maximumbottom / topDerivatives and the chain rule
local minimum / local maximumbottom / topJacobian and Hessian
Local response normalization (LRN)Neighboring channels press each other downPooling and receptive fields
LocalityNearby firstVision Transformer (ViT)
log-odds, logitthe log of the oddsRisk, relative risk and odds ratio
Log-rank test, Mantel-Cox testComparing two curvesSurvival analysis
Log-uniform distribution, loguniformSampling evenly on a log scaleHyperparameter search: grid and random
logarithm, log_b xHow many times you multipliedFunctions and graphs
logarithm. With base e, the natural logarithm (ln)how many times you multiplyEntropy and cross-entropy
Logarithmic scaleA scale where each step is 10 times biggerLimits and continuity
logarithmic scaleA scale where equal steps mean equal multipliersFunctions and graphs
Logarithmic time, O(log n)Double the cells, one more lookBinary search
LogitScoreSoftmax and sampling
logitThe score before it becomes a probabilityCalibration
logitscoreLabel formats
Logit, log-oddsScore zLogistic regression
logitsscores from the final linear layerTransformers and LLMs
logitsthe scores before softmaxStructured output
loop, circuitcycleGraph search: BFS and DFS
LoRA (Low-Rank Adaptation)training the change as a product of two small matricesFine-tuning and LoRA
LOSO (leave-one-site-out); leaving a person out is leave-one-subject-out. LeaveOneGroupOut in scikit-learnLeaving a whole site outData splits and leakage
lossThe value to make smallEmbedding models: one vector per sentence
loss function, cost functionwrongness as one numberRegression losses
loss, cost, objective functionhow wrong the answer isBackpropagation
loss, loss functionhow wrong the model isEntropy and cross-entropy
loss, objective functionheightGradient descent
loss. The one used here is binary cross-entropyhow wrong it isNeural networks
lost in the middleLosing the middleContext windows and the KV cache
Lost to follow-up, dropoutLost contact, result unknownClinical trial design
low-rank approximation, truncated SVDdropping the small onesSingular value decomposition
Lower bound (bisect_left), upper bound (bisect_right)First spot where a condition turns trueBinary search
LRNlocal response normalizationReading CNN architectures
LU decomposition, LU factorizationkeeping the elimination record as two matricesLinear systems and elimination
m by n matrixSize m×nMatrix basics
Maclaurin seriesa Taylor series centered at 0Taylor approximation
macro averagescore each class, then averageConfusion matrix, precision, recall and F1
macro-averageaveraging with every question weighted the sameRetrieval metrics
magnitude, norm. Written ‖a‖lengthCross product
magnitude, norm. Written ‖a‖lengthVectors
magnitude, norm. Written ‖a‖ or ‖a‖lengthDot product
Main diagonalEntries from top left to bottom rightMatrix basics
main effectthe average effectFactorial designs and interaction
majority class, minority classcommon class, rare classClass imbalance
majority vote, uniform weights · distance weightsone vote per neighbor · 1 ÷ distance votesk-nearest neighbors
manifolda surface that is flat up close and curved as a wholeManifolds
manifold hypothesisthe idea that data gathers near a narrow surfaceManifolds
manifold learning, nonlinear dimensionality reductionmethods that unroll a curved surfaceManifolds
manifold, nonlinear structurecurved shapet-SNE and UMAP
Mann-Whitney U statisticThe number of pairs where A is biggerNonparametric tests
Mann-Whitney U test, Wilcoxon rank-sum test, Wilcoxon-Mann-Whitney testComparing two groups by rankNonparametric tests
Many-to-one, one-to-many, many-to-manyInput and output shape (many → one, one → many, many → many)RNNs and LSTMs
mAP (mean average precision)AP averaged over typesObject detection
map, mapping, functionA rule that assigns one element to each elementLinear transformations
marginmargin, the bandSupport vector machines
marginthe slack a different thing must keepMetric learning: learning a distance
margin boundaryedge of the bandSupport vector machines
margin of errorHalf-width of a confidence intervalSample size calculation
margin of errorhalf-widthConfidence intervals
marginal probability, evidence. Adding up the two ways is the law of total probabilityoverall chance of the evidenceProbability and Bayes' theorem
Marginal totals, grand total (N)Row totals, column totals, overall totalThe chi-square test
marked[] array, visited setvisited markGraph search: BFS and DFS
mask, drawn from a Bernoulli distributionthe keep/drop pattern mDropout
mask, instance segmentationmask, painting each object separatelyDetector architectures: the R-CNN family and YOLO
mask, segmentation mappainted mapImage segmentation
mask, token maskthe table mStructured output
masked autoencoder (MAE)hide, then rebuildSelf-supervised learning: representations without labels
Masked language modeling (MLM)Guess the hidden wordHow LLMs are trained
masked language modeling / next-token predictionGuess the hidden words / guess the next tokenEncoders and decoders: three kinds of transformer
masked self-attention, causal maskSelf-attention that looks only backEncoders and decoders: three kinds of transformer
masking ratio · mask tokenthe share hidden · the vector meaning "hidden spot"Self-supervised learning: representations without labels
Matched pairs design. Analyzed with the paired t-testA block of size 2Block designs
MatrixA table of numbers across and downMatrix basics
matrixnumbers laid out in a rectangleMatrix multiplication
matrix multiplicationmultiplying matricesInverse matrix
matrix of a linear transformation, standard matrixThe matrix with T(e₁), T(e₂) as columnsLinear transformations
Max iterations, stopping conditionStep limitAI agents
Max poolingKeep the biggest of four cellsConvolution and CNNs
max poolinglargest value in each slot3D vision: voxels, point clouds and NeRF
Max pooling, average poolingKeep the largest, keep the averagePooling and receptive fields
Max sequence length, context windowThe most text a model takes at onceChunking
max tokensthe limit on how long the answer can beStructured output
Maximum likelihood estimation (MLE)Finding the coefficients that make the data most likelyLogistic regression
maximum softmax probabilityConfidenceData drift and monitoring models in production
MCP (Model Context Protocol)Standard way to connect toolsAI agents
mean absolute error (MAE), L1 lossaverage error sizeRegression losses
mean reciprocal rank (MRR)average of RRRetrieval metrics
Mean square (MS)Sum of squares ÷ degrees of freedomBlock designs
mean square (MS): MSB, MSW (MSE)sum of squares ÷ degrees of freedomAnalysis of variance (ANOVA)
mean squared error (MSE)average of (actual − curve)²Overfitting and generalization
mean squared error (MSE)sum of squares ÷ number of pointsProjection and least squares
mean squared error (MSE), L2 lossaverage squared errorRegression losses
Mean squared error (MSE), lossSquared and averaged errorDiffusion models
Measurement bias, information bias, misclassificationTilt from measuring wrongConfounding and bias
mechanistic interpretabilitymaking a model's computation readableGrokking: generalizing long after memorizing
medianmiddle value when lined up by sizeThe t-test
medianthe middle valueRegression losses
Median / modeValue in the middle / most frequent valueDescriptive statistics
Median survival timeWhen the curve first reaches 50% or lessSurvival analysis
median-of-threethe middle one of three valuesMerge sort and quicksort
MediatorA factor that carries the effect in betweenConfounding and bias
memoization, top-downRecurse from the top and write answers downDynamic programming
MemorizationReturning the data as isDiffusion models
memorization · circuit formation · cleanupthe three phasesGrokking: generalizing long after memorizing
mergemergingFine-tuning and LoRA
merge, mergesortjoining two sorted listsMerge sort and quicksort
merges, merge tablemerge rulesTokenization
mesh, vertex, facecorners and triangle faces3D vision: voxels, point clouds and NeRF
MetadataExtra information attached to a chunkChunking
Metadata filteringNarrowing the search by that informationChunking
Metadata filtering. Filtering first is pre-filtering, filtering after is post-filteringFilteringVector search
metric learning, distance metric learninglearning a distanceMetric learning: learning a distance
micro averageadd up all counts, then score onceConfusion matrix, precision, recall and F1
midpoint rulemiddleIntegrals
Min-max normalization, min-max scalingSqueezing into 0 to 1Normalization and standardization
min_deltaSmallest drop that counts as betterEarly stopping and reading learning curves
Mini-batchSmall group of examplesNormalization and standardization
mini-batcha bundle of data pointsBackpropagation
mini-batchbatch, batch sizeThe training loop: one step, one epoch
mini-batch, batchthe group of examples behind one updateBatch size and gradient accumulation
mini-batch. Its size is the batch sizea batchBatch norm and layer norm
minibatch stochastic gradient descent (minibatch SGD). In the narrow sense, B = 1 is stochastic gradient descent (SGD), and the whole data set is batch gradient descentgradient descent on batchesGradient descent
minibatch stochastic gradient descent (minibatch SGD). In the narrow sense, batch 1 is SGD and the full batch is batch gradient descentgradient descent with batchesBatch size and gradient accumulation
Minimal clinically important difference (MCID)The smallest difference worth caring aboutClinical trial design
minimax game, adversarial trainingA contest where one side pushes up and the other pushes downGANs
minimum / local minimumbottom / shallow valleyGradient descent
minimum spanning forestone tree for each piece of a graph in piecesMinimum spanning trees
minimum spanning tree (MST)Lines that connect every point as short as possibleGreedy algorithms
minimum spanning tree (MST)spanning tree with the smallest totalMinimum spanning trees
minor, Mᵢⱼdeterminant left after crossing out a row and a columnCramer's rule
Missing data, dropoutMissing values, people who stop comingRepeated measures and crossover designs
Mixed model, mixed-effects model. Each person's base level is a random interceptA model that gives each person their own base levelRepeated measures and crossover designs
mixed partial derivative. f_xy, ∂²f/∂x∂yderivative by x, then by yJacobian and Hessian
mixed precisiontrain with 16 and 32 bits mixedQuantization
mixed precision. The multiply-then-divide trick is loss scalingcomputing with a mix of 16-bit and 32-bit numbersBatch size and gradient accumulation
mixupBlending two picturesData augmentation
MLP, feed-forward network (FFN)small neural networkTransformers and LLMs
modalitya kind of data (image, text, sound)Multimodal learning: how CLIP puts images and text in one space
modePeakGANs
Mode collapseMaking only a few kinds of output again and againAutoencoders and VAEs
mode collapseMaking only a few kindsGANs
Model dimension (d_model)Number of dimensions dPositional encoding
model dimension, hidden size (d_model)dimensionsTransformers and LLMs
model monitoringMonitoringData drift and monitoring models in production
model.train(), model.eval()training mode, evaluation modeThe training loop: one step, one epoch
modular addition, modular arithmeticclock arithmeticGrokking: generalizing long after memorizing
Modular hashingPicking the slot by the remainderHash tables
momentum coefficient (momentum)inertiaGradient descent
momentum. Not the same meaning as momentum in optimizersthe 0.1 mixing rateBatch norm and layer norm
Monotone predicateA condition that is true from some point onBinary search
Monte Carlo dropoutkeeping dropout on at inference and running many timesDropout
Monte Carlo integrationestimating with random pointsIntegrals
Monte Carlo simulationRunning the study many times on made-up dataSample size calculation
Multi-agent systemSplitting work across agentsAI agents
Multi-armed banditThe row of slot machines problemReinforcement learning
multi-class classificationpicking one of the fourLabel formats
multi-head attentionattention with several headsEncoders and decoders: three kinds of transformer
Multi-head attention, headSeveral side by sideAttention
multi-label classification. The answer bar is multi-hotis each one there or notLabel formats
MulticollinearityInputs that look too much alikeMultiple regression
multilayer perceptron (MLP), fully connected network, feedforward networkthis page's stacked networkNeural networks
multimodal learninghandling different kinds of data togetherMultimodal learning: how CLIP puts images and text in one space
multiple comparison correction, Bonferroni correctionStricter thresholds for many testsData drift and monitoring models in production
Multiple comparisons, multiple testingRunning many testsMultiple comparisons
Multiple linear regressionRegression with several inputsMultiple regression
Multiple regression / partial regression coefficientRegression with several x values / the slope holding the others fixedCorrelation and regression
multiply-adds, FLOPs (papers count them slightly differently)number of multiply-addsReading CNN architectures
multivariable chain rulethe chain rule that adds the parts from split pathsPartial derivatives and the gradient
multivariate test (MVT)multivariate test on the webFactorial designs and interaction
mutually exclusive, disjointcannot both happenProbability and Bayes' theorem
N-Queens problemPlacing queensBacktracking
n-th derivative. f⁽ⁿ⁾the derivative taken n timesTaylor approximation
nabla, delthe ∇ signPartial derivatives and the gradient
naive Bayesa Bayes classifier that treats words as independentProbability and Bayes' theorem
NaNnot a numberBatch norm and layer norm
NaN, infnot a number, infinityVanishing and exploding gradients
natural history, natural coursegetting better anywayRandomization and control groups
Natural logarithm and the exponential function, inverse functions of each otherln and e^ (a pair that undo each other)Logistic regression
natural logarithm, ln xThe logarithm with base eFunctions and graphs
nearest neighbor search, k-NNfinding the few closestEmbeddings
nearest-neighbor interpolation, bilinear interpolationcopy the nearest cell, weighted average of neighborsImage segmentation
negative cycleloop whose lengths add up to a negative numberDijkstra's algorithm
Negative log-likelihood (NLL), cross-entropy−ln of the probability given to the right tokenHow LLMs are trained
negative log-likelihood (NLL), cross-entropyAverage −log of the probability given to the real answerCalibration
negative log-likelihood (NLL), log loss−log of the chance given to the right answerEntropy and cross-entropy
negative predictive value (NPV)share of healthy people among the negativesDiagnostic tests and the ROC curve
neighbor listadjacency listGraph search: BFS and DFS
Nested cross-validationCross-validation inside cross-validationData splits and leakage
Nested cross-validation ("cross-validation inside cross-validation" on the data splits page)Nested cross-validationHyperparameter search: grid and random
neural radiance field (NeRF)network that holds a scene3D vision: voxels, point clouds and NeRF
neuron, unitUnitWeight initialization
Newton's methodjumping to where the paraboloid is flatJacobian and Hessian
Newton's methodmoving to the vertex of the parabola, again and againTaylor approximation
Next-token prediction, causal language modeling, autoregressive modelGuessing the next tokenHow LLMs are trained
Node, root, leafNode, empty board, full boardBacktracking
node, split, thresholdone question, its thresholdDecision trees, random forests and boosting
noise, latent variableA bundle of random numbers zGANs
non-convergenceThe two chase each other and never settleGANs
Non-differential / differential misclassificationWrong the same way in each group / differentlyConfounding and bias
Non-inferiority margin, equivalence marginThe margin MClinical trial design
Non-informative censoring, independent censoringCensoring unrelated to the eventSurvival analysis
non-maximum suppression (NMS)Removing duplicate boxesObject detection
non-rigid registration, deformable registration, displacement fielda different shift at each spotRegistration: from rigid to non-rigid
non-saturating lossGenerator loss that makes log D(G(z)) bigGANs
nonlinear structure, manifoldcurved shapePrincipal component analysis
Nonparametric test, distribution-free testA test that does not assume a bell shapeNonparametric tests
nonparametric tests: Mann–Whitney U, Wilcoxontests that compare ranksThe t-test
normtotal length of the gradientVanishing and exploding gradients
Norm, Euclidean norm. Written ‖v‖LengthVectors in n dimensions
Norm, ‖v‖LengthOrthogonal matrices and inner product spaces
Normal approximationBinomial as a bell shape when n is largeBinomial and Poisson distributions
normal approximation / calculation with the noncentral t distributionCalculation treating σ as known / estimating σSample size calculation
Normal distribution, Gaussian distributionBell-shaped distributionNormal distribution
Normal equationsThe equations that set the coefficientsMultiple regression
normal equationsAᵀA x = AᵀbProjection and least squares
normal vectorarrow standing straight out of a surfaceCross product
normalizationmaking the length 1Embeddings
Normalization, L2 normalizationMaking every length 1Vector search
normalization. A vector of length 1 is a unit vectormaking the length 1Dot product
normalized DCG (nDCG)DCG ÷ IDCGRetrieval metrics
novel view synthesisdrawing from a new angle3D vision: voxels, point clouds and NeRF
Nuisance factorSomething that shakes the result but is not of interestBlock designs
Null distributionThe distribution of values you would see with no effectHypothesis testing and the p-value
Null hypothesis (H₀)The "unrelated" assumption used as a baselineThe chi-square test
Null hypothesis (H₀)The assumption "no difference"Hypothesis testing and the p-value
null hypothesis (H₀)the idea that the two means are equalThe t-test
null hypothesis (H₀) / alternative hypothesis (H₁)all means are equal / at least one is differentAnalysis of variance (ANOVA)
null hypothesis (H₀) / alternative hypothesis (H₁)the "no effect" assumption / the "there is an effect" assumptionType I and type II errors, and statistical power
Null hypothesis / null distributionAssuming the groups are the same / the distribution of the statistic thenNonparametric tests
null link (counted as black)empty spotRed-black trees
null space, kernelevery answer to A·x = 0Vector spaces and subspaces
null space, kernelinputs that vanish to 0Rank
nullitydimension of the null spaceRank
number needed to treat (NNT). For harm, some write NNH (number needed to harm), but the Cochrane Handbook says it can mislead and suggests NNTB and NNTH (number needed to treat for one more beneficial or harmful outcome)one in how manyRisk, relative risk and odds ratio
number of compares (comparisons)how many comparesMerge sort and quicksort
number of dimensions (ndim), rank. Not the rank of a matrixthe number of axesTensors and shapes: axes, shape and broadcasting
number of events, hazard ratio (HR)Number of events, ratio of risks over timeSample size calculation
Number of probes. Some libraries call it nprobeCells to checkVector search
numerical differentiation, finite differencecomputing directly with a small hDerivatives and the chain rule
numerical differentiation, finite differencesnudging weights one at a timeBackpropagation
numerical integration, quadratureadding bars with a computerIntegrals
O(n log n), O(n²); linearithmic, quadraticn·log n, n²Merge sort and quicksort
O(n²), quadratic timedouble n, four times the workElementary sorts
object detectionFinding objectsObject detection
objective, within-cluster sum of squares, inertia (scikit-learn)sum of squared distances Jk-means clustering
objectness scoreobjectness scoreDetector architectures: the R-CNN family and YOLO
Observational studyA study where researchers only watch and do not assign the treatmentConfounding and bias
observational studya study that only watches and recordsRandomization and control groups
Observed and expected countsObserved / expected eventsSurvival analysis
Observed frequencyCount OThe chi-square test
OddsChance it happens ÷ chance it does notLogistic regression
odds"disease : no disease" ratioProbability and Bayes' theorem
oddspeople it happened to ÷ people it did notRisk, relative risk and odds ratio
Odds ratio (OR)How many times the odds get multiplied when x goes up by 1 (e^b₁)Logistic regression
odds ratio (OR), cross-product ratioone odds divided by anotherRisk, relative risk and odds ratio
Off-policy learningLearning "as if acting best from now on"Reinforcement learning
offline evaluation / online metrics, A/B testmeasuring with a ready-made set / measuring with real useRetrieval metrics
Okapi BM25. BM stands for best matchingBM25Keyword and hybrid search
one-factor-at-a-time (OFAT)changing one thing at a timeFactorial designs and interaction
one-factor-at-a-time (OFAT)changing one thing at a timeResponse surface methodology
One-hot vectorAn answer with a 1 only in the right slotData augmentation
one-hot vectora bar with a 1 in one slotLabel formats
one-hot vectorlist with 1 only for the right answerEntropy and cross-entropy
one-hot vectorvector with a 1 only in its own slotEmbeddings
one-sample t-testone group against a reference valueThe t-test
one-sided (one-tailed) test / two-sided (two-tailed) testa test that looks one way / both waysType I and type II errors, and statistical power
One-sided limitA limit looking at only one roadLimits and continuity
One-sided test / two-sided testOne direction only / both directionsHypothesis testing and the p-value
one-stage detector, two-stage detectorOne-stage, two-stageObject detection
one-stage detector, two-stage detectorone-stage, two-stageDetector architectures: the R-CNN family and YOLO
One-way ANOVAAnalysis ignoring blocksBlock designs
Open addressing, linear probingFinding the next empty slotHash tables
optical flow, dense optical flowwhich way and how far each place moved between framesVideo classification: convolution with a time axis
optimal discriminatorThe best discriminator D*GANs
optimal solutionThe best overall answerGreedy algorithms
optimal substructureThe best small answers build the best big answerDynamic programming
Optimistic initial valuesStarting values that make untried things look goodReinforcement learning
optimizerthe thing that updates the weightsThe training loop: one step, one epoch
optimizerway of going downGradient descent
optimizer · interpolation, bilinear interpolationthe way to adjust the numbers · filling in values between pixelsRegistration: from rigid to non-rigid
Order effect, practice effect, fatigue effectOrder, practice and tiredness getting mixed inRepeated measures and crossover designs
Ordinal dataData where only the order means somethingNonparametric tests
orientation is reversedflippedDeterminant
orthogonal matrixa matrix that only turns (sometimes flips), like U and VSingular value decomposition
Orthogonal projectionShadowOrthogonal matrices and inner product spaces
orthogonal projectionShadow dropped at a right angle onto a lineLinear transformations
orthogonal projectionthe point you reach at a right angle, the shadowProjection and least squares
orthogonal projection. Its position number is the principal component scoreshadow, the point reached at a right anglePrincipal component analysis
orthogonal, perpendicularat a right angle (dot product 0)Projection and least squares
Orthogonal. The dot product is 0At right anglesOrthogonal matrices and inner product spaces
Orthonormal basisBase arrows of length 1 at right anglesOrthogonal matrices and inner product spaces
orthonormal basisarrows at right angles with length 1Basis and change of coordinates
orthonormal basisbase arrows at right angles, each of length 1Projection and least squares
Outcome switching / HARKing (hypothesizing after the results are known)Swapping the measure after seeing results / making up the hypothesis afterClinical trial design
OutlierA far-away valueNormalization and standardization
OutlierA value far from the restDescriptive statistics
outliera far-off pointProjection and least squares
outliera value far from the restRegression losses
outlierfar-away valueQuantization
Outlier / high-leverage point, influential pointA stray point / a point alone that sets the lineCorrelation and regression
outputs (shifted right)outputs moved one place backEncoders and decoders: three kinds of transformer
Overall type I error rateTotal false alarm chanceClinical trial design
overconfidencebeing too sureLabel formats
overconfidence / underconfidenceRight less often / more often than it saysCalibration
OverdispersionVariance bigger than the meanBinomial and Poisson distributions
OverfittingMemorizing the training dataData augmentation
overfittingfits the training data but gets new data wrongOverfitting and generalization
overfittingmemorizing the training dataNeural networks
overfitting · generalizationgetting only the training data right · getting unseen data right tooGrokking: generalizing long after memorizing
Overlapping poolingPooling with overlapping windowsPooling and receptive fields
overlapping poolingoverlapping poolingReading CNN architectures
overlapping subproblemsThe same small problems come up again and againDynamic programming
oversampling, undersampling, SMOTEputting in more, using fewerClass imbalance
p-hackingTrying other paths until something is significantMultiple comparisons
p-hacking, data dredgingLooking many times and keeping the bestHypothesis testing and the p-value
p-valueThe area of the right tailThe chi-square test
p-valueThe chance of a result this extremeHypothesis testing and the p-value
p-valuechance of a t this big by luck aloneThe t-test
p_tprobability given to the right classClass imbalance
PaddingExtra cells on the edge, PPooling and receptive fields
padding · stridethe 0s around the edge · cells moved each timeVideo classification: convolution with a time axis
Padding, zero paddingA ring of 0s around the imageConvolution and CNNs
padding, zero paddingring of zeros around the edgeReading CNN architectures
Paired data. McNemar's testData where the same people are counted twiceThe chi-square test
paired design / crossover designMeasuring the same people twice / both drugs in turnSample size calculation
Paired samples / independent samplesTwo values from the same person / different peopleNonparametric tests
Paired t-testComparing before and after in pairsRepeated measures and crossover designs
paired t-test, paired samplessame people before and after, matched pairsThe t-test
parallelpointing along one lineCross product
Parallel coordinatesn vertical axes with one bent lineVectors in n dimensions
Parallel group / crossover / factorial / cluster randomized designParallel / crossover / factorial / cluster randomized designsClinical trial design
parallel, collinearon one lineLinear combinations and span
ParameterThe population's numbers μ, σ, pSamples, sampling distributions and the standard error
Parameter / parametric testNumbers that set a distribution / a test that assumes themNonparametric tests
Parameter space: param_grid for a grid, param_distributions for random searchParameter spaceHyperparameter search: grid and random
Parameter, weightValue training decidesHyperparameter search: grid and random
parameter-efficient fine-tuning (PEFT)fine-tuning that trains only a few numbersFine-tuning and LoRA
parameter; for a mean, the population mean μtrue valueConfidence intervals
parameters, weightsnumbers set by trainingReading CNN architectures
parameters, weightsthe values that are learnedThe training loop: one step, one epoch
parameters, weightsvalues set by trainingTransformers and LLMs
parametric memory / non-parametric memoryknowledge in the weights / the outside document indexRAG
Parent-child retrieval, small-to-bigSearch with small chunks, hand over big chunksChunking
partial derivative. All of them together make the gradient (vector)the gradient ∂L/∂wBackpropagation
partial derivative. ∂f/∂xthe slope when you move only one inputDerivatives and the chain rule
partial derivative. ∂f/∂x, fxthe slope when you move only one inputPartial derivatives and the gradient
partial pivotingmoving the row with the largest number upLinear systems and elimination
Partial regression coefficient, adjusted coefficientThe slope with the other inputs held fixedMultiple regression
partially sorted arrayalmost sorted inputElementary sorts
partitionmoving values to the smaller or larger sideMerge sort and quicksort
passone round over the arrayElementary sorts
PatchPiece, square pieceVision Transformer (ViT)
Patch embedding, linear projectionFlatten a patch into a vectorVision Transformer (ViT)
path compressionpointing straight at the leaderMinimum spanning trees
PatienceHow many times to wait, pEarly stopping and reading learning curves
Pearson correlation coefficient, rHow closely they move together (−1 to 1)Correlation and regression
Pearson's chi-squared statistic (χ²)The sum of how far off each cell isThe chi-square test
Peek, find-minLook at the topHeaps and priority queues
per-tensor, per-channel, per-group quantizationone grid per layer, per channel, per groupQuantization
percentage points (pp)percentage pointsRisk, relative risk and odds ratio
perfect black balancesame number of black linksRed-black trees
Period effectA change everyone gets in the later periodRepeated measures and crossover designs
Permutation equivarianceShuffle the inputs and the outputs come out shuffled the same wayPositional encoding
permutation invariancesame answer in any order3D vision: voxels, point clouds and NeRF
Permutation test, randomization testShuffling labelsHypothesis testing and the p-value
Permutation test, randomization testShuffling labelsNonparametric tests
Permutation, combinationOrderings, picking some itemsBacktracking
perpendicular, orthogonalat a right angleCross product
perpendicular, orthogonal. Written a ⊥ bat a right angleDot product
perplexityabout how many neighborst-SNE and UMAP
perplexityhow many options the model was torn betweenEntropy and cross-entropy
Perplexity (PPL)How many tokens it is choosing betweenHow LLMs are trained
Phase 1 to 3 trials, post-marketing surveillance (phase 4)Phases 1 to 4Clinical trial design
PipelinePreprocessing and model wrapped as oneData splits and leakage
pivotthe value you split aroundMerge sort and quicksort
pivot, leading entryfirst nonzero number in each rowRank
pivot, leading entryfirst number in a row that is not 0Linear systems and elimination
PixelCellConvolution and CNNs
pixel accuracyright cells ÷ all cellsImage segmentation
PlaceboA pill with no active ingredientHypothesis testing and the p-value
placebodummy pillType I and type II errors, and statistical power
placebo effect / placeboexpectation / a fake without the active ingredientRandomization and control groups
PlanningWriting a to-do list firstAI agents
Platt scalingFitting a logistic regression on the scoresCalibration
point cloudlist of points3D vision: voxels, point clouds and NeRF
point-to-point · point-to-plane, normaldistance between partners · distance straight out of the surfaceRegistration: from rigid to non-rigid
Pointwise confidence interval, Greenwood's formulaBand worked out at each timeSurvival analysis
Poisson approximationBinomial as Poisson when n is large and p smallBinomial and Poisson distributions
Poisson distributionDistribution of counts in a fixed stretch of time or areaBinomial and Poisson distributions
Policy (π)Rule for which action to take in each stateReinforcement learning
Policy gradient, REINFORCE, actor-criticChanging action probabilities directlyReinforcement learning
polygonal approximation of arc lengthadding short straight lines in orderManifolds
Pooling window, kernel sizeWindow, window size KPooling and receptive fields
Pooling, downsamplingShrink by summing up each windowPooling and receptive fields
pooling, max pooling, subsamplingshrinkingReading CNN architectures
pooling. Mean pooling, CLS poolingGathering many rows into oneEmbedding models: one vector per sentence
PopulationThe whole group you want to know aboutSamples, sampling distributions and the standard error
population / samplethe whole group / the few people pickedConfidence intervals
population stability indexPSIData drift and monitoring models in production
Population variance (σ²) / sample variance (s²)Variance divided by n / by n − 1Descriptive statistics
Population variance / sample varianceVariance divided by n / by n − 1Normal distribution
position bias, verbosity bias, self-enhancement biasjudge leans (position, length, its own answers)Hallucination and evaluating LLMs
Position embeddingVector added for each placeVision Transformer (ViT)
Positional encodingPosition informationAttention
Positional encoding, position embeddingA vector that says which positionPositional encoding
positional encoding. Learned ones: learned positional embedding. Rotating ones: RoPE (rotary position embedding)position numbersTransformers and LLMs
positive definitethe matrix property that guarantees one answerRBF
positive definite / positive semidefiniteall eigenvalues + / all 0 or moreJacobian and Hessian
positive likelihood ratiosensitivity ÷ (1 − specificity)Probability and Bayes' theorem
positive pair · negativePair · non-pairEmbedding models: one vector per sentence
positive pair · negative paira pair to pull together · the rest to push apartMultimodal learning: how CLIP puts images and text in one space
positive predictive value (PPV)chance of disease after a positive resultProbability and Bayes' theorem
positive predictive value (PPV)the share of significant results that are realType I and type II errors, and statistical power
positive predictive value (PPV), precisionshare of sick people among the positivesDiagnostic tests and the ROC curve
post hoc comparison, multiple comparisonscomparing pairs to see which group differsAnalysis of variance (ANOVA)
Post hoc comparisonsPair comparisons after ANOVAMultiple comparisons
post hoc power, observed powerPower calculated after the studySample size calculation
post hoc power, observed powerpower computed from the observed result afterwardsType I and type II errors, and statistical power
Post-LN, Pre-LNnormalize after adding, add after normalizingResidual connections (ResNet)
post-training quantization (PTQ)quantize after trainingQuantization
posterior probability, posteriorbelief after the evidenceProbability and Bayes' theorem
postorderfinishing orderTopological sort
potential outcomes, Y(1) and Y(0)the result if treated / the result if not treatedRandomization and control groups
PowerChance of finding a real effectMultiple comparisons
Power / asymptotic relative efficiencyThe ability to find a difference / the efficiency ratio of two tests with big samplesNonparametric tests
power analysis, sample size calculationworking out n before the experimentType I and type II errors, and statistical power
power functionx multiplied by itself n timesFunctions and graphs
power iteration, power methodmultiplying many times to find the biggest directionEigenvalues and eigenvectors
PR curve, precision-recall curvecurve of (recall, precision) as the threshold goes downConfusion matrix, precision, recall and F1
pre-activation, logit (at the output layer)The weighted sum zActivation functions
pre-test probability (prior probability), post-test probability (posterior probability)chance of disease before the test, after the testDiagnostic tests and the ROC curve
pre-tokenizationsplitting at spaces firstTokenization
Pre-trainingThe first big round of trainingHow LLMs are trained
Pre-trainingTrain first on a large datasetVision Transformer (ViT)
pre-trainingthe first big trainingFine-tuning and LoRA
pre-training / fine-tuningbig first training / extra trainingTransformers and LLMs
pre-training · fine-tuninglearn broadly first · learn a little more for the jobSelf-supervised learning: representations without labels
pre-training · transfer learninglearn on big data first · carry it overVideo classification: convolution with a time axis
pre-training, pretrained modelTraining on a big dataset first, and the model you getTransfer learning and fine-tuning
Precision / recallRight among those called 1 / caught among the real 1sLogistic regression
precision, positive predictive valueof what was called positive, the share that was rightConfusion matrix, precision, recall and F1
precision, recallPrecision, recallObject detection
precision-recall (PR) curve, average precisionthe precision and recall curve and its areaClass imbalance
precision-recall curve (PR curve)(recall, precision) curveDiagnostic tests and the ROC curve
precision-recall curve / interpolated precisionprecision-recall curve / the smoothed oneRetrieval metrics
precision. Cut at the top k: precision@k (P@k)share of what you fetched that is rightRetrieval metrics
predecessor (edgeTo[v])previous nodeDijkstra's algorithm
prefill / decodeProcessing the input in one pass / making one token at a timeContext windows and the KV cache
PreregistrationPublishing the plan in advanceMultiple comparisons
PreregistrationWriting the plan down firstHypothesis testing and the p-value
pretext taska practice problem set on purpose to learn a representationSelf-supervised learning: representations without labels
prevalenceshare of sick people in the tested groupDiagnostic tests and the ROC curve
prevalence, base rateshare of people with the diseaseProbability and Bayes' theorem
primal problemprimal problemSupport vector machines
Primary endpoint / secondary endpointsThe result that decides the conclusion / the other resultsClinical trial design
Primary endpoint, primary outcomeMain outcome chosen in advanceMultiple comparisons
principal componentDirection of widest spreadLinear discriminant analysis (LDA)
principal component analysis (PCA)finding the directions where data spreads the mostSingular value decomposition
principal component analysis (PCA)the method that finds themPrincipal component analysis
principal components (PC)new axes, picked from the most spread out direction downPrincipal component analysis
PriorThe standard normal N(0, 1)Autoencoders and VAEs
prior probability, priorbelief before the evidenceProbability and Bayes' theorem
Priority queueA box that gives the smallest (most urgent) item firstHeaps and priority queues
priority queuea queue that hands out the cheapest itemMinimum spanning trees
priority queue, heapstructure that pulls out the smallest item fastDijkstra's algorithm
probabilityhow likely, from 0 to 1Probability and Bayes' theorem
probability densitythe height of a probability curveIntegrals
Probability density, probability density function (PDF). For discrete bars: probability mass function (PMF)Height of the curve, how crowded it isNormal distribution
Probability distributionHow often each value comes upNormal distribution
probability distributionlist of chances for each outcomeEntropy and cross-entropy
Probability mass function (PMF)Probability of each k (the bar heights)Binomial and Poisson distributions
Probability of superiority, common-language effect size, AUCThe chance that a value from one side is biggerNonparametric tests
Product quantization (PQ)CompressingVector search
projectionDrop onto a lineLinear discriminant analysis (LDA)
projectionshadowDot product
projectionshadowVectors
projection headthe small network g between representation and lossSelf-supervised learning: representations without labels
projection shortcutprojection shortcutReading CNN architectures
projection shortcut, W_sa shortcut that matches the shapeResidual connections (ResNet)
promptinstructionsFine-tuning and LoRA
prompt caching, prefixReusing the same starting textContext windows and the KV cache
prompt templatea sentence pattern to put the class name inMultimodal learning: how CLIP puts images and text in one space
Propensity scoreThe chance of getting the treatmentConfounding and bias
Proportion. The sample proportion is p̂The share of yes answersSamples, sampling distributions and the standard error
Proportional hazards assumptionThe ratio does not change over timeSurvival analysis
Protocol / statistical analysis plan (SAP) / trial registrationThe plan / the analysis plan / registering in advanceClinical trial design
PruningDropping branches that are already wrongBacktracking
pruningcutting off branches that do littleDecision trees, random forests and boosting
pruningremove small weightsQuantization
pseudo-polynomial timeTime that grows with the size of a number (the limit)Dynamic programming
pseudoinverse (Moore-Penrose inverse). Written A⁺an "undo" matrix you can use even when there is no inverseSingular value decomposition
PseudoreplicationCounting similar values as separateRepeated measures and crossover designs
Publication biasBias from unpublished bad resultsClinical trial design
Publication biasTilt from collecting only published studiesConfounding and bias
Q-table, tabular methodTable of Q for every cellReinforcement learning
quadratic approximation, second-order Taylor expansionparaboloid estimate at that spotJacobian and Hessian
quadratic discriminant analysis (QDA)The version with a separate spread per classLinear discriminant analysis (LDA)
quadratic function, parabolaA bowl-shaped functionFunctions and graphs
quantiles of the standard normal distribution. Some books write z₁₋βz_α/2, z_βSample size calculation
quantitative interaction / qualitative (crossover) interactiononly the size differs / the direction flipsFactorial designs and interaction
quantizationsnap to a grid, store the numberQuantization
quantizationwriting numbers with fewer bitsFine-tuning and LoRA
quantization errordifference caused by roundingQuantization
quantization-aware training (QAT)train while feeling the roundingQuantization
Quartiles Q1, Q2, Q3. In general: percentiles, quantilesValues at the 25%, 50%, 75% positionsDescriptive statistics
quasi-Newton methods. BFGS, L-BFGSmethods that use an estimate of the HessianJacobian and Hessian
QueryWhat I am looking forAttention
Query rewriting, query decompositionRewriting the query, splitting it into smaller queriesKeyword and hybrid search
query, key, value (q, k, v)Query, key, valueEncoders and decoders: three kinds of transformer
queue, dictionary · momentum encoderthe line of keys from past batches · the key encoder that follows slowlySelf-supervised learning: representations without labels
radial functiona function that only looks at distanceRBF
radius of convergenceradius of the range where adding forever worksTaylor approximation
Random accessJumping straight to a cell by numberBinary search
random assignment, randomizationdrawing lots to pick the groupsRandomization and control groups
Random crop, translationShift and cropData augmentation
random forestgrow separately and voteDecision trees, random forests and boosting
Random seedSeedSoftmax and sampling
random seed, initializationrandom number that sets the startt-SNE and UMAP
random seed, initializationseed, picking starting valuesNeural networks
random seed, versioningSeed, data version, model versionData drift and monitoring models in production
Randomization, random assignmentChance decides the treatmentConfounding and bias
Randomized block ANOVA, two-way ANOVA without interactionAnalysis with blocksBlock designs
Randomized complete block design (RCBD)Every treatment once per block, randomized only inside blocksBlock designs
Randomized controlled trial (RCT)A trial split by lottery, with a control groupClinical trial design
randomized controlled trial (RCT)a trial that splits people by lotRisk, relative risk and odds ratio
randomized controlled trial (RCT)an experiment that splits by drawing lots and comparesRandomization and control groups
Randomized search, RandomizedSearchCVRandom searchHyperparameter search: grid and random
RangeMax − minDescriptive statistics
rangeThe y values that can come outFunctions and graphs
range search, range queryRange searchBinary search trees
range, image, column spaceEverything that can be reachedLinear transformations
RankHow big compared with the others, as a place numberNonparametric tests
rankhow many dimensions are leftRank
rankrankFine-tuning and LoRA
rankthe dimension of what you can reachLinear combinations and span
rankthe number of directions that are not squashedSingular value decomposition
Rank fusion, hybrid searchCombining two rankingsKeyword and hybrid search
Rank sumThe ranks of one group added upNonparametric tests
rank-nullity theoremrank + null space dimension = number of columnsRank
rank-nullity theorem. dim(kernel) is the nullity, dim(range) is the rankdim(kernel) + dim(range) = dim(domain)Linear transformations
rare disease assumptionodds ratio ≈ relative risk when the event is rareRisk, relative risk and odds ratio
Rate, the parameter λ (lambda)Average countBinomial and Poisson distributions
Recall biasTilt from people remembering differentlyConfounding and bias
recall, precision, F1 scorefew misses, few false alarmsClass imbalance
Recall, recall@kShare of true neighbors foundVector search
recall, recall@kshare of the right ones that you fetchedRetrieval metrics
recall, sensitivity, true positive rateof the real positives, the share that was foundConfusion matrix, precision, recall and F1
receiver operating characteristic curveROC curveDiagnostic tests and the ROC curve
Receptive fieldThe patch of input one output cell seesConvolution and CNNs
Receptive fieldWidth of input one output cell sees, rPooling and receptive fields
reciprocalnumber that undoes a number (3 and 1/3)Inverse matrix
reciprocal rank (RR)1 ÷ place of the first right answerRetrieval metrics
Reconstruction errorThe gap between the rebuilt copy and the originalAutoencoders and VAEs
reconstruction errorwhat is lost (squared drop lengths)Principal component analysis
reconstruction, tracebackWalking back to find what was pickedDynamic programming
rectified linear unitReLUBackpropagation
recurrence relationThe formula that fills a cell from earlier cellsDynamic programming
Recurrent neural network (RNN)A network that reads one step at a time and passes a state onRNNs and LSTMs
Recurrent weightRecurrent ratio, the weight W on the last stateRNNs and LSTMs
recursion, recursion treeCalling itself, the call treeDynamic programming
recursion; the depth is the recursion deptha function calling itselfMerge sort and quicksort
Recursive splittingTrying the biggest boundary first to fit the sizeChunking
red link, black linkred link, black linkRed-black trees
red-black BST, red-black treered-black treeRed-black trees
reduced row echelon form (RREF)final table with only 1s and 0s on the leftLinear systems and elimination
ReduceLROnPlateau, patiencereduce on plateau, how many steps to waitLearning rate schedules
reductionsumming or averaging along an axisTensors and shapes: axes, shape and broadcasting
referenceright answer textHallucination and evaluating LLMs
Reference category, baselineThe group without a columnMultiple regression
reference distribution, current distributionTraining distribution p, production distribution qData drift and monitoring models in production
region proposalproposal boxDetector architectures: the R-CNN family and YOLO
region proposals; the network that makes them is the RPN (region proposal network)Places that might hold an objectObject detection
registration, image registrationfinding the transform that lays one over the otherRegistration: from rigid to non-rigid
RegressionGuessing a numberLogistic regression
Regression coefficient (slope) / interceptSlope / interceptCorrelation and regression
Regression line, simple linear regressionA line that guesses one measurement from the otherCorrelation and regression
regression testtest you run on every changeHallucination and evaluating LLMs
Regression to the meanComing back toward the averageRepeated measures and crossover designs
Regression to the meanComing back toward the meanCorrelation and regression
regression to the meandrifting back toward the meanRandomization and control groups
regression to the meanpeople who measured high the first time measure less high the next timeThe t-test
regression treea tree that answers a numberDecision trees, random forests and boosting
regression · classificationgiving a number · giving a groupk-nearest neighbors
regression, classificationPredicting a number, picking one optionActivation functions
RegularizationA penalty on the weightsWeight decay and L1/L2 regularization
RegularizationMethods that hold back overfittingData augmentation
RegularizationMethods that make a model memorize lessEarly stopping and reading learning curves
RegularizationPenalty that keeps weights smallLogistic regression
regularizationa penalty on the weightsOverfitting and generalization
regularizationways to reduce overfittingDropout
Regularization coefficient. In code: weight_decay, alphaPenalty strength λWeight decay and L1/L2 regularization
regularization parameter (scikit-learn: inverse regularization parameter)C, regularization strength written the other way roundSupport vector machines
Regularized incomplete gamma functionThe function behind the area under the chi-square curveThe chi-square test
Rehashing, resizingAdding slots and putting everything in againHash tables
Reinforcement learning (RL)Learning from trial and rewardReinforcement learning
Reinforcement learning from human feedback (RLHF)Tuning to human preferencesHow LLMs are trained
Reject the null hypothesisDrop the null hypothesisHypothesis testing and the p-value
rejecting the null hypothesis, statistically significantsaying "there is an effect"Type I and type II errors, and statistical power
Relative efficiencyBlocking's gain measured in varianceBlock designs
Relative positionHow far apart two tokens arePositional encoding
Relative risk (risk ratio) / odds ratioRatio of shares / ratio of odds by a fixed timeSurvival analysis
relative risk reduction (RRR)1 − relative riskRisk, relative risk and odds ratio
relative risk, risk ratio (RR). Not to be confused with the hazard ratio of survival analysisone risk divided by the otherRisk, relative risk and odds ratio
relaxationupdate if shorterDijkstra's algorithm
reliability diagramChart with an accuracy bar per binCalibration
ReLU (rectified linear unit)The line that bends negatives to 0Functions and graphs
ReLU (rectified linear unit). A bending function like this is called an activation functionNegatives to 0Convolution and CNNs
Removable / jump / infinite discontinuityHole / jump / blow-upLimits and continuity
RenormalizationSharing the probability againSoftmax and sampling
renormalizationdividing by what is leftStructured output
Reparameterization trickDrawing with z = μ + σ·εAutoencoders and VAEs
repeated eigenvalueeigenvalue counted twiceEigenvalues and eigenvectors
repeated measures ANOVAANOVA when the same people are measured several timesAnalysis of variance (ANOVA)
Repeated measures, within-subject design. Measured over time: longitudinal dataMeasuring the same people more than onceRepeated measures and crossover designs
Repeated-measures ANOVA. Its assumption: sphericityAnalysis of variance with several time pointsRepeated measures and crossover designs
representation, embeddingthe features the encoder pulls outSelf-supervised learning: representations without labels
RerankingPutting candidates in order againKeyword and hybrid search
rerankingRe-scoring a short listEmbedding models: one vector per sentence
reshape · transpose, permutesplitting into new axes · reordering axesTensors and shapes: axes, shape and broadcasting
ResidualActual minus the line's guessCorrelation and regression
residualanswer − current predictionDecision trees, random forests and boosting
residualdistance from your own group meanAnalysis of variance (ANOVA)
residualhow wrong a point is (actual y − the line's y)Projection and least squares
Residual confounding, unmeasured confoundingConfounding that is left overConfounding and bias
residual connection, shortcut connectionshortcutReading CNN architectures
residual connection, skip connectionaddition pathTransformers and LLMs
residual connection, skip connectionpath that adds the input backVanishing and exploding gradients
residual connection, skip connectionshortcut connectionBackpropagation
residual connection, skip connectionthe path that skips a sublayerEncoders and decoders: three kinds of transformer
residual connection, skip connection, shortcut connectionshortcutResidual connections (ResNet)
Residual degrees of freedomn − p − 1Multiple regression
residual function. F plus the shortcut is a residual blockF, how much to changeResidual connections (ResNet)
Residual plotA plot of the residualsCorrelation and regression
residual sum of squares (RSS)sum of squaresProjection and least squares
Residual, errorLeftover, noiseBlock designs
residual, errorerror e = true value − predictionRegression losses
residual, errorspread left over after the lineANCOVA
Residual: Pearson residual, adjusted (standardized) residualHow far off one cell isThe chi-square test
resolution, written III, IV, Vnumber of letters in the shortest word of the defining relationFractional factorials and confounding
Response or dependent variable / predictor, explanatory or independent variableWhat you guess / what you guess fromCorrelation and regression
response surfacethe surface the results form over the settingsResponse surface methodology
response surface methodology (RSM)approximating the surface to find the best spotResponse surface methodology
response variable, dependent variablethe result you compareANCOVA
response, response variableresultResponse surface methodology
Restore best weightsGoing back to the best weightsEarly stopping and reading learning curves
Restricted mean survival time (RMST)Average event-free time within a fixed periodSurvival analysis
Restriction / matchingStudying one layer / comparing in pairsConfounding and bias
retraining, rollbackRetrain, roll backData drift and monitoring models in production
retrieval-augmented generation (RAG)Searching and putting inContext windows and the KV cache
retrieval-augmented generation (RAG)find, add to the prompt, then answerRAG
retrieval-augmented generation (RAG)finding documents and adding them before answeringFine-tuning and LoRA
retrieval-augmented generation (RAG)finding source documents and putting them inHallucination and evaluating LLMs
retriever / generatorthe finding part / the answer-writing partRAG
Return (G)Discounted total of rewardsReinforcement learning
reverse mode, backpropagationmultiplying backward from the outputDerivatives and the chain rule
reverse postorderfinishing order reversedTopological sort
Reverse process, denoisingRestore, reverse processDiffusion models
Reward hacking, specification gamingExploiting gaps in the score you were givenReinforcement learning
Reward modelA scoring model built from people's choicesReinforcement learning
Riemann sumthe estimate made with barsIntegrals
right singular vectorsthe two input directions v1, v2Singular value decomposition
right-hand ruleright-hand ruleCross product
right-handed coordinate systemaxes set up the right-handed wayCross product
Right-skewed (positively skewed) / left-skewedLong tail on the right / leftDescriptive statistics
rigid transformation · similarity transformation · affine transformationturn + shift · plus size · plus shearRegistration: from rigid to non-rigid
Risk difference / relative risk, risk ratio / NNT / hazard ratioRisk difference / relative risk / number needed to treat / hazard ratioClinical trial design
risk difference. When it goes down, absolute risk reduction (ARR). Also attributable riskone risk minus the otherRisk, relative risk and odds ratio
Risk set, number at riskPeople still being followedSurvival analysis
risk, absolute risk, incidence proportionthe share of people it happened toRisk, relative risk and odds ratio
RLHFReinforcement learning from human feedbackReinforcement learning
RMSE (root mean square error) · fitness, inlieraverage distance between partners · share of points with a partnerRegistration: from rigid to non-rigid
RMSE (root mean squared error)the square root of MSERegression losses
RobustHard to move with outliersDescriptive statistics
robustbarely moved by outliersRegression losses
Robust scaling. Interquartile range (IQR)Rescaling with the median and the interquartile rangeNormalization and standardization
RoI pooling (RoI = region of interest)crop each to one sizeDetector architectures: the R-CNN family and YOLO
RootThe topHeaps and priority queues
rootleaderMinimum spanning trees
root · leafThe top node · a node with no childrenBinary search trees
Rotary position embedding (RoPE)Turning the query and key vectorsPositional encoding
rotatable designpredictions wobble equally at equal distance from the centreResponse surface methodology
RotationRotateData augmentation
rotationturning on a circleGrokking: generalizing long after memorizing
Rotation / reflectionTurn / flipOrthogonal matrices and inner product spaces
RowA line acrossMatrix basics
row echelon formstaircase-shaped tableLinear systems and elimination
row echelon formstaircase-shaped tableRank
Row vectorA matrix with one rowMatrix basics
row, columnrow, columnMatrix multiplication
RPN (region proposal network)region proposal networkDetector architectures: the R-CNN family and YOLO
RRF (Reciprocal Rank Fusion)Combining with ranks onlyKeyword and hybrid search
Rule of threeUpper limit 3 ÷ n with zero casesClinical trial design
Running mean, running varianceMean and variance collected during trainingNormalization and standardization
running mean, running variance, exponential moving averagestored mean and varianceBatch norm and layer norm
s / a / rState / action / rewardReinforcement learning
saddle pointsaddle shapeResponse surface methodology
saddle pointthe middle of a saddlePartial derivatives and the gradient
saddle pointuphill one way, downhill anotherJacobian and Hessian
sample size calculation, power analysisWorking out how many people you needSample size calculation
Sample variance. Dividing by n − 1 is Bessel's correctionThe variance divided by n − 1Samples, sampling distributions and the standard error
sample, exampleone exampleBatch norm and layer norm
Sample, sample size nThe part you drew and measured, and how manySamples, sampling distributions and the standard error
SamplingDrawing by probabilitySoftmax and sampling
samplingpicking one with a number between 0 and 1Structured output
Sampling distributionHow the sample means spread outSamples, sampling distributions and the standard error
sampling distribution under the null hypothesis / under the alternative hypothesisNo-effect curve / effect curveSample size calculation
Sampling with replacementSomeone already picked can be picked againSamples, sampling distributions and the standard error
sampling with replacementputting each example back before the next drawBatch size and gradient accumulation
Sampling, generationMaking, drawingDiffusion models
saturationStuck at ±1Weight initialization
saturationValue stuck at an end, slope near 0Activation functions
saturationflat ends of a functionVanishing and exploding gradients
ScalarA single numberMatrix basics
ScalarA single numberVectors in n dimensions
scalarone numberVectors
Scalar multiplicationMultiply every entry by one numberMatrix basics
Scalar multiplicationMultiplying every number by the same numberVectors in n dimensions
scalar multiplicationScalingLinear transformations
scalar multiplicationmultiplying by a numberVector spaces and subspaces
scalar multiplicationscalingVectors
scalar projection (it can be negative)shadow lengthDot product
scalar · vector · matrixone number · a line · rows and columnsTensors and shapes: axes, shape and broadcasting
scalegrid spacing sQuantization
scale, step sizegap between levelsFine-tuning and LoRA
Scaled dot-product attentionDot product attention divided by √dAttention
scaling factor, alphastrength αFine-tuning and LoRA
Scatter plotA picture with one dot per person for two measurementsCorrelation and regression
scatter plot · Lissajous figurea picture of two values across and up · a tangled patternGrokking: generalizing long after memorizing
Schwarz's theorem, Clairaut's theoremthe order of the derivatives does not matterJacobian and Hessian
Score function, gradient of the log density (∇ log p)Where the density rises fastestDiffusion models
Score function, scoringScore functionHyperparameter search: grid and random
Score normalizationPutting scores on the same scaleKeyword and hybrid search
screening experimentan experiment that picks the important factors out of manyFractional factorials and confounding
screening test, confirmatory testfirst pass over many people, test before a firm diagnosisDiagnostic tests and the ROC curve
secant linethe line through two pointsDerivatives and the chain rule
second derivative testtelling them apart by the signs of the eigenvaluesJacobian and Hessian
second derivative. f″bendTaylor approximation
second-order modelformula with squared and cross termsResponse surface methodology
second-order optimizationmethods that also use the bendTaylor approximation
SeedStarting value for random numbersNormal distribution
SeedStarting value of the random numbersDiffusion models
SeedThe starting value of the random numbersSamples, sampling distributions and the standard error
seedstarting value of the random numbersConfidence intervals
segmentation: semantic segmentation, instance segmentationNaming every pixelObject detection
Selection bias. In hospital data, Berkson's biasTilt from looking only at the people pickedConfounding and bias
selection bias. When it comes from chance: baseline imbalancestarting gap (caused by someone picking)Randomization and control groups
selection sortpick the smallest, put it in frontElementary sorts
Self-attentionLooking within the same sentenceAttention
self-attentionAttention inside one textEncoders and decoders: three kinds of transformer
self-information, information content, surprisalsurprise, −log pEntropy and cross-entropy
Self-supervised learningThe text is the answer keyHow LLMs are trained
self-supervised learning (SSL)learning from a problem made from the data, no labelsSelf-supervised learning: representations without labels
Semantic chunkingCutting where the meaning changesChunking
semantic segmentationonly a class for every pixelImage segmentation
sensitivity, true positive ratechance of a positive result if sickProbability and Bayes' theorem
sensitivity, true positive rate (TPR), recallshare of sick people caughtDiagnostic tests and the ROC curve
Separate chainingHanging a chainHash tables
SequenceA first, B firstRepeated measures and crossover designs
Sequence, sequence lengthRow of tokens, number of patchesVision Transformer (ViT)
Sequence, time seriesOrdered data, a rowRNNs and LSTMs
shapethe list of sizes, one per axisTensors and shapes: axes, shape and broadcasting
shared MLP, multilayer perceptronthe same layer for every point3D vision: voxels, point clouds and NeRF
shear mapping, shear transformationshear (leaning)Determinant
short-circuita shortcut that jumps between turnsManifolds
Short-term memory / summarization / long-term memoryHistory / summary / outside storeAI agents
shortest path (fewest edges when edges have no length)shortest pathGraph search: BFS and DFS
shortest-paths treetree made of previous nodesDijkstra's algorithm
shrinkagePulling the covariance toward a simpler shapeLinear discriminant analysis (LDA)
shufflemixing into random orderMerge sort and quicksort
Sigma, summation (Σ)The "add them all up" signVectors in n dimensions
SigmoidσRNNs and LSTMs
Sigmoid function, logistic functionS-shaped curveLogistic regression
sigmoid, logistic functionThe S-shape that squeezes into 0 to 1Functions and graphs
sigmoid, logistic functionsigmoid σBackpropagation
signed areaarea where the part below the axis is subtractedIntegrals
Significance levelThe threshold αMultiple comparisons
significance levelthe chance of a false alarm, αType I and type II errors, and statistical power
Significance level (α)The line set in advanceHypothesis testing and the p-value
significance level (α)cutoff chosen in advance (0.05)The t-test
significance level, type I error rateFalse alarm rate, αSample size calculation
similar matrices. B = P⁻¹APTwo matrices for the same transformation in different basesLinear transformations
similarity metric: mean squares, correlation, mutual informationhow well they overlapRegistration: from rigid to non-rigid
similarity, affinity p_ij, q_ijneighbor chancet-SNE and UMAP
simple effect, conditional effectthe effect with the other factor held at one levelFactorial designs and interaction
simple randomizationa coin flip per personRandomization and control groups
Simpson's paradoxSplitting flips the directionConfounding and bias
Simpson's paradoxThe direction flips when groups are combinedMultiple regression
Simpson's ruleadding with pieces of parabolasIntegrals
SimulatorSimulated worldReinforcement learning
single precision (FP32), half precision (FP16). Another 16-bit format is bfloat16 (BF16)32-bit float, 16-bit floatQuantization
single-source shortest pathsshortest paths from one start to every nodeDijkstra's algorithm
singular matrixa matrix with det A = 0Cramer's rule
singular matrixmatrix that squashes the plane flatDeterminant
singular matrixmatrix that squashes the plane flat and cannot be undoneInverse matrix
singular value decomposition (SVD)splitting into turn, stretch, turn againSingular value decomposition
singular valuesstretch amounts σ1, σ2Singular value decomposition
Sink, sift-downMove downHeaps and priority queues
Sinusoidal positional encodingFixed table made of sine and cosine wavesPositional encoding
Skewed distribution, long tailA long tail on one sideNormal distribution
skip connectionsending a map acrossImage segmentation
slack variableζᵢ, how far a point falls short of its edgeSupport vector machines
slope / y-interceptSlope / value at x = 0Functions and graphs
Slow pathway · Fast pathwaythe sparse path · the dense, light pathVideo classification: convolution with a time axis
small-angle approximationsmall angle shortcutTaylor approximation
smoothing, regularizationthe small number λ added to the diagonalRBF
soft Dice, Dice lossDice with probabilities put inImage segmentation
Soft labelA blended answerData augmentation
soft label, soft targetan answer given as a probability barLabel formats
soft marginSVM that allows points across the bandSupport vector machines
Soft thresholdingPull toward 0, stop at 0Weight decay and L1/L2 regularization
SoftmaxTurning scores into probabilitiesSoftmax and sampling
SoftmaxTurning scores into shares that add up to 1Attention
softmaxScores to probabilities that add up to 1Activation functions
softmaxturning model scores into probabilitiesEntropy and cross-entropy
softmaxturning scores into probabilities that add up to 1Multimodal learning: how CLIP puts images and text in one space
Softmax, multinomial logistic regressionTurning scores into probabilities for three or more groupsLogistic regression
sourcenode with no incoming arrowsTopological sort
source task, target taskThe original task and the new taskTransfer learning and fine-tuning
space complexityhow extra memory growsTime complexity (Big O)
Spaghetti plot, individual profilesOne line per personRepeated measures and crossover designs
spaneverything you can makeVector spaces and subspaces
span. Written span{a, b}everywhere you can reachLinear combinations and span
spanning treelines that connect every dot with no loopsMinimum spanning trees
spans the space. Everything it reaches is the spanreaches everythingBasis and change of coordinates
SparsityMany weights at 0Weight decay and L1/L2 regularization
sparsity of effects principlethe belief that only a few effects are largeFractional factorials and confounding
spatial autocorrelationNearby places look alikeData splits and leakage
spatial block cross-validation, spatial k-foldSpatial blocksData splits and leakage
spatiotemporal featuresfeatures holding time and space togetherVideo classification: convolution with a time axis
Spearman's rank correlation, ρ (rho)Correlation of ranksCorrelation and regression
special tokenspieces that only mark somethingTokenization
specificity, true negative ratechance of a negative result if healthyProbability and Bayes' theorem
specificity, true negative rateshare of healthy people left aloneDiagnostic tests and the ROC curve
spectrum bias. Gathering patients and controls separately is a case-control designbias from who was measuredDiagnostic tests and the ROC curve
square matrixmatrix with the same number of rows and columnsInverse matrix
Squeeze theoremPinning the middle between two sidesLimits and continuity
Stable sortKeeps the order of equal valuesHeaps and priority queues
stable sorta sort that keeps equal values in orderMerge sort and quicksort
stable sortequal values keep their orderElementary sorts
standard basisBasic arrows e₁, e₂Linear transformations
standard basisusual arrows î, ĵBasis and change of coordinates
standard deviationSpread, σSample size calculation
standard deviationsquare root of the variancePrincipal component analysis
Standard deviation (SD)How much one person differs from the nextSamples, sampling distributions and the standard error
Standard deviation (SD, σ or s)Square root of the varianceDescriptive statistics
Standard deviation. Written σSquare root of the varianceNormal distribution
Standard error (SE)How much a mean wobbles by chanceHypothesis testing and the p-value
Standard error (SE)How much the mean difference wobblesRepeated measures and crossover designs
Standard error (SE)How much the slope wobbles from sample to sampleCorrelation and regression
standard error (SE)Spread of the difference between two meansSample size calculation
standard error (SE)how much a score wobblesHallucination and evaluating LLMs
standard error (SE)how much sample means scatterConfidence intervals
standard error (SE)noise, how much a mean (or difference) wobbles by chanceThe t-test
standard error (SE)the wobble of the difference in meansType I and type II errors, and statistical power
Standard error (SE), standard error of the mean (SEM)How much the mean spreads out, σ ÷ √nSamples, sampling distributions and the standard error
Standard error (SE, SEM)How much the sample mean wobblesDescriptive statistics
standard error of the meanhow much the batch gradient shakes, σ ÷ √BBatch size and gradient accumulation
standard error, 95% confidence intervalhow much an estimate wobblesRisk, relative risk and odds ratio
Standard normal distributionNormal distribution with mean 0 and standard deviation 1Normal distribution
standard order (Yates order)corner names (1), a, b, ab, …Fractional factorials and confounding
Standardization, standardized riskCombining with the same weightsConfounding and bias
standardization, z-scoreremoving units with (x − mean) ÷ standard deviationPrincipal component analysis
Standardization. The results are z-scores (standard scores)Making the mean 0 and the variance 1Normalization and standardization
stateOne cell, one small problemDynamic programming
State space tree, search treeThe tree of choices made one at a timeBacktracking
State value V(s), action value Q(s, a)ValueReinforcement learning
state, finite-state machinewhere we are in the grammarStructured output
stationary pointspot where the slope is zeroResponse surface methodology
Statistic. Called an estimator when used to estimate a parameterNumbers computed from a sample x̄, s, p̂Samples, sampling distributions and the standard error
Statistical powerThe chance of finding an effect that is thereHypothesis testing and the p-value
statistical powerChance of catching it, 1 − βSample size calculation
statistical powerthe chance of catching a real effect, 1 − βType I and type II errors, and statistical power
Statistically significantBelow the lineHypothesis testing and the p-value
statistically significant, significance level α = 0.05significant at the 5% levelConfidence intervals
StemmingCutting words down to a common formKeyword and hybrid search
step decay · exponential decaydrop in stairs · drop by a ratioLearning rate schedules
step, iteration · epochstep · one pass over all the dataLearning rate schedules
step, iteration, updateone update of the weightsBatch size and gradient accumulation
Step-down / step-upStart at the front and stop / search from the backMultiple comparisons
Stochastic environment, transition probabilitySlippery floorReinforcement learning
Stochastically largerOne side tends to be biggerNonparametric tests
stop wordsvery common wordsRAG
Stopping boundary / alpha spending, alpha spending functionThe stopping rule / sharing out αClinical trial design
straight-through estimator (STE)let the gradient pass as if there were no roundingQuantization
StratificationComparing inside layersConfounding and bias
Stratification, stratified k-foldKeeping class shares evenData splits and leakage
Stratified randomizationRandomizing separately inside each stratumBlock designs
stratified randomization. One split is a stratumsplit first, then draw inside each splitRandomization and control groups
StrideHow many cells the filter movesConvolution and CNNs
StrideStride SPooling and receptive fields
stridestepReading CNN architectures
Strided convolutionConvolution with a stridePooling and receptive fields
structured outputgetting answers in a fixed shapeStructured output
Student's t distribution / degrees of freedomthick-tailed distribution / values free to moveConfidence intervals
Student's t-distribution; with one degree of freedom, the Cauchy distributiondistribution with a heavier tailt-SNE and UMAP
Student's t-test, pooled variancemethod that treats the spreads as equalThe t-test
subgradientthe value used as the slope at a kinkRegression losses
subgradient descentgoing down by picking one slope at a cornerSupport vector machines
Subgroup analysisAnalysis of split groupsClinical trial design
subgroup analysislooking at the effect in subgroupsFactorial designs and interaction
sublayerone part inside a block (attention, small neural network)Encoders and decoders: three kinds of transformer
subspacea smaller collection inside itVector spaces and subspaces
subtreeA node and everything under it, a branchBinary search trees
subwordpiece smaller than a wordTokenization
successorThe smallest value in the right branchBinary search trees
Sum of squaresSquared deviations added upDescriptive statistics
Sum of squares (SS)A share of the spreadBlock designs
sum of squares (SS)squared distances added upAnalysis of variance (ANOVA)
sum of squares (SS) / mean square (MS); df is degrees of freedoma part of the spread / that part divided by its dfFactorial designs and interaction
Superiority / non-inferiority / equivalence trialBetter / not worse / the sameClinical trial design
supervised / unsupervised learningLearning with labels / without labelsLinear discriminant analysis (LDA)
support vectorpoint on a band edge or inside the bandSupport vector machines
support vectorsthe points inside the margin that keep a bumpRBF
surjective, ontoEvery point of the codomain is reachedLinear transformations
Surrogate endpointA value measured instead of the real outcomeClinical trial design
Survival functionShare with no event yet, S(t)Survival analysis
Survival time, time-to-eventHow long it took until something happenedSurvival analysis
Survivorship biasTilt from looking only at what lastedConfounding and bias
Swim, sift-upMove upHeaps and priority queues
Swiss rollrolled-up sheet of paperManifolds
symbol tablestorage that finds values by keyRed-black trees
symmetric cross-entropythe average of the row loss and the column lossMultimodal learning: how CLIP puts images and text in one space
symmetric matrixmatrix with b = cEigenvalues and eigenvectors
symmetry, symmetry breakingUnits staying twins, and preventing itWeight initialization
synergy / antagonism (pharmacology sometimes uses stricter definitions)bigger together / smaller togetherFactorial designs and interaction
system of linear equations, linear systemseveral equations solved togetherLinear systems and elimination
System promptSystem instructionsAI agents
t statisticsignal ÷ noiseThe t-test
table of contrasts, design matrixsign tableFractional factorials and confounding
table of contrasts, design matrix, model matrixsign tableFactorial designs and interaction
tabular data, structured datatable dataDecision trees, random forests and boosting
tabulation, bottom-upFill a table from the bottom upDynamic programming
Tangent lineA line that touches the circle at just one pointLimits and continuity
tangent linethe line that just touches the curveDerivatives and the chain rule
Taylor approximationimitating a function with a polynomial close to one pointTaylor approximation
Taylor polynomial of degree n. Tₙ(x), Pₙ(x)degree n approximationTaylor approximation
Taylor seriesadding the terms foreverTaylor approximation
Teacher forcingFeed in the real earlier tokensHow LLMs are trained
Teacher forcingFeeding the decoder the correct word during trainingRNNs and LSTMs
TemperatureTemperatureSoftmax and sampling
temperaturethe number T the scores are divided byLabel formats
temperaturethe number that sharpens or flattens the probabilitiesMultimodal learning: how CLIP puts images and text in one space
temperaturethe number τ that divides the similaritiesSelf-supervised learning: representations without labels
temperature scalingDividing the logits by one numberCalibration
Temporal-difference error (TD error)Target − what it believed (how wrong it was)Reinforcement learning
TensorA collection of numbers with many axesMatrix basics
tensor, n-dimensional arraynumbers stacked along several axesTensors and shapes: axes, shape and broadcasting
Term frequency (tf)How often the word appearsKeyword and hybrid search
Term frequency saturationRepeats stop adding muchKeyword and hybrid search
test collection, evaluation set / relevance judgments (qrels)test set / the right answers for each questionRetrieval metrics
Test of independence / test of homogeneity / goodness-of-fit testAre two things related / is the share the same in every group / does it match set sharesThe chi-square test
Test statistic. Divided by the wobble, it is the z-statisticThe data boiled down to one numberHypothesis testing and the p-value
Test-time augmentation (TTA)Averaging predictions over changed copies at use timeData augmentation
text-to-textText in, text outEncoders and decoders: three kinds of transformer
TF-IDF (term frequency-inverse document frequency)word weightRAG
the cumulative distribution function (CDF) of the standard normal distributionΦ(z): the area left of zType I and type II errors, and statistical power
the fundamental problem of causal inferenceyou cannot see both for one personRandomization and control groups
the gradient of f at x. ∇ is read "nabla"∇f(x)Gradient descent
The ReAct pattern (reasoning + acting)Thought, action, observationAI agents
The tail. The paper calls it the unreliable tailThe low candidates togetherSoftmax and sampling
The tutorial calls it the optimization loop and splits one turn into a train loop and a validation/test looptraining loopThe training loop: one step, one epoch
thinned networka network with some neurons offDropout
thresholdthe distance cut-off for "same"Metric learning: learning a distance
threshold moving, threshold tuningmoving the decision thresholdClass imbalance
Threshold, cutoffThresholdLogistic regression
threshold, delta. Called beta in PyTorch's Smooth L1the seam δRegression losses
Tie / midrank (average rank)Equal values / the rank they shareNonparametric tests
tilde approximation (~)dropping only the small termsTime complexity (Big O)
time complexity, order of growthhow the steps grow with nTime complexity (Big O)
Time series splitSplitting by timeData splits and leakage
Time step tStepRNNs and LSTMs
Timestep, t. The total number of steps is TStepDiffusion models
TokenThe unit a model reads text inChunking
TokenWord, piece of a wordAttention
tokenA word or a piece of a wordContext windows and the KV cache
tokena piece of text the model outputsStructured output
tokenpieceTokenization
token embeddings, the output of the last layerOne vector per tokenEmbedding models: one vector per sentence
token F1, n-gram overlap (BLEU, ROUGE)word overlap scoresHallucination and evaluating LLMs
token idpiece numberTokenization
token, token IDtoken, token IDTransformers and LLMs
Token. A word or a piece of a wordTokenSoftmax and sampling
tokenizationcutting text into pieces and numbering themTokenization
Tokenization. For Korean, morphological analysisSplitting text into wordsKeyword and hybrid search
tokenizerthe tool that cuts (rules plus list)Tokenization
tool calling, function callingletting the model call a functionStructured output
Tool calling, tool use, function callingCalling a toolAI agents
top-kthe top kRAG
Top-k samplingKeeping only the k most likelySoftmax and sampling
Top-p sampling, nucleus samplingKeeping words until the total reaches pSoftmax and sampling
topological orderthe lineTopological sort
topological sortlining upTopological sort
topological sortputting tasks in orderGraph search: BFS and DFS
torqueturning forceCross product
total differentialthe change when every input changes a littlePartial derivatives and the gradient
total sum of squares (SST)total sum of squaresAnalysis of variance (ANOVA)
tracesum of the diagonalPrincipal component analysis
trace. Written tr Adiagonal sum a + dEigenvalues and eigenvectors
train mode, eval mode (model.train(), model.eval())training mode, inference modeDropout
trainable parametersNumbers you trainTransfer learning and fine-tuning
training accuracy · test accuracytraining and test accuracyGrokking: generalizing long after memorizing
training data · query pointpoints with known answers · the new pointk-nearest neighbors
Training loss, validation lossLoss on the training data, loss on held-out dataEarly stopping and reading learning curves
Training set, validation set (dev set), test setTraining, validation, test dataData splits and leakage
training set, validation set (dev set), test set (holdout set)training data, validation data, test dataOverfitting and generalization
transfer learningUsing a model that already learned as a starting pointTransfer learning and fine-tuning
transfer learning, fine-tuningtaking a trained model and training it againReading CNN architectures
Transformer block, layerblock, layerTransformers and LLMs
translation / scaling / reflectionShift / stretch / flipFunctions and graphs
Translation equivarianceSame filter finds it wherever it movesVision Transformer (ViT)
transmittancesurviving light3D vision: voxels, point clouds and NeRF
Transpose, KᵀK turned on its sideAttention
Transpose, QᵀLaying a matrix on its sideOrthogonal matrices and inner product spaces
transpose, written Aᵀswapping rows and columnsCramer's rule
Transpose. Written aTSwitching between standing up and lying downVectors in n dimensions
Transpose. Written AᵀFlip over the diagonalMatrix basics
transpose. Written Aᵀswapping rows and columnsProjection and least squares
transpose. Written Aᵀthe matrix with rows and columns swappedSingular value decomposition
transpose. Written Bᵀrows and columns swappedBasis and change of coordinates
transpose. Written Xᵀmatrix with rows and columns swappedInverse matrix
transposed convolution, also called deconvolution or up-convolutiongrowing by stampingImage segmentation
trapezoidal ruletrapezoidIntegrals
treatment combination, cellcellFactorial designs and interaction
treatment group / control groupthe group that gets the treatment / the group you compare againstRandomization and control groups
treatment-by-covariate interactionthe slope differs by groupANCOVA
triangle law of vector addition, tip-to-tail methodputting b on the tip of aVectors
tripletA set of anchor, pair and non-pairEmbedding models: one vector per sentence
triplet lossthe loss measured on threeMetric learning: learning a distance
triplet mining, online triplet miningpicking triplets to train onMetric learning: learning a distance
true negative (TN)correct rejectionConfusion matrix, precision, recall and F1
true positive (TP)hitConfusion matrix, precision, recall and F1
true positive (TP), false positive (FP)Right, wrongObject detection
true positive (TP), false positive (FP), false negative (FN), true negative (TN)overlap, extra paint, missed, background in bothImage segmentation
two-sample t-test. If σ is treated as known, a z-testcomparing two means when σ is estimated from the sampleType I and type II errors, and statistical power
two-sided (two-tailed) / one-sided (one-tailed) testboth directions / one directionThe t-test
two-stream, spatial stream · temporal streamone network for appearance and one for motionVideo classification: convolution with a time axis
two-way ANOVAanalysis of variance with two factorsFactorial designs and interaction
Type I error, false positiveClaiming an effect that is not thereHypothesis testing and the p-value
Type I error, false positiveFalse alarm, false discoveryMultiple comparisons
type I error, false positivefalse alarmType I and type II errors, and statistical power
type I error, false positivefinding a difference that is not thereThe t-test
type II error rateMiss rate, βSample size calculation
Type II error, false negativeMissedMultiple comparisons
Type II error, false negativeMissing an effect that is thereHypothesis testing and the p-value
type II error, false negativemissType I and type II errors, and statistical power
U-NetNetwork shape that shrinks then growsDiffusion models
Unbiased, unbiased estimatorRight on averageSamples, sampling distributions and the standard error
undefinedNo value thereFunctions and graphs
Undercomplete autoencoderAn autoencoder with a bottleneck narrower than its inputAutoencoders and VAEs
underfittinglearning too littleDropout
underfittingtoo simple to fit even the training dataOverfitting and generalization
Underfitting, overfittingNot learned enough, memorizingEarly stopping and reading learning curves
Uniform / exponential / binomial distributionFlat / waiting time / number of headsNormal distribution
uniform distributionEven spread between two endsWeight initialization
Union bound, Boole's inequalityAt most m × αMultiple comparisons
union, written A ∪ BA or BProbability and Bayes' theorem
union-findthe structure that answers "already connected?"Minimum spanning trees
unique solution / inconsistent system / infinitely many solutionsone answer / no answer / endlessly manyLinear systems and elimination
Unit circleA circle with radius 1Limits and continuity
Unit vectorA vector of length 1Vectors in n dimensions
unit vectora direction arrow of length 1Partial derivatives and the gradient
unit vectors, standard basisaxis arrows of length 1: i, j, kCross product
universal approximation theoremA wide layer can imitate almost any functionActivation functions
universal approximation theoremthe theorem that it can copy any shapeNeural networks
unknown token, [UNK]the "unknown" pieceTokenization
unknowns, variablesnumbers you don't know yet, x and yLinear systems and elimination
Unrolling (unfolding in time)Laying the loop out in timeRNNs and LSTMs
unsupervised learning · supervised learninglearning with no answers · learning from answersk-means clustering
updatestepThe training loop: one step, one epoch
upsamplinggrowing a mapImage segmentation
upstream gradientgradient from behindBackpropagation
validation setData kept out of training and used for fitting thisCalibration
Validation set, test setData kept asideEarly stopping and reading learning curves
validation set, test setdata not used for trainingk-nearest neighbors
ValueWhat a word hands overAttention
value function, objectiveThe discriminator's score VGANs
vanishing gradientSlopes shrinking toward the early layersActivation functions
vanishing gradientgradient heading to 0Vanishing and exploding gradients
vanishing gradientthe gradient gets close to 0 near the inputResidual connections (ResNet)
vanishing gradientthe slope shrinking layer by layerNeural networks
vanishing gradient / exploding gradientgradients shrinking away / blowing upBackpropagation
Vanishing gradient, exploding gradientGradients fading, gradients blowing upRNNs and LSTMs
vanishing gradient, exploding gradientValues and gradients fading or blowing upWeight initialization
variancespread (average squared distance from the mean)Principal component analysis
Variance inflation factor (VIF)How many times the wobble growsMultiple regression
Variance, precision / biasWobble / being wrong one wayBlock designs
variance, standard deviationswingDropout
Variance, standard deviation (σ)Spread Var[x], √Var[x]Normalization and standardization
variance, standard deviation (σ)How spread outWeight initialization
Variance. Written σ²Average of the squared distancesNormal distribution
Variational autoencoder (VAE)An autoencoder that sends inputs to distributionsAutoencoders and VAEs
vectorarrowVectors
vectorlist of numbersEmbeddings
Vector databaseA database that stores and searches vectorsVector search
vector databasea store that holds vectors and finds the nearest onesRAG
vector field, gradient fieldarrows laid over the whole mapPartial derivatives and the gradient
vector space, linear spacea collection you cannot leave by adding or stretchingVector spaces and subspaces
vector-Jacobian product (VJP)one row × JacobianJacobian and Hessian
Vector. Also called an ordered tupleAn ordered list of numbersVectors in n dimensions
vertexThe bottom of the bowlFunctions and graphs
vertexnodeGraph search: BFS and DFS
vertexnodeDijkstra's algorithm
vertexnodeTopological sort
vertex, nodedotMinimum spanning trees
Vision Transformer (ViT)A transformer that reads a picture in piecesVision Transformer (ViT)
vocabulary sizehow many different tokensEmbeddings
Vocabulary, size VEvery token the model knowsHow LLMs are trained
vocabulary, vocabvocabularyTransformers and LLMs
vocabulary, vocabulary sizelist of usable piecesTokenization
volume density · opacity (alpha)how thick · how much light is blocked3D vision: voxels, point clouds and NeRF
volume renderingcombining colors along a ray3D vision: voxels, point clouds and NeRF
Voronoi cellA cell made by "which center is nearest"Vector search
voxel · voxel grid3D pixel · grid of 3D cells3D vision: voxels, point clouds and NeRF
Wald interval / Wilson score intervalsimple formula / Wilson intervalConfidence intervals
Wald testComparing coefficient ÷ standard error with 1.96Logistic regression
Wald testa test that uses the same standard errorRisk, relative risk and odds ratio
warm restartraising it big againLearning rate schedules
warmupraising it slowly at the startLearning rate schedules
warmupraising the learning rate slowly at the startBatch size and gradient accumulation
Washout periodThe break in betweenRepeated measures and crossover designs
Weight decayShrink by a fixed ratio every stepWeight decay and L1/L2 regularization
weight decayshrinking weights toward 0Dropout
weight decay · early stoppingshrinking big weights · stopping earlyGrokking: generalizing long after memorizing
weight initializationPicking the first weightsWeight initialization
Weight sharingUsing the same filter at every spotConvolution and CNNs
weight updatethe change ΔWFine-tuning and LoRA
Weight, bias (also called the intercept)Weight, biasLogistic regression
weight, bias. Together they are the parametersweight, biasBackpropagation
weight, coefficientthe number each bump is multiplied byRBF
weight. A graph with costs is an edge-weighted graphcost of a lineMinimum spanning trees
Weighted average, weighted sumMixing by shareAttention
weighted quick-unionputting the smaller tree under the bigger oneMinimum spanning trees
weighted sum, pre-activationmultiply-and-add value zNeural networks
weights and biases togetherparametersNeural networks
weights, parametersthe numbers inside a modelFine-tuning and LoRA
Welch's ANOVAANOVA when spreads differAnalysis of variance (ANOVA)
Welch's t-testA t-test that allows different spreadsNonparametric tests
Welch's t-test. The degrees of freedom formula is Welch–Satterthwaitemethod that allows different spreadsThe t-test
WhiteningRemoving correlation to make the cloud roundNormalization and standardization
width, shape parameter. In SVMs, gamma (γ)the width σ, γ, εRBF
Wilcoxon signed-rank testComparing the same people before and after by rankNonparametric tests
within-class scatter matrixSpread inside the classes, S_WLinear discriminant analysis (LDA)
within-group sum of squares, error or residual sum of squares (SSW, SSE)within sum of squaresAnalysis of variance (ANOVA)
Woolf's methodthe standard error formula for the log odds ratioRisk, relative risk and odds ratio
word analogy, vector arithmeticword mathEmbeddings
WorkflowSteps in a fixed orderAI agents
worst case · average case · best caseworst · average · bestTime complexity (Big O)
x̂₀, posterior mean, output of the denoiserGuess of the originalDiffusion models
Yates' continuity correctionShrinking |O − E| by 0.5The chi-square test
Youden's J, Youden indexsensitivity + specificity − 1Diagnostic tests and the ROC curve
z-score, standard score. Converting is standardizationHow many standard deviations from the meanNormal distribution
Zero matrix. Written OA matrix of all zerosMatrix basics
zero point, asymmetric quantizationputting the smallest value at level 0Fine-tuning and LoRA
zero point. Using both s and z is called affine quantizationzero point zQuantization
zero vectorthe origin, 0Vector spaces and subspaces
zero vectorzero arrowLinear combinations and span
zero-shot classificationclassifying from class names alone, with no examplesMultimodal learning: how CLIP puts images and text in one space
× N, N×N blocks stackedEncoders and decoders: three kinds of transformer
β-VAEA VAE with a separate weight on KLAutoencoders and VAEs
βt, variance schedule, noise schedule. Growing in a straight line is a linear scheduleNoise added at each step / how it growsDiffusion models
γ (scale, gain) and β (shift, bias), learned parametersStretch and shiftNormalization and standardization
γ (scale, gain), β (shift, bias). Learned parametersthe stretch and the shiftBatch norm and layer norm
ε-greedy. Always picking the best is greedyRandom with probability ε, otherwise the bestReinforcement learning
ε-prediction, noise predictionGuessing the noiseDiffusion models
ᾱt (alpha bar), the running product of (1 − β)Share of the original leftDiffusion models
ℝn, real coordinate space, vector spaceAll vectors of n numbersVectors in n dimensions