Are the stock market and economy related? They're not always in sync, but they do influence each other. Understand how this relationship impacts investors.