See the Box "R-squared" if your want to assess the fit in least squared regression
Chi-Square Tests
Use the following spreadsheet to carry out a chi-square test for independence, given a table of bivariate numerical data:
bivariate_categorical_data_and_chi-square_test_for_independence.xls
Use this spreadsheet to carry out a chi-square test for goodness-of-fit: