The Unified Pairs Trading Theory