<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Juraj Botkuljak on Medium]]></title>
        <description><![CDATA[Stories by Juraj Botkuljak on Medium]]></description>
        <link>https://medium.com/@juraj.botkuljak?source=rss-41d71d09492e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kAMSLf0N66bwPPHP_Qqi8w.jpeg</url>
            <title>Stories by Juraj Botkuljak on Medium</title>
            <link>https://medium.com/@juraj.botkuljak?source=rss-41d71d09492e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:41:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juraj.botkuljak/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Economics of Bad Luck]]></title>
            <link>https://medium.com/@juraj.botkuljak/the-economics-of-bad-luck-65565c50fe18?source=rss-41d71d09492e------2</link>
            <guid isPermaLink="false">https://medium.com/p/65565c50fe18</guid>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[public-policy]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[politics]]></category>
            <dc:creator><![CDATA[Juraj Botkuljak]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 17:24:48 GMT</pubDate>
            <atom:updated>2026-08-22T17:24:48.082Z</atom:updated>
            <content:encoded><![CDATA[<h4>The compounding nature of bad luck and how fair systems lead to unfair outcomes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qctPLkFLjfSXKLik" /><figcaption>Photo by <a href="https://unsplash.com/@iamrohitchoudhari?utm_source=medium&amp;utm_medium=referral">Rohit Choudhari</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A company’s culture, it is often said, is shaped by who gets hired, promoted, and fired. This principle can be extrapolated to society at large: societies are ultimately shaped by the set of rules governing how behavior is rewarded and punished. In Western societies, this system of reward is broadly predicated on the concept of the <strong>free market economy</strong> (albeit with certain state-enforced restrictions), where individuals engage in the free exchange of goods and services. As a general principle, individuals are picky and only willing to spend their hard-earned income on those goods and services that give them the best value for money (whatever that means for the individual). Other individuals are in the business of chasing profit, which can only come from the provision of the demanded goods and services at a more competitive price. This two-way interplay of supply and demand brings about the magic of the <a href="https://en.wikipedia.org/wiki/Price_system">price system</a> — an elegant yet sophisticated system which allocates resources more productively than any central planner could. Milton Friedman <a href="https://www.youtube.com/watch?v=67tHtpac5ws">demonstrates</a> this wonderfully in his account of the humble pencil: no single person on earth knows how to make one from scratch, yet the price system quietly coordinates thousands of strangers into producing one anyway.</p><p>The historical record makes it quite difficult to challenge the success of free markets– the adoption of capitalist free markets is widely credited as an essential trigger for the Industrial Revolution, though economic historians continue to argue over how much weight it carries relative to geography, resource endowments, state policy and legal institutions. Since then, the world has experienced a <a href="https://ourworldindata.org/grapher/global-average-gdp-per-capita-over-the-long-run">staggering increase</a> in global incomes.</p><p>There’s a case to be made how capitalist free market system also contributes to a <a href="https://en.wikipedia.org/wiki/Capitalist_peace">peaceful world order</a>. Given the low degree of state involvement it implies, and the allure of uninterrupted free trade, the conditions required for external conflict are lacking. On the other hand, unregulated free markets have presently, as well as historically, been associated with stark increases in economic inequalities — a key ingredient for <em>internal</em> social conflict.</p><p>Free-market fundamentalists will often claim that there cannot be anything unfair in the free exchange of goods and services — all parties involved have the right to spend their excess income in a manner they see fit. Therefore, the outcomes that result from this process, by construction, cannot be unfair. In other words, you may object to Elon Musk’s fortune, yet you still — as well as many others — willingly make decisions to contribute to its growth. (In its stronger form, this argument is not that outcomes are fair by definition, but that a distribution is just if every transfer that produced it was legitimate — the fairness of the outcome inherits from the fairness of each step.)</p><p>It’s a good argument. There are several good counterarguments, and all reflect scenarios in which freedom to decide is in some way inhibited. For example, highly addictive products (substances, gambling and even social media) are rather easy to sell and therefore need to be regulated; dominant businesses can use their strong market position to obstruct competitors which may actually have a better product; businesses that own deposits of highly sought-after natural resources have too strong of a market power that may be practically impossible to replace.</p><h3>A fair society</h3><p>In my view, a reasonable definition of a fair society is one that fulfils three criteria:</p><ol><li>Individuals are provided with reasonable means to obtain social competence required to be <em>useful to society.</em> Broadly speaking, this ensures <strong>equal opportunities.</strong></li><li>Individuals who are <em>useful</em> <em>to society</em> are rewarded in proportion to their contributions. This incentivizes individuals to deploy their acquired competence for the benefit of society at large.</li><li>Individuals with naturally limited ability to provide sufficient value to society are guaranteed a decent living.</li></ol><p>(I admit that the definition is too simplistic to capture the full nuance of human societies; still, it is sufficient for this exposition)</p><p>Given how heated debates around social fairness are (and always have been), I believe that this definition should be broadly acceptable to most politically moderate readers. What remains, then, to determine is whether a free-market system produces fair societies under this definition. I think most would agree — myself included — that a reasonably regulated free market economy is quite effective in doing so.</p><p>The degree to which the state should interfere in the free market — through regulation and redistribution of wealth — is a matter of extensive debate. People have been arguing over this question for centuries. And there isn’t a clear answer; what’s more, it isn’t clear how one should think about this question in a more systematic way.</p><p>Different approaches to wealth distribution have been considered. In the following chapter, I will attempt to complement these discussions with a slightly different approach.</p><h3>The two objectives of wealth distribution</h3><p>I think it is useful to separate the purposes of wealth redistribution into two categories based on its intended objectives.</p><ol><li><strong>Redistributions for purely humanitarian purposes.</strong> These ensure a decent living for the disadvantaged through social safety programs (e.g., basic healthcare, support for the disabled, etc.). Society doesn’t expect anything in return for these transfers.</li><li><strong>Redistributions that facilitate equality of opportunity.</strong> Redistributions of this kind ensure that society provides ample opportunities for individuals to pursue their talents and become useful. In contrast to the previous category, this is not a humanitarian transfer — it’s an <em>investment</em>; society expects a return in the form of increased economic productivity.</li></ol><p>In my view, it is very important for discussions about wealth redistribution to be informed by this distinction. What is the precise motivation behind a particular policy that relies on wealth transfers? Are we providing free tertiary education because it’s a <em>good thing to do</em> or because it’s <em>profitable</em> for society at large? If one invokes the profitability argument, then I’d be interested in cold facts. We know how to price an investment: typically, one requires that the expected return exceeds the cost of financing. Or, how much does it cost the government to fund its investments in society (through taxes and debt), relative to how much can it expect in return (in the form of increased economic output, which translates to higher tax income)?</p><p>The question is then — is it <em>unfair</em> to redistribute wealth, particularly in a free market economy whose basic principles appear <em>fair</em>? I argue that it <em>can</em> be fair due to at least one simple reason: bad luck.</p><h3>Bad luck, unfairness and inequality</h3><p>Let’s start with two axioms.</p><ol><li>Life is <em>chaotic</em>; small changes compound in a <a href="https://en.wikipedia.org/wiki/Butterfly_effect">butterfly-effect-like manner</a>. This is a simple consequence of the inherent randomness of life, which is amplified by positive feedback loops; wealth, social status, and health are all self-reinforcing variables. These processes commonly result in what’s known as the <a href="https://en.wikipedia.org/wiki/Matthew_effect">Matthew effect</a> (i.e., “the rich get richer, and the poor get poorer”).</li><li>Some people get lucky. What do I mean by this? Very concretely: someone, by pure chance, is unjustly rewarded. This can happen in big, obvious ways — such as being born in a wealthy household — or in small, subtle ways — such as getting a good grade in a university exam by chance.</li></ol><p>Combining these two assumptions, we get a scenario in which a collection of small, random gains compounds exponentially, slowly leading to disproportionate inequalities, all produced by the cumulative effect of random perturbations.</p><p>It is hard to imagine all the ways in which a positive <em>undeserved</em> result in a university exam can compound. In one hypothetical scenario, the resulting positive feedback may further motivate the student, realizing that a good grade <em>feels good</em>, yet is very much within reach. (In fact, this type of situation is precisely what prompted me to become more academically disciplined, which compounded quite remarkably in the end.) The impact of this may seem overblown. Do small random events really have such disproportionate impacts? Our <a href="https://hbr.org/2017/05/linear-thinking-in-a-nonlinear-world">linear-thinking brains</a> cannot really comprehend this.</p><h3>We can simulate this</h3><p>It is interesting to consider a simple simulated trading game in which a fixed number of individuals start off with the same amount of wealth. In each iteration, two random players are selected to toss a coin. The amount at stake is a fixed fraction (say, 20%) of the <em>poorer</em> player’s wealth, and the loser transfers that amount to the winner. Note how scrupulously fair this is: the coin is unbiased, both players are identical, neither can be forced to wager more than he owns, and both put exactly the same number of dollars on the table.</p><p>Running the simulation for many steps produces a wealth distribution with a power-law (Pareto) tail, which grows fatter the longer the game runs. This is, coincidentally, the shape that closely matches the top tail of the actual distribution of income and wealth in most modern (and historical) societies. Left to run indefinitely, this simulated model of society converges to a scenario in which one lucky individual owns virtually the whole pot. An interactive example — built around exactly this kind of exchange — is available <a href="https://www.compadre.org/osp/EJSS/3901/model9/119.htm">here</a>.</p><p>(Tellingly, to obtain a <em>stable</em> Pareto tail resembling that of a real economy — rather than a slow collapse into a single owner — one has to add something to the model: a tax, a transfer, a floor. The realistic distribution is the one with redistribution in it.)</p><p>Why do certain individuals amass huge fortunes while others lose everything in a game driven purely by randomness? It is difficult to argue that the game is <em>rigged</em>; it is as fair as it practically can be, given that all agents are identical and are given no preference. But the ultimate outcome is clearly unfair since the disparities in agents’ wealth are not the result of their inherent differences. With no responsibility of their own, all except a lucky few individuals lose everything.</p><p>The reason why this dynamic transpires in this way lies in the fact that the two players are not risking the same <em>share</em> of what they own. When someone holding $1,000 plays against someone holding $10, both put $2 on the table — a rounding error for the first, a fifth of everything for the second. And proportional losses hurt more than proportional gains help: lose 20% and then win 20% back, and you are left with 96% of what you started with, not 100%. The poorer you are, the larger the share of your wealth that is exposed to this asymmetry on every single flip. As a general principle, winning moves the player further away from zero — reducing his probability of losing everything in the long term — at the expense of someone who is now a step closer to that prospect. Approaching zero is bad; the stake a near-broke player can put up shrinks toward nothing, and with it any realistic prospect of climbing back. It doesn’t matter whether this <em>win</em> was a product of chance or competence.</p><p>(Of course, in real life, the pot size is growing, making it a positive- rather than a zero-sum game; still, a similar principle applies except that the overall wealth is increasing — except in economic depressions.)</p><p>Note also what this simulation does <em>not</em> model: everyone starts equal. It isolates the second kind of luck — the accumulation of small random shocks — and shows that this alone is enough to produce extreme inequality. Unequal starting positions, the first and more obvious kind of luck, would only compound the effect.</p><h3>What can be done about it</h3><p>Is there a way to neutralize the inequalities produced by anything other than competence — particularly good and bad luck? I don’t know. Maybe it is quite possible to conceptualize a reward system that values individuals purely based on their merit, controlling for variables outside of one’s control (One could argue that being born with a high cognitive ability is also a product of randomness that ought to be controlled for, but we can limit the hypothetical solution to those aspects that aren’t directly related to one’s inherent ability).</p><p>What I do know is that these are very sensitive discussions. Who is to decide whether one deserves his wealth? What are the underlying motives of those wishing to seize one’s wealth, claiming that it’s undeserved? Are they driven by compassion or resentment towards the rich?</p><p>These are tough questions, but in my view, one thing is certain: it doesn’t hurt for the successful to understand that their fortune may have indeed been a product of good fortune. This goes against the notion of <em>a self-made person</em>. I don’t believe anyone is self-made: the successful are lucky to have been exposed to just-right life circumstances that, by some possibly unpredictable mechanism, resulted in one developing just-right values and beliefs, that subsequently generated initial successes, triggering the self-reinforcing positive sequence. This privilege, in my view, requires humility, in part because it may not be fully <em>deserved</em> in the strictest sense. What’s more, the privileged — no matter how great or small their privilege is — are in a perfect position to create the conditions for others to realize their potential.</p><p>And the argument for doing so is not purely moral — the “ultra rich” should understand that social stability is in their best interest. Being rich means having skin in the game — a game that hinges on an orderly, stable, and fair society.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65565c50fe18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting The Stock Market Using News Data]]></title>
            <link>https://medium.com/data-science-collective/predicting-the-stock-market-using-news-data-d22de8ba34b0?source=rss-41d71d09492e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d22de8ba34b0</guid>
            <category><![CDATA[time-series-forecasting]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Juraj Botkuljak]]></dc:creator>
            <pubDate>Fri, 20 Jun 2025 03:52:17 GMT</pubDate>
            <atom:updated>2025-06-29T16:14:43.306Z</atom:updated>
            <content:encoded><![CDATA[<h4>A simple example illustrating the power of text embeddings</h4><figure><img alt="LED stock market display showing ‘SPY 452.65’ with green and red graph lines indicating financial data trends" src="https://cdn-images-1.medium.com/max/1024/0*bmrF_eu3OLU14sPB" /><figcaption>Photo by <a href="https://unsplash.com/@tprahm?utm_source=medium&amp;utm_medium=referral">Tyler Prahm</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Large language models are awesome. While they’re best known for their impressive ability to generate text, their capabilities extend far beyond that. They can, for example, be used to generate efficient vector representations of text, known as <strong>embeddings</strong>. As we’ll see, vectors provide a very natural way of working with text. For instance, determining whether any two given sentences are synonymous is practically impossible if one treats them as purely token sequences. Good luck with hard-coding that.</p><blockquote>Vectors are worth a thousand words.</blockquote><p>Vectors can exist in dense, high-dimensional spaces and, much like meanings of abstract concepts described by text, can be close or distant — and be so across many dimensions. Consequently, the way by which two vectors differ can be neatly described by geometric concepts such as distance and angle.</p><p>Efficiently encoding abstract concepts with vectors allows one to, for example, quickly compute that <em>happy</em> is to <em>smile</em> what <em>sad</em> is to <em>frown</em> (or, loosely applying vector algebra, the difference between <em>happy</em> and <em>sad</em> approximately corresponds to the difference between <em>smile</em> and <em>frown</em>). This is wonderfully explained in this <a href="https://www.youtube.com/watch?v=wjZofJX0v4M&amp;t=747s">3Blue1Brown video</a>. The ease with which humans intuitively grasp these kinds of connections suggests that our brains may indeed encode the world in this way. Ever since they first emerged, we viewed computers as mere memorizers, while humans were the ones who truly understood information, able to integrate new knowledge by connecting it with existing concepts. This ability likely evolved because it’s a far more efficient way of storing and understanding the world.</p><blockquote>Having a good model of the world allows you to predict it, which in turn allows you to harness it.</blockquote><p>Because they are so effective for generalization, various language model architectures rely on embeddings to perform tasks. These embeddings can then be extracted from the trained model and repurposed for a variety of downstream applications. Alternatively, model architecture and training setup can be tailored exclusively for the task of producing embeddings.</p><p>So, what can you do with these text embeddings? The possibilities are many! Once complex, unstructured data is transformed into a structured form that can be analyzed using centuries-old statistical methods, you unlock a wide range of opportunities. In this article, I’ll demonstrate an application of this approach that highlights the remarkable power and versatility of embeddings.</p><h3><strong>Decomposing News Data</strong></h3><p>We start with a 🤗 dataset of <a href="https://huggingface.co/datasets/RealTimeData/bbc_news_alltime">BBC news articles</a>, starting from 2017. We consider a total of 9732 articles from the <em>Business</em> section. Each article in the dataset has a title, content, and date of publication. I’m curious about the following: is there an underlying structure in the information that these articles convey? Are there certain <em>fundamental themes</em> that explain how the articles differ from each other? As described previously, working with words won’t get us very far, so we’ll compute the embeddings.</p><p>To do so, we use the <a href="https://huggingface.co/dunzhang/stella_en_1.5B_v5">Stella 1.5B v5 model</a> (the model has demonstrated <a href="https://huggingface.co/spaces/mteb/leaderboard">good performance</a> for its size). For the sake of brevity, I will leave out the details of this step (feel free to reach out if you’re interested). Now, instead of a set of 9732 variable-length strings, we have a 9732 by 1024 matrix. Each article is, therefore, represented as a 1024-dimensional vector. Much better.</p><p>Now we can ask a considerably easier question: is there a structure to these <em>vectors</em>? They can’t be just random 1024-tuples! There’s a neat way to find this out: <strong>principal component analysis (PCA)</strong>. PCA, in short, is a technique used for dimensionality reduction. So, instead of working with 1024-dimensional vectors, we can transform our dataset to a collection of, say, 10-dimensional vectors. Since this will inevitably lead to information loss, why do it? The main reason is that not all dimensions are equally informative. Perhaps we don’t need 1024 dimensions to understand our dataset. You don’t need my height in both inches and centimeters to know how tall I am. The task of PCA then is to find those vectors, the number of which is predetermined, that can best approximate our dataset. In other words, it’s a form of compression.</p><p>When it comes to statistical modeling, simple is preferred to complex for similar reasons as to why embeddings are preferred to token sequences — they generalize better.</p><p>Let’s apply PCA to our 1024-dimensional dataset of article embeddings. We’ll see how well we can manage with the first 10 PCs.</p><figure><img alt="The image is a line graph titled “PCA Explained Variance Ratio.” It displays the explained variance ratio for 10 principal components. The x-axis represents the principal components, numbered from 1 to 10, and the y-axis represents the explained variance ratio, ranging from 1.5% to 4.5%. The line starts at around 4.5% for the first component and steadily decreases as the principal component index increases, reaching close to 1.5% for the tenth component." src="https://cdn-images-1.medium.com/max/704/1*9njScpjibxdczXf2aD4a9A.png" /><figcaption>PCA Explained Variance Ratio</figcaption></figure><p>Interestingly and, to my great surprise, 10 components (which is less than 1% of the size of the embedding dimension) together explain 25.35% of the total variance. This result may be unremarkable for certain datasets, but think about what we’re doing here: these are not just any data, these are representations of a whole variety of ideas and concepts expressed using the full richness of natural language, through the period of more than 7 years. To me, the fact that you can condense more than one-quarter of the informational content of these abstract ideas into 10 data points, is quite something.</p><h3>How to Interpret These Principal Components?</h3><p>The downside of unsupervised learning methods such as PCA is that it’s really difficult to interpret what the model output actually means. Specifically in PCA, the problem is with interpreting the PCs. What makes a particular article score high on a PC and how does it differ from the one that scores low? If we sort articles by their 1st component scores, we find that those with the highest values tend to focus, in loose terms, on legal battles and politics:</p><ol><li><a href="https://www.bbc.co.uk/news/business-42970339">Steve Wynn: Casino mogul quits his company amid harassment claims</a></li><li><a href="https://www.bbc.co.uk/news/business-46886311">Rihanna takes father to court in trademark dispute</a></li><li><a href="https://www.bbc.co.uk/news/business-65441303">Adidas sued by investors over Kanye West deal</a></li></ol><p>On the other hand, those with lower values are more related to economics and finance:</p><ol><li><a href="https://www.bbc.co.uk/news/business-17442946">Budget 2020: Richer or poorer? Ask the calculator</a></li><li><a href="https://www.bbc.co.uk/news/live/business-68297420">New GDP figures show UK entered recession in 2023</a></li><li><a href="https://www.bbc.co.uk/news/business-59062392">Budget 2021: Price rises could hit highest rate in 30 years, says forecaster</a></li></ol><p>However, there is surely more nuance to these definitions; PCA does not necessarily produce categories that can be easily described. As we’ll see, that may not be an issue at all.</p><h3>Trends in Sentiment</h3><p>Since the articles are timestamped, we can investigate how these component scores — each representing the prevalence of certain “themes” — evolve with time.</p><figure><img alt="The line graph, titled “Monthly score averages for the first three principal components,” shows trends for the 1st (dark blue), 2nd (light blue), and 3rd (red) PCs from 2017 to 2024. The y-axis ranges from -6 to 6. The 1st PC has significant dips, especially in 2022, the 2nd PC is highly erratic, and the 3rd PC shows smoother but notable fluctuations." src="https://cdn-images-1.medium.com/max/704/1*nEpgncORYeUw2XufteTlYg.png" /><figcaption>Monthly score averages for the first three principal components</figcaption></figure><p>It is reasonable to ask whether we really need to know what these components mean. Perhaps not. There is one thing we can do to determine whether these scores can be of any use despite their apparent lack of interpretability: we can test whether we can use them to predict something. And few things are as interesting to predict as the stock market. In the next chapter, we’ll try to model the value of the leading UK stock index, the FTSE 100. (Since we’re basing our model on news articles from BBC, which is a British public broadcaster, it makes sense to use a UK index.)</p><h3>Predicting the FTSE 100</h3><p>If we plot the FTSE 100 together with the 2nd principal component scores over time, they appear to follow a similar trajectory.</p><figure><img alt="The line graph, titled “FTSE Index level and the 2nd principal component score,” compares the FTSE Index (dark blue) and the 2nd PC (light blue) from 2017 to 2024. The left y-axis represents the 2nd PC values (ranging from -4 to 6), while the right y-axis represents the FTSE Index levels (ranging from 6000 to 7500). The two lines appear loosely correlated." src="https://cdn-images-1.medium.com/max/704/1*68tWJ08JtWFhrvPt5AMVeg.png" /><figcaption>FTSE Index level and the 2nd principal component score</figcaption></figure><p>This certainly makes sense given which articles score high on the 2nd principal component:</p><ol><li><a href="https://www.bbc.co.uk/news/business-56355992">Warren Buffett finally joins exclusive $100bn club</a></li><li><a href="https://www.bbc.co.uk/news/business-55939854">Dogecoin takes off after tip by Elon Musk</a></li><li><a href="http://Facebook founder sees wealth hit $100bn after TikTok rival launch - BBC News">Facebook founder sees wealth hit $100bn after TikTok rival launch</a></li></ol><p>For comparison, those that scored the lowest on this component are:</p><ol><li><a href="https://www.bbc.co.uk/news/business-64189824">Strike daily: How Monday 9 January strikes will affect you</a></li><li><a href="https://www.bbc.co.uk/news/business-65091012">Heathrow strike forces BA Easter flight cancellations</a></li><li><a href="https://www.bbc.co.uk/news/business-54004169">Government ‘overseeing the demise of UK aviation’</a></li></ol><p>Indeed, when 2nd component scores are used to predict prices, the model explains around 40% of the total variance.</p><figure><img alt="Scatterplot showing the FTSE Index price against the 2nd Principal Component (PC) with a red regression line indicating a negative correlation. The R² value is 0.40, suggesting moderate explanatory power of the model." src="https://cdn-images-1.medium.com/max/670/1*IA9PccB9S6-CxzlSirc0CQ.png" /><figcaption>FTSE index level vs. model prediction, R² = 0.40</figcaption></figure><p>As you can see below, the 5th principal component explains a remarkable 58% of the total variance!</p><figure><img alt="Scatterplot showing the FTSE Index price against the 5th Principal Component (PC) with a red regression line indicating a positive correlation. The R² value is 0.58, suggesting stronger explanatory power of the model compared to the previous graph." src="https://cdn-images-1.medium.com/max/794/1*vp4cXyvXGAWeLZJe6Qv9qg.png" /><figcaption>FTSE index level vs. model prediction, R² = 0.58</figcaption></figure><p>In this case, however, we need to be careful. Establishing dependencies between nonstationary series — and stock market prices <em>are </em>nonstationary — using linear regression <a href="https://www.sciencedirect.com/science/article/abs/pii/0304407674900347">is known to produce spurious results</a>. To determine whether the results are meaningful, we can check whether the two series are <a href="https://en.wikipedia.org/wiki/Cointegration">cointegrated</a>, in which case we’d have more reason to believe that the relationship is meaningful. We can do that by testing whether the error terms of a regression model that predicts the prices are a <a href="https://en.wikipedia.org/wiki/Stationary_process">stationary process</a>. Instead of using a single component in our model, we can get better results if we use multiple. If we use the Augmented Dickey-Fuller (ADF) test to check for stationarity, this is the summary of the results:</p><ol><li>If we use the 2nd principal component, we’re in the clear: the series are cointegrated (<em>p = 0.0014</em>).</li><li>If we use the 5th principal component, we may have a spurious relationship as the error term process cannot be claimed to be stationary (<em>p = 0.21</em>).</li></ol><h3>Improving the predictions</h3><p>So far, we’ve tried to use a single component. We can improve our predictions if we use a multivariate model that uses multiple components as predictors. For example, by using components 2, 5, and 6, we can explain around 75% of the total variance in prices. Pretty good!</p><figure><img alt="Line chart comparing the FTSE Index price (dark blue) with the model’s predictions (light blue) from 2017 to 2024. The R² value of 0.75 indicates a strong fit between the model and actual data." src="https://cdn-images-1.medium.com/max/704/1*MggDwFTFYN0E58VKpe1MJg.png" /><figcaption>FTSE index level vs. model prediction, R² = 0.75</figcaption></figure><h3>Considerations</h3><p>Applying this in a real-world scenario comes with several caveats. First, how well does it perform on unseen data? The fact that we achieve good results with as few as three predictors suggests that we aren’t compromising generalization ability by overfitting. However, if we were to operationalize the model, we would need to confirm this hypothesis empirically.</p><p>Second, we must assess whether this model specification aligns with what we know about the underlying data. One particular issue arises when considering that, over longer time horizons, the range of possible stock price values widens significantly. For example, the S&amp;P 500 has historically appreciated around 10% annually on average — a trend driven by economic and financial factors such as market fundamentals, real interest rates, inflation, and the equity risk premium. It would be unrealistic to assume that embeddings of media articles, on average, follow a trend of this kind. The fact that 30 years ago the S&amp;P was worth around one-tenth of its value today doesn’t mean that the sentiment today is <em>ten times as positive</em>. (In statistical terms, this issue is related to the distributions of prices versus embeddings.) Instead, we can reasonably expect that our model can predict market movements around the trend. We could then, for example, use a completely different model to estimate this trend.</p><p>Finally, we’ve developed a model that focuses on <em>nowcasting </em>stock prices — admittedly less practical than <em>forecasting </em>them. While nowcasting might help identify mispricings, that would likely require greater precision than the “mere” 75% explained variance. Incorporating other financial indicators in the model could be one way of achieving that.</p><p>The most important purpose of constructing this model was, however, to illustrate the power of embeddings in bridging the gap between semantics and statistics. In that respect, I believe the model has served its purpose well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d22de8ba34b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/predicting-the-stock-market-using-news-data-d22de8ba34b0">Predicting The Stock Market Using News Data</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Thinking About Your Career Path and Start Thinking About Your Career Portfolio]]></title>
            <link>https://medium.com/@juraj.botkuljak/stop-thinking-about-your-career-path-and-start-thinking-about-your-career-portfolio-1d0a882db4f2?source=rss-41d71d09492e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d0a882db4f2</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[professional-development]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Juraj Botkuljak]]></dc:creator>
            <pubDate>Wed, 15 Jan 2025 20:57:53 GMT</pubDate>
            <atom:updated>2025-01-15T20:57:53.510Z</atom:updated>
            <content:encoded><![CDATA[<h4>What portfolio theory can teach us about managing your professional career</h4><figure><img alt="A person lounging on an orange couch holding a mug, with household items like a lamp, cushions, a plant, and a black cat floating around in midair, suggesting a whimsical or surreal scene." src="https://cdn-images-1.medium.com/max/1024/1*5eGk1f_FvDHROptEN3Q9_Q.jpeg" /></figure><p>In my <a href="https://medium.com/brain-labs/investing-like-your-life-depended-on-it-applying-principles-of-investment-analysis-to-life-f4c897c34074">previous article</a>, I argued that almost all decisions we make every day are fundamentally investment decisions. Now, let’s extend this thinking to another powerful concept from financial theory: diversification — the idea that combining different types of investments can reduce your overall risk.</p><p>Take career choices as examples: Should you focus entirely on becoming an actor in LA, or split your time between acting and a steady job? Even if you feel like you really want to become an actor, directing all your resources to that goal might not be the optimal strategy. You first need to take into account how the choices you make complement each other over time— much like how different investments in a portfolio offset each other’s risks. When one path faces headwinds, the other might provide stability or even thrive.</p><h3>A Diversified Career Portfolio</h3><p>So, how do you build your career portfolio? It boils down to understanding two key concepts:</p><ul><li>First, consider the <strong>risk </strong>and <strong>duration </strong>(yes, <a href="https://en.wikipedia.org/wiki/Duration_(finance)">another financial analogy</a>) of individual career investments — that is, how safe is the payout, and how long does it take for it to be realized? A bartending job provides immediate and predictable income but might have limited long-term growth. In contrast, pursuing a medical degree offers little short-term reward but potentially significant future returns. On top of having a long-term payoff, the outcome of starting a business is highly uncertain.</li><li>Second, determine <em>how much you don’t know</em>. That will help you decide exactly how much you want to diversify. Let’s say you have no clue what you want (or know) to do in life. Your space of potential careers is huge, and the uncertainty over which one you should pursue is high. Should you <em>just pick something random</em>? That wouldn’t be optimal. In this case, it may be good to engage in multiple, <em>unrelated </em>activities until you’re able to use the information gained through experience to narrow your focus on things you are really good at. This will reduce your search space. If you’ve narrowed your focus on say, programming, you could pursue a full-time job int he field and work on your related passion projects on the side. This principle maps exactly to how investors seek investments that don’t move in lockstep — when one struggles, the others might flourish. Similarly, the degree of diversification depends on the level of uncertainty: if the investor has no information whatsoever about the stock market, he may diversify equally across all sectors; if the investor expects, say, chip companies to perform well, he may diversify across multiple companies within that sector.</li></ul><p>The real magic lies in the process of continuous iteration of your career portfolio. Consider again the aspiring actor in LA. Focusing solely on acting would likely be unsustainable, and would be like putting all your money in a single high-risk stock — it could pay off enormously, but you’re completely exposed if things go wrong (which could easily mean the end of an acting career). A more balanced approach might involve taking a flexible job in the service industry. This provides a steady income (short duration, low risk) while leaving time and energy for auditions and networking (long duration, high risk). If the acting career starts showing promise — which implies a reduction in uncertainty — a good decision might be to focus more on that leg of the career portfolio.</p><h3>The Three-Step Process</h3><p>We can derive a three-step process from this example:</p><ol><li>Decide on how to diversify your career portfolio so you can maximize your long-run success</li><li>Gather feedback and reflect to reduce uncertainty</li><li>Based on the gathered information, increase focus on activities that are most promising</li></ol><p>The faster you can iterate over these steps, the faster you can find <em>that one thing</em> that you’re truly great at, and that maximizes your success (whatever that means for you).</p><p>This type of thinking generalizes well beyond this simple acting example. Take the rise of the “side hustle” culture. What many people intuitively understand is that they’re creating a career portfolio — diversifying their income streams and professional skills. A software engineer who runs a small e-commerce business isn’t just earning extra cash; they’re developing complementary skills and reducing their dependence on a single source of income.</p><p>Looking at careers through the lens of portfolio theory offers powerful insights. Just as financial advisors encourage diversification in investment portfolios, we might benefit from thoughtfully diversifying our professional lives. The key is finding combinations that work together efficiently — providing both stability and opportunity for growth. Consider this the next time you’re faced with a career decision. Are you overexposed to a single path? Could you benefit from adding a complementary activity? Remember, the goal isn’t to avoid risk entirely — it’s to take risks intelligently, in a way that maximizes your chances of sustainable, long-term success.</p><p>After all, your career is perhaps your most important investment portfolio. Manage it wisely.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d0a882db4f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Applying Principles of Investment Analysis To Life Decisions: Risk, Reward, and Time]]></title>
            <link>https://medium.com/brain-labs/investing-like-your-life-depended-on-it-applying-principles-of-investment-analysis-to-life-f4c897c34074?source=rss-41d71d09492e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c897c34074</guid>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[financial-planning]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Juraj Botkuljak]]></dc:creator>
            <pubDate>Wed, 16 Oct 2024 21:13:26 GMT</pubDate>
            <atom:updated>2024-10-21T22:46:47.912Z</atom:updated>
            <content:encoded><![CDATA[<h4>Evaluating our daily decisions in the same way we price investments is more practical than it might seem at first</h4><figure><img alt="An illustration of four people sitting in modern white chairs against a yellow background. The person in the second chair is represented as an empty outline, indicating an absence or missing individual, while the others are shown in vibrant colors holding papers or a laptop, suggesting a professional or interview setting." src="https://cdn-images-1.medium.com/max/1024/1*ceizlFcJJ1mc3liXugZm2g.jpeg" /><figcaption>Illustration by <a href="https://maxpepper.com/">Max Pepper</a></figcaption></figure><p>While you may not view them as such, you make investment decisions every day. <a href="https://en.wikipedia.org/wiki/Investment">Wikipedia</a> gives a very general definition of <em>investment </em>as the “commitment of resources to achieve later benefits.” Although often viewed in the context of financial decisions, the notion of investment generalizes well beyond money.</p><p>Take everyday choices as examples: Should you spend time scrolling through Reels or studying for an exam? The key difference between these options lies in the timing of the associated reward — much like the concept of <a href="https://en.wikipedia.org/wiki/Maturity_(finance)">maturity</a> in finance. The first provides instant gratification, while the second offers potential rewards down the road — such as a good grade that could bring you closer to a desired career.</p><p>So, how do you make these decisions? It boils down to two key factors:</p><ol><li>First, you’d want to weigh how much you value the present versus the future. By choosing to study, you’re missing out on all the fun activities you could be doing <em>now</em>. Enjoying these fun activities now may certainly feel more valuable than enjoying them tomorrow — or in ten years. But by how much, exactly? Does the promise of a great career and all it brings justify the sacrifice? This depends on your <strong>time preference.</strong></li><li>Second, consider the uncertainty associated with these future rewards. Even if you study now, there’s still the risk that, due to sheer bad luck, you won’t perform well on exam day. Whether you will accept the risk depends on your <strong>risk preference.</strong></li></ol><p>(Investors undergo a similar process when determining interest rates across different maturities, which gives rise to the yield curve. I covered this topic in a <a href="https://medium.com/@juraj.botkuljak/the-most-important-curve-in-finance-4804ee663e32">previous article</a>.)</p><p>Let’s take a closer look at these two factors.</p><h4>Time Preference: Washing the Dishes, Now or in 15 Minutes?</h4><blockquote>For physicists, time is relative. For bankers, <em>time is money</em>.</blockquote><p>Financial analysts spend their careers pricing complex contracts involving future payments — which is a good way to describe most financial assets, including bonds, stocks, and derivatives. That’s why they’ve developed a neat way to quantify the <em>value of time</em>: <strong>the discount function, </strong>which is, put simply, a way of determining any future payments’ <a href="https://en.wikipedia.org/wiki/Present_value">present value</a>.</p><blockquote>Every person has a discount function that reflects their time preference.</blockquote><p>To estimate <em>your </em>discount function, ask yourself how much you would pay now to receive $1,000 tomorrow, in a year, or in 10 years. Repeat this process for different time frames, and you’ve mapped your personal discount function. A person who enjoys spending, for instance, might accept smaller amounts just to get the money today, compared to someone who prefers saving. This type of reasoning is easily generalized to other types of decisions — such as the one with Reels and studying — although it’s not as easy to quantify them.</p><p>According to behavioral economists, people generally tend to be present<strong>-</strong>biased, which is — you’ve guessed it — characterized by an irrational preference towards the present (a good example is the phenomenon of <a href="https://en.wikipedia.org/wiki/Hyperbolic_discounting">hyperbolic discounting</a>). This manifests as the tendency for people to make decisions that are suboptimal in the long run.</p><p>Put differently, washing the dishes in 15 minutes always <em>sounds </em>much better than it actually is. Especially after 15 minutes have passed.</p><h4>Risk Preference</h4><p>The future is uncertain. Even the best financial analysts struggle to predict what the stock market will do. Banks see steady returns but lose money when borrowers fail to repay. Venture capital investors lose money almost all the time, but win big when they do get it right. Just like these entities, we all face different kinds and degrees of risk. The real question is how we manage it. Should you bet your house on a roulette wheel? Probably not. Should you take out a mortgage to fund a social-media-for-cats startup? Well, maybe.</p><blockquote>Your perception of risk is driven by how much you value certainty over uncertainty.</blockquote><p>Most individuals prefer a guaranteed payoff over a fair but uncertain bet, making them risk-averse<strong>.</strong> Some, however, choose the uncertain payment — even if it leaves them worse off on average. Why would someone do such a thing? It’s either that people enjoy the uncertainty and consciously pay for it (in the form of an expected loss), or they see it as an effective way to generate income. While the former can be somewhat justifiable — in the sense that it’s difficult to argue against what someone finds enjoyable — the latter is simply an example of bad decision-making.</p><p>Each decision you make — or don’t make — reveals your time and risk preferences, and it’s likely that you typically default to one pattern of behavior, irrespective of context and situation. By analyzing these two preferences, we can identify four distinct behavioral archetypes, which in my view map quite well to what we observe in real life. <em>The Sensation Seeker</em>, <em>The Great Spender</em>, <em>The Climber</em>, and <em>The Jumper </em>each represent the extremes of the preference matrix.</p><figure><img alt="The image is a 2x2 matrix diagram representing different risk and time horizon preferences. The x-axis indicates risk preference, ranging from “low risk preference” on the left to “high risk preference” on the right. The y-axis indicates time horizon, ranging from “short-term horizon” at the bottom to “long-term horizon” at the top. The four quadrants reflect the four archetypes." src="https://cdn-images-1.medium.com/max/1024/1*qngS21WZYXW6nzCEDrO5zw.png" /><figcaption>Time and risk preference matrix</figcaption></figure><ul><li><strong>The Sensation Seekers</strong> prioritize the present over the future and are reckless in their approach to risk. Gamblers, for example, engage in high-risk bets with a high return potential over a very short time horizon — it’s a wicked combination that makes this archetype the perfect target for various get-rich-quick scams.</li><li><strong>The Great Spenders</strong> favor certainty — but only if it’s happening <em>now</em>. Within the financial realm, they tend to spend most of their disposable income on current pleasures. The Great Spenders are credit card companies’ favorite customers.</li><li><strong>The Climbers</strong> are future-focused but risk-averse. They are typically conservative in their investments, looking to preserve their wealth through low-risk, low-yield means such as savings accounts. Professionally, they are skeptical toward risky ventures in favor of climbing the corporate ladder.</li><li><strong>The Jumpers</strong> are a unique category. They think long-term and are unafraid of taking significant risks, making them the great politicians, scientists, entrepreneurs, and artists who drive technological and cultural progress.</li></ul><h3>Do Whatever You Want, But Know What You’re Doing</h3><p>I’m not here to tell you that you should aim to be a Jumper or a Climber, though those two are often seen as the most desirable archetypes. I will say this: Know what you’re doing.</p><blockquote>Have whatever goals you like — but ensure your actions align with them.</blockquote><p>If you tell me your goal is to achieve financial independence in a few years, I don’t expect you to blow your paycheck at every opportunity, or fall for a multi-level marketing scheme as a way to make a quick buck. If you don’t care about the future that much, have at it — I take no issue with that. Just make sure you know what you’re doing.</p><p>Various philosophical schools offer different views on the future versus present dilemma. The <a href="https://en.wikipedia.org/wiki/Hedonism">Hedonists</a>, for example, focused on the gratification of immediate sensory pleasures with little concern for long-term consequences. In contrast, the Judeo-Christian tradition emphasizes sacrifice, which inherently implies a focus on the long term.</p><p>Long-term focus, if properly directed, breeds success for the individual and society. Yet in recent years, the rise of social media has systematically shortened the time horizons within which we operate. And I don’t mean in a Buddhist sense. This underscores why it’s so important to pause and reflect on how our daily actions shape our future, and whether they truly align with our goals and values.</p><p>The key to navigating this is to start thinking like an investor in your own life. Because, in the end, your most valuable asset is time — and how you choose to invest it will determine the future you create.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4c897c34074" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brain-labs/investing-like-your-life-depended-on-it-applying-principles-of-investment-analysis-to-life-f4c897c34074">Applying Principles of Investment Analysis To Life Decisions: Risk, Reward, and Time</a> was originally published in <a href="https://medium.com/brain-labs">Brain Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Has Europe Become Complacent?]]></title>
            <link>https://medium.com/@juraj.botkuljak/has-europe-become-complacent-9d7c4ea85c7a?source=rss-41d71d09492e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d7c4ea85c7a</guid>
            <category><![CDATA[europe]]></category>
            <category><![CDATA[global-competitiveness]]></category>
            <category><![CDATA[work-ethic]]></category>
            <category><![CDATA[economy]]></category>
            <category><![CDATA[future-of-europe]]></category>
            <dc:creator><![CDATA[Juraj Botkuljak]]></dc:creator>
            <pubDate>Tue, 21 May 2024 09:11:36 GMT</pubDate>
            <atom:updated>2024-06-01T09:59:35.006Z</atom:updated>
            <content:encoded><![CDATA[<h4>Europeans are working way less than they used to. That’s a threat to Europe’s long-term prospects.</h4><figure><img alt="Print shows a map of Europe at the outbreak of the first World War with each country depicted as a human figure representative of the particular state of affairs or attitudes of the country, for instance, Germany is depicted as a soldier fighting with both Russia and France, while eyeing England." src="https://cdn-images-1.medium.com/max/1024/1*KetP3ZpsLyDHn7ojgvG_SA.jpeg" /></figure><p>Europe’s current situation reminds me somewhat of Aesop’s <a href="https://read.gov/aesop/025.html">famous fable</a> where a swift but overconfident hare, pausing to nap during the race, ultimately loses to a slow yet persistent tortoise. The story shows how disciplined effort trumps talent paired with complacency — <em>the race is not always to be swift</em>. The most successful are keenly aware of this lesson. Even more so, they blend the best qualities of the hare <em>and </em>the tortoise.</p><p>If you were born in today’s Western Europe, congratulations: you’ve won the lottery! You get to live in one of the world’s most prosperous regions, with generous social safety that effectively removes many barriers to individual self-actualization and prosperity. Relative to most of the world’s population, Europeans are <a href="https://ourworldindata.org/grapher/daily-median-income">wealthy</a>, <a href="https://ourworldindata.org/explorers/inequality?facet=none&amp;Data=World+Inequality+Database+%28Incomes+before+tax%29&amp;Indicator=Gini+coefficient">comparatively equal</a>, <a href="https://composite-indicators.jrc.ec.europa.eu/explorer/explorer/indices/haqi/healthcare-access-and-quality-index">healthy</a>, <a href="https://ourworldindata.org/grapher/learning-adjusted-years-of-school-lays">educated</a>, and <a href="https://ourworldindata.org/grapher/happiness-cantril-ladder">happy</a> — a tremendous privilege. But there’s a catch: one does not simply <em>enjoy privilege </em>(nor allow it to degenerate into a sense of guilt, for that matter).</p><blockquote>Privilege implies and requires responsibility; otherwise it collapses under its own weight.</blockquote><p>It <em>implies </em>the responsibility to be put to productive use, for the sake of the unprivileged; it <em>requires</em> the<em> </em>responsibility to be sustained. It seems, though, that Europeans are starting to lose sight of this piece of common wisdom — much like Aesop’s sleeping hare.</p><h3>Americans Just Work Harder</h3><blockquote>If current trends continue, Europe’s influence on the global stage will wane.</blockquote><p>It might be an exaggeration to accuse the world’s most successful economies of complacency, but there is a grain of truth in it. I began to consider this idea when Ray Dalio, founder of the world’s largest hedge fund, Bridgewater Associates, <a href="https://x.com/RayDalio/status/1593315558308646914">suggested on X</a> that Europe is a declining global power. One of the reasons he cites? European workers’ lower-than-average work ethic — Americans just work harder. (Nicolai Tangen, the CEO of Norway’s $1.6 trillion national oil fund <a href="https://www.businessinsider.com/americans-just-work-harder-than-europeans-nicolai-tangen-norges-bank-2024-4">expressed similar sentiments</a>.) Some were quick to object that there is more to life than work. While this may be a sensible objection when taken at face value, it in no way invalidates Dalio’s argument: if current trends continue, Europe’s influence on the global stage will wane. Enjoying life in the process certainly won’t change that.</p><p>Which trends, exactly? One interesting indicator is the number of <a href="https://ourworldindata.org/grapher/annual-working-hours-per-worker">working hours per worker</a>. Until the early 1970s, German and French workers worked more hours on average than their American counterparts. Today, American workers put in 35% more hours than German workers and 20% more than French workers.</p><figure><img alt="A graph showing annual working hours per worker in China, France, Germany and the United States." src="https://cdn-images-1.medium.com/max/842/1*wDE2HoBzl81t2GCFEN_W_w.png" /><figcaption>Average Working Hours per Worker</figcaption></figure><p>One could blame the relative burden of marginal income tax, which increases with salary, making each additional hour less lucrative. But that argument can’t explain the whole picture, particularly given that the marginal tax on high-income earners has in fact <a href="https://ourworldindata.org/grapher/top-income-tax-rates-piketty">fallen</a>.</p><p>Another plausible objection to Europe’s gloomy prospects is productivity growth, which has been <a href="https://ourworldindata.org/grapher/labor-productivity-per-hour-pennworldtable?tab=chart">somewhat higher</a> among European economies compared to the US over the past 70 years, partly compensating for lower working hours. But those days are over. Europe can no longer rely on this if it aims to remain globally relevant.</p><blockquote>Much like a 40-something reminiscing about their prom king or queen days, Europe can’t rely on its past productivity successes.</blockquote><p>There are two key reasons for this comparison.</p><ul><li>First, productivity growth cannot sufficiently compensate for the decline in working hours and poor demographic trends (which deserve their own discussion).</li><li>Second, Europe currently lacks the conditions needed to generate further productivity growth (or even maintain the current level). The economy of the future is being built across the pond— eight out of the ten largest companies by market capitalization are headquartered in the US. These are highly productive and innovative tech giants: Microsoft, Apple, NVIDIA, Alphabet, and Amazon, to name a few. Companies like OpenAI and SpaceX need not even be mentioned. In contrast, Europe’s most valuable companies — such as LVMH, Nestlé, Hermés, L’Oréal, and Shell — dominate traditional industries with limited potential for deep economic transformation (admittedly with notable exceptions like Denmark’s Novo Nordisk and the Netherlands’ ASML). The situation looks even bleaker for Europe when we shift focus from established companies to startups — in 2024, the US is home to <a href="https://en.wikipedia.org/wiki/List_of_unicorn_startup_companies">about 650 unicorns</a> (privately held startups valued at over $1 billion), while Germany has only 29. Twenty-nine! Even in the renewable energy sector, where the EU aspires to be a global leader, it’s <a href="https://www.politico.eu/article/solar-panels-manufacturing-china-europe-market/">falling behind China</a>.</li></ul><p>Sceptics might argue that things are not so rosy in the US either. <a href="https://www.cnbc.com/2024/05/19/soaring-debt-and-deficits-causing-worry-about-threats-to-the-economy-and-markets.html">High public and private debt</a>, as well as rising social inequality and a loss of social cohesion, pose significant challenges that could lead to unrest and political instability. While this argument is plausible, it’s important to remember that Europe, as an export-oriented economy, depends on the US market much more than vice versa. Recent history suggests that when the US sneezes, Europe — and the world, for that matter — catches a cold.</p><h3>Europe Needs a Reality Check</h3><p>Europe appears to be undergoing a long-overdue reality check. The Russia-Ukraine war has highlighted the limitations of the Euro-Atlantic partnership while exposing deficits in the strategic thinking of European politics. Rose-coloured glasses were shattered overnight.</p><blockquote>Europe has every reason to relax — but only if it looks in the rearview mirror.</blockquote><p>To summarize, Europe has all the prerequisites to be a force — a positive one — in the world: functioning institutions, a highly educated workforce, unprecedented social security, and sufficient financial firepower. Europe has come a long way to reach its current level of prosperity; it has every reason to relax — but only if it looks in the rearview mirror. Looking ahead reveals a long, uncertain road, with the overlooked check engine light suggesting it’s about time for a tune-up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d7c4ea85c7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Most Important Curve in Finance]]></title>
            <link>https://medium.com/@juraj.botkuljak/the-most-important-curve-in-finance-4804ee663e32?source=rss-41d71d09492e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4804ee663e32</guid>
            <category><![CDATA[macroeconomics]]></category>
            <category><![CDATA[yield-curve]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[interest-rates]]></category>
            <dc:creator><![CDATA[Juraj Botkuljak]]></dc:creator>
            <pubDate>Mon, 29 Apr 2024 10:57:22 GMT</pubDate>
            <atom:updated>2024-05-26T17:40:43.260Z</atom:updated>
            <content:encoded><![CDATA[<h4>A brief introduction to the yield curve and its economic significance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLlPyjqEDHsG8FETY49p4g.jpeg" /></figure><blockquote>One of humanity’s great discoveries is the fact that the future can be transacted with.</blockquote><p>Lending is about as old as the civilization itself. Around 3000 BC in ancient Mesopotamia, farmers were <a href="https://www.koho.ca/learn/history-of-lending/">borrowing seeds</a> with the promise of paying back with crops after harvest. This practice helped allocate resources to their productive purposes — those with extra seeds but no land could invest, while those with land but not enough seeds could utilize it more effectively. The farmers discovered that not only is it possible to transact with the future — it can benefit both individuals and societies.</p><h3>Time Is Money</h3><blockquote>Interest rate is the exchange rate between present and future money.</blockquote><p>Today’s economy — not unlike the society itself — is built on promises. Stocks, bonds, consumer loans, and mortgages all derive value from promises of future rewards. How much is the future worth compared to the present? What is the <em>value of time</em>? That’s a deep question. Fortunately, there is a surprisingly good proxy for that — <strong>interest rates</strong>. Interest rates can be thought of as the (annualized) price of today’s money, expressed in future money’s terms. This allows us to recast our question and ask more specifically: what is the appropriate interest rate on a hypothetical loan that is expected to be repaid at a specified future time (that is, at its <strong>maturity)</strong>? How does the appropriate interest rate <em>depend </em>on the maturity<em> </em>(of some hypothetical loan)— or, put more succinctly, what is the <strong>term structure of interest rates</strong>? That’s precisely the information encoded in the <strong>yield curve</strong>.</p><p>Unlike in Mesopotamia, when the interest rate was limited to 33% by the <a href="https://f5webserv.wright.edu/~christopher.oldstone-moore/Hamm.htm">Code of Hammurabi</a>, interest rates — long-term interest rates in particular — today are determined by financial market participants. Market participants have a strong incentive to estimate the <em>correct</em> interest rate to price a future payment. But what is the “correct” rate and how does the market determine it? And what does maturity have to do with it?</p><h3>No Two Interest Rates Are Created Equal</h3><p>Let’s assume you’re asked to lend money. What’s the first thing you ask? “How much do you need?” and “When will I get it back?”. Let’s focus on why the latter is important.</p><ul><li>First, you want to know <em>whether</em> you are going to get your money back. You would be taking on some <strong>credit risk</strong> that you would want to be compensated for.</li><li>Second, you’d think about the things you could do with that money in the period if you don’t lend it. Sure, you can spend it, but you may also deposit the money in the bank (or invest it in the financial markets) if it’s offering — or you expect that it will do so in the future — a more attractive rate of return. If you lend the money longer-term, you want to be compensated for locking up your liquidity, making you unable to react to better opportunities now, but also those that may arise in the future (i.e., one that offers a better return on investment). A practical way of formalizing this is to say that you’d need to factor in your <strong>interest rate expectations</strong>.</li></ul><p>Now, the appropriate level of compensation for each of these factors will depend on the key piece of information: the <strong>maturity</strong> of the loan, i.e. when you should expect to be repaid. Since different repayment periods may imply different expectations relating to these two components, the demanded interest rate will correspondingly be different. For example, if you anticipate a rise in short-term interest rates (e.g., bank deposit rates), and the offered long-term rates do not compensate for the expected increase, you may decide to keep your money at the bank instead of lending it for a longer term.</p><blockquote>The yield curve represents the interest rate as a function of time to maturity.</blockquote><p>These varying expectations associated with different future points in time give rise to the <strong>yield curve</strong>, which can be defined as a representation of the relationship between interest rates and time to maturity. That definition may come off as a bit too <em>general;</em> to which underlying loan does the curve-implied interest rate apply? Who is providing it, and to which borrower? That’s up to us to decide — yield curves can be derived for any borrower (if there is sufficient data). Nevertheless, economists are often interested in <strong>government bond yield curves</strong>, as government bonds are among the most abundant and liquid debt instruments. They also reflect the financing costs of the largest (and usually the most creditworthy) borrower in the country.</p><h3>Yield Curves and the Business Cycle</h3><blockquote>Yield curves are so important because interest rates are so important.</blockquote><p>Interest rates make their way into virtually all financial decisions. While the level of interest rates is indeed important, the yield curve provides an extra bit of information about how interest rates at different maturities relate to each other. This is often reflected in the <strong>shape of the yield curve</strong>. The most common way to characterize the shape of the yield curve is by its <strong>slope</strong>.</p><p>In times of economic growth, yield curves are typically upward-sloping, meaning that longer-dated instruments yield a higher rate of interest relative to those maturing earlier (<a href="https://blogs.cfainstitute.org/investor/2023/07/21/the-predictive-power-of-the-yield-curve/">that wasn’t always the case</a>). That’s because, even in times when interest rates are expected not to change substantially, investors need to be compensated for the <em>possibility</em> of a missed opportunity to capitalize on higher interest rates. The longer this period, the higher the demanded compensation; hence the upward-sloping shape. That’s called <a href="https://www.newyorkfed.org/research/data_indicators/term-premia-tabs#/overview"><strong>the term premium</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivsti2Q0zS1durSUz2NohA.png" /></figure><p>A rare but significant occurrence is the <strong>yield curve inversion</strong>, which is marked by short-term yields exceeding yields on long-dated instruments. Usually, the yield curve is described as inverted if the difference between the 10-year and the 3-month yield becomes negative. That’s usually a bad sign. It is often described as the harbinger of bad times —<a href="https://fred.stlouisfed.org/series/T10Y3M"> it has preceded every US recession in the past 40 years</a> (although its predictive power has been <a href="https://www.reuters.com/markets/us/inverted-yield-curve-no-longer-reliable-recession-flag-strategists-say-2024-03-12/">contested </a>recently).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZrRW-Z7Al52sz262tgH8g.png" /></figure><p>Why an inverted yield curve would be associated with an impending recession is remarkably difficult to answer. We can start by asking an equivalent of the chicken-egg question: is yield curve inversion the consequence or the cause of the imminent downturn? It’s probably both.</p><ul><li><strong>The cause argument.</strong> As the yield curve inverts and short-term yields increase past long-term yields, investor sentiment shifts toward short-term investments. This typically leads to an all-out increase in yields across all maturities, which hurts stocks — particularly those whose value lies in cash flows in the distant future (think growth stocks). A falling stock market is generally not beneficial for consumer and investor confidence. Moreover, banks tight their lending conditions as the economic gloom looms, and the pressure on their margins mounts as the cost of short-term financing rises (the banks need to pay higher deposit rates to their customers; however, <a href="https://www.bloomberg.com/news/articles/2023-02-27/banker-bashing-is-back-as-rates-soar-on-everything-but-deposits">the effect is not immediate</a>).</li><li><strong>The consequence argument.</strong> The central bank typically raises short-term interest rates when the economy is <a href="https://en.wikipedia.org/wiki/Overheating_(economics)">overheated</a>. This is usually accompanied by inflation as businesses struggle to keep up with demand. Higher short-term interest rates are precisely here to cool the economy, as they have a dampening effect on consumption, investment, and, therefore, output. Markets, of course, are perfectly aware of this and expect the economy to slow and, consequently, interest rates to be brought down. The expected fall in interest rates materializes as the inverted yield curve.</li></ul><h3>Why Should You Care?</h3><p>I believe that there is great benefit in viewing interest rates as functions of maturity, rather than a single number. Not only does this allow you to gauge the economic outlook, but it also gives you a conceptually different approach to evaluating investments. If you intuitively understand how the dynamics of the yield curve affect your investments — be it fixed income, stocks, or even real estate — you can better adapt to what’s coming. You can more easily notice if your portfolio is disproportionately skewed toward longer-duration investments (long-term bonds, growth stocks, etc.), leaving you vulnerable to long-term interest rate dynamics; perhaps, you’d want to balance your exposure with more short-term investments. All in all, it allows you to reach your investment preferences more effectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4804ee663e32" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>