I would like to use MATLAB's chi2gof
to perform a chi-square goodness-of-fit test. My problem is that my assumed (i.e., theoretical) distribution is not one of the standard built-in probability distributions in MATLAB. The specific form of my desired distribution is:
p = x^a*exp(-b*x^2)
where a
and b
are constants. There must be a way to use chi2gof
for arbitrary PDFs? I have done an exhaustive Google search, but have come up empty-handed.