implementing tStat calculation for pair