/GoodnessOfFitModel

7 statistics are included. What you need to provide are two vectors: label column and prediction column.

Primary LanguagePython

Content of this repository

Three files are contained in this repository.

  • "Manual.pdf" explains details about this repository.
  • "gfit.py" is the function which can be called.
  • "README.md" shows a brief information about this repository.

Considered goodness-of-fit statistics

7 statistics are included in this function called "gfit.py". They are:

  • RMSE: Root Mean Square Error
  • RRMSE: Relative Root Mean Square Error
  • MAE: Mean Absolute Error
  • r: correlation coefficient
  • R2: coefficient of determination
  • E: coefficient of efficiency
  • MSE: Mean Squared Error

Brief introduction of this repository

Two input vectors, observations and estimations, are supposed to be provided at least, and another two, “type_statistic” and “residual” are optional. As a result, t score, p value, and the selected goodness-of-fit statistic are returned by this python function. This python function package mainly contains 3 parts: residual plot (optional), goodness-of-fit statistics, and the student’s t test (optional).

Details can be found in the attached manual. This repository is supposed to be modified later accordingly. If there is any mistakes, welcome leave comments and send them to me.

Rui Gao
rui.gao@aggiemail.usu.edu