Of course, Obama took office following one of the biggest market selloffs in history. From Sept 1, 2008—just before the collapse of Lehman Brothers triggered the financial crisis—until Obama's inauguration, the S&P 500 punged 34 percent, with the Dow and Nasdaq making similar declines.
The president also would have to credit Federal Reserve Chairman Ben Bernanke for much of the recovery. The central bank's quantitative easing, which was launched in reaction to the financial crisis, has pushed interest rates so low that stocks have looked attractive by comparison.
Even so, the market has performed better during Obama's 43 1/2 months in office than in any of the five prior administrations. In fact, the S&P 500 has outperformed most of the major world indexes during his presidency.