P is not a mere average, but is a weighted average, and T is always the denominator in the formula for P.
He defines P as the weighted average of the p's , and fails, I think, to see how completely this ties it up with T.
for a series of recorded observations, the sum of the products of the frequency of certain values and the value of the observation, divided by the total number of observations