Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Statistics and Machine Learning Toolbox Functions

Alphabetical List By Category

Descriptive Statistics and Visualization

Managing Data

Data Import and Export

casereadRead case names from file
casewriteWrite case names to file
exportWrite dataset array to file
tblreadRead tabular data from file
tblwriteWrite tabular data to file
tdfreadRead tab-delimited file
xlsreadRead Microsoft Excel spreadsheet file
xptreadCreate table from data stored in SAS XPORT format file

Data Types

nominalCreate nominal array
ordinalCreate ordinal array
dummyvarCreate dummy variables
gplotmatrixMatrix of scatter plots by group
grp2idxCreate index vector from grouping variable
gscatterScatter plot by group
mat2datasetConvert matrix to dataset array
cell2datasetConvert cell array to dataset array
struct2datasetConvert structure array to dataset array
table2datasetConvert table to dataset array
dataset2cellConvert dataset array to cell array
dataset2structConvert dataset array to structure
dataset2tableConvert dataset array to table
exportWrite dataset array to file
ismissingFind dataset array elements with missing values
joinMerge observations
nominalArrays for nominal data
ordinalArrays for ordinal data
datasetArrays for statistical data

Descriptive Statistics

geomeanGeometric mean
harmmeanHarmonic mean
trimmeanMean excluding outliers
nanmeanMean ignoring NaN values
nanmedianMedian ignoring NaN values
kurtosisKurtosis
momentCentral moments
skewnessSkewness
nanstdStandard deviation ignoring NaN values
nanvarVariance, ignoring NaN values
rangeRange of values
nanmaxMaximum ignoring NaN values
nanminMinimum ignoring NaN values
iqrInterquartile range
madMean or median absolute deviation
prctilePercentiles of a data set
quantileQuantiles of a data set
zscoreStandardized z-scores
corrLinear or rank correlation
robustcovRobust multivariate covariance and mean estimate
cholcovCholesky-like covariance decomposition
corrcovConvert covariance matrix to correlation matrix
partialcorrLinear or rank partial correlation coefficients
partialcorriPartial correlation coefficients adjusted for internal variables
nancovCovariance ignoring NaN values
grpstatsSummary statistics organized by group
tabulateFrequency table
crosstabCross-tabulation
tiedrankRank adjusted for ties
nansumSum ignoring NaN values

Statistical Visualization

andrewsplotAndrews plot
binScatterPlotScatter plot of bins for tall arrays
biplotBiplot
boxplotBox plot
glineInteractively add line to plot
gnameAdd case names to plot
gplotmatrixMatrix of scatter plots by group
glyphplotGlyph plot
gscatterScatter plot by group
hist3Bivariate histogram
lslineAdd least-squares line to scatter plot
parallelcoordsParallel coordinates plot
refcurveAdd reference curve to plot
reflineAdd reference line to plot
scatterhistScatter plot with marginal histograms

Probability Distributions

Discrete Distributions

Binomial Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
binocdfBinomial cumulative distribution function
binopdfBinomial probability density function
binoinvBinomial inverse cumulative distribution function
binostatBinomial mean and variance
binofitBinomial parameter estimates
binorndBinomial random numbers
BinomialDistributionBinomial probability distribution object

Geometric Distribution

geocdfGeometric cumulative distribution function
geopdfGeometric probability density function
geoinvGeometric inverse cumulative distribution function
geostatGeometric mean and variance
georndGeometric random numbers
randomRandom numbers

Hypergeometric Distribution

hygecdfHypergeometric cumulative distribution function
hygepdfHypergeometric probability density function
hygeinvHypergeometric inverse cumulative distribution function
hygestatHypergeometric mean and variance
hygerndHypergeometric random numbers
randomRandom numbers

Multinomial Distribution

makedistCreate probability distribution object
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
pdfProbability density functions
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mnpdfMultinomial probability density function
mnrndMultinomial random numbers
MultinomialDistributionMultinomial probability distribution object

Negative Binomial Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
nbincdfNegative binomial cumulative distribution function
nbinpdfNegative binomial probability density function
nbininvNegative binomial inverse cumulative distribution function
nbinstatNegative binomial mean and variance
nbinfitNegative binomial parameter estimates
nbinrndNegative binomial random numbers
NegativeBinomialDistributionNegative binomial distribution object

Poisson Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
poisscdfPoisson cumulative distribution function
poisspdfPoisson probability density function
poissinvPoisson inverse cumulative distribution function
poisstatPoisson mean and variance
poissfitPoisson parameter estimates
poissrndPoisson random numbers
PoissonDistributionPoisson probability distribution object

Uniform Distribution (Discrete)

unidcdfDiscrete uniform cumulative distribution function
unidpdfDiscrete uniform probability density function
unidinvDiscrete uniform inverse cumulative distribution function
unidstatDiscrete uniform mean and variance
unidrndDiscrete uniform random numbers
randomRandom numbers

Continuous Distributions

Beta Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
betacdfBeta cumulative distribution function
betapdfBeta probability density function
betainvBeta inverse cumulative distribution function
betalikeBeta negative log-likelihood
betastatBeta mean and variance
betafitBeta parameter estimates
betarndBeta random numbers
BetaDistributionBeta probability distribution object

Birnbaum-Saunders Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
BirnbaumSaundersDistributionBirnbaum-Saunders probability distribution object

Burr Type XII Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
BurrDistributionBurr probability distribution object

