<?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 Erik Rudlang on Medium]]></title>
        <description><![CDATA[Stories by Erik Rudlang on Medium]]></description>
        <link>https://medium.com/@erikrudlang?source=rss-299fbe4ea06c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kHLSDz98_UMYhCai</url>
            <title>Stories by Erik Rudlang on Medium</title>
            <link>https://medium.com/@erikrudlang?source=rss-299fbe4ea06c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:27:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erikrudlang/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[Towards Intelligence]]></title>
            <link>https://medium.com/data-science/towards-intelligence-50aebf5a2d52?source=rss-299fbe4ea06c------2</link>
            <guid isPermaLink="false">https://medium.com/p/50aebf5a2d52</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Erik Rudlang]]></dc:creator>
            <pubDate>Wed, 16 Oct 2019 06:14:44 GMT</pubDate>
            <atom:updated>2019-10-22T16:03:39.227Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a series where I will provide real-world examples where mathematics was used to make more intelligent decisions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*hOP9xe6VxeNQMyThPsEScg.jpeg" /><figcaption>Illustration by Garry Killian</figcaption></figure><p>Dealing with uncertainty</p><p>We live in a dynamic world where events are influencing each other. Most real-world variables are stochastic and there is an uncertainty associated with the outcome of the variable. If this variable is something that will severely affect your business you would want to know anything possible about that liability. The company I work for is providing markets for trade of electricity in Europe. The bulk of trades go into day-ahead contracts where an obligation is struck the day before financial settlement. Since we are clearing large volumes of trades every day we need to have collateral in place from the member in case a member defaults and is not able to meet its obligation. The electricity price is volatile and we need to collect collateral the day before for any price and volumes we expect from the member the day after.</p><p>The current process for handling this risk has been to fit 3-year historical prices into the best fitted distribution and calculate a confidence around the price. In this article, I will show why this is a too simplified approach, what effect this is having on the business and how new thinking can transform the health and steadfastness of the business completely. So how can this model be improved? How can we make a more intelligent approach to understand and predict the electricity price? There are structures in the data that add informational value and that fitting algorithms and machine learning tools can use to make more informed decisions. We know for example that prices have a time order. This is the first informational value that can be used to improve the model. This will allow a predictive model to take the time dimension into account. This property greatly enhances how the prices are perceived by an algorithm and its ability to capture patterns in the data that have predictive power. For algorithms, it is all about what it can see that makes it good or less so at making predictions. There are also external forces that can add informational value. Linear regression, for example, can be used to find the information wind levels is able to give about prices. A general theme in this series is to provide some powerful pieces of math and display how this can be used and the value in the inherent theory. In the next sections, I will take you through the journey of creating a more intelligent approach for combating the problem faced by the business and the gains that were made when taking a more intelligent approach.</p><p>Mathematics has been developed for a long time. There are powerful thoughts that have been conceived and reasoned for and some of the knowledge given by mathematics is provocative. The first powerful insight that I want to talk about is the concept of independent events. Independent events are powerful in the way that their sum is approximated by the normal distribution. For bounded distributions, it is possible to find the convergence of the normal of the mean. If you have many independent observations you can even perform more powerful results using the chi squared test to infer whether the data is drawn from a specific distribution.</p><p>Electricity prices are not independent events. We can make a construction around the prices so what we are left with is only events that are independent and that we can treat coming from the same distribution. To form this translation of the prices we use our knowledge about the nature of the prices and put together a model that capture these characteristics. Prices display a time series structure. Both the exponential smoothing and the autoregressive model can model a linear dependency between two or more time steps. We know there is an integrated pattern between the prices where the price in earlier steps influences the price in the current step. An exponential model is used to capture this dependency in the prices. We also have a weekly dependency or cycle in the prices that we include the model. These two dependencies should capture most of the dependent nature of the prices. To give more explanatory power to the model the independent observations resulting from this model is regressed with wind level. In the Danish electricity market wind level can explain 15,47% of the price level. The table below shows how much of the variation in the prices the exponential smoothing model is able to explain both with wind regression and without wind regression. In the in-sample and out-of-sample period from the start of 2019 to September 2019, the model is able to explain as much as 65–70% of the price variation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUamEM44h_McNUchVNOV0Q.jpeg" /></figure><p>The plot below shows the autocorrelation plot of the residuals the resulting series is uncorrelated random variation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*9eHn_JIUCBpzDx1odFAbIw.png" /></figure><p>The residuals are uncorrelated and the mean value of the observations, the OLS estimator, will give the true the mean value and the model will be unbiased. The Pearson chi squared test is rejecting that these independent events are drawn from the normal distribution. We use the empirical cumulative distribution function to draw a 95% confidence interval around the price. The plot below shows the point predictions of the price in the test period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xps5HdDiBMEbX-GOmYOG7Q.png" /></figure><p>The model is the description of the electricity price and it is using multiple concepts to find a formula that will describe the price. It explains the variance and explains the machinery that goes into producing this price. The new risk price using the 95% confidence interval is plotted with the risk price from the original methodology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e86PyKlRZSXZMzfawnNirA.png" /></figure><p>Since the current risk price is not treated as a time series the risk price is blind to any seasonal changes that is a result of temperature changes over the year. The current risk price is updated on a monthly basis and the time events that happen between the first publication of the risk price and the second are lost and not paid any attention to. From the graph above you can see that for a long period of time, the company faced substantial risk that was not hedged by sufficient pools of collateral. Also, we are charging bloated levels in the summer when the risk is much lower. This example shows how important the correct modelling is, and how big impact mathematics can have on the business and for the health of the company. This new model will deflect risks the company is currently facing and at the same time increase the profitability. The average difference in the requirement that we ask towards our members in this period was reduced by a total of 4,906 mill EUR. That is the power of mathematics that is the power of intelligent decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50aebf5a2d52" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/towards-intelligence-50aebf5a2d52">Towards Intelligence</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>