National monthly gross domestic product by industry, summary of Methods and data sources - 2021

National monthly gross domestic product by industry
Summary of Methods and data sources
Table summary
This table displays the results of summary of methods and data sources. The information is grouped by code (appearing as row headers), industry name, type of indicators and methods and data sources (appearing as column headers).
Code Industry name Type of indicators Methods and data sources
111X Crop production (except cannabis) Gross output Crop output in constant prices, National Gross Domestic Product by Income and by Expenditure Accounts, Record no. 1901, Canadian Grain Commission. Farm cash receipts for field-grown vegetables and for greenhouse, nursery and floriculture production, Record no. 3437. Farm product price indexes, Record no. 5040.
111CL Cannabis production (licensed) Gross output Farm cash receipts, Record no. 3437. Farm product price indexes, Record no. 5040. Licensed producer cannabis market data, Health Canada.
111CU Cannabis production (unlicensed) Gross output Cannabis crop output in constant prices, Cannabis Economic Account, National Gross Domestic Product by Income and by Expenditure Accounts, Record no. 1901.
112 Animal production Gross output Farm cash receipts for most livestocks, dairy products and eggs, Record no. 3437. Farm product price indexes, Record no. 5040. Domestic exports quantities for animal aquaculture multiplied by base year prices, Record no. 2201.
113 Forestry and logging Gross output Cubic metres of cut timber multiplied by base year prices, Provincial Departments (Quebec, Ontario and British Columbia).
114 Fishing, hunting and trapping Gross output Annual estimates of fish landing quantities multiplied by base year prices from Fisheries and Oceans Canada are interpolated by domestic exports of fish, Record no. 2201. Raw materials price indexes, Record no. 2306.
115 Support activities for agriculture and forestry Revenues and employment Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency. Average weekly earnings, Labour Force Survey, Record no. 3401, and Survey of Employment, Payrolls and Hours, Record no. 2612. Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
21111 Oil and gas extraction (except oil sands) Gross output Physical quantities multiplied by base year prices, Crude oil and natural gas, Record no. 2198.
21114 Oil sands extraction Gross output Physical quantities multiplied by base year prices, Crude oil and natural gas, Record no. 2198.
2121 Coal mining Gross output Physical quantities multiplied by base year prices, Coal monthly, Record no. 2147.
21221 Iron ore mining Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247.
21222 Gold and silver ore mining Gross output Physical quantities multiplied by base year prices. Monthly Mineral Production Survey, Record no. 5247.
21223 Copper, nickel, lead and zinc ore mining Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247.
21229 Other metal ore mining Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247.
21231 Stone mining and quarrying Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
21232 Sand, gravel, clay, and ceramic and refractory minerals mining and quarrying Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
212396 Potash mining Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247.
21239X Other non-metallic mineral mining and quarrying (except potash) Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247.
213 Support activities for mining and oil and gas extraction Gross output Metres drilled and rig operating days by province multiplied by base year prices, Provincial Departments.
Mineral exploration expenditures, Income and Expenditure Accounts, Record no. 1901.
2211 Electric power generation, transmission and distribution Gross output Number of megawatt hours by province multiplied by base year prices, Monthly electricity, Record no. 2151.
2212 Natural gas distribution Gross output Physical volume of natural gas sales, by type of customer, multiplied by base year prices, Gas Utilities/Transportation and Distribution Systems (Monthly), Record no. 2149.
2213 Water, sewage and other systems Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
23A Residential building construction Gross output Work-put-in-place in constant prices by type of dwellings, Residential construction investment, Record no. 5016.
Value of renovation building permits, Building permits survey, Record no. 2802.
Building materials price index, Producer Prices Division.
Average hourly earnings, Survey of Employment, Payrolls and Hours, Record no. 2612.
Retail sales in constant prices, Retail Trade Survey (Monthly), Record no. 2406.
Expenditures on new residential buildings and renovations, Income and Expenditure Accounts, Record no. 1901.
23B Non-residential building construction Gross output Work-put-in-place in constant prices by type of buildings, Investment in Non-residential Building Construction, Record no. 5014.
Expenditures on non-residential buildings, Income and Expenditure Accounts, Record no. 1901.
23D Repair construction Gross output Value of renovation building permits, Building permits survey, Record no. 2802.
Building materials price index, Producer Prices Division.
Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
Retail sales in constant prices, Retail Trade Survey (Monthly), Record no. 2406.
23X Engineering and other construction activities Employment and gross output Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
Expenditures on engineering structures, Income and Expenditure Accounts, Record no. 1901.
3111 Animal food manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3112 Grain and oilseed milling Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3113 Sugar and confectionery product manufacturing Gross output Physical quantities multiplied by base year prices. Monthly Mineral Production Survey, Record no. 5247. Sales and inventory change in constant prices, Monthly Survey of Manufacturing(MSM), Record no. 2101. Industrial product price indexes (IPPI), Record no. 2318.
3114 Fruit and Vegetable Preserving and Specialty Food Manufacturing Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247. Sales and inventory change in constant prices, Monthly Survey of Manufacturing (MSM), Record no. 2101. Industrial product price indexes (IPPI), Record no. 2318.
3115 Dairy product manufacturing Gross output Physical quantities multiplied by base year prices, Monthly Dairy Factory Production and Stocks Survey (DAIR), Record no. 3430. Industrial product price indexes (IPPI), Record no. 2318.
3116 Meat Product Manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3117 Seafood product preparation and packaging Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3118 Bakeries and tortilla manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3119 Other food manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
31211 Soft drink and ice manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
31212 Breweries Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3121A Wineries, distilleries Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3122 Tobacco manufacturing Gross output Physical quantities multiplied by base year prices, Production and disposition of tobacco products, Record no. 2142. Licensed manufacturers cannabis market data, Health Canada.
31A Textile and textile product mills Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
31B Clothing and leather and allied product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3211 Sawmills and wood preservation Gross output Physical quantities multiplied by base year prices, Sawmills, Record no. 2134.
3212 Veneer, plywood and engineered wood product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3219 Other wood product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3221 Pulp, paper and paperboard mills Gross output Physical quantities multiplied by base year prices, Pulp and Paper Products Council.
3222 Converted paper product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
323 Printing and related support activities Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
32411 Petroleum refineries Gross output Physical quantities multiplied by base year prices, Monthly refined petroleum products, Record no. 2150.
3241A Petroleum and coal products manufacturing (except petroleum refineries) Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3251 Basic chemical manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3252 Resin, synthetic rubber, and artificial and synthetic fibres and filaments manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3253 Pesticide, fertilizer and other agricultural chemical manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3254 Pharmaceutical and medicine manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3255 Paint, coating and adhesive manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3256 Soap, cleaning compound and toilet preparation manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3259 Other chemical product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3261 Plastic product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3262 Rubber product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3273 Cement and concrete product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
327A Non-metallic mineral product manufacturing (except cement and concrete products) Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3311 Iron and steel mills and ferro-alloy manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3312 Steel product manufacturing from purchased steel Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3313 Alumina and aluminum production and processing Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247. Sales and inventory change in constant prices, Monthly Survey of Manufacturing (MSM), Record no. 2101.
Industrial product price indexes (IPPI), Record no. 2318.
3314 Non-ferrous metal (except aluminum) production and processing Gross output Physical quantities multiplied by base year prices, Monthly Mineral Production Survey, Record no. 5247. Sales and inventory change in constant prices, Monthly Survey of Manufacturing (MSM), Record no. 2101.
Industrial product price indexes (IPPI), Record no. 2318.
3315 Foundries Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3321 Forging and stamping Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3323 Architectural and structural metals manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3324 Boiler, tank and shipping container manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3325 Hardware manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3326 Spring and wire product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3327 Machine shops, turned product, and screw, nut and bolt manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3328 Coating, engraving, heat treating and allied activities Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
332A Cutlery, hand tools and other fabricated metal product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3331 Agricultural, construction and mining machinery manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3332 Industrial machinery manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3333 Commercial and service industry machinery manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3334 Ventilation, heating, air-conditioning and commercial refrigeration equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3335 Metalworking machinery manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3336 Engine, turbine and power transmission equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3339 Other general-purpose machinery manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3341 Computer and peripheral equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3342 Communications equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3344 Semiconductor and other electronic component manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
334A Other electronic product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3351 Electric lighting equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3352 Household appliance manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3353 Electrical equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3359 Other electrical equipment and component manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3361 Motor vehicle manufacturing Gross output