Chi-Square Distribution

chi2cdfChi-square cumulative distribution function
chi2pdfChi-square probability density function
chi2invChi-square inverse cumulative distribution function
chi2statChi-square mean and variance
chi2gofChi-square goodness-of-fit test
chi2rndChi-square random numbers
randomRandom numbers

Exponential Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
expcdfExponential cumulative distribution function
exppdfExponential probability density function
expinvExponential inverse cumulative distribution function
explikeExponential negative log-likelihood
expstatExponential mean and variance
expfitExponential parameter estimates
exprndExponential random numbers
ExponentialDistributionExponential probability distribution object

Extreme Value Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
evcdfExtreme value cumulative distribution function
evpdfExtreme value probability density function
evinvExtreme value inverse cumulative distribution function
evlikeExtreme value negative log-likelihood
evstatExtreme value mean and variance
evfitExtreme value parameter estimates
evrndExtreme value random numbers
ExtremeValueDistributionExtreme value probability distribution object

F Distribution

fcdfF cumulative distribution function
fpdfF probability density function
finvF inverse cumulative distribution function
fstatF mean and variance
frndF random numbers
randomRandom numbers

Gamma Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
gamcdfGamma cumulative distribution function
gampdfGamma probability density function
gaminvGamma inverse cumulative distribution function
gamlikeGamma negative log-likelihood
gamstatGamma mean and variance
gamfitGamma parameter estimates
gamrndGamma random numbers
randgGamma random numbers with unit scale
GammaDistributionGamma probability distribution object

Gaussian Mixture Distribution

fitgmdistFit Gaussian mixture distribution to data
randomRandom numbers from Gaussian mixture distribution
pdfProbability density function for Gaussian mixture distribution
gmdistributionConstruct Gaussian mixture distribution

Generalized Extreme Value Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
gevcdfGeneralized extreme value cumulative distribution function
gevpdfGeneralized extreme value probability density function
gevinvGeneralized extreme value inverse cumulative distribution function
gevlikeGeneralized extreme value negative log-likelihood
gevstatGeneralized extreme value mean and variance
gevfitGeneralized extreme value parameter estimates
gevrndGeneralized extreme value random numbers
GeneralizedExtremeValueDistributionGeneralized extreme value probability distribution object

Generalized Pareto Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
gpcdfGeneralized Pareto cumulative distribution function
gppdfGeneralized Pareto probability density function
gpinvGeneralized Pareto inverse cumulative distribution function
gplikeGeneralized Pareto negative log-likelihood
gpstatGeneralized Pareto mean and variance
gpfitGeneralized Pareto parameter estimates
gprndGeneralized Pareto random numbers
GeneralizedParetoDistributionGeneralized Pareto probability distribution object

Half-Normal Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
HalfNormalDistributionHalf-normal probability distribution object

Inverse Gaussian Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
InverseGaussianDistributionInverse Gaussian probability distribution object

Kernel Distribution

fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
ksdensityKernel smoothing function estimate for univariate and bivariate data
mvksdensityKernel smoothing function estimate for multivariate data
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
pdfProbability density functions
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
KernelDistributionKernel probability distribution object

Logistic Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
LogisticDistributionLogistic probability distribution object

Loglogistic Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
LoglogisticDistributionLoglogistic probability distribution object

Lognormal Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
logncdfLognormal cumulative distribution function
lognpdfLognormal probability density function
logninvLognormal inverse cumulative distribution function
lognlikeLognormal negative log-likelihood
lognstatLognormal mean and variance
lognfitLognormal parameter estimates
lognrndLognormal random numbers
LognormalDistributionLognormal probability distribution object

Nakagami Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
NakagamiDistributionNakagami probability distribution object

Noncentral Chi-Square Distribution

ncx2cdfNoncentral chi-square cumulative distribution function
ncx2pdfNoncentral chi-square probability density function
ncx2invNoncentral chi-square inverse cumulative distribution function
ncx2statNoncentral chi-square mean and variance
ncx2rndNoncentral chi-square random numbers
randomRandom numbers

Noncentral F Distribution

ncfcdfNoncentral F cumulative distribution function
ncfpdfNoncentral F probability density function
ncfinvNoncentral F inverse cumulative distribution function
ncfstatNoncentral F mean and variance
ncfrndNoncentral F random numbers
randomRandom numbers

Noncentral t Distribution

nctcdfNoncentral t cumulative distribution function
nctpdfNoncentral t probability density function
nctinvNoncentral t inverse cumulative distribution function
nctstatNoncentral t mean and variance
nctrndNoncentral t random numbers
randomRandom numbers

Normal Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
normcdfNormal cumulative distribution function
normpdfNormal probability density function
norminvNormal inverse cumulative distribution function
normlikeNormal negative log-likelihood
normstatNormal mean and variance
normfitNormal parameter estimates
normrndNormal random numbers
NormalDistributionNormal probability distribution object

Piecewise Linear Distribution

makedistCreate probability distribution object
paretotailsConstruct Pareto tails object
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
pdfProbability density functions
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
PiecewiseLinearDistributionPiecewise linear probability distribution object

Rayleigh Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
raylcdfRayleigh cumulative distribution function
raylpdfRayleigh probability density function
raylinvRayleigh inverse cumulative distribution function
raylstatRayleigh mean and variance
raylfitRayleigh parameter estimates
raylrndRayleigh random numbers
RayleighDistributionRayleigh probability distribution object

