The New York Stock Exchange's broad S&P 500 index rose 0.4 percent on the last trading day of the week and thus recovered some of the decline from the previous day, when the index had its worst day in two months.
The Dow Jones industrial index increased 0.7 percent and the Nasdaq's technology-heavy composite index rose 0.8 percent.
The e-commerce giant Amazon, which after the stock market closed on Thursday presented an unexpectedly positive quarterly report, led the rise with a gain of 6.2 percent. Another winner was processor manufacturer Intel, up 7.8 percent, despite the company reporting a larger loss than analysts had predicted.
Calculated over the entire past week, the three leading indices fell, with the S&P 500 down 1.4 percent, the Dow Jones down 0.2 percent, and the Nasdaq down 1.5 percent.