added support for arbitrarly correlation error in the ratio