> ML SERIES :: reference

Reference · use alongside any page

Notation and glossary

Machine learning borrows symbols from statistics and calculus. This page lists every symbol used in the series, shows how to read the main equations out loud, and defines the key terms, each linked to the page where it is introduced.

Symbols

SymbolSay itMeaningPage
x"x"A feature, or the input to a model01
y"y"The true label or target value01
ŷ"y-hat"The model's prediction; the hat means "predicted"01
X"capital X"The feature matrix: n rows by d columns02
n"n"Number of examples (rows)02
d"d"Number of features (columns)02
xᵢ, yᵢ"x sub i"The i-th example and its label04
m, b"m", "b"Slope and intercept of a line04
w, wⱼ"w sub j"Weights: the parameters a model learns07
θ"theta"All of a model's parameters together01
f_θ(x)"f of x with parameters theta"The model as a function01
L"L"The loss: one number for how wrong the model is01
Σ"sum"Add up the terms that follow, usually over every example04
∂L/∂w"partial L partial w"How much the loss changes when w changes slightly (the gradient)04
α or η"alpha" or "eta"The learning rate (step size)05
μ, σ"mu", "sigma"Mean and standard deviation, used for scaling05
λ"lambda"Regularization strength07
σ(z)"sigma of z"The sigmoid function; context tells you it is not the standard deviation08
z"z"A raw score before the activation function08
p"p"A predicted probability08
β"beta"Momentum factor05
ε"epsilon"A small amount; on page 14, the size of an adversarial change14
hₜ"h sub t"An RNN's hidden state at step t13
Q, K, V"queries, keys, values"The three inputs to attention13
Kᵀ"K transpose"A matrix flipped so rows become columns13

Reading the equations

Math notation is compact, not mysterious. Each equation below is followed by a plain-English sentence you could say out loud.

ŷ = m·x + b

Linear regression (page 04). Read it as: The prediction equals the slope times x, plus the intercept.

MSE = (1/n) Σ (yᵢ − ŷᵢ)²

Mean squared error (page 04). Read it as: Average the squared differences between the true and predicted values.

w ← w − α · ∂L/∂w

Gradient descent update (page 04). Read it as: Replace each weight with itself minus the learning rate times its gradient.

x_scaled = (x − μ) / σ

Standardization (page 05). Read it as: Subtract the mean, then divide by the standard deviation.

Loss = MSE + λ Σ wⱼ²

L2 regularization (page 07). Read it as: The error plus lambda times the sum of the squared weights.

σ(z) = 1 / (1 + e⁻ᶻ)

Sigmoid (page 08). Read it as: One over one plus e to the minus z; turns any score into a value between 0 and 1.

−[y log p + (1−y) log(1−p)]

Log loss (page 08). Read it as: If the label is 1, the loss is minus log p; if 0, minus log of one minus p.

precision = TP / (TP + FP)

Precision (page 09). Read it as: Of everything flagged, the share that was really positive.

recall = TP / (TP + FN)

Recall (page 09). Read it as: Of everything really positive, the share that was flagged.

hₜ = tanh(W·hₜ₋₁ + U·xₜ + b)

RNN update (page 13). Read it as: The new hidden state comes from the old state and the current input.

Glossary

TermMeaningPage
accuracyShare of predictions that are correct. Misleading on imbalanced data.09
activation functionThe nonlinear function a neuron applies to its weighted sum, such as ReLU or sigmoid.11
adversarial exampleAn input deliberately modified so a model misclassifies it.14
anomaly detectionFinding examples that do not fit the normal pattern.10
attentionA mechanism that lets each position in a sequence weigh every other position.13
backpropagationComputing every weight's gradient by applying the chain rule backward through a network.11
batch sizeNumber of examples used for one gradient step.05
bias (statistical)Error from a model's overly simple assumptions; high bias means underfitting.06
bias (neuron)The constant b added to a neuron's weighted sum.11
classificationPredicting a category.08
clusteringGrouping similar examples without labels.10
confusion matrixA table of true positives, false positives, false negatives, and true negatives.09
convolutionSliding a small filter across an input and recording how well each region matches.12
cross-validationTraining and validating k times on different splits and averaging the scores.09
data leakageInformation from outside the training data sneaking into training, inflating scores.02
decision boundaryThe line or surface where a classifier switches from one class to another.08
deep learningMachine learning with neural networks of many layers.01
driftChanges in real-world data over time that make a deployed model less accurate.02
dropoutRandomly switching off neurons during training to reduce overfitting.07
early stoppingEnding training when validation error starts to rise.07
epochOne full pass through the training data.05
evasionCrafting inputs at prediction time to fool a model.14
F1 scoreThe harmonic mean of precision and recall.09
featureA measurable input column describing each example.02
feature mapThe output of a convolution: where in the input a filter's pattern appears.12
feature scalingRescaling features to similar ranges so training converges faster.05
generalizationHow well a model performs on data it was not trained on.06
gradientThe direction and rate of steepest increase of the loss; training steps the opposite way.04
gradient descentRepeatedly adjusting parameters against the gradient to reduce the loss.04
hidden layerA layer of neurons between the input and output.11
hyperparameterA setting chosen before training, such as the learning rate or λ.07
inertiaIn k-means, the total squared distance from points to their cluster centers.10
inferenceUsing a trained model to make predictions.01
k-meansA clustering algorithm that alternates assigning points and moving cluster centers.10
labelThe correct answer for a training example.02
learning rateHow large a step gradient descent takes.05
linear regressionPredicting a number with a weighted sum of features plus a bias.04
log lossThe loss used for classification; punishes confident wrong answers.08
logistic regressionA linear score passed through a sigmoid to classify.08
loss functionA formula that turns a model's errors into one number to minimize.04
LSTMA recurrent network with gates that help it remember over long sequences.13
membership inferenceDetermining whether a specific record was in a model's training data.14
modelA function with learned parameters that maps inputs to predictions.01
model extractionCopying a model by training on its answers to many queries.14
momentumCarrying part of the previous step into the next to speed up gradient descent.05
neuronA unit computing a weighted sum plus bias, followed by an activation.11
overfittingMemorizing training data, including noise, so the model fails on new data.06
parameterA number inside the model that training adjusts.01
poisoningCorrupting training data to change what a model learns.14
poolingShrinking a feature map by summarizing blocks, for example with their maximum.12
precisionOf predicted positives, the share that are truly positive.09
prompt injectionHiding instructions in text an LLM reads, to hijack its behavior.14
recallOf true positives, the share the model caught.09
regressionPredicting a number.04
regularizationPenalizing model complexity, such as large weights, to reduce overfitting.07
reinforcement learningLearning from rewards and penalties earned by actions.01
ReLUThe activation max(0, z), standard for hidden layers.11
RNNA recurrent neural network: processes sequences while carrying a hidden state forward.13
ROC AUCArea under the ROC curve; how well a model ranks positives above negatives.09
sigmoidThe S-shaped function mapping any number into the range 0 to 1.08
softmaxTurns a list of scores into probabilities that sum to 1.08
supervised learningLearning from examples that have labels.01
test setData held back for one final, honest evaluation.02
thresholdThe probability above which a classifier predicts the positive class.09
training setThe data a model learns its parameters from.02
transformerA network architecture built from attention layers; the basis of LLMs.13
underfittingA model too simple to capture the pattern, with high error everywhere.06
unsupervised learningFinding structure in data without labels.10
validation setData used during development to compare models and settings.02
vanishing gradientGradients shrinking toward zero as they pass back through many layers or steps.13
varianceError from being too sensitive to the specific training sample; high variance means overfitting.06