Calculation Of Test Statistic