U.S. stocks ended a volatile week higher, with the Dow Jones Industrial Average rising 479 points, or 0.9%, to 51,829. The S&P 500 and Nasdaq Composite each gained about 0.5% on Friday. Weekly gains reached 0.3% for the Dow, 1.2% for the S&P 500 and 2% for the Nasdaq. Treasury yields climbed sharply, with the 10-year briefly reaching 5.228% and closing at 5.18%, its highest level since 2007, while the 30-year yield ended at 5.5%. Fed funds futures indicated a 64% to 66% probability of a rate increase in October, with markets pricing three additional quarter-percentage-point increases through the end of 2027. Oil prices fell as U.S. and Iranian officials explored restoring normal Strait of Hormuz operations. Investors also monitored U.S.-China trade discussions and consumer inflation expectations, while Meta Platforms and Akamai Technologies advanced on artificial-intelligence and partnership news.