A Unified Statistical Approach to the Index Number Problem