Notation
A concise reference describing the notation used throughout the book (pp. xi–xiv). If you are unfamiliar with any of the corresponding mathematical concepts, chapters 2–4 describe most of these ideas. The typography carries meaning: italic is a scalar, bold a vector, bold capital a matrix, sans-serif a tensor — and upright roman , , are their random-variable counterparts.
Numbers and Arrays
- A scalar (integer or real)
- A vector
- A matrix
- A tensor
- Identity matrix with rows and columns
- Identity matrix with dimensionality implied by context
- Standard basis vector with a 1 at position
- A square, diagonal matrix with diagonal entries given by
- A scalar random variable
- A vector-valued random variable
- A matrix-valued random variable
Sets and Graphs
- A set
- The set of real numbers
- The set containing 0 and 1
- The set of all integers between and
- The real interval including and
- The real interval excluding but including
- Set subtraction, i.e., the set containing the elements of that are not in
- A graph
- The parents of in
Indexing
- Element of vector , with indexing starting at 1
- All elements of vector except for element
- Element of matrix
- Row of matrix
- Column of matrix
- Element of a 3-D tensor
- 2-D slice of a 3-D tensor
- Element of the random vector
Linear Algebra Operations
- Transpose of matrix
- Moore-Penrose pseudoinverse of
- Element-wise (Hadamard) product of and
- Determinant of
Calculus
- Derivative of with respect to
- Partial derivative of with respect to
- Gradient of with respect to
- Matrix derivatives of with respect to
- Tensor containing derivatives of with respect to
- Jacobian matrix of
- The Hessian matrix of at input point
- Definite integral over the entire domain of
- Definite integral with respect to over the set
Probability and Information Theory
- The random variables and are independent
- They are conditionally independent given
- A probability distribution over a discrete variable
- A probability distribution over a continuous variable, or over a variable whose type has not been specified
- Random variable has distribution
- Expectation of with respect to
- Variance of under
- Covariance of and under
- Shannon entropy of the random variable
- Kullback-Leibler divergence of P and Q
- Gaussian distribution over with mean and covariance
Functions
Sometimes we use a function f whose argument is a scalar but apply it to a vector, matrix, or tensor: , , or . This denotes the application of to the array element-wise. For example, if , then for all valid values of , and .
- The function with domain and range
- Composition of the functions and
- A function of parametrized by . (Sometimes we write and omit the argument to lighten notation)
- Natural logarithm of
- Logistic sigmoid,
- Softplus,
- norm of
- norm of
- Positive part of , i.e.,
- is 1 if the condition is true, 0 otherwise
Datasets and Distributions
- The data generating distribution
- The empirical distribution defined by the training set
- A set of training examples
- The -th example (input) from a dataset
- The target associated with for supervised learning
- The matrix with input example in row