plotHistogram
Visualize histogram for a variable in drift detection
Syntax
Description
plotHistogram(
plots a
histogram of the baseline and target data for the variable with the lowest
p-value.DDiagnostics
)
If you set the value of 'EstimatePValues'
to
false
in the call to detectdrift
, then
plotHistogram
displays NaN
for the
p-value and the drift status.
plotHistogram(
plots the histogram of the baseline and target data for the variable specified by
DDiagnostics
,Variable=variable
)variable
.
returns
an array of H
= plotHistogram(___)Histogram
objects in H
. Use this to
inspect and adjust the properties of the histogram. For more information on the
Histogram
object properties, see Histogram Properties.
Examples
Input Arguments
Algorithms
For categorical data,
detectdrift
adds 0.5 correction factor to histogram bin counts for each bin to handle empty bins (categories). This is equivalent to the assumption that the parameter p, probability that value of the variable would be in that category, has the prior distribution Beta(0.5,0.5), i.e. Jefferys prior assumption for the distribution parameter.plotHistogram
treats a variable as ordinal for visualization purposes under any of the following cases:If the variable is ordinal in either baseline or target data and the categories from baseline and target data are the same.
If the variable is ordinal in either in baseline or target data and the categories of the other data set is a subset of the ordinal data.
If the variable is ordinal in both baseline and target data and categories from either one is a subset of the other.
If a variable is ordinal,
plotHistogram
preserves the order of the bin names.
Version History
See Also
detectdrift
| DriftDiagnostics
| plotDriftStatus
| plotEmpiricalCDF
| plotPermutationResults
| ecdf
| summary
| histcounts