Application of a Chi square goodness-of-fit test