Update statistic_TS.py