{"id":18406,"date":"2025-05-15T15:49:37","date_gmt":"2025-05-15T13:49:37","guid":{"rendered":"https:\/\/www.statssa.gov.za\/?p=18406"},"modified":"2025-05-15T15:49:37","modified_gmt":"2025-05-15T13:49:37","slug":"how-to-build-your-inflation-basket","status":"publish","type":"post","link":"https:\/\/www.statssa.gov.za\/?p=18406","title":{"rendered":"How to build your inflation basket"},"content":{"rendered":"<p>There is more to the consumer price index (CPI) than the headline figure. Stats\u00a0SA publishes the CPI every month on the second-last Wednesday at 10:00. One of the datasets published with the statistical release allows users to create custom indices and inflation rates.<\/p>\n<p><strong>The CPI basket: A profile of household spending<\/strong><\/p>\n<p>The inflation basket of goods and services forms the foundation for calculating the CPI. Stats\u00a0SA identifies products that South African households spend the most money on, and these are incorporated into the basket. The current version of the basket, updated in January\u00a02025, consists of 391 products.<sup>1<\/sup><\/p>\n<p>Every month, fieldworkers across the country collect price data for many of these products. Other prices are collected quarterly or annually. Prices are converted into indices that feed into the calculation of the CPI and the inflation rate.<\/p>\n<p><strong>Published indices: Moving beyond a single figure<\/strong><\/p>\n<p>Analysts are often interested in more detail than just the headline index. Table\u00a0A in the statistical release includes indices and inflation rates for provinces and socio-economic groups.<sup>2<\/sup> Versions of the CPI, called analytical indices, focus on particular areas of interest. Examples include a CPI for pensioners, a CPI for non-durable goods and a CPI that excludes housing. There are 16 analytical indices available that cater to different needs.<\/p>\n<p>Price indices are also available for aggregated items in the CPI basket. There is an index for the broad category of food &amp; non-alcoholic beverages, for example. At a more granular level, indices exist for subcategories such as meat, cereal products and hot beverages. These appear in the statistical release under Table\u00a0E.<\/p>\n<p>One can drill down even further, with data available for all 391 elementary indices used in compiling the CPI. These are available in the <em>CPI (COICOP 2018 &#8211; 8-digit)<\/em> Excel dataset published with the statistical release. All 391 products in the basket of goods and services can be tracked monthly, with the dataset providing a time series from January\u00a02008 to date. At the time of writing, the most recent version contains data for March\u00a02025.<\/p>\n<p><strong>DIY basket: A step-by-step guide<\/strong><\/p>\n<p>These lower-level indices can create custom-made baskets, indices and inflation rates. Let\u2019s say we are interested in price changes for education. An index that includes all education-related goods and services does not appear in the statistical release, so we will need to build our own.<\/p>\n<p>The process involves six steps, adopting the method used by Stats SA to calculate inflation rates in the statistical release.<\/p>\n<p>The first step is to look through the 391 products in the Excel dataset to identify those associated with education. This reveals 20 products. Notice how these are scattered across different categories in the CPI basket. For example, school uniform items are classified under clothing &amp; footwear. Textbooks and books are listed under recreation, sport &amp; culture.<\/p>\n<table width=\"0\">\n<tbody>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Clothing &amp; footwear<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">1. School shirts<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">2. School jerseys<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">3. School trousers\/shorts<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">4. School skirts\/dresses\/skorts<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">5. School socks<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">6. School shoes<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Transport<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">7. School transport<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Information &amp; communication<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">8. Calculators<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Recreation, sport &amp; culture<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">9. Textbooks<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">10. Books (incl. exam pads and writing pads)<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Education services<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">11. Pre-primary and primary education (Public)<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">12. Pre-primary and primary education (Private)<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">13. Secondary education (Public)<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">14. Secondary education (Private)<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">15. Tertiary education (Public)<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">16. Tertiary education (Private)<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Restaurants &amp; accommodation services<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">17. University boarding fees<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" width=\"301\"><strong>Miscellaneous<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">18. School bags<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">19. Cr\u00e8che fees<\/td>\n<\/tr>\n<tr>\n<td width=\"17\"><\/td>\n<td width=\"284\">20. After-school centres<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The second step is to identify the weights associated with these products. These are also available in the Excel dataset. The weight represents a product\u2019s contribution to the CPI basket (i.e. to total household spending). For example, school jerseys account for 0,07%. If the weights for all 20 products are added together, the custom-made basket contributes 3,61% (Figure\u00a01).<\/p>\n<p>The third step is to adjust these weights so that they reflect each product\u2019s contribution to our custom basket. This is done by dividing the CPI basket weight for each product by the total of 3,61%. For example, the calculation for school jerseys is:<\/p>\n<p>School jerseys: 0,07 \/ 3,61 = 0,020<\/p>\n<p>In other words, the weight for school jerseys in our custom basket is 0,020.<sup>3<\/sup> Adjusting the weights in this manner results in a custom basket total of 1 (Figure\u00a01).<\/p>\n<p><a href=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/figure1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-18407\" src=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/figure1-286x300.jpg\" alt=\"figure1\" width=\"286\" height=\"300\" srcset=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/figure1-286x300.jpg 286w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/figure1-768x807.jpg 768w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/figure1-975x1024.jpg 975w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/figure1-100x105.jpg 100w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/a><\/p>\n<p>Step four involves sourcing price indices for two time periods from the Excel dataset. These indices will be used to calculate aggregate indices and eventually the inflation rate for our custom basket. In this example, indices for February\u00a02025 and March\u00a02025 are selected (Figure\u00a02).<\/p>\n<p><a href=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-18408\" src=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic2-286x300.jpg\" alt=\"pic2\" width=\"286\" height=\"300\" srcset=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic2-286x300.jpg 286w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic2-768x807.jpg 768w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic2-975x1024.jpg 975w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic2-100x105.jpg 100w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/a><\/p>\n<p>Step five is to calculate two price indices (one for February and one for March) for the custom basket as a whole. This is the trickiest part of the exercise but can be easily done in Excel. Two calculations are involved. First, determine a weighted index for each product by multiplying the product\u2019s price index by its weight. For example:<\/p>\n<p>School jerseys: 101,1 x 0,020 = 2,02<\/p>\n<p>This calculation is performed for all products in the list, leaving us with 20 weighted indices for February. The second calculation is to add up all these weighted indices to give us an aggregate index for our basket, which is 100,1 for February. The same method returns an overall index of 103,9 for March (Figure\u00a03).<\/p>\n<p><a href=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-18409\" src=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic3-286x300.jpg\" alt=\"pic3\" width=\"286\" height=\"300\" srcset=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic3-286x300.jpg 286w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic3-768x807.jpg 768w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic3-975x1024.jpg 975w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic3-100x105.jpg 100w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/a><\/p>\n<p>The sixth and final step is to calculate the percentage change in price (i.e. the inflation rate) for our custom basket using these two main indices (Figure\u00a04). Subtract the February index from the March index, divide the difference by the February index and multiply by 100.<\/p>\n<p>[(103,9 &#8211; 100,1) \/ 100,1] x 100 = 3,8<\/p>\n<p>This states that the overall price of education \u2013 based on the products in our list \u2013 increased by 3,8% between February 2025 and March 2025.<\/p>\n<p><a href=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-18410\" src=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic4-286x300.jpg\" alt=\"pic4\" width=\"286\" height=\"300\" srcset=\"https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic4-286x300.jpg 286w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic4-768x807.jpg 768w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic4-975x1024.jpg 975w, https:\/\/www.statssa.gov.za\/wp-content\/uploads\/2025\/05\/pic4-100x105.jpg 100w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/a><\/p>\n<p>The same percentage change formula is used to calculate an inflation rate for each of the 20 products. The price of school socks decreased by 0,3% between February and March. Fees for public secondary education and after-school centres increased by 6,8%.<sup>4<\/sup><\/p>\n<p>Are you interested in trying this with your own set of products? Experiment with the March\u00a02025 <em>CPI (COICOP 2018 \u2013 8-digit)<\/em> Excel dataset, available <a href=\"https:\/\/www.statssa.gov.za\/timeseriesdata\/Excel\/P0141%20-%20CPI(5%20and%208%20digit)%20from%20Jan%202017%20(202503).zip\">here<\/a> for download. For more recent data, visit the CPI archive <a href=\"https:\/\/www.statssa.gov.za\/?page_id=1866&amp;PPN=P0141&amp;SCH=73984\">here<\/a>.<\/p>\n<p><sup>1 <\/sup>An overview of the current CPI basket is available <a href=\"https:\/\/www.statssa.gov.za\/?p=17989\">here<\/a>.<\/p>\n<p><sup>2 <\/sup>An exploration of inflation rates for socio-economic groups is outlined <a href=\"https:\/\/www.statssa.gov.za\/?p=16357\">here<\/a>.<\/p>\n<p><sup>3 <\/sup>Slight discrepancies in the results may occur due to rounding of fractional values during calculations.<\/p>\n<p><sup>4 <\/sup>Note that many education institutions increase their fees once a year in March. This explains why the monthly fee increases shown above for cr\u00e8ches, schools, after-school centres, boarding and tertiary institutions might seem higher than expected.<\/p>\n<p>Similar articles are available on the Stats SA website and can be accessed <a href=\"https:\/\/www.statssa.gov.za\/?page_id=624\">here<\/a>.<\/p>\n<p>For a monthly overview of economic indicators and infographics, catch the latest edition of the Stats Biz newsletter <a href=\"https:\/\/www.statssa.gov.za\/?page_id=6048\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is more to the consumer price index (CPI) than the headline figure. Stats\u00a0SA publishes the CPI every month on the second-last Wednesday at 10:00. One of the datasets published with the statistical release allows users to create custom indices and inflation rates. The CPI basket: A profile of household spending The inflation basket of&nbsp; &nbsp;<a href=\"https:\/\/www.statssa.gov.za\/?p=18406\" class=\"btn btn-mini btn-info pull-right\" style=\"margin:10px 30px;\">read more &raquo;<\/a><\/p>\n<div class=\"clear\"><\/div>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-18406","post","type-post","status-publish","format-standard","hentry","category-inflation"],"_links":{"self":[{"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=\/wp\/v2\/posts\/18406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18406"}],"version-history":[{"count":1,"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=\/wp\/v2\/posts\/18406\/revisions"}],"predecessor-version":[{"id":18411,"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=\/wp\/v2\/posts\/18406\/revisions\/18411"}],"wp:attachment":[{"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.statssa.gov.za\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}