Added inverse probability matrix to avoid taking inverse