Physical quantities multiplied by base year prices, Motor Vehicle Manufacturers Association.
Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.

Seasonal adjustment for the component industry 33611 – Automobile and Light-Duty Motor Vehicle Manufacturing is performed on the basis of an eleven-month calendar, where the actual combined seasonally adjusted production of July and August is distributed between both months such that their growth rates are equal.

As the summer holidays in this industry are taken in July-August according to production requirements, this approach prevents small changes in the pattern of these holidays to translate into large changes in the seasonally adjusted data.

However, irregular events in July and August outside of summer holidays, for example a structural change such as the discontinuation of an existing vehicle model or the commencement of a new vehicle model, are treated separately such that the impact of irregular events is reflected in the month of occurrence. This treatment for irregular events in July and August can thus result in seasonally adjusted growth rates that are not equal in July and August.

3362 Motor vehicle body and trailer manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3363 Motor vehicle parts manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3364 Aerospace product and parts manufacturing Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
3365 Railroad rolling stock manufacturing Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
3366 Ship and boat building Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3369 Other transportation equipment manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3371 Household and instittutional furniture and kitchen cabinet manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3372 Office furniture (including fixtures) manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3379 Other furniture-related product manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3391 Medical equipment and supplies manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
3399 Other miscellaneous manufacturing Gross output Sales and inventory change in constant prices, Monthly Survey of Manufacturing, Record no. 2101.
Industrial product price indexes, Record no. 2318.
411 Farm product wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
Commercial disappearance of Canadian grain (quantities), Canadian Grain Commission. Number of employees, Canadian Wheat Board.
412 Petroleum product wholesaler-distributors Gross output Physical quantities multiplied by base year prices, Monthly refined petroleum products, Record no. 2150.
413 Food, beverage and tobacco wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
414 Personal and household goods wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
415 Motor vehicle and parts wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
416 Building material and supplies wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
417 Machinery, equipment and supplies wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
418 Miscellaneous wholesaler-distributors Gross output Deflated sales and margins, Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106, Annual Wholesale Trade Survey, Record no. 2445.
419 Wholesale electronic markets, and agents and brokers Gross output Deflated wholesale sales of groups 411 to 418, excluding 4151 (Motor vehicle wholesaler-distributors).
Wholesale Trade Survey (Monthly), Record no. 2401, Wholesale Services Price Index, Record no. 5106.
441 Motor vehicle and parts dealers Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
442 Furniture and home furnishings stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
443 Electronics and appliance stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
444 Building material and garden equipment and supplies dealers Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
445 Food and beverage stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
446 Health and personal care stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
447 Gasoline stations Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
448 Clothing and clothing accessories stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
451 Sporting goods, hobby, book and music stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
452 General merchandise stores Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
453A Miscellaneous store retailers (except cannabis) Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
453BL Cannabis stores (licensed) Gross output Deflated sales and margins, Retail trade survey (monthly), Record no. 2406, Consumer price indexes adjusted for sales tax changes, Record no. 2301, Retail commodity survey, Record no. 2008, Retail trade survey (annual), Record no. 2422.
453BU Cannabis stores (unlicensed) Gross output Unlicensed cannabis sales and margins in constant prices, Cannabis Economic Account, National Gross Domestic Product by Income and by Expenditure Accounts, Record no. 1901.
454 Non-store retailers Revenues and output Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency. Consumer price indexes adjusted for sales tax changes, Record no. 2301.
Physical quantities multiplied by base year prices, Monthly refined petroleum products, Record no. 2150.
481 Air transportation Gross output Volume of passenger-kilometres and goods tonne-kilometres multiplied by base year prices, Air carrier operations in Canada quarterly survey, Record no. 2712.
482 Rail transportation Gross output Freight loaded on lines in Canada in tonnes multiplied by base year prices, Railway carloadings survey - monthly, Record no. 2732, and passenger revenues deflated by Consumer price index adjusted for sales tax changes, Record no. 2301.
483 Water transportation Revenues and output Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency.
Industrial product price indexes, Record no. 2318, and average weekly earnings, Survey of Employment, Payrolls and Hours, Record no. 2612.
Number of persons and vehicles carried by deep sea and coastal ferries by route multiplied by base year ticket prices, Marine Atlantic Inc. and BC Ferries.
484 Truck transportation Other Output in constant prices of the largest industries using trucking services.
4851 Urban transit systems Gross output Revenues of the largest urban transit systems, Record no. 2745, deflated by a Consumer price index adjusted for sales tax changes, Record no. 2301.
4853 Taxi and limousine service Revenues Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency, deflated by a Consumer price index adjusted for sales tax changes, Record no. 2301.
48A Other transit and ground passenger transportation and scenic and sightseeing transportation Output and employment Revenues of interurban and rural bus transportation companies, Transportation Division, deflated by a Consumer price index adjusted for sales tax changes, Record no. 2301.
Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
4862 Pipeline transportation of natural gas Gross output Volume of cubic metre kilometres of natural gas transported multiplied by base year prices. Monthly Natural Gas Transmission Survey (MNGT), Record no. 2149.
486A Crude oil and other pipeline transportation Gross output Volume of cubic metre kilometres of crude oil and liquefied petroleum gases transported multiplied by base year prices, Monthly Oil and Other Liquid Petroleum Products Pipeline Survey (MOPS), Record no. 2148.
488 Support activities for transportation Other and employment Output in constant prices of selected industries and number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
491 Postal service Gross output Canada Post revenues deflated by a Consumer price index adjusted for sales tax changes, Record no. 2301.
492 Couriers and messengers Revenues Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency, deflated by the Couriers and messengers services price index, Record no. 5064.
493 Warehousing and storage Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
511 Publishing industries (except Internet) Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
512 Motion picture and sound recording industries Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5151 Radio and television broadcasting Gross output Radio and television advertising sales in constant prices, Television Bureau of Canada, Canadian Advertising Rates and Data and Canadian Association of Broadcasters.
5152 Pay and specialty television Gross output Number of subscribers by type of service multiplied by base year prices, Mediastats.
517 Telecommunications Gross output Number of subscribers by type of service multiplied by base year prices, Quarterly survey of telecommunications, Record no. 2721, including number of subscribers for cable, satellite and other program distribution services, local residential and business telephone services , mobile, high-speed internet service, and wired long-distance minutes. Canadian Radio-television and Telecommunications Commission, and Mediastats Inc..
518 Data processing, hosting, and related services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
519 Other information services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
52213 Local credit unions Gross output Deflated revenues derived from assets and liabilities, Quarterly survey of financial statements, Record no. 2501, Bank of Canada, Record no. 7502, Consumer price index adjusted for sales tax changes, Record no. 2301.
52BX Banking, monetary authorities and other depository credit intermediation Gross output Deflated revenues derived from chartered banks and trust companies assets and liabilities, stock market volume and mutual funds assets. Quarterly survey of financial statements, Record no. 2501, The Investment Fund Institute of Canada, Bank of Canada, Record no. 7502, Canadian stock exchanges and Consumer price index adjusted for sales tax changes, Record no. 2301. Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5222 Non-depository credit intermediation Gross output Deflated revenues derived from assets and liabilities, Quarterly survey of financial statements, Record no. 2501, Consumer price index adjusted for sales tax changes, Record no. 2301.
5223 Activities related to credit intermediation Gross output Deflated revenues derived from assets and liabilities, Quarterly survey of financial statements, Record no. 2501, Consumer price index adjusted for sales tax changes, Record no. 2301.
5241 Insurance carriers Gross output Sales of insurance policies and revenues derived from investment expressed in constant prices, Quarterly survey of financial statements, Record no. 2501, LIMRA International, Bank of Canada, Record no. 7502, Consumer price indexes adjusted for sales tax changes, Record no. 2301.
5242 Agencies, brokerages and other insurance related activities Gross output Sales of insurance policies expressed in constant prices, Quarterly survey of financial statements, Record no. 2501, LIMRA International, Bank of Canada, Record no. 7502, Consumer price indexes adjusted for sales tax changes, Record no. 2301.
52A Financial investment services, funds and other financial vehicles Gross output Revenues derived from assets and liabilities, expressed in constant prices, and the volume of transactions on the Canadian stock exchanges, Bank of Canada, Record no. 7502, Balance of Payments Division, The Investment Fund Institute of Canada, Income Statistics Division, Consumer price index adjusted for sales tax changes, Record no. 2301.
5311 Lessors of real estate Gross output Paid rental fees for housing, Income and Expenditure Accounts, Record no. 1901, rented surface of non-residential buildings, Colliers International.
5311Y Owner-occupied dwellings Gross output Owned and occupied housing stock, Income and Expenditure Accounts, Record no. 1901.
531X Offices of real estate agents and brokers Gross output Number of properties sold multiplied by base year prices, Canadian Real Estate Association.
5321 Automotive equipment rental and leasing Employment and other Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612. Passenger vehicle renting, Income and Expenditure Accounts, Record no. 1901.
532A Rental and leasing services (except automotive equipment) Gross output Operating income at constant prices, Quarterly survey of financial statements, Record no. 2501, Consumer price indexes adjusted for sales tax changes, Record no. 2301.
533 Lessors of non-financial intangible assets (except copyrighted works) Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5411 Legal services Gross output Various indicators related to legal services, Canadian Centre for Justice Statistics Division, Office of the Superintendent of Bankruptcy Canada, Demography Division, Industry Canada, Canadian Real Estate Association, Canada Mortgage and Housing Corporation.
5412 Accounting, tax preparation, bookkeeping and payroll services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5413 Architectural, engineering and related services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5414 Specialized design services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5415 Computer systems design and related services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5416 Management, scientific and technical consulting services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5417 Scientific research and development services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5418 Advertising, public relations, and related services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5419 Other professional, scientific and technical services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
55 Management of companies and enterprises Gross output Operating income at constant prices, Quarterly survey of financial statements, Record no. 2501, Consumer price index adjusted for sales tax changes, Record no. 2301, Rented surface of non-residential buildings, Colliers International.
5611 Office administrative services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5613 Employment services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5614 Business support services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5615 Travel arrangement and reservation services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5616 Investigation and security services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
5617 Services to buildings and dwellings Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
561A Facilities and other support services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
562 Waste management and remediation services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
6111 Elementary and secondary schools Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
6112 Community colleges and C.E.G.E.P.s Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
6113 Universities Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
611A Other educational services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
621 Ambulatory health care services Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
622 Hospitals Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
623 Nursing and residential care facilities Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
624 Social assistance Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
71A Performing arts, spectator sports and related industries, and heritage institutions Gross output and employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612. Sporting event attendances (various sources). Canadian Pari-Mutuel Agency, Agriculture and Agri-Food Canada.
Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency. Consumer price indexes adjusted for sales tax changes, Record no. 2301.
7132 Gambling industries Gross output Deflated revenues of provincial lottery corporations, Income and Expenditure Accounts, Record no. 1901.
Consumer price index adjusted for sales tax changes, Record no. 2301.
713A Amusement and recreation industries Employment Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
721 Accommodation services Revenues Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency, deflated by Consumer price indexes adjusted for sales tax changes, Record no. 2301.
722 Food services and drinking places Gross output Sales from the Monthly Survey of Food Services and Drinking Places, Record no. 2419, deflated by Consumer price indexes adjusted for sales tax changes, Record no. 2301.
811 Repair and maintenance Revenues and employment Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency, deflated by Consumer price indexes adjusted for sales tax changes, Record no. 2301.
Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
812 Personal and laundry services Revenues, employment and output Revenues declared on the Goods and Services Tax remittance form, Canada Revenue Agency, deflated by Consumer price indexes adjusted for sales tax changes, Record no. 2301.
Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
Number of deaths, Population estimates, Record no. 3601.
813 Religious, grant-making, civic, and professional and similar organizations Employment and person-hours Number of employees, Survey of Employment, Payrolls and Hours, Record no. 2612.
Hours-worked data, Labour Productivity Measures, Record no. 5042.
814 Private households Gross Output Child care services in the home and other services related to the dwelling and property, Income and Expenditure Accounts, Record no. 1901.
9111 Defence services Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
911A Federal government public administration (except defence) Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
912 Provincial and territorial public administration Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
913 Local, municipal and regional public administration Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.
914 Aboriginal public administration Person-hours Hours-worked data, Labour Productivity Measures, Record no. 5042.

