To perform the Q test, calculate the quantity Q, which is the ratio of [the difference between the value under suspicion and the next closest value] to [the difference between the highest and lowest value in the series]. Compare Q with the critical value for Q (below), which for 5 observations is 0.64.