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.
P is not a mere average, but is a weighted average, and T is always the denominator in the formula for P.
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