In the New York area, consumer prices rose 4%, year over year, due to the higher cost of electricity, housing, recreation and food, the federal Bureau of Labor Statistics reported on Wednesday.