discrete Goodness Of Fit
Appends a self-contained section reporting the goodness-of-fit results for a single DiscretePMFGoodnessOfFit.
Produces (inside a section titled caption or gof.distribution.toString()):
Overview paragraph — distribution, estimated parameters, DOF, index of dispersion
Chi-Squared Bin Table — Bin Label | P(Bin) | Observed | Expected | Note;
Notecolumn flags bins where expected count is less than 5Goodness of Fit Test — test summary
DataTable(DOF, statistic, p-value, conclusion at the given confidenceLevel)Dispersion Tests — index of dispersion and Poisson variance test statistic from DiscreteDistributionGOFIfc
Distribution Comparison sub-section — PMFComparisonPlot overlaying the empirical PMF (from the fit's data) against the theoretical PMF (from the fitted distribution)
Parameters
the PMFFitData to report (the goodness-of-fit object plus the data)
optional section title; defaults to the fitted distribution's name
significance level for the GOF test conclusion; must be in (0, 1)
Backward-compatible overload that renders the discrete goodness-of-fit section for a live DiscretePMFGoodnessOfFit, using modeler for the PMF comparison plot's empirical data. Delegates to the PMFFitData renderer.