<p>I'm afraid that with the information you state, this is impossible.</p>

<p>Say there are three items in the CPI: housing, food, and energy. Define the weight of each component in total CPI, <strong>weight which can vary over period</strong>, as $w_{h,t}$, $w_{f,t}$, and $w_{e,t}$ respectively. By definition, they add up to 1. Similarly, define the CPI series of each item as $P_{h,t}$, $P_{f,t}$, and $P_{e,t}$ respectively. </p>

<p>The CPI index for all but energy goods, $P_{hf,t}$ is given by:</p>

<p>$$ P_{hf,t} \equiv \frac{w_{h,t}}{w_{h,t}+w_{f,t}}P_{h,t} + \frac{w_{f,t}}{w_{h,t}+w_{f,t}}P_{f,t}$$</p>

<p>Although you know $P_{hf,t}$, you do not know any of the other 4 terms, <strong>for each period</strong>. As such, this is an undetermined system. In the case of a CPI with $N$ items, the system has $2(N-1)$ unknowns.</p>

<p>If weights are constant, you cannot get much further either. Say that you have $T$ number of periods. Then, you have a system of equations like</p>

<p>$$ A_{t} = bX_{t} + cY_{t} $$</p>

<p>where only $A_{t}$ is known. This is also undetermined. You can only write $X_{t}$ as a function of $Y_{t}$, $b$ and $c$. (and viceversa).</p>

<p><strong>A second best approach?</strong></p>

<p>You have one option though. You could compute the <strong>"vector distribution" of the all-CPI index</strong>. To see this, notice that the total price index, $P_{t}$ is</p>

<p>$$ P_{t} \equiv w_{h,t}P_{h,t} + w_{f,t}P_{f,t} + w_{e,t}P_{e,t} $$</p>

<p>This is equal to</p>

<p>$$ P_{t} = (w_{h,t}+w_{f,t})P_{hf,t} + w_{e,t}P_{e,t} $$</p>

<p>But weights add up to one. Therefore, </p>

<p>$$ P_{t} = (1-w_{e,t})P_{hf,t} + w_{e,t}P_{e,t} $$</p>

<p>Or better:</p>

<p>$$ P_{t} = P_{hf,t} + w_{e,t}(P_{e,t}-P_{hf,t}) $$</p>

<p>Now, since you know the CPI index for energy-only ($P_{e,t}$) and for all-but-energy ($P_{hf,t}$), you could compute $P_{t}$ for a given assumption on the energy weight on total CPI. You can, for instance, look into other similar countries and see how much this weight is. Or look for related information on this respect. This number cannot be wildly different across countries. So you can still get a rough idea of general CPI.</p>

CC BY-SA 3.0
2017-04-05T09:52:39.147Z
2017-04-05T09:52:39.147Z
luchonacho
<p>How can one compute the CPI All items index given the CPI energy index and the less energy index? I used the relative importance as component weighted value but it isn't true.</p>

CC BY-SA 3.0
2017-04-04T14:08:31.170Z
To clarify, do you mean the "CPI energy _only_ index" and the "CPI _all-but-energy_ index"?
luchonacho
CC BY-SA 3.0
2017-04-04T14:41:41.680Z
Yes, I want to calculate the CPI all items index from these two indexes.
Khanh Linh
CC BY-SA 3.0
2017-08-23T12:29:20.383Z
Was my answer of any help? If so, please consider accepting it. If not, let me know how to improve.
luchonacho
<macroeconomics><inflation>
How can one compute the CPI All items index from the component indexes?
Khanh Linh
# How can one compute the CPI All items index from the component indexes?

(Asked by: username_0 on 2017-04-04)

How can one compute the CPI All items index given the CPI energy index and the less energy index? I used the relative importance as component weighted value but it isn't true.

**Tags:** macroeconomics, inflation
> **Comments:**
> **username_1**: To clarify, do you mean the "CPI energy _only_ index" and the "CPI _all-but-energy_ index"?  
> **username_0**: Yes, I want to calculate the CPI all items index from these two indexes.  
> **username_1**: Was my answer of any help? If so, please consider accepting it. If not, let me know how to improve.  

---

## 1 answers

### Answer by username_1 on 2017-04-05. Score: 1

I'm afraid that with the information you state, this is impossible.

Say there are three items in the CPI: housing, food, and energy. Define the weight of each component in total CPI, **weight which can vary over period**, as $w\_{h,t}$, $w\_{f,t}$, and $w\_{e,t}$ respectively. By definition, they add up to 1. Similarly, define the CPI series of each item as $P\_{h,t}$, $P\_{f,t}$, and $P\_{e,t}$ respectively.

The CPI index for all but energy goods, $P\_{hf,t}$ is given by:

$$ P\_{hf,t} \equiv \frac{w\_{h,t}}{w\_{h,t}+w\_{f,t}}P\_{h,t} + \frac{w\_{f,t}}{w\_{h,t}+w\_{f,t}}P\_{f,t}$$

Although you know $P\_{hf,t}$, you do not know any of the other 4 terms, **for each period**. As such, this is an undetermined system. In the case of a CPI with $N$ items, the system has $2(N-1)$ unknowns.

If weights are constant, you cannot get much further either. Say that you have $T$ number of periods. Then, you have a system of equations like

$$ A\_{t} = bX\_{t} + cY\_{t} $$

where only $A\_{t}$ is known. This is also undetermined. You can only write $X\_{t}$ as a function of $Y\_{t}$, $b$ and $c$. (and viceversa).

**A second best approach?**

You have one option though. You could compute the **"vector distribution" of the all-CPI index**. To see this, notice that the total price index, $P\_{t}$ is

$$ P\_{t} \equiv w\_{h,t}P\_{h,t} + w\_{f,t}P\_{f,t} + w\_{e,t}P\_{e,t} $$

This is equal to

$$ P\_{t} = (w\_{h,t}+w\_{f,t})P\_{hf,t} + w\_{e,t}P\_{e,t} $$

But weights add up to one. Therefore,

$$ P\_{t} = (1-w\_{e,t})P\_{hf,t} + w\_{e,t}P\_{e,t} $$

Or better:

$$ P\_{t} = P\_{hf,t} + w\_{e,t}(P\_{e,t}-P\_{hf,t}) $$

Now, since you know the CPI index for energy-only ($P\_{e,t}$) and for all-but-energy ($P\_{hf,t}$), you could compute $P\_{t}$ for a given assumption on the energy weight on total CPI. You can, for instance, look into other similar countries and see how much this weight is. Or look for related information on this respect. This number cannot be wildly different across countries. So you can still get a rough idea of general CPI.


---

