  It is shown that the discrepancy function for point distributions on a torus
is expressed by an explicit formula in terms of its mean values on sub-tori. As
an application of this formula, a simple proof of a theorem of Lev on the
equivalence of $L_{\infty}$- and shifted $L_q$-discrepancies is given.
