AI glossary: terms starting with M

45 terms starting with M, each defined the way the lesson that teaches it uses it, with a link to every lesson where it appears.

machine epsilon

the gap between 1 and the next float, 2.22 × 10⁻¹⁶ in float64

Example: np.finfo(float).eps

machine learning

Choosing a program's parameters from examples, then using it on new examples.

MAE

Mean absolute error, average absolute prediction miss in the original unit.

Mahalanobis distance

Distance from the fitted centre after accounting for covariance.

Manhattan distance

The sum of the absolute differences.

MAR (missing at random)

Missingness independent of the missing value after conditioning on observed variables.

marginal distribution

One variable's distribution after counting across the other variable.

matrix

a table of numbers, written as a capital

Example: X, shape (3, 2)

Matrix product

Row-column combination written @

matrix–vector product

each row of the matrix dotted with the vector, one output per row

Example: Xw = (5, −3, 10)

maximum

the derivative changes from positive to negative

Example: x⁴ − 4x² + x at 0.126

maximum likelihood estimate

Parameter value where the observed-data likelihood is largest.

MCAR (missing completely at random)

Missingness probability independent of observed and unobserved values.

mean

The sum of observed values divided by their count.

Mean absolute error

total absolute error divided by evaluated trips; the average size of the error per trip.

mean squared error

The average of the squared residuals.

mean vector

One average coordinate for each feature.

mean vector (centroid)

the component-by-component mean of a set of points

Example: (4, 3)

median

the middle value; it minimises the sum of absolute errors

Example: 13.2 for the six hero prices

memorisation

Storing the training examples' answers instead of learning a rule, as model M does.

method

A function that belongs to an object, called with a dot: cart.append(...), review.lower().

mini-batch

A small group of training rows used for one update.

minimum

the derivative changes from negative to positive

Example: f′(1) = −1, f′(2) = 1

Minkowski distance

(Σ | dᵢ | ᵖ)^(1/p); Manhattan at p = 1, Euclidean at p = 2; a distance only for p ≥ 1.

missing outcome group

Cases whose result cannot be observed under the stated process.

missing value

A cell with no recorded value, read by pandas as NaN.

missingness

Absent recorded values in a stated field and set of rows: 135,080 lines have no CustomerID.

missingness mechanism

A possible reason a value is missing; the rows alone cannot say which one applies.

MNAR (missing not at random)

Missingness still depends on unavailable values after conditioning on observed information.

The histogram interval with the highest count under declared edges.

mode

The most frequent observed value under a stated precision (here, to the penny).

model

The form of the rule, with its parameters left open: "spam when the digit count is at least t".

module

A Python file that other code imports.

modulo

%: the remainder after floor division. 10 % 3 is 1, and -7 % 2 is 1.

monitoring

Measuring a deployed model's score on new labelled data.

Monte Carlo error

Difference caused by using finitely many random draws under a fixed model: 30.44% simulated against 29.94% exact.

Monte Carlo simulation

Repeated random draws and outcome calculations under stated assumptions.

moving average

The mean of each value and its neighbors; a centered three-week one uses the week and the weeks either side.

multi-class

Classification with more than two classes, such as the ten digits.

multicollinearity

Collinearity among more than two features.

multiple linear regression

A linear model with more than one feature.

multivariate normal

A normal probability model for a vector of jointly varying numeric features.

mutable

A type whose objects can be changed after they are created; a list is mutable, and so are sets and dictionaries.

mutation

Changing an object in place, which every alias sees: append, remove, sort, assigning to an index.

mutually exclusive

Two events with no shared outcomes, such as spam and real.