How Markets Really Work: A Quantitative Guide to Stock Market Behavior