NEW YORK – Stocks ended the week with a moderate gain Friday after the resignation of Egypt’s President Hosni Mubarak eased investors’ fears about a spread of violence to oil-producing countries.

The Dow Jones industrial average, down nearly 50 points early in the day, closed up 44.

Also, the University of Michigan’s consumer sentiment index rose to 75.1 in February, from 74.2 in January, economists said. The index of current conditions rose to 86.8, its highest reading since January 2008.

Economists said they expect consumer confidence to continue to rise this year as hiring increases and consumers’ finances improve.

For the week, the Dow rose 1.5 percent. The Standard & Poor’s 500 index and the Nasdaq composite index both rose 1.4 percent for the week.

Bond prices rose. While investors were pleased with the developments in Egypt, many were also buying Treasurys, seen as a safe bet when there are political problems overseas.

The yield on the 10-year Treasury note fell to 3.64 percent from late Thursday’s 3.71 percent.

Among big stock moves, Expedia plunged 17 percent after the online travel company said its earnings fell 30 percent due to higher expenses. Expedia closed down $4.38 at $21.31.

Chipotle Mexican Grill rose $12.10, or 4.7 percent, to $268.73 after its earnings soared 47 percent.