The cumulants of an analogue of pearson's chi-squared