What was Spain’s inflation rate in 2020?

One of the variables with the greatest impact on consumption decisions its price, these falling on agregate by 0.3% in 2020 in Spain according to official data.25 However, there were marked changes in consumption patterns last year, making it very difficult to accurately measure the figure actually faced by consumers. CaixaBank’s own estimates based on high-frequency internal data suggest that inflation was somewhat higher, namely 0.1%.26 Moreover, inflation did not affect everyone equally, with differences depending on age and income.

  • 25. We have analysed inflation using the Harmonised Index of Consumer Prices (HICP) produced by the National Statistics Institute.
  • 26. Other studies also using high-frequency data have found a difference with respect to the official inflation data between April and December 2020 of 0.06 pp, 0.30 pp and 0.58 pp for the United Kingdom, Canada and United States, respectively, and between April and September of 0.60 pp for France (in our study for Spain, the estimated difference for both periods is 0.58 pp and 0.67 pp, respectively). See «Consumption shifts and inflation measurement during COVID-19», OECD, Statistical Insights (2021).
Content available in
How is inflation calculated?

Essentially, only two ingredients are required to calculate the inflation rate: a consumer basket containing the goods and services consumed by a representative household and the change in the price of these goods and services.27 However, the problem of isolating changes in the quality of goods from the changes in prices is well known. So is the difficulty of pricing goods and services that, for some periods in 2020, could not be sold because of the pandemic’s restrictions. We will therefore focus our attention on an additional complication: changes in the composition of the representative consumer basket. This basket consists of a wide range of goods and services divided into 12 major groups,28 each with a weighting that reflects its relative importance in the average consumer’s consumer basket.

Prior to the pandemic, the annual review of these relative weights went largely unnoticed due to the stability in consumption patterns. However, the advent of COVID-19 and the consequent imposition of restrictions completely have altered our consumption habits. The official agencies in charge of calculating inflation found they were tied to a distribution of relative weights based on a basket that was representative in 2019 but had ceased to be so as of March 2020. So the question we must ask ourselves is: if the official bodies had been able to modify the relative weights of the representative basket to adapt it to the new situation, what would have been the inflation rate for the Spanish economy in 2020?

  • 27. To learn more about how inflation is measured and the various biases surrounding its calculation that have been the subject of debate over the past decades, see the article «How is inflation measured?» in the Dossier of the Monthly Report for May 2016.
  • 28. These are food and non-alcoholic beverages, alcoholic beverages and tobacco, clothing and footwear, housing, household goods, health, transport, communications, leisure and culture, education, hotels, cafés and restaurants and others.
What was the inflation rate in 2020 according to CaixaBank’s internal data?

To answer this question, we have used CaixaBank’s internal, fully anonymised data on card payments at point-of-sale (POS) terminals.29 First, to ensure the consumer basket resulting from our internal data is representative, we compared the relative weights according to our 2019 data with the official data for the groups of goods and services we can capture using POS card transactions (i.e. those whose consideration, or payment, is not mostly made via transfer or direct debit).30 The result of this comparison clearly shows that the consumption observed via our internal data fits quite well with the consumption patterns of the average consumer, as shown in the following chart.

  • 29. Given that the HICP includes consumer spending by residents and non-residents in Spain, we have extracted, from the internal data, the spending with Spanish and foreign cards at all the bank’s POS terminals.
  • 30. The groups of goods and services that we can analyse using our internal data are food and non-alcoholic beverages, transport, hotels, cafés and restaurants, leisure and culture, clothing and footwear, household goods and alcoholic beverages and tobacco, which accounted for 70% of the official basket in 2019. For those groups we cannot reliably detect using POS card transactions (housing, health, communications, education and others), we have used the official relative weight given by the National Statistics Institute in our inflation calculation.

Spain: relative weights in the HICP in 2019

Last actualization: 17 December 2021 - 12:18