Retail Trade Survey (Monthly): CVs for Total sales by geography - October 2020

CVs for Total sales by geography - October 2020
Table summary
This table displays the results of Annual Retail Trade Survey: CVs for Total sales by geography - October 2020. The information is grouped by Geography (appearing as row headers), Month and Percent (appearing as column headers).
Geography Month
202010
%
Canada 1.3
Newfoundland and Labrador 1.3
Prince Edward Island 0.9
Nova Scotia 1.4
New Brunswick 2.8
Quebec 1.9
Ontario 3.2
Manitoba 2.1
Saskatchewan 2.7
Alberta 2.0
British Columbia 2.2
Yukon Territory 1.3
Northwest Territories 0.5
Nunavut 1.8

StatCan+ beta consultation

Consultation objectives

This new product is part of Statistics Canada's quest to make statistics more accessible and understandable for all Canadians. StatCan+ provides highlights of data and analysis in plain language on key topics that include links to full articles, data visualizations and additional statistical resources.

Through StatCan+, Statistics Canada will deliver more data, more often. We'll also be sharing news about events, webinars, and profiles of some of our data users. In addition, the product will cover the agency's activities within the community and invite users to get to know the agency better.

This consultation will help Statistics Canada improve and expand StatCan+ to respond to users' information needs.

