<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>recordofcuriosity</title>
<link>https://blog.recordofcuriosity.com/</link>
<atom:link href="https://blog.recordofcuriosity.com/index.xml" rel="self" type="application/rss+xml"/>
<description>Record of curiosity: a personal blog</description>
<generator>quarto-1.8.24</generator>
<lastBuildDate>Fri, 04 Sep 2026 00:00:00 GMT</lastBuildDate>
<item>
  <title>The value of short-term “risk-free” debt (a.k.a money)</title>
  <link>https://blog.recordofcuriosity.com/posts/value_money/value_of_money.html</link>
  <description><![CDATA[ 





<p>This post will attempt to shed some light on whether holding cash and cash equivalent assets is considered as safe and attractive investment from a Swedish local investor perspective. In doing so we will touch upon inflation, short-interest rate and the idea of real rates in the swedish economy.</p>
<p>To help us answer the question we will make use of data. The data is documented below for those interested.</p>
<section id="the-short-term-real-interest-rate" class="level2">
<h2 class="anchored" data-anchor-id="the-short-term-real-interest-rate">The short term real interest rate</h2>
<p>Holding cash at the bank or in short-term fixed deposits can be seen as a safe way to store money. At the least, in nominal terms, if you add 100 SEK to your bank account and do not spend it, you will still have 100 SEK the next time you check your balance. The money is still there and you might even get interest on your money, so you will have more money than what you started with.</p>
<p>The purpose of having money, however, is to eventually convert it into goods and services: spending and consumption. The question becomes: what can I buy with this money? You would hope you can buy at least as much as you could at the time you deposited the money into your account, that is: that your purchasing power has been preserved.</p>
<p>To this end we can value our money in terms of what it can buy. A consumer price price index (CPI) is a measure of the price of a basket of goods and services in an economy. We can use this to measure the relative value of our money and the interest we gain by putting our money into cash equivalent assets such as short term deposits at the bank or by investing in short-term treasury yields.</p>
<p>For our measure of CPI and inflation we will use KPIF-XE and for the interest on cash we will use the yield on 3 month treasury bills by the swedish government.</p>
<p>Using these measures we can define the <strong>real</strong> short term interest rate as the nominal yield we receive from holding cash minus the change in the CPI. The real interest rate tells us whether our money is earning a return that allows us to buy more goods and services or if our purchasing power is being depleted over time.</p>
<p><img src="https://blog.recordofcuriosity.com/posts/value_money/3m_treasury_core.svg" class="img-fluid"></p>
<p><img src="https://blog.recordofcuriosity.com/posts/value_money/sweden_real_rate.svg" class="img-fluid"></p>
<p>From the above graphs we notice a couple of things: 1. There have been time periods in which being invested in cash and cash equivalents have preserved or increased purchasing power and other times during which holding cash has destroyed purchasing power. 2. While inflation has roughly stayed around the same levels, the nominal short term rate has been on a gradual decline since mid 1990s. 3. Real rates have been negative since 2015 but have recently risen to rates similar years around 2005.</p>
</section>
<section id="investing-in-cash-and-cash-equivalent" class="level2">
<h2 class="anchored" data-anchor-id="investing-in-cash-and-cash-equivalent">Investing in cash and cash equivalent</h2>
<p>To better understand the preservation of purchasing power and the attractiveness of holding cash as a local investor we can simulate the change in wealth from holding a long-cash only portfolio.</p>
<div class="callout callout-style-simple callout-tip callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-1-contents" aria-controls="callout-1" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Tip</span>Extra: the helper library used in this analysis
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-1" class="callout-1-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<p>To do this analysis I am using a portfolio library I created. It makes the analysis easy and convenient.</p>
<div id="f521ffac" class="cell">
<details class="code-fold">
<summary>Show code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># We pass monthly returns to my portfolio tool for simulation</span></span>
<span id="cb1-2">p <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> Portfolio(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">'cash_portfolio'</span>, return_streams<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>pd.DataFrame({<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">'rf'</span>: rf}, index<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>rf.index), weights<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>{<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">'rf'</span>: <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.0</span>}, cpi<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>cpi.dropna(),</span>
<span id="cb1-3">start<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">f'</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>data<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>index<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">min</span>()<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>year<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">'</span>, end<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">f'</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>data<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>index<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">max</span>()<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>year<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">'</span>)</span></code></pre></div></div>
</details>
</div>
</div>
</div>
</div>
<p><img src="https://blog.recordofcuriosity.com/posts/value_money/wealth_acc.svg" class="img-fluid"></p>
<p>In this plot we see the difference between considering real returns and nominal returns. In nominal terms our wealth has mostly increased whereas in real terms our wealth increased from 90s to 2010 and then been flat or on a decline since 2010.</p>
<p>To get a different perspective we look at the rolling real returns. The rolling returns tell us from any date, looking forward X years, what was our annualized return: meaning if we had invested at point Y and stayed invested for X years, how much return per year would we get.</p>
<p><img src="https://blog.recordofcuriosity.com/posts/value_money/rolling_return.svg" class="img-fluid"></p>
<p>The graphs paint a clear picture: From the 90s to 2008 a cash saver/investor would increased his or her purchasing power by a couple of percent each year whereas after 2008 your purchasing power have consistently decreased.</p>
</section>
<section id="forward-expectations-and-yields." class="level2">
<h2 class="anchored" data-anchor-id="forward-expectations-and-yields.">Forward Expectations and yields.</h2>
<p>We can also consider the expectations moving forward. One simple gauge of this is to use the current short term treasury yield and the inflation forecast from the swedish riksbank.</p>
<p><img src="https://blog.recordofcuriosity.com/posts/value_money/yield_and_inflation_expectations.svg" class="img-fluid"></p>
<p>Current yield is at 1.98% and forecasted inflation is expected to be a little bit more than 2% over the next years. This implies (assuming yields stay same) that the purchasing power of a swedish local cash holder would just about be preserved . That is, the real short rate is expected to be low.</p>
</section>
<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<p>Holding cash at the bank in a deposit or in short-term government securities and the like is typically considered safe in that they are liquid (you can use your cash on short-notice) and in that you do not experience direct nominal price fluctuations similar to say stock investments. However as the analysis from above has shown, money and money-like assets do have a changing value, especially over time and this can be positive or negative. If you had saved only in cash and cash equivalents since 2010 you would have lost purchasing power.</p>
<p>This post touched on just one measure of money and interest and whether saving in local currency can provide an attractive return over time. There are many more ideas and concepts that can be considered. Cash (currency) is just one type of asset (a debt asset) and we could and should also consider its value in relation to other assets such as gold, stocks and even the value of homes in addition to the CPI measure. In fact, all currencies have had large devaluations against gold and other assets although this does not directly show up when measuring against inflation using CPI.</p>
<p>The real rate also has other implications for the economy, particularly spending and borrowing. Having low real rates is typically considered stimulative for the economy as it is cheaper to borrow and easier to pay debt service. One can also consider rates of different maturities and the breakeven implied inflation rate.</p>
<div class="callout callout-style-simple callout-note no-icon callout-titled">
<div class="callout-header d-flex align-content-center collapsed" data-bs-toggle="collapse" data-bs-target=".callout-2-contents" aria-controls="callout-2" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
<i class="callout-icon no-icon"></i>
</div>
<div class="callout-title-container flex-fill">
<span class="screen-reader-only">Note</span>Data Sources
</div>
<div class="callout-btn-toggle d-inline-block border-0 py-1 ps-1 pe-0 float-end"><i class="callout-toggle"></i></div>
</div>
<div id="callout-2" class="callout-2-contents callout-collapse collapse">
<div class="callout-body-container callout-body">
<table class="caption-top table">
<colgroup>
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
</colgroup>
<thead>
<tr class="header">
<th>Data series</th>
<th>DataFrame column</th>
<th>Source</th>
<th>API series/table</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Core price index</td>
<td><code>core_index</code></td>
<td>Statistics Sweden (SCB)</td>
<td>Table <code>KPIFXE2020</code>, content code <code>000007ZW</code></td>
<td>KPIF excluding energy index, 2020=100</td>
</tr>
<tr class="even">
<td>Forecast core price index</td>
<td><code>riksbank_kpif_xe_index</code></td>
<td>Sveriges Riksbank</td>
<td>Series <code>SEMCPIFFEXANA</code></td>
<td>Raw monthly KPIF-XE index path containing observations and forecasts</td>
</tr>
<tr class="odd">
<td>Three-month Treasury-bill yield</td>
<td><code>treasury_bill_3m</code></td>
<td>Sveriges Riksbank</td>
<td>Series <code>SETB3MBENCH</code></td>
<td>Daily Swedish 3-month Treasury-bill benchmark yield, converted to a monthly arithmetic mean</td>
</tr>
</tbody>
</table>
<section id="links" class="level3">
<h3 class="anchored" data-anchor-id="links">Links</h3>
<section id="statistics-sweden-kpif-excluding-energy" class="level4">
<h4 class="anchored" data-anchor-id="statistics-sweden-kpif-excluding-energy">Statistics Sweden: KPIF excluding energy</h4>
<ul>
<li>Web table:<br>
https://www.statistikdatabasen.scb.se/pxweb/en/ssd/START__PR__PR0101__PR0101J/KPIFXE2020/</li>
<li>API endpoint:<br>
https://api.scb.se/OV0104/v1/doris/en/ssd/PR/PR0101/PR0101J/KPIFXE2020</li>
</ul>
</section>
<section id="sveriges-riksbank-kpif-xe-forecast" class="level4">
<h4 class="anchored" data-anchor-id="sveriges-riksbank-kpif-xe-forecast">Sveriges Riksbank: KPIF-XE forecast</h4>
<ul>
<li><p>API documentation:<br>
https://www.riksbank.se/en-gb/statistics/macro-indicators/forecasts-and-outcomes/retrieving-forecasts-and-outcomes-via-api/</p></li>
<li><p>Forecast series: <code>SEMCPIFFEXANA</code></p></li>
<li><p>Example forecast request:<br>
https://api.riksbank.se/monetary_policy_data/v1/forecasts?series=SEMCPIFFEXANA&amp;policy_round_name=2026:2</p></li>
</ul>
</section>
<section id="sveriges-riksbank-interest-rates-and-exchange-rates" class="level4">
<h4 class="anchored" data-anchor-id="sveriges-riksbank-interest-rates-and-exchange-rates">Sveriges Riksbank: Interest rates and exchange rates</h4>
<ul>
<li>API base:<br>
https://api.riksbank.se/swea/v1</li>
<li>Three-month Treasury-bill series: <code>SETB3MBENCH</code></li>
</ul>
</section>
</section>
</div>
</div>
</div>


</section>

 ]]></description>
  <category>data</category>
  <category>money</category>
  <category>econ</category>
  <category>dalio framework</category>
  <guid>https://blog.recordofcuriosity.com/posts/value_money/value_of_money.html</guid>
  <pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate>
</item>
</channel>
</rss>