One year later, in 2020, the pieces of the puzzle have fallen apart and a disparity has emerged between the official relative weights (calculated in early 2020 based on 2019 consumption patterns) and the relative weight distribution shown by our internal data. The goods and services most affected by the restrictions (transport, hotels, cafés and restaurants, and leisure and culture) are the ones whose relative weight decreased the most, being offset by the group of food and non-alcoholic beverages. This redistribution of weight is due to the fact that we are spending much more time at home than in pre-pandemic times, which also explains the slight increase in household expenses. The role played by e-commerce as a cushion against the slump in in person sales in the clothing and footwear group is also evident, as shown in the chart below.31

  • 31. See the Focus «The awakening of e-commerce in the retail sector» in the Monthly Report of December 2020.

Spain: relative weights in the HICP in 2020

Last actualization: 17 December 2021 - 12:19

As the basket used by the official agencies to calculate inflation in 2020 gave too much weight to the groups in which prices grew less or even fell sharply,32 and not enough weight to the food and non-alcoholic beverages group (with a 2.4% price increase in 2020), all the evidence suggests that the official inflation series suffered from a downward bias. Consequently, from April onwards and according to our internal data, inflation was higher (and deflation lower in those months when both series show a fall in prices) than the figures published by the National Statistics Institute, as shown in the first chart below. In contrast, this gap between the two series is non-existent during 2019 and much smaller in 2021 once the official agencies updated the relative weights of the consumer basket at the beginning of the year, adapting it to the consumption patterns observed during the first year of the pandemic (second chart below).33

  • 32. In 2020, the price change in the groups of transport, hotels, cafés and restaurants and leisure and culture was –3.6%, 0.8% and –0.8%, respectively.
  • 33. The exercise of calculating what inflation actually was in 2020 could also be carried out based on the official relative weights for 2021. Using this methodology, inflation for 2020 was –0.1%. However, with our internal data, exceptional months can be better captured by using monthly rather than annual relative weights. For example, in April and May 2020 the relative weight of the food and non-alcoholic beverages group according to our internal data was 52% and 39%, respectively, while the official relative weight in 2021 for this group was 23%. This implies that, if we compare inflation in both months under both methodologies, according to our internal data the figure is higher and this affects the annual value for 2020.

Spain: HICP

Last actualization: 17 December 2021 - 12:20

Spain: relative weights in the HICP in 2021*

Last actualization: 17 December 2021 - 12:21
Inflation in 2020 by generations and income group

So far we have analysed inflation in relation to the average consumer but the basket of goods and services obviously varies depending on the demographic group that consumes it. After breaking down our total clients into age group and income level, we have concluded that the inflation rate was higher for the over-60s and lower for 16-29 year olds during 2020 (see the chart below).34 This difference between generations can be explained by their differing consumption patterns: seniors spend a higher proportion of their expenditure on basic necessities (inflationary during 2020) and less on transport or leisure and culture (deflationary), as opposed to younger people.35

Likewise, the chart below shows how the consumer basket became more expensive for consumers with a salary in the lower part of the distribution (10th percentile) compared with the higher income group (90th percentile), something that can be explained by the fact that low incomes concentrate a greater part of their consumption on basic necessities and less on goods and services related to transport, tourism and leisure.36

  • 34. Because this age-based analysis restricts the sample to payment cards issued by CaixaBank and does not cover the entire universe of Spanish and foreign cards, unlike in the first part of the article, the weighted average inflation rates for the three generations do not coincide in 2020 with the aggregate shown in the first part (the red line in the first chart on the previous page); In this respect, the age-related series suffer from a sampling bias that is slightly upward.
  • 35. See the article «The consumption of each generation in normal times... and in times of pandemic» in the Dossier of the Monthly Report for May 2021.
  • 36. The reason why no significant differences are observed in inflation rates during 2019 and 2021 between generations and income groups despite having different consumption patterns is due to the fact that the price trend in the different groups of goods and services was not as disparate as in 2020.

Spain: HICP by generation

Last actualization: 17 December 2021 - 12:22

Spain: HICP by income group

Last actualization: 17 December 2021 - 12:23

To conclude, having verified that inflation estimates for Spain in 2020 would have been higher if the data on consumption patterns had included real-time changes, it is important to gauge the potential of high-frequency data in a changing environment such as the one we are experiencing. It is true that events as extreme as the current health crisis, which transformed the structure of spending overnight, do not happen often. However, our world is becoming more and more dynamic; to the extent that having this type of information will become increasingly important, especially for a variable such as the inflation rate.