Rician Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
RicianDistributionRician probability distribution object

Stable Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
StableDistributionStable probability distribution object

Student's t Distribution

tcdfStudent's t cumulative distribution function
tpdfStudent's t probability density function
tinvStudent's t inverse cumulative distribution function
tstatStudent's t mean and variance
trndStudent's t random numbers
randomRandom numbers

t Location-Scale Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
tLocationScaleDistributiont Location-Scale probability distribution object

Triangular Distribution

makedistCreate probability distribution object
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
pdfProbability density functions
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
TriangularDistributionTriangular probability distribution object

Uniform Distribution (Continuous)

makedistCreate probability distribution object
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
pdfProbability density functions
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
unifcdfContinuous uniform cumulative distribution function
unifpdfContinuous uniform probability density function
unifinvContinuous uniform inverse cumulative distribution function
unifitContinuous uniform parameter estimates
unifstatContinuous uniform mean and variance
unifrndContinuous uniform random numbers
UniformDistributionUniform probability distribution object

Weibull Distribution

makedistCreate probability distribution object
fitdistFit probability distribution object to data
distributionFitterOpen Distribution Fitter app
cdfCumulative distribution functions
icdfInverse cumulative distribution functions
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative log likelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density functions
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
wblcdfWeibull cumulative distribution function
wblpdfWeibull probability density function
wblinvWeibull inverse cumulative distribution function
wbllikeWeibull negative log-likelihood
wblstatWeibull mean and variance
wblfitWeibull parameter estimates
wblrndWeibull random numbers
WeibullDistributionWeibull probability distribution object

Multivariate Distributions

Copula Distributions and Correlated Samples

copulacdfCopula cumulative distribution function
copulapdfCopula probability density function
copulaparamCopula parameters as function of rank correlation
copulastatCopula rank correlation
copulafitFit copula to data
copularndCopula random numbers

Inverse Wishart Distribution

iwishrndInverse Wishart random numbers

Multivariate Normal Distribution

mvncdfMultivariate normal cumulative distribution function
mvnpdfMultivariate normal probability density function
mvnrndMultivariate normal random numbers

Multivariate t Distribution

mvtcdfMultivariate t cumulative distribution function
mvtpdfMultivariate t probability density function
mvtrndMultivariate t random numbers

Wishart Distribution

wishrndWishart random numbers

Exploration and Visualization

boxplotBox plot
histfitHistogram with a distribution fit
normplotNormal probability plot
normspecNormal density plot between specifications
probplotProbability plots
qqplotQuantile-quantile plot
wblplotWeibull probability plot
cdfplotEmpirical cumulative distribution function plot
ecdfEmpirical cumulative distribution function
ecdfhistHistogram based on empirical cumulative distribution function
ksdensityKernel smoothing function estimate for univariate and bivariate data
Probability Distribution FunctionInteractive density and distribution plots
fsurfhtInteractive contour plot
randtoolInteractive random number generation
surfhtInteractive contour plot

Pseudorandom and Quasirandom Number Generation

slicesampleSlice sampler
mhsampleMetropolis-Hastings sample
hmcSamplerHamiltonian Monte Carlo (HMC) sampler
pearsrndPearson system random numbers
johnsrndJohnson system random numbers
haltonsetConstruct Halton quasi-random point set
qrandsetAbstract quasi-random point set class
qrandstreamConstruct quasi-random number stream
sobolsetConstruct Sobol quasi-random point set
HamiltonianSamplerHamiltonian Monte Carlo (HMC) sampler

Resampling Techniques

bootciBootstrap confidence interval
bootstrpBootstrap sampling
combnkEnumeration of combinations
crossvalLoss estimate using cross validation
datasampleRandomly sample from data, with or without replacement
jackknifeJackknife sampling
randsampleRandom sample

Hypothesis Tests

adtestAnderson-Darling test
chi2gofChi-square goodness-of-fit test
crosstabCross-tabulation
dwtestDurbin-Watson test
fishertestFisher’s exact test
jbtestJarque-Bera test
kstestOne-sample Kolmogorov-Smirnov test
kstest2Two-sample Kolmogorov-Smirnov test
lillietestLilliefors test
runstestRun test for randomness
friedmanFriedman’s test
kruskalwallisKruskal-Wallis test
multcompareMultiple comparison test
ranksumWilcoxon rank sum test
sampsizepwrSample size and power of test
signrankWilcoxon signed rank test
signtestSign test
ttestOne-sample and paired-sample t-test
ttest2Two-sample t-test
ztestz-test
ansaribradleyAnsari-Bradley test
barttestBartlett’s test
sampsizepwrSample size and power of test
vartestChi-square variance test
vartest2Two-sample F-test for equal variances
vartestn Multiple-sample tests for equal variances

Cluster Analysis

Hierarchical Clustering

clusterConstruct agglomerative clusters from linkages
clusterdataAgglomerative clusters from data
cophenetCophenetic correlation coefficient
inconsistentInconsistency coefficient
linkageAgglomerative hierarchical cluster tree
pdistPairwise distance between pairs of observations
squareformFormat distance matrix

k-Means and k-Medoids Clustering

kmeansk-means clustering
kmedoidsk-medoids clustering
mahalMahalanobis distance

Gaussian Mixture Models

