The December 2022 issue of IEEE Spectrum is here!

Close bar

According to its website, Statistics Canada "produces statistics that help Canadians better understand their country—its population, resources, economy, society and culture.... Objective statistical information is vital to an open and democratic society. It provides a solid foundation for informed decisions by elected representatives, businesses, unions, and nonprofit organizations, as well as individual Canadians."

Unfortunately, as a story written by the Canadian Press reports, the statistics released by StatsCan in late April on GDP growth in the Canadian provinces were embarrassingly far off.

The Canadian Press story says that StatsCan announced on 28 April that Saskatchewan's economic growth in 2010 was 1.4 percent when it was actually 4.4 percent. After the April number was released, a Royal Bank of Canada economist called StatsCan up and said the statistic didn't make sense given what the bank was seeing.

The call spurred StatsCan to take another look at its numbers. In early May, new figures were released for Saskatchewan and the other provinces, most of which also had their GDP numbers underreported.

A StatsCan spokesperson, the Canadian Press story says, blamed the error on a new computer system that got two steps in reverse order. It implied that the error could happen to anyone.

Internal documents that were reviewed by the Canadian Press, however, stated the problem stemmed from a lack of testing of the new computer system that went operational in December 2010, some nine months late.

The story goes on to say, "The documents do not indicate why the crucial test was omitted but refer in general to 'challenges in regards to funding and finding IT expertise for IT conversion, especially given the complexity and scope of the project.' "

Cut testing when funding is scarce and the schedule is tight? What a surprise.

The Canadian Press story also says that "Statistics Canada, under pressure to cut its budget, dropped a series of surveys and statistical reports last year to save about [C]$7 million."

Given the above, StatsCan should not be surprised if its numbers tend to be looked at skeptically in the future.

PHOTO: iStockphoto

The Conversation (0)

Why Functional Programming Should Be the Future of Software Development

It’s hard to learn, but your code will produce fewer nasty surprises

11 min read
A plate of spaghetti made from code
Shira Inbar

You’d expectthe longest and most costly phase in the lifecycle of a software product to be the initial development of the system, when all those great features are first imagined and then created. In fact, the hardest part comes later, during the maintenance phase. That’s when programmers pay the price for the shortcuts they took during development.

So why did they take shortcuts? Maybe they didn’t realize that they were cutting any corners. Only when their code was deployed and exercised by a lot of users did its hidden flaws come to light. And maybe the developers were rushed. Time-to-market pressures would almost guarantee that their software will contain more bugs than it would otherwise.

Keep Reading ↓Show less