Modeling And Testing The Evolution of Systemic Risk And Herding Behavior In Financial Markets