fitgmdistFit Gaussian mixture distribution to data
clusterConstruct clusters from Gaussian mixture distribution
posteriorPosterior probabilities of components
gmdistributionConstruct Gaussian mixture distribution

Nearest Neighbors

ExhaustiveSearcherExhaustive nearest neighbor searcher
KDTreeSearcherNearest neighbor search using Kd-tree
ExhaustiveSearcherPrepare exhaustive nearest neighbor searcher
KDTreeSearcherGrow Kd-tree
creatensCreate object to use in k-nearest neighbor search
knnsearchk-nearest neighbor search using Kd-tree or exhaustive search
rangesearchFind all neighbors within specified distance using exhaustive search or Kd-tree

Hidden Markov Models

hmmdecodeHidden Markov model posterior state probabilities
hmmestimateHidden Markov model parameter estimates from emissions and states
hmmgenerateHidden Markov model states and emissions
hmmtrainHidden Markov model parameter estimates from emissions
hmmviterbiHidden Markov model most probable state path

Cluster Visualization and Evaluation

dendrogramDendrogram plot
optimalleaforderOptimal leaf ordering for hierarchical clustering
manovaclusterDendrogram of group mean clusters following MANOVA
silhouetteSilhouette plot
evalclustersEvaluate clustering solutions
addKEvaluate additional numbers of clusters
compactCompact clustering evaluation object
increaseBIncrease reference data sets
plot Plot clustering evaluation object criterion values
CalinskiHarabaszEvaluationCalinski-Harabasz criterion clustering evaluation object
DaviesBouldinEvaluationDavies-Bouldin criterion clustering evaluation object
GapEvaluationGap criterion clustering evaluation object
SilhouetteEvaluationSilhouette criterion clustering evaluation object

ANOVA

Analysis of Variance and Covariance

anova1One-way analysis of variance
anova2Two-way analysis of variance
anovanN-way analysis of variance
aoctoolInteractive analysis of covariance
canoncorrCanonical correlation
dummyvarCreate dummy variables
friedmanFriedman’s test
kruskalwallisKruskal-Wallis test
multcompareMultiple comparison test

Repeated Measures and MANOVA

fitrmFit repeated measures model
ranovaRepeated measures analysis of variance
mauchlyMauchly’s test for sphericity
epsilonEpsilon adjustment for repeated measures anova
multcompareMultiple comparison of estimated marginal means
anovaAnalysis of variance for between-subject effects
manovaMultivariate analysis of variance
coeftestLinear hypothesis test on coefficients of repeated measures model
grpstatsCompute descriptive statistics of repeated measures data by group
margmean Estimate marginal means
plotPlot data with optional grouping
plotprofile Plot expected marginal means with optional grouping
predictCompute predicted values given predictor values
random Generate new random response values given predictor values
manova1One-way multivariate analysis of variance
manovaclusterDendrogram of group mean clusters following MANOVA
RepeatedMeasuresModelRepeated measures model class

Regression

Linear Regression

Multiple Linear Regression

LinearModelLinear regression model class
CompactLinearModelCompact linear regression model class
RegressionLinearLinear regression model for high-dimensional data
RegressionPartitionedLinearCross-validated linear regression model for high-dimensional data
fitlmCreate linear regression model
stepwiselm Create linear regression model using stepwise regression
compactCompact linear regression model
dispDisplay linear regression model
fevalEvaluate linear regression model prediction
predictPredict response of linear regression model
randomSimulate responses for linear regression model
plotScatter plot or added variable plot of linear model
plotAdjustedResponseAdjusted response plot for linear regression model
fitrlinearFit linear regression model to high-dimensional data
predictPredict response of linear regression model
dummyvarCreate dummy variables
invpredInverse prediction
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
plsregressPartial least-squares regression
relieffImportance of attributes (predictors) using ReliefF algorithm
x2fxConvert predictor matrix to design matrix
regressMultiple linear regression
robustdemoInteractive robust regression
robustfitRobust regression
rsmdemoInteractive response surface demonstration
rstoolInteractive response surface modeling

Stepwise Regression

LinearModelLinear regression model class
stepwiselm Create linear regression model using stepwise regression
fitlmCreate linear regression model
addTermsAdd terms to linear regression model
removeTermsRemove terms from linear model
stepImprove linear regression model by adding or removing terms
stepwiseInteractive stepwise regression
stepwisefitStepwise regression
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots

Multivariate Regression

mvregressMultivariate linear regression
mvregresslikeNegative log-likelihood for multivariate regression
polytoolInteractive polynomial fitting
polyconfPolynomial confidence intervals

Regularization

RegressionLinearLinear regression model for high-dimensional data
RegressionPartitionedLinearCross-validated linear regression model for high-dimensional data
lassoRegularized least-squares regression using lasso or elastic net algorithms
ridgeRidge regression
lassoPlotTrace plot of lasso fit
fitrlinearFit linear regression model to high-dimensional data
predictPredict response of linear regression model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots

Mixed Effects

