<?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 Philip Kinlen on Medium]]></title>
        <description><![CDATA[Stories by Philip Kinlen on Medium]]></description>
        <link>https://medium.com/@philip-kinlen?source=rss-2bdbb4d61965------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xxjOlaSLqHGz-nHC.</url>
            <title>Stories by Philip Kinlen on Medium</title>
            <link>https://medium.com/@philip-kinlen?source=rss-2bdbb4d61965------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:15:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@philip-kinlen/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[European Cloud User Coalition Position Paper]]></title>
            <link>https://medium.com/aib-innovation/european-cloud-user-coalition-position-paper-2320e8f1ce9f?source=rss-2bdbb4d61965------2</link>
            <guid isPermaLink="false">https://medium.com/p/2320e8f1ce9f</guid>
            <category><![CDATA[ecuc]]></category>
            <category><![CDATA[dora]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Philip Kinlen]]></dc:creator>
            <pubDate>Wed, 12 May 2021 08:13:00 GMT</pubDate>
            <atom:updated>2021-05-12T08:13:00.109Z</atom:updated>
            <content:encoded><![CDATA[<p>In early 2021 a number of financial institutions around European, including AIB, announced the formation of the <a href="https://ecuc.group/">European Cloud User Coalition (ECUC)</a>. The primary aim is to collaborate on the challenges posed by the adoption of cloud computing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9tp2FpDCvLwpSdU.png" /></figure><p>On 12th May 2021, the ECUC published <a href="https://ecuc.group/papers/ecuc_position_paper_may_2021.pdf">our position paper</a> which covers a number of different subjects all related to cloud computing, for example: privacy, security, governance and regulation. The paper has an entire section on the EU’s proposed Digital Operational Resilience Act (DORA).</p><p>Cloud computing can be scalable, robust and secure, but it is not without its challenges in particular regulatory. If you’re interested in reading more please do read <a href="https://ecuc.group/papers/ecuc_position_paper_may_2021.pdf">our position paper</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2320e8f1ce9f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aib-innovation/european-cloud-user-coalition-position-paper-2320e8f1ce9f">European Cloud User Coalition Position Paper</a> was originally published in <a href="https://medium.com/aib-innovation">AIB Research &amp; Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[European Cloud User Coalition]]></title>
            <link>https://medium.com/aib-innovation/european-cloud-user-coalition-62b1dbf1ecce?source=rss-2bdbb4d61965------2</link>
            <guid isPermaLink="false">https://medium.com/p/62b1dbf1ecce</guid>
            <dc:creator><![CDATA[Philip Kinlen]]></dc:creator>
            <pubDate>Wed, 27 Jan 2021 10:22:32 GMT</pubDate>
            <atom:updated>2021-01-27T10:27:48.097Z</atom:updated>
            <content:encoded><![CDATA[<p>AIB is focused on efficiently delivering secure and reliable financial services to our customers. To achieve this, secure and reliable technology is essential and this is something that cloud computing can offer. Because of this AIB has decided to join the European Cloud User Coalition (ECUC) which is aiming to strengthen the public cloud ecosystem for the entire European financial industry.</p><p>● The primary objective of the ECUC is to develop a joint position on common challenges and solutions with cloud computing services providers.</p><p>● As a first step, the ECUC will publish a paper outlining the challenges and solutions in the adoption of cloud computing in the financial services industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BouDl9jjKGWS_NNxY6IKWg.jpeg" /></figure><p>Cloud computing is a key strategic technology for the digital transformation of the European financial sector. Private clouds have been widely used for some time, but recently public cloud solutions have become increasingly important due to their flexibility and scalability, as well as the high-quality security and resilience standards.</p><p>Therefore, leading European financial Institutions have taken the initiative to establish the European Cloud User Coalition (ECUC). Amongst others, Allied Irish Banks, BAWAG Group, Belfius Bank, Commerzbank AG, Deutsche Börse AG, EFG Bank AG, Erste Group Bank, Euroclear, ING Groep N.V., KBC Bank NV, Swedbank AB and UniCredit S.p.A. have joined the ECUC to ensure and enable secure cloud applications for the European financial industry as a whole.The ECUC is open to new members.</p><p>It’s primary objective is to jointly agree on security standards and best practices for the use of cloud technology for European financial players. It seeks to ensure that European regulatory and data protection standards will be better enforced by cloud providers, some of whom are not headquartered in the EU. The ECUC seeks to reduce vendor lock-in and thus strengthening competition.</p><p>The next step in 2021 for the ECUC will be to publish a paper with requirements for cloud services. The paper will consider all aspects of the basic European regulation and the data localization provision, including General Data Protection Regulation (GDPR) requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62b1dbf1ecce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aib-innovation/european-cloud-user-coalition-62b1dbf1ecce">European Cloud User Coalition</a> was originally published in <a href="https://medium.com/aib-innovation">AIB Research &amp; Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AIB at the Dublin Maker Festival]]></title>
            <link>https://medium.com/aib-innovation/aib-at-the-dublin-maker-festival-b7985771d0b6?source=rss-2bdbb4d61965------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7985771d0b6</guid>
            <category><![CDATA[dublin]]></category>
            <category><![CDATA[makers]]></category>
            <dc:creator><![CDATA[Philip Kinlen]]></dc:creator>
            <pubDate>Mon, 22 Jul 2019 16:55:37 GMT</pubDate>
            <atom:updated>2019-07-23T09:15:42.925Z</atom:updated>
            <content:encoded><![CDATA[<p>On Saturday 20th July 2019 AIB participated in the <a href="http://www.dublinmaker.ie/?source=post_page---------------------------">Dublin Maker Festival</a> in Merrion Square in Dublin.</p><p>The festival is a celebration of the creativity of people who make things. When children visited the AIB stand, we showed them how to do binary beading. They started by converting their names to binary using standard ASCII. Then using black and white beads to represent 0’s and 1’s they made necklaces or bracelets which contained their names or initials.</p><p>We also showcased some AI that had been developed in AIB. We had a fun image classifier that had been trained to recognise cats and dogs. When given an image of a person, it then determined whether the person was more cat-like or dog-like. It was very popular with the public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TxiD49sG51ar4pEq8Y1ZKg.png" /><figcaption>The dog was deemed to be 88% dog-like</figcaption></figure><p>We were grateful to the GAA for letting us borrow the Sam Maguire which we had on a plinth just in front of our stand. Members of the public were able to take photos with the Sam Maguire. They also played <a href="https://thetoughestjourneygame.com/?source=post_page---------------------------">The Toughest Journey</a> game.</p><p><strong>This next section is for those who are interested in the technical details of how to convert a name to binary.</strong></p><p>If you’d like to convert your name to binary, there are two steps. The first is to convert each letter to a number. In 1963 it was agreed that “A” would be represented by 65, “B” would be represented by 66 etc. That is called ASCII code.</p><p>Once we have a number, say 65, the next step is to convert it to binary.</p><p>65 = 64 + 1</p><p>=2⁶ +2⁰</p><p>where 2⁶ means, 2 to the power of 6</p><p>i.e. 2⁶ = 2 * 2 * 2 * 2 * 2 * 2 = 64</p><p>65= 1*(2⁶) + 1*(2⁰)</p><p>= <strong>0</strong>*(2⁷) + <strong>1</strong>*(2⁶) + <strong>0</strong>*(2⁵) + <strong>0</strong>*(2⁴) + <strong>0</strong>*(2³) + <strong>0</strong>*(2²) + <strong>0</strong>*(2¹) + <strong>1</strong>*(2⁰)</p><p>so we can represent 65 in binary as:</p><p><strong>0100 0001</strong></p><p>If you’d like to use a lower case letter, just add 32 to the ASCII code for the corresponding upper case letter and then convert that number to binary.<br>The ASCII of “A” is 65<br>The ASCII of “a” is 65 + 32 = 97<br>and in binary that is: <strong>0110 0001</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*ck7SUs5OiEc3skjQX6x2Ww.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7985771d0b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aib-innovation/aib-at-the-dublin-maker-festival-b7985771d0b6">AIB at the Dublin Maker Festival</a> was originally published in <a href="https://medium.com/aib-innovation">AIB Research &amp; Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back Prop in Neural Networks]]></title>
            <link>https://medium.com/aib-innovation/back-prop-in-neural-networks-5cbf7ddd6305?source=rss-2bdbb4d61965------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cbf7ddd6305</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Philip Kinlen]]></dc:creator>
            <pubDate>Mon, 20 Aug 2018 10:17:22 GMT</pubDate>
            <atom:updated>2018-08-23T11:58:02.988Z</atom:updated>
            <content:encoded><![CDATA[<p>The basic ideas of neural networks are not new, but in recent years they have been used to solve problems that previously computers struggled with. Some of this is due to Moore’s law. Computing power is now cheaper and faster than it was and also there is now an abundance of digital data which was previously much more difficult and expensive to obtain. So, even slow learning algorithms can be trained.<br>One approach that is often used is the Backward Propagation algorithm. In this post we present a mathematical explanation for why it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uo9imIqMeelslhynxUU6DA.png" /></figure><p>Suppose we have an input vector x̲ and we wish to make a prediction for the resultant vector y̲ . We start by defining our activation level zero to be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/104/1*3or4BYeMfFk3-acc0cnduA.png" /></figure><p>We define</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*6IK8fE8k6mNgCRNNAByo_Q.png" /></figure><p>and the θ’s are the weights that will be set during the training process. <br>We use some non linear activation function which we’ll refer to as S(z) . This could be the <a href="https://en.wikipedia.org/wiki/Rectifier_(neural_networks)">ReLU</a> or even a <a href="https://en.wikipedia.org/wiki/Sigmoid_function">sigmoid function</a>. It is used to evaluate the next activation level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*b23QyBhyBlVc-SSsNfjwlQ.png" /></figure><p>When we have a⁰, we can use equations 1 and 2 to evaluate a¹.<br>We then use equations 1 and 2 again to evaluate a² and then a³ all the way up to level L.</p><p>Our forecast for y̲ is activation level L:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/40/1*RvTpvOE-DkEDok2jGLrAzA.png" /></figure><p>Suppose we are given a training set of T input vectors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/33/1*r71J6wjOI3_HpzAETaeMIw.png" /></figure><p>and a corresponding set of resultant vectors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/36/1*qZbR3d_mTSlSsGxM-WR7Ug.png" /></figure><p>where 1≤t≤T, <br>then for each input vector, we will have a corresponding activation level L:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/55/1*iE7Wro2k0YJ-7gSFRlLHbA.png" /></figure><p>We can measure the discrepancy between the resultant vectors in our training set and the final activation levesls. We’ll label this discrepancy D:</p><p>We could have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*RWHmYw6Ah7mkpFxpJLZ9bQ.png" /></figure><p>For the rest of this posting we won’t refer again to the right hand side of that equation. So if the discrepancy function D were defined differently, then it wouldn’t make any difference to the formulae below.</p><p>We sum up all the discrepancies and we’ll call the result the cost function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*fYei1StgEgDLbRokvltM1w.png" /></figure><p>We are interested in finding the θ’s which minimise this cost function and so gives us accurate predictions.<br>To do so, we could first find the partial derivatives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*Kd_0pX4Y48pxkEch2b5ubw.png" /></figure><p>for all i,j,k and then use a <a href="https://en.wikipedia.org/wiki/Gradient_descent">gradient descent</a> method to find the θ’s that minimise J.</p><p>We are now going to focus on the term:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*JrHXJ2ZauuCSv36m_ozstw.png" /></figure><p>For simplicity we are going to drop the t superscript. So we will write:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/155/1*9FIYFdX4Vd-mOP-ZXzW64w.png" /></figure><p>where the t is implied. Though in the end, when we want to evaluate the partial derivative of J, we will need to do the sum over t.</p><p>We define</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*AJ8LN11oYUsw7OynfRYEGw.png" /></figure><p>and when we apply the chain rule to the right hand side we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*J2iNMi-rsnIFuptL07jccg.png" /></figure><p>we substitute in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/62/1*t0ZOQysFHR9_p3tJ2F_FPw.png" /></figure><p>and we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*zSibu9K3F3UTxL3CXujxmw.png" /></figure><p>Now we want to evaluate the last term</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/88/1*Nm6In8KIRnvFtv38diQYCA.png" /></figure><p>to do that we first combine equations 1 and 2 to obtain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*8G3yo9M-l83_-15359K1ug.png" /></figure><p>and so</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*jkM1IzNCUAvtVwTKpFucmw.png" /></figure><p>where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*hCEpLKyduZXTapA7ngFTnA.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*Gr9Ya25FTidxwZFU7hdp-A.png" /></figure><p>So, returning to equation 6, we find only one term in the sum survives, i.e. when l = j.<br>Hence eqn 6 becomes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*W-IQNmx5q-0emqRtjWhISQ.png" /></figure><p>When we substitute that into equation 5 we find</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*VHFnijzlGAC8nZ-xl6KgiQ.png" /></figure><p>It follows from equation 1 that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*ui2DJbUuy30tQKwXe9HBZQ.png" /></figure><p>Using the chain rule we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*lUubPfx0Zxs9wGum7cJbRw.png" /></figure><p>Substitute in equation 9 and we find only one element of the sum survives and we obtain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*kpaYVFWGkS5KW1FMfqUrUg.png" /></figure><p>So we can go forward (increasing k’s) using equations 1 and 2 to evaluate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/43/1*FmMnIUooKpJxHgLHZHgkZw.png" /></figure><p>and then using equation 8, go backwards ( decreasing k’s) to evaluate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/29/1*L_REwoMwV-RAxxxm1HoMmw.png" /></figure><p>We will then be able to use equation 10 to work out all the partial derivatives of D with respect to θ. <br>Remember there is an implied superscript t in equation 10. And to work out the partial derivatives of J we will need to do the sum over all t’s as shown in equation 3.<br>After that, finding the optimal θ’s using gradient descent will be as easy as sliding down a hill.</p><p><em>Note: the image above was based on a neural network diagram in </em><a href="https://en.wikipedia.org/wiki/File:Colored_neural_network.svg"><em>wikipedia</em></a><em> which was then amended by the author.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cbf7ddd6305" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aib-innovation/back-prop-in-neural-networks-5cbf7ddd6305">Back Prop in Neural Networks</a> was originally published in <a href="https://medium.com/aib-innovation">AIB Research &amp; Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adjusting Positive Definite FX Covariance Matrices]]></title>
            <link>https://medium.com/aib-innovation/adjusting-positive-definite-fx-covariance-matrices-8b7283f841e3?source=rss-2bdbb4d61965------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b7283f841e3</guid>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Philip Kinlen]]></dc:creator>
            <pubDate>Wed, 25 Jul 2018 10:20:10 GMT</pubDate>
            <atom:updated>2018-07-26T15:05:32.415Z</atom:updated>
            <content:encoded><![CDATA[<h3>Abstract</h3><p>When optimising a portfolio of currencies, it is helpful to have a positive-definite (PD) covariance matrix of the foreign exchange (FX) rates. However if we wish to adjust an off diagonal element, it is very easy to lose the positive definiteness of the matrix. In this paper we suggest how to adjust an off-diagonal element of a PD FX covariance matrix while ensuring that the matrix remains positive definite.</p><h3>Background</h3><p>Let</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/37/1*eAbNUBv1w9Zi3likdAe4wA.png" /></figure><p>be the cost of 1 unit of currency ‘b’ quoted in currency ‘a’.</p><p>So we have the standard FX relations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*I_As1G1E7h0kfQNjXBcYlA.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*MhTidBUaEOXxPYLh0kD5qw.png" /></figure><p>We will start with a simple model zero drift and zero interest rates.</p><p>Suppose we have a stochastic model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*mabp_HPg1L05q9PUqPLbvQ.png" /></figure><p>with expectation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*ForLhtx_dzve3SDVm2hcYg.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*KKduM97nzwB2IlUXfmX2mw.png" /></figure><p>When we have a base currency (numeraire) ‘a’, then we can have a covariance matrix over b and c:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*mC8ev3BVIZag4ECnjBFrYg.png" /></figure><p>The diagonal elements of the covariance matrix are the vols squared:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/1*IxeGeXplFcA44Vi2_MN6BA.png" /></figure><p>If we change the numeraire, then what’s the effect on the covariance?</p><p>To work it out we start by considering:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*2r-JIHGPsAUOYLTddnVSXQ.png" /></figure><p>Using Ito’s lemma we find that Λ only contains terms that are either higher order or are non-stochastic, but when we are looking at the covariance, all of Λ can be ignored.</p><p>And so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*HdnXOtB2Wt2ZTX2NIT9PZg.png" /></figure><p>Now using equation (i) we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*Gj4bS9o1Y6JzDeo6f4tkUA.png" /></figure><p>This is our change of numeraire formula.</p><p>Note that if we change the numeraire from ‘a’ to ‘d’ and then back again that we do indeed recover the original value.</p><p>To demonstrate this, we just need to get the four terms on the RHS of (iii) and change their numeraire to ‘d’. You’ll then have sixteen terms. After doing lots of cancellation and noting that some of the terms are identically zero we recover the original covariance, i.e. LHS of (iii)</p><h3>Adjusting the FX matrix</h3><p>For a given numeraire ( base currency ) say ‘a’ we have a covariance matrix over the indices ‘b’ and ‘c’:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/66/1*HQuecoQzwLGosBjOVXLXyw.png" /></figure><p>Very often when working with covariance matrices, it can be very helpful if it is positive definite. This is particularly the case when we are optimising an FX portfolio.</p><p>Suppose we have a covariance matrix which we have estimated from historical returns and now we want to change one element. Perhaps we have some good implied vol data on that FX pair from the vanilla options market. It can be problematic changing one element in the covariance matrix since it is very easy to lose the positive-definite attribute. If you change one element then there should be a ripple effect on neighbouring elements.</p><p>But how do we evaluate that ripple effect?</p><p>The first step would be to change the numeraire so that the covariance term that we wish to change is along the diagonal.</p><p>Then we can break up the covariance matrix into a set of vols and correlations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*PRtP0pRlUN9ajzs5PQo4lw.png" /></figure><p>If the covariance matrix is positive definite, then so too is the correlation matrix and visa versa.</p><p>And so, if we adjust the vol ( to some non-zero value) while leaving the correlation alone, then when we reconstruct the covariance matrix with the new vol, but the same correlation as before, the PD attribute will be preserved.</p><p>The original covariance was positive definite, so the correlation matrix is too. When we use that same unadjusted correlation matrix to construct the adjusted covariance we know that that too will be positive definite.</p><p>We will also need to change the numeraire back again to the original base currency.</p><p>We have shown above in equation (iii) how to change the numeraire of the covariance matrix. But if we start with a positive definite covariance matrix, will the matrix with the new numeraire also be positive definite? The answer is yes and here is the proof.</p><p>Suppose we have a positive definite covariance matrix with numeraire a,</p><p>then we know that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*UyuQ_3g_FS5UHelvC0Er6w.png" /></figure><p>We want to show that when we change the numeraire from a to say d</p><p>that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*lYWJierpM5jJp4DTM1yEIw.png" /></figure><p>Using equation (iii) above, we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*m7KRXvGVe26fBZqbUAVCAQ.png" /></figure><p>Now, using Kronecker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*V5WyYNkERx9vSWD0tjhRlQ.png" /></figure><p>and doing some rearranging of the right hand side of equation (iv) we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Nva24LwuRJ16XPNo663bew.png" /></figure><p>Now letting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*vLZ1jF1XptOO1BfNlItEEw.png" /></figure><p>So we now have</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*zC1rc4u1Byn6AgU7lfHutg.png" /></figure><p>QED.</p><p>So we have shown that if we start with positive definite covariance matrix with numeraire a and then change the numeraire to d, using equation (iii) above, then new covariance matrix will also be positive definite.</p><h3>Conclusion</h3><p>So, if we want to change an off diagonal element of an FX covariance matrix, what we do is change the numeraire, so that that element comes onto the diagonal.</p><p>We then split up new covariance matrix into vols and correlation.</p><p>We update the vol, leaving the correlation fixed, reform the covariance matrix and then return to the original numeraire.</p><p><strong><em>Note:</em></strong></p><p><em>This paper was presented as a poster at the Bachelier World Congress 2018.<br></em><a href="http://bacheliercongress2018.com/"><em>http://bacheliercongress2018.com/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b7283f841e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aib-innovation/adjusting-positive-definite-fx-covariance-matrices-8b7283f841e3">Adjusting Positive Definite FX Covariance Matrices</a> was originally published in <a href="https://medium.com/aib-innovation">AIB Research &amp; Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Efficient Machine Learning]]></title>
            <link>https://medium.com/aib-innovation/efficient-machine-learning-11bb8057178a?source=rss-2bdbb4d61965------2</link>
            <guid isPermaLink="false">https://medium.com/p/11bb8057178a</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Philip Kinlen]]></dc:creator>
            <pubDate>Wed, 10 May 2017 08:55:51 GMT</pubDate>
            <atom:updated>2017-05-10T09:51:17.360Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1HyJYDbec2p7QjaqwTnXg.jpeg" /></figure><p>In AIB, we use machine learning for a variety of tasks. In this blog post we’ll discuss one approach for dealing efficiently with a large and expanding set of data. In the algorithm suggested, once the data has been used in the training process, its influence will persist and the model can be updated without the need to retrieve the old data. So after the data has been processed it can be discarded. <br>Below we will also show how we can potentially give more weight to recent data.</p><p>Let’s start with the basics. Suppose we have a set of T input vectors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/124/1*vxTuKakbMOiqri9HJtZefA.png" /></figure><p>with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*0U0J6uLu675MUIS09MI5sg.png" /></figure><p>and for each vector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/1*KI320oaNP3S4FVnr0P6caw.png" /></figure><p>there is a corresponding resultant</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/104/1*vTZBpV8IgXBvhqDoSSe7Rw.png" /></figure><p>We want to find the optimal vector <a href="https://medium.com/aib-innovation">θ</a> so that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/61/1*4yhfRkC38c8eOYFPop7JVw.png" /></figure><p>is a good predictor of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/1*wQI4xpy1kBpZFhWlVk4ZtA.png" /></figure><p>We choose the <a href="https://medium.com/aib-innovation">θ</a> which minimises the cost function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*Tw26mQJlWxQBeDeiZb6ChQ.png" /></figure><p>We could expand the inner product:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/61/1*4yhfRkC38c8eOYFPop7JVw.png" /></figure><p>which would give us:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*r9viCmmsfs3JXDqGdF1z_w.png" /></figure><p>When we have an optimal <a href="https://medium.com/aib-innovation">θ</a>, the partial derivatives of J will be zero:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*9Ubr_98KsOYrdfqhC3IjTQ.png" /></figure><p>We can change the order of the summation and do some rearranging to obtain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*FMt8xpco2u387PJbsSvMkQ.png" /></figure><p>Now, we define the matrix <a href="https://medium.com/aib-innovation">A</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*qA4pLvUnV8Y8yMn_0EF5wA.png" /></figure><p>and we define the vector <a href="https://medium.com/aib-innovation">B</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*M4itpnXJgu5CWzIB08l-1Q.png" /></figure><p>Plugging those into equation 1, we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*5HNXPy6xVo-0dw_zZC4Xsg.png" /></figure><p>If we can invert the matrix <a href="https://medium.com/aib-innovation">A</a> then we can obtain <a href="https://medium.com/aib-innovation">θ</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*SIUeHzMso8nZqeZRDd1R5w.png" /></figure><p>If we look back at equation 2, we see that each vector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/1*KI320oaNP3S4FVnr0P6caw.png" /></figure><p>effectively has the same weighting.<br>We could rewrite equations 2 and 3 as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*pEpV5_9TCYW1PMOo0uH8ng.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*4HmQOIZV48sD-A4bXC1BHQ.png" /></figure><p>where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*o9qL-WTpqHJeLTI8anhfBQ.png" /></figure><p>However, suppose we wanted more recent values of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/1*KI320oaNP3S4FVnr0P6caw.png" /></figure><p>to have higher weighting than the older ones, then we could fix the ratio of consecutive weights:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/1*VNzoAzN06sXjZfMsFUoQ_g.png" /></figure><p>with λ&gt;0</p><p>So we would have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/1*B_wVncngkHEVV9IEV7rEDA.png" /></figure><p>Suppose want to find the speed at which the weight drops down to half the weight of the most recently added entry, then we would seek 𝜏 such that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/154/1*HjnfJ2CchofJl-HqYmFHpQ.gif" /></figure><p>which implies:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/189/1*cBD3xNxUZpyCzZBZRAxCMg.png" /></figure><p>so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*hg0Yv1DlOcL7rdftxBnFnw.png" /></figure><p>So, if we want the most recent data to have double the weighting of a point 1,000 rows back, then we would set: <br> 𝜏=1,000 <br>The parameter 𝜏 is something like a half-life.</p><p>If we wish to preserve the condition that the sum of the weights is 1,<br>then we can do the geometric sum and after a little algebra we find that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*SmySIty6Sqsn8Z7hZT3pag.gif" /></figure><p>We can substitute in equation 6 and then we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*a0SyqBYdzFAs1F-OF7j_Gw.png" /></figure><p>Now, for a given set of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*XHqxYToDp1g7ZzcNQkweiw.png" /></figure><p>with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*0U0J6uLu675MUIS09MI5sg.png" /></figure><p>we can evaluate <a href="https://medium.com/aib-innovation">A</a> and <a href="https://medium.com/aib-innovation">B</a>. <br>Since they were generated with T rows of data, we could label them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*QEFqjFz-AQFZvAoCocimDA.png" /></figure><p>Now suppose we have already evaluated</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*3TvdyWOA5fIuj-9oVMyz7w.png" /></figure><p>with T-1 rows of data and we want to introduce one more,<br>then we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*aNAGvPk__akGI2k7SheW8g.png" /></figure><p>and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*PA4NDnkNdu7ulNknrc0Tfg.png" /></figure><p>where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/45/1*9nxQ2w5bu60NphVc2XtNUg.png" /></figure><p>has been defined in equation 7.</p><p>So when we have evaluated <a href="https://medium.com/aib-innovation">A</a> and <a href="https://medium.com/aib-innovation">B</a> for a given set of data<br>and then later want to include the contribution from a new</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/1*7y_1kaDUdZOJLFIr0F7uYw.png" /></figure><p>we can amend the existing <a href="https://medium.com/aib-innovation">A</a> and <a href="https://medium.com/aib-innovation">B</a> using equations 8 and 9, without the need to retrieve all the past</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*XHqxYToDp1g7ZzcNQkweiw.png" /></figure><p>So the old x’s and y’s don’t need to be saved. Indeed they can be deleted.</p><p>When T is very large, say in the hundreds of millions, using this algorithm to continually update the machine learning results is rather efficient. Since we don’t need to keep retrieving the old data. We just keep the <a href="https://medium.com/aib-innovation">A</a> and <a href="https://medium.com/aib-innovation">B</a> up to date.</p><p>We can also deal with the case when: λ=0 <br>In other words all the data is equally weighted.<br>Then we find that equations 8 and 9 still hold true but equation 7 does not. In this case we find that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/124/1*4kAw63cfuzZsWG2MJZPZgQ.png" /></figure><p>We’ll leave it as a fun exercise for the reader to determine the conditions under which the matrix <a href="https://medium.com/aib-innovation">A</a> is invertible.</p><p>If you have any thoughts or comments please let us know below and feel free to hit the little heart recommend button!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11bb8057178a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aib-innovation/efficient-machine-learning-11bb8057178a">Efficient Machine Learning</a> was originally published in <a href="https://medium.com/aib-innovation">AIB Research &amp; Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>