Consultation methodology

Statistics Canada will ask individuals to consult the beta version of the webpage and to provide feedback through an online feedback form.

How to get involved

Individuals who wish to obtain more information on the consultation may contact us by emailing statcan.consultations@statcan.gc.ca.

Statistics Canada is committed to respecting the privacy of consultation participants. All personal information created, held or collected by the agency is protected by the Privacy Act. For more information on Statistics Canada's privacy policies, please consult the privacy notice.

Date modified:

NRCan’s Digital Accelerator: Revolutionizing the way Natural Resources Canada serves Canadians through digital innovation

By: Curtis McKinney, Natural Resources Canada; Anjuli Szawiola, Natural Resources Canada

Natural Resources Canada (NRCan) has a strong foundation integrating advanced analytics in its science and research programs. This expertise makes the department an authority in areas such as geospatial data and projecting ecosystem disturbances in Canada’s forests. NRCan aims to lead the digital transformation of the natural resource sector. To that end, the Digital Accelerator was formed to explore innovative applications of digital solutions and develop strategic partnerships to augment NRCan’s expertise.

What is the Digital Accelerator?

The Digital Accelerator is a team of data scientists and analysts who provide a cross-functional, client-centric service to science and policy experts throughout NRCan. The Accelerator takes a hands-on approach to growing the department’s artificial intelligence-related competencies by delivering tangible products in collaboration with partners and identifying opportunities to share knowledge, expertise and resources.