LinearMixedModel Linear mixed-effects model class
fitlmeFit linear mixed-effects model
fitlmematrixFit linear mixed-effects model
dispDisplay linear mixed-effects model
predict Predict response of linear mixed-effects model
random Generate random responses from fitted linear mixed-effects model
fixedEffectsEstimates of fixed effects and related statistics
randomEffects Estimates of random effects and related statistics
designMatrixFixed- and random-effects design matrices
fittedFitted responses from a linear mixed-effects model
responseResponse vector of the linear mixed-effects model
anovaAnalysis of variance for linear mixed-effects model
coefCI Confidence intervals for coefficients of linear mixed-effects model
coefTestHypothesis test on fixed and random effects of linear mixed-effects model
compareCompare linear mixed-effects models
covarianceParametersExtract covariance parameters of linear mixed-effects model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
plotResidualsPlot residuals of linear mixed-effects model
residualsResiduals of fitted linear mixed-effects model

Generalized Linear Models

Generalized Linear Regression

GeneralizedLinearModelGeneralized linear regression model class
CompactGeneralizedLinearModelCompact generalized linear regression model class
ClassificationLinearLinear model for binary classification of high-dimensional data
ClassificationECOCMulticlass model for support vector machines or other classifiers
ClassificationKernelGaussian kernel classification model using feature expansion for big data
ClassificationPartitionedLinearCross-validated linear model for binary classification of high-dimensional data
ClassificationPartitionedLinearECOCCross-validated linear error-correcting output codes model for multiclass classification of high-dimensional data
fitglmCreate generalized linear regression model
stepwiseglmCreate generalized linear regression model by stepwise regression
compactCompact generalized linear regression model
dispDisplay generalized linear regression model
fevalEvaluate generalized linear regression model prediction
predictPredict response of generalized linear regression model
randomSimulate responses for generalized linear regression model
fitclinearFit linear classification model to high-dimensional data
templateLinearLinear classification learner template
fitcecocFit multiclass models for support vector machines or other classifiers
predictPredict labels for linear classification models
fitckernelFit Gaussian kernel classification model using feature expansion for big data
predictPredict labels for Gaussian kernel classification model
mnrfitMultinomial logistic regression
mnrvalMultinomial logistic regression values
glmfitGeneralized linear model regression
glmvalGeneralized linear model values
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots

Stepwise Regression

GeneralizedLinearModelGeneralized linear regression model class
stepwiseglmCreate generalized linear regression model by stepwise regression
fitglmCreate generalized linear regression model
addTermsAdd terms to generalized linear model
removeTermsRemove terms from generalized linear model
stepImprove generalized linear regression model by adding or removing terms
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots

Regularization

ClassificationLinearLinear model for binary classification of high-dimensional data
ClassificationECOCMulticlass model for support vector machines or other classifiers
ClassificationKernelGaussian kernel classification model using feature expansion for big data
ClassificationPartitionedLinearCross-validated linear model for binary classification of high-dimensional data
ClassificationPartitionedLinearECOCCross-validated linear error-correcting output codes model for multiclass classification of high-dimensional data
lassoglmLasso or elastic net regularization for generalized linear model regression
fitclinearFit linear classification model to high-dimensional data
templateLinearLinear classification learner template
fitcecocFit multiclass models for support vector machines or other classifiers
predictPredict labels for linear classification models
fitckernelFit Gaussian kernel classification model using feature expansion for big data
predictPredict labels for Gaussian kernel classification model

Mixed Effects

GeneralizedLinearMixedModelGeneralized linear mixed-effects model class
fitglmeFit generalized linear mixed-effects model
dispDisplay generalized linear mixed-effects model
predictPredict response of generalized linear mixed-effects model
randomGenerate random responses from fitted generalized linear mixed-effects model
fixedEffectsEstimates of fixed effects and related statistics
randomEffectsEstimates of random effects and related statistics
designMatrixFixed- and random-effects design matrices
fittedFitted responses from generalized linear mixed-effects model
responseResponse vector of generalized linear mixed-effects model
anovaAnalysis of variance for generalized linear mixed-effects model
coefCIConfidence intervals for coefficients of generalized linear mixed-effects model
coefTestHypothesis test on fixed and random effects of generalized linear mixed-effects model
compareCompare generalized linear mixed-effects models
covarianceParametersExtract covariance parameters of generalized linear mixed-effects model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
plotResidualsPlot residuals of generalized linear mixed-effects model
residualsResiduals of fitted generalized linear mixed-effects model
refit Refit generalized linear mixed-effects model

Nonlinear Regression

Nonlinear Models

NonLinearModelNonlinear regression model class
fitnlmFit nonlinear regression model
dispDisplay nonlinear regression model
fevalEvaluate nonlinear regression model prediction
predictPredict response of nonlinear regression model
randomSimulate responses for nonlinear regression model
dummyvarCreate dummy variables
hougenHougen-Watson model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
statsetCreate statistics options structure
statgetAccess values in statistics options structure
nlinfitNonlinear regression
nlintoolInteractive nonlinear regression
nlparciNonlinear regression parameter confidence intervals
nlpredciNonlinear regression prediction confidence intervals

Mixed Effects

nlmefitNonlinear mixed-effects estimation
nlmefitsaFit nonlinear mixed-effects model with stochastic EM algorithm

Support Vector Machine Regression

fitrsvmFit a support vector machine regression model
predictPredict responses using support vector machine regression model
fitrlinearFit linear regression model to high-dimensional data
predictPredict response of linear regression model
crossvalCross-validated support vector machine regression model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
RegressionSVMSupport vector machine regression model
CompactRegressionSVMCompact support vector machine regression model
RegressionLinearLinear regression model for high-dimensional data
RegressionPartitionedLinearCross-validated linear regression model for high-dimensional data

