OTTAWA -- The annual pace of inflation slowed in December compared with November as gains in the price of gasoline eased up, Statistics Canada said Friday.

But economists said the economic strength last year is pushing underlying prices higher.

TD Bank senior economist Brian DePratto noted that two of the Bank of Canada's three preferred measures of core inflation, designed to look through the noise of more-volatile items like gasoline, ticked higher last month.

"Looking past the energy-led deceleration in inflation, hot growth of the Canadian economy in 2017 now appears 1/8to be 3/8 turning into somewhat hotter price growth," DePratto wrote in brief note to clients.

CPI-trim -- which helps filter out extreme price changes -- rose to 1.9 per cent from 1.8 per cent in November, while CPI-common -- which filters out prices that changed due to extraordinary circumstances -- climbed to 1.6 per cent from 1.5 per cent. CPI-median was unchanged compared with November at 1.9 per cent.

"It provides a little more confirmation that the interest rate hike earlier this month was justified from an economic fundamentals point of view," DePratto said of the move higher in core inflation.

"That core mandate of the bank is to control inflation and this speaks to the need for further hikes."

The Bank of Canada aims to keep inflation at two per cent, the midpoint of a target range of one- to three-per cent over the medium term.

In raising its trendsetting rate to 1.25 per cent last week, the Bank of Canada pointed to unexpectedly solid economic data as key drivers behind the decision.

CIBC economist Nick Exarhos also noted that underlying inflation trends appear to be firming.

"Core inflation metrics are trending in the right direction, something that supports the Bank of Canada's decision to hike rates at the start of 2018," he said.

"We could see some deflationary pressure from the stronger Canadian dollar, but given minimum wage hikes, a closed output gap, and what is likely to be stronger average pricing for energy over the balance of this year compared to 2017, inflation is likely to accelerate."

Overall, Statistics Canada said Friday that the consumer price index for the final month of 2017 was up 1.9 per cent compared with the same month a year earlier. That compared with a reading of 2.1 per cent in November.

Excluding gasoline, prices were up 1.5 per cent year on an annual basis in December, matching the increase in November.

Prices were up in seven of the eight major categories as the transportation index, which includes gasoline, and the shelter group led the way.

Transportation prices were up 4.9 per cent from a year ago compared with a 5.9 per cent increase in November. Gasoline, a key component of the group, climbed 12.2 per cent compared with a year earlier following a 19.6 per cent increase in November.

The shelter index climbed 1.4 per cent compared with a year ago as natural gas prices rose 6.2 per cent following a 3.1 per cent increase in November.

Meanwhile, the household operations, furnishings and equipment index fell 0.3 per cent compared with a year ago as the cost of telephone services slipped five per cent as the country's big wireless companies battled for market share in December with deeply discounted offers.

Here's what happened in the provinces and territories (previous month in brackets):

  • Newfoundland and Labrador: 1.7 per cent (2.0)
  • Prince Edward Island: 2.0 (2.2)
  • Nova Scotia: 1.7 (1.8)
  • New Brunswick: 2.9 (2.7)
  • Quebec: 1.8 (1.7)
  • Ontario: 1.5 (1.9)
  • Manitoba: 2.9 (3.2)
  • Saskatchewan: 3.4 (3.7)
  • Alberta: 2.0 (2.5)
  • British Columbia: 2.0 (2.6)
  • Whitehorse, Yukon: 2.1 (2.3)
  • Yellowknife, N.W.T.: 2.4 (1.4)
  • Iqaluit, Nunavut: 1.8 (1.6)

The agency also released rates for major cities, but cautioned that figures may have fluctuated widely because they are based on small statistical samples (previous month in brackets):

  • St. John's, N.L.: 1.5 per cent (1.8)
  • Charlottetown-Summerside: 2.0 (2.2)
  • Halifax: 1.5 (1.7)
  • Saint John, N.B.: 3.0 (2.7)
  • Quebec: 1.6 (1.4)
  • Montreal: 1.9 (1.7)
  • Ottawa: 1.6 (1.9)
  • Toronto: 1.9 (2.2)
  • Thunder Bay, Ont.: 1.0 (1.4)
  • Winnipeg: 2.7 (3.1)
  • Regina: 3.6 (3.9)
  • Saskatoon: 3.6 (3.9)
  • Edmonton: 2.2 (2.7)
  • Calgary: 2.0 (2.6)
  • Vancouver: 2.5 (3.0)
  • Victoria: 1.3 (2.1)