chi-square goodness-of-fit test is one of the most common statistical tests used to determine whether…