Investor behavior plays a significant role in shaping stock market trends. The collective actions of investors, driven by emotions, biases, and herding behavior, can lead to market booms, crashes, and the formation of speculative bubbles.