For example, researchers from NRCan, Transport Canada, Environment and Climate Change Canada, the University of Waterloo and the University of Ontario Institute of Technology are collaborating to provide tools and knowledge to utility planners, policy makers, university researchers and consultants to better inform electrical grid management. The Digital Accelerator is utilizing a variety of datasets—including techno-economic factors, environmental considerations and drivers’ social behaviour—to develop machine learning models to analyze the optimization of electric grids and charging infrastructure for mass vehicle penetration. This analysis will help forecast the impact on charging infrastructure, future grid extensions and utilities generation capacities.

These types of strategic partnerships are fundamental to accelerating the adoption of advanced analytics and providing more value to Canadians. The Digital Accelerator is excited to announce three new partnerships with data science teams from Statistics Canada, Microsoft Canada and Google Canada. These collaborations represent a new way for departments and technology firms to work together and keep pace with the rate of advancements in AI.

Are you interested in learning more or collaborating? Check out the NRCan website or email them today!

Project team and contributors:

Alida Rubwindi, Natural Resources Canada; Lisa VandenBerg, Natural Resources Canada

Date modified:

Version Control with Git for Analytics Professionals

By: Collin Brown, Statistics Canada

Analytics and data science workflows are becoming more complex than ever before—there are more data to analyze; computing resources continue to become cheaper; and there has been a surge in the availability of open source software.

For these reasons and more, there has been a significant uptake in programming by analytics professionals who do not have a classical computer science background. These advances have allowed analytics professionals to expand the scope of their work, perform new tasks and leverage these tools to deliver more value.

However, this rapid adoption of programming by analytics professionals introduces new complexities and exasperates old ones. In classical computer science workflows, such as software development, many tools and techniques have been rigorously developed over decades to accommodate this complexity.

As more analytics professionals integrate programming and open source software into their work, they may benefit significantly from also adopting some of the best practices from computer science that allow for the management of complex analytics and workflows.

When should analytics professionals leverage tools and techniques to manage complexity? Consider the problem of source code version control. In particular, how can multiple analytics professionals work on the same code base without conflicting with each other and how can they quickly revert back to previous versions of the code?

Leveraging Git for version control

Even if you are not familiar with the details of Git, the following scenario will demonstrate the benefits of such a tool.

Imagine there is a small team of analytics professionals making use of Git (a powerful tool typically used in software engineering) and GCCode (a Government of Canada internal instance of GitLab).

The three analytics professionals—Jane, John and Janice—create a monthly report that involves producing descriptive statistics and estimating some model parameters. The code they use to implement this analysis is written in Python, and the datasets they perform their analysis on are posted to a shared file system location that they all have access to. They must produce the report on the same day that the new dataset is received and, afterwards, send it to their senior management for review.

The team uses GCCode to centrally manage their source code and documentation written in gitlab flavoured markdown. They use a paired down version of a successful git branching model to ensure there are no conflicts when they each push code to the repository. The team uses a peer review approach to pull requests (PRs), meaning that someone other than the person who submitted the PR must review and approve the changes implemented in the PR.

This month is unusual; with little notice, the team is informed by their supervisor that there will be a change in the format that one of the datasets is received in. This format change is significant and requires non-trivial changes to the team’s codebase. In particular, once the changes are made, the code will support data preprocessing in the new format, but will no longer accommodate the old format.

The three employees quickly delegate responsibilities to incorporate the necessary changes to the codebase:

  • Jane will write the new piece of code required to accommodate the new data format
  • John will write automated tests that verify the correctness of Jane’s code
  • Janice will update the documentation to describe the data format changes.

The team has been following good version control practices, so the main branch of their GCCode repository is up to date and correctly implements the analysis required to produce the previous months’ reports.

Jane, John, and Janice begin by pulling from the GCCode repository to make sure each of their local repositories is up to date. Once this step is done, they each checkout a new branch from the main branch. Since the team is small, they choose to omit much of the overhead presented in a successful branching model and just checkout their own branches directly from the main branch.

Description - Figure 1 Example of three employees interacting with a remote Git repository. There is a box at the top of the diagram representing a remote repository. Below this, there are three boxes side-by-side representing local repositories of each of the three employees. For each box, there is a figure showing the employees’ branch off of main, which is represented as a series of circles, where each circle is a commit on the employees’ branch. Arrows pointing to/from the remote and local repositories show that employees push to and pull from the remote repository to keep their changes in sync with the remote. Finally, the remote has a figure showing all three employees’ branches off of main put together in a single diagram, indicating that the work of all three employees is happening in parallel and the work of each employee is not conflicting with the work of the others.

The three go about their work on their local workstations, committing their changes as they go while following good commit practices. By the end of the business day, they push their branches to the remote repository. At this point, the remote repository has three new branches that are each several commits ahead of the main branch. Each of the three assigns another to be their peer reviewer, and the next day the team approves changes and merges each member’s branch to main.

