The purpose of this study is to investigate and identify the periods of formation and bursting of speculative bubbles in Iran's capital market by creating a state space model and two-mode switching regime (mode 1 is bubble growth and burst stage and mode 2 is the time of bubble loss) during the period from April 2011 to March 2018. The Oxmetrics 7 software is used to investigate the existence o...