NEW YORK (AP) — AI-linked stocks fell sharply Tuesday, pulling the U.S. market lower a day after their rally fizzled. Much of the rest of Wall Street rose, as did confidence among Americans in the economy.

With an hour left in trading, the S&P 500 was down 0.8% and on course for its eighth decline in nine days. The Nasdaq composite fell 2%, leading major indexes lower, while the Dow Jones Industrial Average gained 284 points, or 0.6%. Two-thirds of stocks in the S&P 500 rose.

The swings come as the market has mostly declined since reaching an all-time high last month. Investors are concerned that AI-related stock prices rose too far and may be in a bubble. The stakes are high for the broader market and workers’ 401(k) accounts because AI companies have become some of Wall Street’s most influential stocks.

Nvidia fell 7.6%, a day after surging 31.5% for its biggest gain in more than two decades. Other AI-related stocks also dropped. CoreWeave, which buys Nvidia chips and rents out access to them over the cloud, lost 12.7%. GE Vernova, which helps power AI data centers, fell 5.5%.

Anthropic, the company behind the Claude AI chatbot, dropped 9.3% to below $83, the price at which it first sold shares in its initial public offering last week. The stock briefly reached $115 on its first day of trading amid a frenzy of hype.

Jensen Huang’s surprise return as Nvidia’s CEO, announced Monday, brings back a charismatic leader who championed the AI industry but has not resolved its deeper concerns. Investors continue to question whether AI can generate enough profit and productivity to justify the huge investments in data centers.

High interest rates also make borrowing more difficult for companies seeking to fund industry growth. Sweeping Democratic victories earlier this month in the U.S. midterm elections have raised concerns about increased AI regulation, including possible pauses in further data center construction.

AI stocks and the broader U.S. market have seen sharp reversals since the summer, sometimes from one hour to the next. For now, the direction has turned downward again.

The declines in AI stocks weighed on the S&P 500 despite gains across most of its components. Stocks rose after a report showed U.S. consumer confidence improving more than economists expected.

The Conference Board said confidence jumped sharply among Democrats and independents after the midterm election results, narrowing the gap with Republicans, whose confidence slipped slightly. The findings echoed a preliminary University of Michigan report released earlier in the month, which also showed sentiment rising after the elections and oil prices falling from late October.

Companies across the economy continue to report strong summer profit growth. Dollar Tree rose 10.5% after reporting better-than-expected earnings for the latest quarter. The average shopper spent slightly more in its stores than in the third quarter of last year, and more shoppers visited.

Kohl’s gained 15.3% after reporting a profit for the latest quarter, when analysts had expected earnings to be roughly zero. Its revenue forecast for the final three months of its fiscal year was also better than expected.

S&P 500 companies are on pace to report earnings-per-share growth of more than 25% for a third consecutive quarter, according to FactSet. Over the long term, stock prices tend to follow corporate profits and interest rates, though investor sentiment can overwhelm those factors in the short term.

Treasury yields edged down as investors shifted toward investments viewed as safer. The 10-year Treasury yield fell to 4.90% from 4.92% late Monday, despite rising oil prices, which tend to push inflation and bond yields higher.

Brent crude rose 2.4% to $88.78 a barrel. Its price has moved between $72 and $114 since the United States and Israel attacked Iran in February.

Stock indexes were mixed across Europe and Asia. South Korea’s Kospi rose 6.3% and Japan’s Nikkei 225 gained 3.9%, among the biggest moves worldwide, as the markets caught up with Monday’s Wall Street rally.