A worker walks in front of a large plant.

Canada’s economy shrank in August against widespread expectations of no growth, Statistics Canada data showed on Friday, but an advanced estimate pointed out the economy might escape a recession in the third quarter.