A big gain for stocks at the end of a turbulent quarter

U.S. stocks are closing out a rough quarter on a positive note.

Major indexes rallied on Wednesday, but the market still ended the third quarter with its worst loss in four years.

All five of the biggest drops in the year occurred in the last three months as traders worried about slowing growth in China and uncertainty over U.S. interest rate policy.

The Dow Jones industrial average gained 235 points, or 1.5 percent, to 16,284.

The Standard & Poor's 500 index jumped 35 points, or 1.9 percent, to 1,920. The Nasdaq composite climbed 102 points, or 2.3 percent, to 4,620.

Ralph Lauren jumped 14 percent after the company named a new CEO to replace the company's founder.