Goodness-of-fit tests assess how well sample data matches the population's expectations. An observed value is derived from the sample data and compared to the predicted expected value using a discrepancy measure.