Gaussian Process Regression

fitrgpFit a Gaussian process regression (GPR) model
predictPredict response of Gaussian process regression model
lossRegression error for Gaussian process regression model
compactCreate compact Gaussian process regression model
crossvalCross-validate Gaussian process regression model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
postFitStatisticsCompute post-fit statistics for the exact Gaussian process regression model
resubLossResubstitution loss for a trained Gaussian process regression model
resubPredictResubstitution prediction from a trained Gaussian process regression model
RegressionGPGaussian process regression model class
CompactRegressionGPCompact Gaussian process regression model class

Regression Trees

fitrtreeFit binary regression decision tree
compactCompact regression tree
pruneProduce sequence of subtrees by pruning
cvlossRegression error by cross validation
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
predictorImportanceEstimates of predictor importance
viewView tree
crossvalCross-validated decision tree
kfoldfunCross validate function
kfoldPredictPredict response for observations not used for training.
kfoldLossCross-validation loss of partitioned regression model
lossRegression error
resubLossRegression error by resubstitution
predictPredict responses using regression tree
resubPredictPredict resubstitution response of tree
RegressionTreeRegression tree
CompactRegressionTreeCompact regression tree
RegressionPartitionedModelCross-validated regression model

Regression Tree Ensembles

fitrensembleFit ensemble of learners for regression
predictPredict responses using ensemble of regression models
oobPredictPredict out-of-bag response of ensemble
TreeBaggerCreate bag of decision trees
fitrensembleFit ensemble of learners for regression
predictPredict responses using ensemble of bagged decision trees
oobPredictEnsemble predictions for out-of-bag observations
quantilePredictPredict response quantile using bag of regression trees
oobQuantilePredictQuantile predictions for out-of-bag observations from bag of regression trees
crossvalCross validate ensemble
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
predictorImportanceEstimates of predictor importance
RegressionEnsembleEnsemble regression
CompactRegressionEnsembleCompact regression ensemble class
RegressionPartitionedEnsembleCross-validated regression ensemble
TreeBaggerBag of decision trees
CompactTreeBaggerCompact ensemble of decision trees grown by bootstrap aggregation
RegressionBaggedEnsembleRegression ensemble grown by resampling

Model Building and Assessment

sequentialfsSequential feature selection
relieffImportance of attributes (predictors) using ReliefF algorithm
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
stepwiselm Create linear regression model using stepwise regression
stepwiseglmCreate generalized linear regression model by stepwise regression
bayesoptSelect optimal machine learning hyperparameters using Bayesian optimization
hyperparametersVariable descriptions for optimizing a fit function
crossvalLoss estimate using cross validation
cvpartitionCreate cross validation partition for data
repartitionRepartition data for cross-validation
testTest indices for cross-validation
trainingTraining indices for cross-validation
coefCIConfidence intervals of coefficient estimates of linear model
coefTestLinear hypothesis test on linear regression model coefficients
dwtestDurbin-Watson test of linear model
plotScatter plot or added variable plot of linear model
plotAddedAdded variable plot or leverage plot for linear model
plotAdjustedResponseAdjusted response plot for linear regression model
plotDiagnosticsPlot diagnostics of linear regression model
plotEffectsPlot main effects of each predictor in linear regression model
plotInteractionPlot interaction effects of two predictors in linear regression model
plotResidualsPlot residuals of linear regression model
plotSlicePlot of slices through fitted linear regression surface
coefCIConfidence intervals of coefficient estimates of generalized linear model
coefTestLinear hypothesis test on generalized linear regression model coefficients
devianceTestAnalysis of deviance
plotDiagnosticsPlot diagnostics of generalized linear regression model
plotResidualsPlot residuals of generalized linear regression model
plotSlicePlot of slices through fitted generalized linear regression surface
coefCIConfidence intervals of coefficient estimates of nonlinear regression model
coefTestLinear hypothesis test on nonlinear regression model coefficients
plotDiagnosticsPlot diagnostics of nonlinear regression model
plotResidualsPlot residuals of nonlinear regression model
plotSlicePlot of slices through fitted nonlinear regression surface
linhyptestLinear hypothesis test
BayesianOptimizationBayesian optimization results
optimizableVariableVariable description for bayesopt or other optimizers
cvpartitionData partitions for cross validation

Classification

Classification Trees

fitctreeFit binary classification decision tree for multiclass classification
compactCompact tree
pruneProduce sequence of subtrees by pruning
cvlossClassification error by cross validation
predictorImportanceEstimates of predictor importance
surrogateAssociationMean predictive measure of association for surrogate splits in decision tree
viewView tree
crossvalCross-validated decision tree
kfoldEdgeClassification edge for observations not used for training
kfoldLossClassification loss for observations not used for training
kfoldfunCross validate function
kfoldMarginClassification margins for observations not used for training
kfoldPredictPredict response for observations not used for training
lossClassification error
resubLossClassification error by resubstitution
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge
marginClassification margins
resubEdgeClassification edge by resubstitution
resubMarginClassification margins by resubstitution
predictPredict labels using classification tree
resubPredictPredict resubstitution response of tree
ClassificationTreeBinary decision tree for classification
CompactClassificationTreeCompact classification tree
ClassificationPartitionedModelCross-validated classification model

Discriminant Analysis

