A 5-year-old, wearing just socks and light clothing, carried an 18-month-old through subzero temperatures in the Yukon Flats of Alaska after the power went out at the home where they had been left alone, according to the authorities.

The power failure scared the older child, who then carried the baby to a home about half a mile away in Venetie, Alaska, on Tuesday, the Alaska State Department of Public Safety said in a statement on Friday.

At the time, the temperature was about 31 degrees below zero, officials said, and both children suffered unspecified injuries from the cold. It was not immediately clear how the younger child had been dressed.

The children are expected to make a full recovery, Ken Marsh, a department spokesman, said on Sunday.