This week’s stock market saw the S&P 500 rise 3.4%, fueled by positive inflation data and strong earnings reports.