How Markets Really Work: Quantitative Guide to Stock Market Behavior