You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't read details and don't know if that applies to other distributions, e.g. can we use it for continuous distributions in GLM.
We could get simulated p-values but just simulating a loc-scale model instead of the full regression model.
sounds a bit too much work and computer intensive to get discrete edf statistic and pvalues for it.
They integrate the step function of discrete edf to compute anderson-darling and other cramer-von mises statistic.
Maybe linear interpolation in Czado et al is easier.
maybe we should just clean up the statistics as "distance measures" as I used them in my notebook for count model comparison.
Aside: In the Statistics Reference article Stephens mentions that pvalues are a better distance measure for ranking distributions in how well the fit the data, because the distribution of gof statistic like KS, AD, CvM depends on the distribution.
uses the interpolation extension of discrete cdf as in Czado et al.
uses bootstrap for inference distribution
allows for dynamic models
convergence to some Gaussian process
The asymptotic distribution is also the distribution of a weighted sum of chi2 random variables. They provide matrix formulas for the eigenvalues and recommend an approximation that matches the first 3 cumulants, which they say is accurate in the upper tail alpha < 0.15.
Matrices are of dimension with number of cells, so looks feasible for smaller cases (not Poisson with large counts unless binned)
Power of CvM type tests is higher than Pearson chisquare test in the ordered case, integer counts or ordinal (*), because it takes order into account.
It's much easier than the regression case because integral is just the sum of a finite, fixed number of terms (equal to number of cells).
(*) I'm not sure about ordinal because integral computation requires metric random variable, and uses equal distance the the provided formulas, AFAICS,
aside: as a tool function
They have the matrix formulas for the variance of cumulative multinomial/ordinal probabilities. The latter are just a linear transformation of the cell probabilities with a partial-sum transformation matrix, so we can get the variance of cdf from variance of cell probabilities.
Activity
josef-pkt commentedon Nov 13, 2020
Maybe the shortcut doesn't work for Poisson. In this paper they simulate with estimating the full regression model
Spinelli, John J., Richard A. Lockhart, and Michael A. Stephens. 2002. “Tests for the Response Distribution in a Poisson Regression Model.” Journal of Statistical Planning and Inference, C.R. Rao 80th Birthday Felicitation Volume, Part II, 108 (1): 137–54. https://doi.org/10.1016/S0378-3758(02)00275-6.
sounds a bit too much work and computer intensive to get discrete edf statistic and pvalues for it.
They integrate the step function of discrete edf to compute anderson-darling and other cramer-von mises statistic.
Maybe linear interpolation in Czado et al is easier.
maybe we should just clean up the statistics as "distance measures" as I used them in my notebook for count model comparison.
Aside: In the Statistics Reference article Stephens mentions that pvalues are a better distance measure for ranking distributions in how well the fit the data, because the distribution of gof statistic like KS, AD, CvM depends on the distribution.
josef-pkt commentedon Nov 13, 2020
R package for CvM statistics and tests of discrete distributions and grouped continuous data
https://cran.r-project.org/web/packages/cvmdisc/index.html
josef-pkt commentedon Nov 13, 2020
related: Ordered multinomial has similar pattern as grouped data.
i.e. we can look at the cumulative counts/probalities similar to EDF
josef-pkt commentedon Nov 15, 2020
more modern theory
Kheifets, Igor, and Carlos Velasco. 2017. “New Goodness-of-Fit Diagnostics for Conditional Discrete Response Models.” Journal of Econometrics 200 (1): 135–49. https://doi.org/10.1016/j.jeconom.2017.05.017.
uses the interpolation extension of discrete cdf as in Czado et al.
uses bootstrap for inference distribution
allows for dynamic models
convergence to some Gaussian process
similar, this has some brownian motion limiting distribution
Lee, Sangyeol. 2014. “Goodness of Fit Test for Discrete Random Variables.” Computational Statistics & Data Analysis 69 (January): 92–100. https://doi.org/10.1016/j.csda.2013.07.026.
This literature is on empirical processes, not linked/referenced to Stephens et al. gof testing
citation count is low for those two articles
josef-pkt commentedon Nov 16, 2020
this looks pretty good for the one sample, no-regression case.
Lockhart, Richard A., John J. Spinelli, and Michael A. Stephens. 2007. “Cramér-von Mises Statistics for Discrete Distributions with Unknown Parameters.” Canadian Journal of Statistics 35 (1): 125–33. https://doi.org/10.1002/cjs.5550350111.
The asymptotic distribution is also the distribution of a weighted sum of chi2 random variables. They provide matrix formulas for the eigenvalues and recommend an approximation that matches the first 3 cumulants, which they say is accurate in the upper tail alpha < 0.15.
Matrices are of dimension with number of cells, so looks feasible for smaller cases (not Poisson with large counts unless binned)
Power of CvM type tests is higher than Pearson chisquare test in the ordered case, integer counts or ordinal (*), because it takes order into account.
It's much easier than the regression case because integral is just the sum of a finite, fixed number of terms (equal to number of cells).
(*) I'm not sure about ordinal because integral computation requires metric random variable, and uses equal distance the the provided formulas, AFAICS,
aside: as a tool function
They have the matrix formulas for the variance of cumulative multinomial/ordinal probabilities. The latter are just a linear transformation of the cell probabilities with a partial-sum transformation matrix, so we can get the variance of cdf from variance of cell probabilities.