fitcdiscrFit discriminant analysis classifier
compactCompact discriminant analysis classifier
cvshrinkCross-validate regularization of linear discriminant
crossvalCross-validated discriminant analysis classifier
kfoldEdgeClassification edge for observations not used for training
kfoldLossClassification loss for observations not used for training
kfoldfunCross validate function
kfoldMarginClassification margins for observations not used for training
kfoldPredictPredict response for observations not used for training
lossClassification error
resubLossClassification error by resubstitution
logPLog unconditional probability density for discriminant analysis classifier
mahalMahalanobis distance to class means
nLinearCoeffsNumber of nonzero linear coefficients
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge
marginClassification margins
resubEdgeClassification edge by resubstitution
resubMarginClassification margins by resubstitution
predictPredict labels using discriminant analysis classification model
resubPredictPredict resubstitution response of classifier
ClassificationDiscriminantDiscriminant analysis classification
CompactClassificationDiscriminantCompact discriminant analysis class
ClassificationPartitionedModelCross-validated classification model

Naive Bayes

fitcnbTrain multiclass naive Bayes model
compactCompact naive Bayes classifier
crossvalCross-validated naive Bayes classifier
kfoldEdgeClassification edge for observations not used for training
kfoldLossClassification loss for observations not used for training
kfoldfunCross validate function
kfoldMarginClassification margins for observations not used for training
kfoldPredictPredict response for observations not used for training
lossClassification error for naive Bayes classifier
resubLossClassification loss for naive Bayes classifiers by resubstitution
logPLog unconditional probability density for naive Bayes classifier
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge for naive Bayes classifiers
marginClassification margins for naive Bayes classifiers
resubEdgeClassification edge for naive Bayes classifiers by resubstitution
resubMarginClassification margins for naive Bayes classifiers by resubstitution
predictPredict labels using naive Bayes classification model
resubPredictPredict naive Bayes classifier resubstitution response
ClassificationNaiveBayesNaive Bayes classification
CompactClassificationNaiveBayesCompact naive Bayes classifier
ClassificationPartitionedModelCross-validated classification model

Nearest Neighbors

fitcknnFit k-nearest neighbor classifier
ExhaustiveSearcherPrepare exhaustive nearest neighbor searcher
KDTreeSearcherGrow Kd-tree
creatensCreate object to use in k-nearest neighbor search
crossvalCross-validated k-nearest neighbor classifier
kfoldEdgeClassification edge for observations not used for training
kfoldLossClassification loss for observations not used for training
kfoldfunCross validate function
kfoldMarginClassification margins for observations not used for training
kfoldPredictPredict response for observations not used for training
lossLoss of k-nearest neighbor classifier
resubLossLoss of k-nearest neighbor classifier by resubstitution
compareHoldoutCompare accuracies of two models using new data
edgeEdge of k-nearest neighbor classifier
marginMargin of k-nearest neighbor classifier
resubEdgeEdge of k-nearest neighbor classifier by resubstitution
resubMarginMargin of k-nearest neighbor classifier by resubstitution
predictPredict labels using k-nearest neighbor classification model
resubPredictPredict resubstitution response of k-nearest neighbor classifier
pdistPairwise distance between pairs of observations
pdist2Pairwise distance between two sets of observations
ClassificationKNNk-nearest neighbor classification
ClassificationPartitionedModelCross-validated classification model
ExhaustiveSearcherExhaustive nearest neighbor searcher
KDTreeSearcherNearest neighbor search using Kd-tree

Support Vector Machine Classification

fitcsvmTrain binary support vector machine classifier
fitSVMPosteriorFit posterior probabilities
predictPredict labels using support vector machine classification model
templateSVMSupport vector machine template
fitclinearFit linear classification model to high-dimensional data
predictPredict labels for linear classification models
templateLinearLinear classification learner template
fitckernelFit Gaussian kernel classification model using feature expansion for big data
predictPredict labels for Gaussian kernel classification model
fitcecocFit multiclass models for support vector machines or other classifiers
predictPredict labels using multiclass, error-correcting output codes model
templateECOCError-correcting output codes learner template
ClassificationSVMSupport vector machine for binary classification
CompactClassificationSVMCompact support vector machine for binary classification
ClassificationPartitionedModelCross-validated classification model
ClassificationLinearLinear model for binary classification of high-dimensional data
ClassificationPartitionedLinearCross-validated linear model for binary classification of high-dimensional data
ClassificationKernelGaussian kernel classification model using feature expansion for big data
ClassificationECOCMulticlass model for support vector machines or other classifiers
CompactClassificationECOCCompact multiclass model for support vector machines or other classifiers
ClassificationPartitionedECOCCross-validated multiclass model for support vector machines or other classifiers
ClassificationPartitionedLinearECOCCross-validated linear error-correcting output codes model for multiclass classification of high-dimensional data

Classification Ensembles

