A continuous-time heterogeneous belief model is developed to discuss the mechanisms of the formation of contagion phenomena. Various mechanisms of contagion formation, such as price learning, information diffusion and extrapolative expectations, are incorporated into a unified framework. Calibration results from Hong Kong and the UK show that changes in the weights of the four types of traders affect the contagion phenomenon at different time intervals over time.