Description - Figure 2 Example of three branches merging back into the main branch via pull request. There is a circle representing the most recent commit of the main branch at the point when each of the three employees’ branches are created off of main. There are now three branches that each employee has worked on in parallel to implement their workflow, without conflicting with the work of the others. Each branch has several consecutive circles representing commits made. At the right side of the figure, the three parallel branches converge into a second circle representing the head of the new main branch after all three employees’ branches have been merged.

On the day that the report must be generated, they run their new code and successfully generate and send the report for their senior management using the new data.

Later that day, they receive an urgent request asking them to reproduce the previous three months’ reports for audit purposes. Given that the code has changed to accommodate the new data format, the current code is no longer compatible with the previous datasets.

Git to the rescue!

Fortunately, however, the team is using Git to manage their codebase. Because the team is using Git, they can checkout to the commit just before they made their changes, and temporarily revert the state of the working folder to what it was before their changes. Now that the folder has changed, they can retroactively produce the three reports using the previous three months’ data. Finally, they can then checkout back to the most recent commit of the main branch, so that they can use the new codebase that accommodates the format change going forward.

Even though the team described above is performing an analytics workflow, they were able to leverage Git to prevent a situation that otherwise may have been very inconvenient and time-consuming.

Learn more about Git

Would your work benefit from using the practices described above? Are you unfamiliar with Git? Here are a few resources to get you started:

  • The first half of IBM’s How Does Git Work provides a mental model for how Git works, and introduces many of the technical terms of Git and how they relate to that model.
  • This article about a successful git branching model provides a guide on how to perform collaborative workflows using a branching model and a framework that can be adjusted to suit particular needs.
  • The Git book provides a very detailed review of the mechanics of how Git works. It is broken down by section, so you can review whichever portion(s) are most relevant to your current use case.

What’s next?

Applying version control to one’s source code is just one of many computer science-inspired practices that can be applied to analytics and data science workflows.

In addition to versioning source code, many data science and analytics professionals may find themselves benefiting from data versioning (see Data Version Control for an implementation of this concept) or model versioning (e.g. see MLFlow model versioning).

