({{, (RefLink[ComputeUncertainty, paclet:ref/ComputeUncertainty])
is an option for (RefLink[ClassifierMeasurements, paclet:ref/ClassifierMeasurements]), (RefLink[LearnedDistribution, paclet:ref/LearnedDistribution]) and other functions to specify if numeric results should be returned along with their uncertainty.}})

OpenersNotesSection(Spacer1)Details

Uncertainties are given using (RefLink[Around, paclet:ref/Around]).

The uncertainty interval generated typically corresponds to one standard deviation.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Create and test a classifier using (RefLink[ClassifierMeasurements, paclet:ref/ClassifierMeasurements]):

c=Classify[{1->"A",2->"A",3.5->"B",4->"A",5->"B",6->"B"}]

cm=ClassifierMeasurements[c,{2.2->"A",2.7->"A",4.5->"B",1.4->"B"}]

Measure the accuracy along with its uncertainty:

cm["Accuracy",ComputeUncertainty->True]

Measure the (Subscript[F, 1]) scores along with their uncertainties:

cm["F1Score",ComputeUncertainty->True]

Train a "Multinormal" distribution on a nominal dataset:

ld=LearnDistribution[{"A","A","B","B","B"},Method->"Multinormal"]

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

PDF[ld,"A"]

PDF[ld,"A"]

Use (RefLink[ComputeUncertainty, paclet:ref/ComputeUncertainty]) to obtain the uncertainty on the result:

PDF[ld,"A",ComputeUncertainty->True]

Increase (RefLink[MaxIterations, paclet:ref/MaxIterations]) to improve the estimation precision:

PDF[ld,"A",MaxIterations->1000,ComputeUncertainty->True]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Around, paclet:ref/Around])  ▪  (RefLink[ClassifierMeasurements, paclet:ref/ClassifierMeasurements])  ▪  (RefLink[PredictorMeasurements, paclet:ref/PredictorMeasurements])  ▪  (RefLink[PDF, paclet:ref/PDF])  ▪  (RefLink[RarerProbability, paclet:ref/RarerProbability])  ▪  (RefLink[LearnedDistribution, paclet:ref/LearnedDistribution])  ▪  (RefLink[MeanAround, paclet:ref/MeanAround])  ▪  (RefLink[Accuracy, paclet:ref/Accuracy])  ▪  (RefLink[NormalDistribution, paclet:ref/NormalDistribution])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Machine Learning, paclet:guide/MachineLearning])}, {▪(RefLinkPlain[Numbers with Uncertainty, paclet:guide/NumbersWithUncertainty])}})}})