what is goodness of fit in the chi square test 
the chi square test whether relationships exist between categorical variables and whether the sample represents the whole it estimates how closely the observed data mirrors the expected data or how well they fit 