discreteDataSummary

fun ReportBuilder.discreteDataSummary(pmf: PMFData, caption: String? = null, confidenceLevel: Double = 0.95)(source)

Appends a self-contained section summarising the characteristics of the integer data held by pmf, with no plots.

Produces (inside a section titled caption or "Discrete Data Summary"):

  1. Overview paragraph — n, mean, variance, min, max, zero count, negative count

  2. Integer Frequency sub-section — full frequency table, statistics property sheet, and frequency bar chart (delegated to integerFrequency)

  3. Dispersion Analysis sub-section — index of dispersion; Poisson variance test statistic T = (n−1)·S²/X̄; upper-tail, lower-tail, and two-sided p-values from χ²(n−1) (Fisher 1950); equidispersion/overdispersion/underdispersion interpretation; and a small-sample warning when n < 30. All values computed directly from the sample statistics.

Parameters

pmf

the PMFData whose sample will be summarised

caption

optional section title

confidenceLevel

confidence level for the statistics property sheet; must be in (0, 1)