MixtureDataDescription

class MixtureDataDescription(val numObservations: Int, val numDistinctValues: Int, val statistics: StatisticIfc, val maximumFeasibleComponents: Int, val modality: ModalityAssessment)(source)

Everything known about a sample before a mixture is fitted to it.

The order matters. An analyst is best served by learning that their sample cannot support six components before being shown a fit at six components, and by learning that the humps they counted move with the bin width before being asked to defend the count. Both facts are cheap; neither is available from the fit.

Adequacy is deliberately absent. The plan expected the data-adequacy verdict to join this object, and it cannot: adequacy is governed by how far the fitted mixture sits from the nearest mixture with one component fewer, so it requires a fit that by definition does not exist yet. It lives on the results instead. What belongs here is the structural ceiling — the largest number of components this sample can support at all — which is available before fitting and answers the same question in the cases where the answer is emphatic.

Parameters

numObservations

how many observations there are

numDistinctValues

how many of them are distinct, which is what actually limits the partition

statistics

the sample statistics

maximumFeasibleComponents

the largest number of components the sample can structurally support, from the admissibility certificate

modality

what the mode structure looks like and whether it survives smoothing

Constructors

Link copied to clipboard
constructor(numObservations: Int, numDistinctValues: Int, statistics: StatisticIfc, maximumFeasibleComponents: Int, modality: ModalityAssessment)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun entryGuidance(hasMechanism: Boolean, level: Double = 0.05): EntryGuidance

What to do next, given whether the analyst has a mechanism in mind.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun warningOrNull(hasMechanism: Boolean, level: Double = 0.05): String?

The warning of the entry gate, or null when there is nothing to warn about.