2Foundational Skills 2.3Mathematics Basics
2.3.1 Terms and Symbols Used in AI
Read the mathematical notation used throughout AI, from datasets and functions to vectors, probability, calculus and optimisation.
Mathematical notation lets us describe data, models and operations precisely. This page is a reference for the symbols used throughout the guide. You do not need to memorise everything at once; return here whenever unfamiliar notation appears.
Letter styles and decorations
The style of a letter often tells you what kind of object it represents.
| Notation | Meaning |
|---|---|
| Usually a scalar, meaning one numerical value. | |
| Usually a vector, meaning an ordered list of values. | |
| Usually a matrix or a collection of data. | |
| Usually a set or a space of possible values. | |
| Commonly a parameter or a collection of model parameters. | |
| Commonly indices used to identify positions or items. | |
| Commonly sizes, counts or dimensions. | |
| An estimated or predicted value of . | |
| The average of a collection of values named . | |
| A transformed, adjusted or approximate version of . | |
| An optimal, selected or otherwise distinguished value of . | |
| A modified or alternative version of . | |
| The -th observation or item. | |
| The -th component of . | |
| The entry at row and column . | |
| raised to the power . | |
| The transpose of . | |
| The inverse of , when it exists. |
Common AI and data notation
These conventions appear frequently in machine learning, although an author may choose different letters.
| Notation | Meaning |
|---|---|
| The input data or feature matrix. | |
| One input example or feature vector. | |
| The -th feature of an input. | |
| The -th input example. | |
| The -th feature of the -th example. | |
| A collection of target or output values. | |
| The target associated with the -th example. | |
| A predicted output. | |
| A collection of predicted outputs. | |
| A dataset. | |
| or | The number of examples, depending on the convention being used. |
| or | The number of features or dimensions. |
| or | The number of classes or groups. |
| A vector of weights. | |
| A bias or intercept. | |
| The parameters of a model. | |
| A function or model. | |
| A function or model controlled by parameters . | |
| A loss or objective function. | |
| A coefficient or weighting value whose exact meaning depends on context. |
Number systems and special values
| Notation | Meaning |
|---|---|
| The set of natural numbers. | |
| The set of integers. | |
| The set of rational numbers. | |
| The set of real numbers. | |
| The set of complex numbers. | |
| The set of real-valued vectors with components. | |
| The set of real-valued matrices with rows and columns. | |
| The number zero. | |
| A vector or matrix containing only zeros. | |
| The number one. | |
| A vector or matrix containing only ones. | |
| Infinity or an unbounded quantity. | |
| The mathematical constant pi. | |
| The base of the natural logarithm. |
Some sources include in and others begin at , so the intended definition should be stated when it matters.
Equality, comparison and approximation
| Notation | Meaning |
|---|---|
| is equal to . | |
| is not equal to . | |
| is approximately equal to . | |
| and are identical, equivalent or equal by definition, depending on context. | |
| is defined to be . | |
| is proportional to . | |
| is less than . | |
| is greater than . | |
| is less than or equal to . | |
| is greater than or equal to . | |
| is much smaller than . | |
| is much larger than . |
Basic arithmetic
| Notation | Meaning |
|---|---|
| The sum of and . | |
| The difference between and . | |
| , or | The product of and . |
| divided by . | |
| raised to the power . | |
| The square root of . | |
| The -th root of . | |
| The absolute value of the number . | |
| The remainder after dividing by . | |
| rounded down to the nearest integer. | |
| rounded up to the nearest integer. | |
| Plus or minus. | |
| The reciprocal of . |
Sets and intervals
| Notation | Meaning |
|---|---|
| A set. | |
| A set containing the listed elements. | |
| The set of values for which condition is true. | |
| belongs to set . | |
| does not belong to set . | |
| Every element of also belongs to . | |
| is a proper subset of . | |
| contains every element of . | |
| The union of and . | |
| The intersection of and . | |
| The elements in that are not in . | |
| The complement of . | |
| The empty set. | |
| The number of elements in set . | |
| The Cartesian product of and . | |
| The interval from to containing both endpoints. | |
| The interval from to excluding both endpoints. | |
| The interval containing but excluding . | |
| The interval excluding but containing . |
Logic
| Notation | Meaning |
|---|---|
| Statement is false. | |
| Both and are true. | |
| At least one of or is true. | |
| implies . | |
| and are logically equivalent. | |
| For every value of . | |
| There exists at least one value of . | |
| No such value of exists. | |
| The indicator that equals when is true and otherwise. |
Functions and mappings
| Notation | Meaning |
|---|---|
| The output of function for input . | |
| Function maps values from set to set . | |
| Input is mapped to output . | |
| The composition that applies and then applies . | |
| The inverse of function , when it exists. | |
| The domain of , containing its allowed inputs. | |
| The range of , containing the outputs it produces. | |
| A logarithm whose base depends on context. | |
| The natural logarithm of . | |
| The logarithm of to base . | |
| The exponential function . |
The notation means an inverse function, while usually means the reciprocal of a number or the inverse of a matrix.
Indices, sequences and collections
| Notation | Meaning |
|---|---|
| The item at index . | |
| A range or slice of items from index to index , with endpoint rules depending on context. | |
| An ordered sequence of values. | |
| A collection indexed from through . | |
| Index takes the integer values from through . | |
| The entry in row and column of matrix . | |
| The -th row of . | |
| The -th column of . | |
| The number of items in a sequence when used in that context. | |
| Values have been omitted because the pattern is understood. |
Sums, products and reductions
| Notation | Meaning |
|---|---|
| The sum of the values through . | |
| The product of the values through . | |
| The smallest of the listed values. | |
| The largest of the listed values. | |
| The smallest value produced by over . | |
| The largest value produced by over . | |
| The value or values of at which is smallest. | |
| The value or values of at which is largest. | |
| The arithmetic average of the values in . |
Vectors, matrices and tensors
| Notation | Meaning |
|---|---|
| A vector. | |
| A matrix. | |
| A tensor, when that convention is used. | |
| is a real-valued vector with components. | |
| is a real-valued matrix with rows and columns. | |
| The transpose of . | |
| The inverse of , when it exists. | |
| The pseudoinverse of . | |
| An identity matrix. | |
| A vector or matrix containing only zeros. | |
| A vector or matrix containing only ones. | |
| The matrix product of and . | |
| The elementwise product of and . | |
| The dot product of vectors and . | |
| A norm measuring the size of vector . | |
| The sum of the absolute values of the components of . | |
| The Euclidean length of . | |
| The Frobenius norm of matrix . | |
| The determinant of square matrix . | |
| The sum of the diagonal entries of square matrix . | |
| The number of linearly independent rows or columns of . | |
| The -th row of . | |
| The -th column of . | |
| The dimensions of . |
Calculus notation
This section introduces the symbols for recognition. The Calculus module explains the ideas behind them.
| Notation | Meaning |
|---|---|
| The derivative of with respect to . | |
| The derivative of at . | |
| The partial derivative of with respect to . | |
| The gradient of . | |
| The gradient of with respect to vector . | |
| The indefinite integral of . | |
| The definite integral of from to . | |
| The limit of as approaches . | |
| A finite change in . |
Probability notation
| Notation | Meaning |
|---|---|
| A random variable when used in a probability context. | |
| A possible observed value of random variable . | |
| The probability of event . | |
| The probability that takes the value . | |
| The probability of given that has occurred. | |
| The joint probability of and . | |
| A probability mass or probability density value associated with . | |
| A conditional probability mass or density. | |
| Random variable follows distribution . | |
| Random variables and are independent. | |
| The expected value of . | |
| The variance of . | |
| The covariance of and . | |
| The correlation between and . |
Statistics and estimation notation
| Notation | Meaning |
|---|---|
| The sample mean. | |
| Commonly a population mean. | |
| Commonly a population standard deviation. | |
| Commonly a population variance. | |
| Commonly a sample standard deviation. | |
| Commonly a sample variance. | |
| The number of observations. | |
| An estimate of parameter . | |
| A transformed, adjusted or approximate version of . |
Optimisation notation
| Notation | Meaning |
|---|---|
| A function being evaluated or optimised. | |
| A loss or objective that depends on parameters . | |
| An optimal value of . | |
| The smallest loss obtainable by varying . | |
| The parameter value or values that produce the smallest loss. | |
| The largest value obtainable by varying . | |
| The parameter value or values that produce the largest value. | |
| Commonly a step size or learning rate. | |
| The value of at step . |
Common mathematical and AI terms
| Term | Meaning |
|---|---|
| Scalar | A single numerical value. |
| Variable | A symbol whose value may change or be unknown. |
| Constant | A value treated as fixed in the current context. |
| Coefficient | A value that multiplies another quantity. |
| Parameter | A value that controls a model or function. |
| Estimate | A value calculated as an approximation of an unknown quantity. |
| Prediction | An output produced by a model for given input data. |
| Feature | An input property or measurement used by a model. |
| Target | The value a supervised model is intended to predict. |
| Label | A target value, especially a category in classification. |
| Observation | One recorded item or example in a dataset. |
| Sample | One observation or a collection drawn from a larger population, depending on context. |
| Dimension | The number of components or independent directions in an object or space. |
| Shape | The sizes of an array along each of its axes. |
| Index | A value used to identify a position or item. |
| Axis | A direction along which the entries of an array are arranged. |
| Vector | An ordered one-dimensional collection of values. |
| Matrix | A rectangular two-dimensional arrangement of values. |
| Tensor | A multidimensional array of values. |
| Function | A rule that assigns an output to each allowed input. |
| Input | A value supplied to a function or model. |
| Output | A value produced by a function or model. |
| Domain | The set of inputs for which a function is defined. |
| Range | The set of outputs a function actually produces. |
| Constraint | A condition that an allowed value or solution must satisfy. |
| Objective | A quantity that an optimisation process tries to minimise or maximise. |
| Loss | A numerical measure of how wrong a prediction or model is. |
| Norm | A function that measures the size or length of a vector or matrix. |
| Distance | A measure of how far apart two objects are. |
| Distribution | A description of how probability is assigned across possible values. |
| Event | A set of possible outcomes in a probability setting. |
| Random variable | A variable whose value is determined by a random outcome. |
| Expected value | The probability-weighted average value of a random variable. |
| Variance | A measure of how widely values vary around their mean. |
| Gradient | A vector containing the partial derivatives of a scalar-valued function. |
| Derivative | A measure of how a quantity changes as another quantity changes. |
You are not expected to memorise this reference before continuing. Learn the notation as it appears, and return to this page whenever a symbol is unfamiliar.
Finished this module? Mark it done.
Comments
Stuck on something, spotted a mistake, or found a resource that helped you? Tell us below.
Loading comments