Strong earnings from big U.S. companies pushed the Dow Jones industrial average to a rare triple-digit gain Friday, but the S&P 500 index still posted its first weekly loss of the year.
Hewlett-Packard had the biggest gain in the Dow and the Standard & Poor's 500 index. It posted fiscal first-quarter earnings late Thursday that beat all forecasts, a relief after months of bad news for the computer maker.
Cabot Oil & Gas Corp. was the S&P 500's second-best performer, jumping a day after reporting earnings that beat analysts' expectations. It rose $5.95, or 11.1 percent, to $59.81.
American International Group Inc. rose after its fourth-quarter operating results exceeded analysts' forecasts. The company's net loss was $4 billion, mainly because of claims related to superstorm Sandy, in the first full quarter after it finished repaying its $182 billion government bailout. AIG rose $1.17, or 3.1 percent, to $38.45.
The Dow closed up 119.95 points, or 0.9 percent, at 14,000.57 — its third-biggest gain this year. The S&P 500 rose 13.18 points, also 0.9 percent, to 1,515.60. The Nasdaq composite index rose 30.33, or 1 percent, to 3,161.82.
The S&P 500 and Nasdaq closed slightly lower for the week, while the Dow edged higher.
Bill Stone, chief investment strategist with PNC Wealth Management, said he expects stocks to hold up despite this week's volatility.
"You're going to get bumps and bruises along the way, but we do believe things are actually getting better, so I think there's underlying demand" for stocks, Stone said.
Spooked investors sent stocks plunging Wednesday after minutes from the Federal Reserve's latest policy meeting revealed disagreement over how long to keep buying bonds in an effort to boost the economy. The slide continued Thursday. The Dow lost 155 points over those two days.
Many analysts say the Fed's bond-buying and resulting low interest rates have driven this year's stock rally, which lifted indexes to their highest levels since before the 2008 financial crisis. The Dow is now just 164 points below its record close of 14,164 reached in October 2007.