"Multinormal" (Machine Learning Method)
- Method for LearnDistribution.
- Models the probability density using a multivariate normal (Gaussian) distribution.
Details & Suboptions
- "Multinormal" models the probability density of a numeric space using a multivariate normal distribution as in MultinormalDistribution.
- The probability density for vector
is proportional to
, where
and
are learned parameters. If n is the size of the input numeric vector,
is an n×n symmetric positive definite matrix called covariance, and
is a size-n vector.
- The following options can be given:
-
"CovarianceType" "Full" type of constraint on the covariance matrix "IntrinsicDimension" Automatic effective dimensionality of the data to assume - Possible settings for "CovarianceType" include:
-
"Diagonal" only diagonal elements are learned (the others are set to 0) "Full" all n×n elements are learned "Spherical" only diagonal elements are learned and are set to be equal - Possible settings for "IntrinsicDimension" include:
-
Automatic try several possible dimensions "Heuristic" use a heuristic based on the data k use the specified dimension - When "CovarianceType""Full" and "IntrinsicDimension"k, with k<n, a linear dimensionality reduction is performed on the data. A full k×k covariance matrix is used to model data in the reduced space (which can be interpreted as the "signal" part), while a spherical covariance matrix is used to model the n-k remaining dimensions (which can be interpreted as the "noise" part).
- The value of "IntrinsicDimension" is ignored when "CovarianceType""Diagonal" or "CovarianceType""Spherical".
- Information[LearnedDistribution[…],"MethodOption"] can be used to extract the values of options chosen by the automation system.
- LearnDistribution[…,FeatureExtractor"Minimal"] can be used to remove most preprocessing and directly access the method.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Train a "Multinormal" distribution on a numeric dataset:

https://wolfram.com/xid/0bqb5mj7q502-6wc05d

Look at the distribution Information:

https://wolfram.com/xid/0bqb5mj7q502-zci6sv


https://wolfram.com/xid/0bqb5mj7q502-d4gaww

Obtain an option value directly:

https://wolfram.com/xid/0bqb5mj7q502-tm1l4s

Compute the probability density for a new example:

https://wolfram.com/xid/0bqb5mj7q502-37we6q

Plot the PDF along with the training data:

https://wolfram.com/xid/0bqb5mj7q502-jfmxrj

Generate and visualize new samples:

https://wolfram.com/xid/0bqb5mj7q502-trbtxb

Train a "Multinormal" distribution on a two-dimensional dataset:

https://wolfram.com/xid/0bqb5mj7q502-g4novm

https://wolfram.com/xid/0bqb5mj7q502-4ewt2p

Plot the PDF along with the training data:

https://wolfram.com/xid/0bqb5mj7q502-i4ttni

Use SynthesizeMissingValues to impute missing values using the learned distribution:

https://wolfram.com/xid/0bqb5mj7q502-og5slp


https://wolfram.com/xid/0bqb5mj7q502-feqqk1

Train a "Multinormal" distribution on a nominal dataset:

https://wolfram.com/xid/0bqb5mj7q502-36gxxt

Because of the necessary preprocessing, the PDF computation is not exact:

https://wolfram.com/xid/0bqb5mj7q502-wbm3in


https://wolfram.com/xid/0bqb5mj7q502-jokluj

Use ComputeUncertainty to obtain the uncertainty on the result:

https://wolfram.com/xid/0bqb5mj7q502-29ml4l

Increase MaxIterations to improve the estimation precision:

https://wolfram.com/xid/0bqb5mj7q502-5lufi6

Options (2)Common values & functionality for each option
"CovarianceType" (1)
Train a "Multinormal" distribution with a "Full" covariance:

https://wolfram.com/xid/0bqb5mj7q502-ol3902

https://wolfram.com/xid/0bqb5mj7q502-1xytp2

Evaluate the PDF of the distribution at a specific point:

https://wolfram.com/xid/0bqb5mj7q502-v8vvn8

Visualize the PDF obtained after training a multinormal with covariance types "Full", "Diagonal" and "Spherical":

https://wolfram.com/xid/0bqb5mj7q502-3oji9z

https://wolfram.com/xid/0bqb5mj7q502-6gqzwl

"IntrinsicDimension" (1)
Train a "Multinormal" distribution with a "Full" covariance and an intrinsic dimension of 1:

https://wolfram.com/xid/0bqb5mj7q502-e34hxq

https://wolfram.com/xid/0bqb5mj7q502-vf8dac

Visualize samples generated from the distribution:

https://wolfram.com/xid/0bqb5mj7q502-bhak2v

Compare with samples generated with an intrinsic dimension of 3:

https://wolfram.com/xid/0bqb5mj7q502-9kjfcf


https://wolfram.com/xid/0bqb5mj7q502-gb5sg7
