The concept of weak exchangeability and its applications