Abstract(#br)It is well-known that an R n -valued random vector ( X 1 , X 2 , ⋯ , X n ) is comonotonic if and only if ( X 1 , X 2 , ⋯ , X n ) and ( Q 1 ( U ) , Q 2 ( U ) , ⋯ , Q n ( U ) ) coincide in distribution , for any random variable U uniformly distributed on the unit interval ( 0 , 1 ) , where Q k ( ⋅ ) are the quantile functions of X k , k = 1 , 2 , ⋯ , n . It is natural to ask whether ( X 1 , X 2 , ⋯ , X n ) and ( Q 1 ( U ) , Q 2 ( U ) , ⋯ , Q n ( U ) ) can coincide almost surely for some special U . In this paper, we give a positive answer to this question by construction. We then apply this result to a general behavioral investment model with a law-invariant preference measure and develop a universal framework to link the problem to its quantile formulation. We show that any... optimal investment output should be anti-comonotonic with the market pricing kernel. Unlike previous studies, our approach avoids making the assumption that the pricing kernel is atomless, and consequently, we overcome one of the major difficulties encountered when one considers behavioral economic equilibrium models in which the pricing kernel is a yet-to-be-determined unknown random variable. The method is applicable to general models such as risk sharing model.