Outside of versioning, there are many other computer science practices that analytics professionals can make use of such as automated testing, adhering to coding standards (e.g. Python’s PEP 8 style guide and environment and package management tools (e.g. pip and virtual environments in Python).

These resources are a great place to start as you begin to discover how complexity management practices from computer science can be used to improve data science and analytics workflows!

Date modified:

Use of Machine Learning for Crop Yield Prediction

By: Kenneth Chu, Statistics Canada

The Data Science Division (DScD) at Statistics Canada recently completed a research project for the Field Crop Reporting Series (FCRS) Footnote 1 on the use of machine learning techniques (more precisely, supervised regression techniques) for early-season crop yield prediction.

The project objective was to investigate whether machine learning techniques could be used to improve the precision of the existing crop yield prediction method (referred to as the Baseline method).

The project faced two key challenges: (1) how to incorporate any prediction technique (machine learning or otherwise) into the FCRS production environment in a methodologically sound way, and (2) how to evaluate any prediction method meaningfully within the FCRS production context.

For (1), the rolling window forward validation Footnote 2 protocol (originally designed for supervised learning on time series data) was adapted to safeguard against temporal information leakage. For (2), the team opted to perform testing by examining the actual series of prediction errors that would have resulted had it been deployed in past production cycles.

Motivation

Traditionally, the FCRS publishes annual crop yield estimates at the end of each reference year (shortly after harvest). In addition, full-year crop yield predictions are published several times during the reference year. Farms are contacted in March, June, July, September and November for data collection, resulting in a heavy response burden for farm operators.

In 2019, for the province of Manitoba, a model-based method—essentially, variable selection via LASSO (Least Absolute Shrinkage and Selection Operator), followed by robust linear regression—was introduced to generate the July predictions based on longitudinal satellite observations of local vegetation levels as well as region-level weather measurements. This allowed the removal of the question about crop yield prediction from the Manitoba FCRS July questionnaire, reducing the response burden.

Core regression technique: XGBoost with linear base learner

A number of prediction techniques were examined, including: random forests, support vector machines, elastic-net regularized generalized linear models, and multilayer perceptrons. Accuracy and computation time considerations led us to focus attention on XGBoost Footnote 3 with linear base learner.

Rolling Window Forward Validation to prevent temporal information leakage

The main contribution of the research project is the adaptation of rolling window forward validation (RWFV) Footnote 2 as hyperparameter tuning protocol. RWFV is a special case of forward validation Footnote 2, a family of validation protocols designed to prevent temporal information leakage for supervised learning based on time series data.

Suppose you are training a prediction model for deployment in production cycle 2021. This following schematic illustrates a rolling window forward validation scheme with a training window of five years, and a validation window of three years.

Description - Figure 1 Example of a rolling window forward validation scheme. This figure depicts, as an example, a rolling window forward validation scheme with a training window of five years and a validation window of three years. A validation scheme of this type is used to determine the optimal hyperparameter configuration to use when training the actual prediction model to be deployed in production.

The blue box at the bottom represents the production cycle 2021 and the five white boxes to its left correspond to the fact that a training window of five years is being used. This means that the training data for production cycle 2021 will be those from the five years strictly and immediately prior (2016 to 2020). For validation, or hyperparameter tuning for production cycle 2021, the three black boxes above the blue box correspond to our choice that the validation window is three years.

The RWFV protocol is used to choose the optimal configuration from the hyperparameter search space, as follows:

  • Fix temporarily an arbitrary candidate hyperparameter configuration from the search space.
  • Use that configuration to train a model for validation year 2020 using data from the following five years: 2015 to 2019.
  • Use that resulting trained model to make predictions for the validation year 2020. Compute accordingly the parcel-level prediction errors for 2020.
  • Aggregate the parcel-level prediction errors down to an appropriate single numeric performance metric.
  • Repeat for the two other validation years (2018 and 2019).

Averaging the performance metrics across the validation years 2018, 2019 and 2020, the result is a single numeric performance metric/validation error for the temporarily fixed hyperparameter configuration.

Next, this was repeated for all candidate hyperparameter configurations in the hyperparameter search space. The optimized configuration to actually be deployed in production is the one that yields the best aggregated performance metric. This is rolling window forward validation, or more precisely, our adaptation of it to the crop yield prediction context.

Note that the above protocol respects the operational constraint that, for production cycle 2021, the trained prediction model must have been trained and validated on data from strictly preceding years; in other words, the protocol prevents temporal information leakage.

Production-pertinent testing via prediction error series from virtual production cycles

To evaluate—in a way most pertinent to the production context of the FCRS—the performance of the aforementioned prediction strategy based on XGBoost(Linear) and RWFV, the data scientists computed the series of prediction errors that would have resulted had the strategy actually been deployed for past production cycles. In other words, these prediction errors of virtual past production cycles were regarded as estimates of the generalization error within the statistical production context of the FCRS.

The following schematic illustrates the prediction error series of the virtual production cycles:

Description - Figure 2 Prediction error series of virtual production cycles. Virtual production cycles are run for past reference years, as described in Figure 1. Since the actual crop yield data are already known for past production cycles, the actual prediction errors had the proposed prediction strategy been actually deployed for past production cycles (represented by orange boxes) can be computed. The resulting series of prediction errors for past production cycles is used to assess the accuracy and stability of the proposed crop yield prediction strategy.

Now repeat, for each past virtual production cycle (represented by an orange box), what was just described for the blue box. The difference now is the following: for the blue box, namely the current production cycle, it is NOT yet possible to compute the production/prediction errors at time of crop yield prediction (in July) since the current growing season has not ended. However, for the past virtual production cycles (the orange boxes), it is possible.

These prediction errors in virtual past production cycles can be illustrated in the following plot:

Description - Figure 3 Graphical comparison of the XGBoost(Linear)/RWFV prediction strategy against the Baseline strategy. The red line is the mock production error series of the Baseline strategy, while the orange is that of the XGBoost(Linear)/RWFV strategy. The latter strategy exhibits consistently smaller prediction errors across consecutive virtual past production cycles.

The red line illustrates the Baseline model prediction errors, while the orange line illustrates the XGBoost/RWFV strategy prediction errors. The gray lines illustrate the prediction errors for each of the candidate hyperparameter configurations in our chosen search grid (which contains 196 configurations).

The XGBoost/RWFV prediction strategy exhibited smaller prediction errors than the Baseline method, consistently over consecutive historical production runs.

Currently, the proposed strategy is in the final pre-production testing phase, to be jointly conducted by subject matter experts and the agricultural program’s methodologists.

The importance of evaluating protocols

The team chose not to use a more familiar validation method such as hold-out or cross validation, nor a generic generalization error estimate such as prediction error on a testing data set kept aside at the beginning.

These decisions were taken based on our determination that our proposed validation protocol and choice of generalization error estimates (RWFV and virtual production cycle prediction error series, respectively) would be much more relevant and appropriate given the production context of the FCRS.

Methodologists and machine learning practitioners are encouraged to evaluate carefully whether generic validation protocols or evaluation metrics are indeed appropriate for their use cases at hand, and if not, seek alternatives that are more relevant and meaningful within the given context. For more information about this project, please email statcan.dsnfps-rsdfpf.statcan@statcan.gc.ca.

References

Date modified:

Wholesale Trade Survey (monthly): CVs for total sales by geography - October 2020

Monthly Wholesale Trade Survey - CVs for Total sales by geography
Geography Month
201910 201911 201912 202001 202002 202003 202004 202005 202006 202007 202008 202009 202010
percentage
Canada 0.6 0.6 0.8 0.7 0.7 0.6 0.8 0.8 0.7 0.7 0.7 0.7 0.5
Newfoundland and Labrador 0.4 0.3 0.2 0.7 0.3 1.2 0.7 0.5 0.1 0.2 0.4 0.3 0.3
Prince Edward Island 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Nova Scotia 2.1 2.2 6.8 2.6 2.0 2.8 3.3 4.0 2.3 1.5 1.8 1.7 2.5
New Brunswick 1.4 3.8 1.7 2.6 1.2 1.3 2.1 3.3 1.9 2.1 4.2 3.4 2.8
Quebec 1.7 1.7 2.2 1.4 2.1 1.6 2.4 2.0 1.9 1.8 2.1 2.0 1.5
Ontario 1.0 0.8 1.2 1.2 0.9 1.0 1.2 1.1 1.1 1.1 0.9 0.9 0.8
Manitoba 1.7 0.9 2.6 1.3 0.8 1.0 2.9 2.8 1.2 1.2 1.8 2.3 1.7
Saskatchewan 0.7 1.0 0.7 0.5 0.6 0.5 1.2 0.7 0.7 1.1 1.6 0.6 0.8
Alberta 1.3 1.4 1.1 1.0 0.9 1.2 2.9 2.9 2.3 2.3 1.8 3.3 1.3
British Columbia 1.1 1.5 1.4 1.3 1.6 1.5 1.3 1.7 1.6 1.3 1.9 1.8 1.4
Yukon Territory 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Northwest Territories 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Nunavut 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

Differences between the Annual Survey of Manufacturing Industries and the Monthly Survey of Manufacturing

The Annual Survey of Manufacturing and Logging Industries (ASML) measures both revenues from goods manufactured as well as total revenues. It should be noted that when comparing to the sales of goods manufactured variable from the Monthly Survey of Manufacturing (MSM), users should use the first concept, revenues from goods manufactured from the ASML. The total revenues published from the ASML measures a broader concept as it includes revenues from activities other than manufacturing.  For example, total revenues includes goods purchased for resale, investment and interest revenues. Total revenues from the ASML therefore cannot be compared to sales of goods manufactured published by the MSM.

The two surveys answer different user needs. The Monthly Survey of Manufacturing is built to provide an indicator on the state of the manufacturing sector and track monthly changes, i.e. provide information on the trend, while the Annual Survey of Manufacturing and Logging Industries is built to paint a detailed picture on the total dollar values of the industries, i.e. to provide information on the levels.

In order to provide information on trend that is not altered by changes in the sample, the sample of the Monthly Survey of Manufacturing is redrawn every five years, while the sample of the Annual Survey of Manufacturing and Logging Industries is renewed every year.

Both surveys are subject to revisions, however the two surveys will not produce identical results mainly because of methodological differences. For example, there are differences in sampling strategies (as described above), respondents reporting on the annual survey for a fiscal year that is different from a January to December calendar year, auxiliary data sources (MSM uses GST data, while ASML uses T2 tax data for imputation and calibration), imputation methods (for a particular record, MSM may use historical imputation, while ASML may use a donor to impute, or vice versa).

For more information on data sources and methodology please visit the following links:

Annual Survey of Manufacturing and Logging Industries (ASML)

Monthly Survey of Manufacturing (MSM)

Inter-city indexes of price differentials, of consumer goods and services 2020

Methodology

Inter-city indexes of price differentials of consumer goods and services show estimates of price differences between 15 Canadian cities in all provinces and territories, as of October 2019. These estimates are based on a selection of products (goods and services) purchased by consumers in each of the 15 cities.

In order to produce optimal inter-city indexes, product comparisons were initially made by pairing cities that are in close geographic proximity. The resulting price level comparisons were then extended to include comparisons between all of the cities, using a chaining procedure. The following initial pairings were used:

St. John's, Newfoundland and Labrador
Halifax, Nova Scotia
Charlottetown-Summerside, Prince Edward Island
Halifax, Nova Scotia
Saint John, New Brunswick
Halifax, Nova Scotia
Halifax, Nova Scotia
Ottawa, Ontario
Montréal, Quebec
Toronto, Ontario
Ottawa, Ontario
Toronto, Ontario
Toronto, Ontario
Winnipeg, Manitoba
Regina, Saskatchewan
Winnipeg, Manitoba
Edmonton, Alberta
Winnipeg, Manitoba
Vancouver, British Columbia
Edmonton, Alberta
Calgary, Alberta
Edmonton, Alberta
Whitehorse, Yukon
Edmonton, Alberta
Yellowknife, Northwest Territories
Edmonton, Alberta
Iqaluit, Nunavut
Yellowknife, Northwest Territories

Reliable inter-city price comparisons require that the selected products be very similar across cities. This ensures that the variation in index levels between cities is due to pure price differences and not to differences in the attributes of the products, such as size and/or quality.

Within each city pair, product price quotes were matched on the basis of detailed descriptions. Whenever possible, products were matched by brand, quantity and with some regard for the comparability of retail outlets from which they were selected.

Additionally, the target prices for this study are final prices and as such, include all sales taxes and levies applied to consumer products within a city. This can be an important source of variation when explaining differences in inter-city price levels.

It should be noted that price data for the inter-city indexes are drawn from the sample of monthly price data collected for the Consumer Price Index (CPI). Given that the CPI sample is optimized to produce accurate price comparisons through time, and not across regions, the number of matched price quotes between cities can be small. It should also be noted that, especially in periods when prices are highly volatile, the timing of the product price comparison can significantly affect city-to-city price relationships.

The weights used to aggregate the food indexes within a city are based on the combined consumption expenditures of households living in the 15 cities tracked. As such, one set of weights is used for all 15 cities for the food indexes. Iqaluit has only the food major component index and its selected sub-groups published, as a result, the weights used to aggregate the non-food product indexes within a city are based on the combined consumption expenditures of households living in the other 14 cities tracked. Currently, 2017 expenditures are used to derive the weights. These expenditures are expressed in October 2019 prices.

The inter-city index for a particular city is compared to the weighted average of all 15 cities, which is equal to 100. For example, an index value of 102 for a particular city means that prices for the measured commodities are 2% higher than the weighted, combined city average.

These estimates should not be interpreted as a measure of differences in the cost of living between cities. The indexes provide price comparisons for a selection of products only, and are not meant to give an exhaustive comparison of all goods and services purchased by consumers. Additionally, the shelter price concept used for these indexes is not conducive to making cost-of-living type comparisons between cities (see below).

Additional Information on Shelter

Shelter prices were absent from the inter-city index program prior to 1999 because of methodological and conceptual issues associated with their measurement. The diverse nature of shelter means that accurate matches between cities are often difficult to make.

To account for some of these difficulties, a rental equivalence approach is used to construct the inter-city price indexes for owned accommodation. Such an approach uses market rents as an approximation to the cost of the shelter services consumed by homeowners. It is important to note that this approach may not be suitable for the needs of all users. For instance, since the rental equivalence approach does not represent an out-of-pocket expenditure, the indexes should not be used for measuring differences in the purchasing power of homeowners across cities.

The relatively small size of the housing market in Whitehorse and Yellowknife makes it difficult to construct reliable price indexes for rented accommodation and owned accommodation. To compensate, housing information is collected using different pricing frequencies and collection methods than in the rest of the country. Consequently, users should exercise caution when using the indexes for rented accommodation and owned accommodation for these two cities.