WOLFRAM

  • 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" Automaticeffective 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:
  • Automatictry several possible dimensions
    "Heuristic"use a heuristic based on the data
    kuse 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 all

Basic Examples  (3)Summary of the most common use cases

Train a "Multinormal" distribution on a numeric dataset:

Out[1]=1

Look at the distribution Information:

Out[2]=2

Obtain options information:

Out[3]=3

Obtain an option value directly:

Out[4]=4

Compute the probability density for a new example:

Out[5]=5

Plot the PDF along with the training data:

Out[6]=6

Generate and visualize new samples:

Out[7]=7

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

Out[2]=2

Plot the PDF along with the training data:

Out[3]=3

Use SynthesizeMissingValues to impute missing values using the learned distribution:

Out[4]=4
Out[5]=5

Train a "Multinormal" distribution on a nominal dataset:

Out[1]=1

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

Out[2]=2
Out[3]=3

Use ComputeUncertainty to obtain the uncertainty on the result:

Out[4]=4

Increase MaxIterations to improve the estimation precision:

Out[5]=5

Options  (2)Common values & functionality for each option

"CovarianceType"  (1)

Train a "Multinormal" distribution with a "Full" covariance:

Out[2]=2

Evaluate the PDF of the distribution at a specific point:

Out[3]=3

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

Out[5]=5

"IntrinsicDimension"  (1)

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

Out[2]=2

Visualize samples generated from the distribution:

Out[3]=3

Compare with samples generated with an intrinsic dimension of 3:

Out[4]=4
Out[5]=5