add some plot functions and least square method for fiting.
use statics t-test function.