Duality and perfect probability spaces