templateDiscriminantDiscriminant analysis classifier template
templateECOCError-correcting output codes learner template
templateEnsembleEnsemble learning template
templateKNNk-nearest neighbor classifier template
templateLinearLinear classification learner template
templateNaiveBayesNaive Bayes classifier template
templateSVMSupport vector machine template
templateTreeCreate decision tree template
fitcensembleFit ensemble of learners for classification
predictPredict labels using ensemble of classification models
oobPredictPredict out-of-bag response of ensemble
TreeBaggerCreate bag of decision trees
fitcensembleFit ensemble of learners for classification
predictPredict responses using ensemble of bagged decision trees
oobPredictEnsemble predictions for out-of-bag observations
fitcecocFit multiclass models for support vector machines or other classifiers
templateSVMSupport vector machine template
predictPredict labels using multiclass, error-correcting output codes model
ClassificationEnsembleEnsemble classifier
CompactClassificationEnsembleCompact classification ensemble class
ClassificationPartitionedEnsembleCross-validated classification ensemble
TreeBaggerBag of decision trees
CompactTreeBaggerCompact ensemble of decision trees grown by bootstrap aggregation
ClassificationBaggedEnsembleClassification ensemble grown by resampling
ClassificationECOCMulticlass model for support vector machines or other classifiers
CompactClassificationECOCCompact multiclass model for support vector machines or other classifiers
ClassificationPartitionedECOCCross-validated multiclass model for support vector machines or other classifiers

Model Building and Assessment

sequentialfsSequential feature selection
relieffImportance of attributes (predictors) using ReliefF algorithm
bayesoptSelect optimal machine learning hyperparameters using Bayesian optimization
hyperparametersVariable descriptions for optimizing a fit function
crossvalLoss estimate using cross validation
cvpartitionCreate cross validation partition for data
repartitionRepartition data for cross-validation
testTest indices for cross-validation
trainingTraining indices for cross-validation
confusionmatConfusion matrix
perfcurveReceiver operating characteristic (ROC) curve or other performance curve for classifier output
testcholdoutCompare predictive accuracies of two classification models
testckfoldCompare accuracies of two classification models by repeated cross validation
BayesianOptimizationBayesian optimization results
optimizableVariableVariable description for bayesopt or other optimizers
cvpartitionData partitions for cross validation

Dimensionality Reduction and Feature Extraction

fscncaFeature selection using neighborhood component analysis for classification
fsrncaFeature selection using neighborhood component analysis for regression
sequentialfsSequential feature selection
relieffImportance of attributes (predictors) using ReliefF algorithm
ricaFeature extraction by using reconstruction ICA
sparsefiltFeature extraction by using sparse filtering
transformTransform predictors into extracted features
tsnet-Distributed Stochastic Neighbor Embedding
barttestBartlett’s test
canoncorrCanonical correlation
pcaPrincipal component analysis of raw data
pcacovPrincipal component analysis on covariance matrix
pcaresResiduals from principal component analysis
ppcaProbabilistic principal component analysis
factoranFactor analysis
rotatefactorsRotate factor loadings
nnmfNonnegative matrix factorization
cmdscaleClassical multidimensional scaling
mahalMahalanobis distance
mdscaleNonclassical multidimensional scaling
pdistPairwise distance between pairs of observations
squareformFormat distance matrix
procrustesProcrustes analysis
FeatureSelectionNCAClassificationFeature selection for classification using neighborhood component analysis (NCA)
FeatureSelectionNCARegressionFeature selection for regression using neighborhood component analysis (NCA)
ReconstructionICAFeature extraction by reconstruction ICA
SparseFilteringFeature extraction by sparse filtering

Industrial Statistics

Design of Experiments (DOE)

Full Factorial Designs

ff2nTwo-level full factorial design
fullfactFull factorial design

Fractional Factorial Designs

fracfactFractional factorial design
fracfactgenFractional factorial design generators

Response Surface Designs

bbdesignBox-Behnken design
ccdesignCentral composite design

D-Optimal Designs

candexchD-optimal design from candidate set using row exchanges
candgenCandidate set generation
cordexchCoordinate exchange
daugmentD-optimal augmentation
dcovaryD-optimal design with fixed covariates
rowexchRow exchange
rsmdemoInteractive response surface demonstration

Latin Hypercube Designs

lhsdesignLatin hypercube sample
lhsnormLatin hypercube sample from normal distribution

Quasi-Random Designs

haltonsetConstruct Halton quasi-random point set
qrandstreamConstruct quasi-random number stream
sobolsetConstruct Sobol quasi-random point set

DOE Plots

interactionplotInteraction plot for grouped data
maineffectsplotMain effects plot for grouped data
multivarichartMultivari chart for grouped data
rsmdemoInteractive response surface demonstration
rstoolInteractive response surface modeling

Analysis of Lifetime Data

coxphfitCox proportional hazards regression
ecdfEmpirical cumulative distribution function
ecdfhistHistogram based on empirical cumulative distribution function
ksdensityKernel smoothing function estimate for univariate and bivariate data
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
fitdistFit probability distribution object to data
dfittoolOpen Distribution Fitter app
linhyptestLinear hypothesis test
evfitExtreme value parameter estimates
expfitExponential parameter estimates
gamfitGamma parameter estimates
lognfitLognormal parameter estimates
normfitNormal parameter estimates
probplotProbability plots
wblfitWeibull parameter estimates
wblplotWeibull probability plot

Statistical Process Control

capabilityProcess capability indices
capaplotProcess capability plot
controlchartShewhart control charts
controlrulesWestern Electric and Nelson control rules
gagerrGage repeatability and reproducibility study
histfitHistogram with a distribution fit
normspecNormal density plot between specifications

Analysis of Big Data with Tall Arrays

binScatterPlotScatter plot of bins for tall arrays

Code Generation

saveCompactModelSave model object in file for code generation
loadCompactModelReconstruct model object from saved model for code generation
Was this topic helpful?