<?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 Dinithi Jayakody on Medium]]></title>
        <description><![CDATA[Stories by Dinithi Jayakody on Medium]]></description>
        <link>https://medium.com/@dinithijayakody04?source=rss-9c2df082326b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6jkcd0fRbHyxYXD7XLYrMA.jpeg</url>
            <title>Stories by Dinithi Jayakody on Medium</title>
            <link>https://medium.com/@dinithijayakody04?source=rss-9c2df082326b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:24:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dinithijayakody04/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[SciPy for Quantitative Finance]]></title>
            <link>https://medium.com/@dinithijayakody04/scipy-for-quantitative-finance-b045e1a046dd?source=rss-9c2df082326b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b045e1a046dd</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[financial-modeling]]></category>
            <category><![CDATA[scipy]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dinithi Jayakody]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 08:27:28 GMT</pubDate>
            <atom:updated>2026-11-17T08:27:28.675Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Financial Mathematics to Numerical Computing</h3><p>How do quantitative researchers optimize portfolios, calibrate financial models, or solve the equations involved in derivative pricing?</p><p>These are common challenges in quantitative finance. Solving them takes more than just mathematical theory. It also requires solid numerical computing skills.</p><p>In quantitative finance, we look at financial markets through a mathematical lens. Probability, statistics, stochastic calculus, and optimization help us understand how markets behave. They also help us develop financial models. But knowing the math is not enough on its own. We also need efficient numerical methods and the right computational tools.</p><p>This is where SciPy comes in.</p><p>SciPy is an open-source Python library built on top of NumPy. NumPy is great for working with arrays and doing fast numerical operations. SciPy takes things further. It provides algorithms for optimization, root finding, numerical integration, statistical analysis, sparse matrix computations, Fourier transforms, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-9v6CM64spgfoAMbebErg.png" /></figure><p>If you’re getting started in quantitative finance, SciPy is one of the most useful libraries to learn.</p><h3>Why SciPy Matters in Quantitative Finance</h3><p><em>Portfolio Optimization</em></p><p>Portfolio managers often need to find the optimal asset allocation to minimize risk while achieving a target return. This usually involves certain constraints, such as portfolio weight limits, risk limits, and investment requirements. SciPy provides optimization algorithms that can help solve these problems.</p><p><em>Statistical Modeling</em></p><p>Financial returns do not always follow a normal distribution. In some cases, they exhibit characteristics such as skewness and heavy tails, which can make statistical modeling more challenging. SciPy provides probability distributions, parameter estimation methods, and statistical tests that help researchers analyze financial data and evaluate their assumptions.</p><p><em>Financial Models and Derivative Valuation</em></p><p>Financial modeling often involves mathematical problems such as nonlinear equations, differential equations, and integrals that may require numerical methods. Some of these can be solved analytically, but others require numerical techniques. SciPy provides numerical methods for solving or approximating solutions to these problems and implementing financial models in Python.</p><p><em>Time-Series and Signal Processing</em></p><p>Quantitative analysts often analyze historical prices, returns, and volatility. They try to identify patterns that may provide insights into market behavior. SciPy includes techniques for filtering, smoothing, and frequency analysis that can be helpful when analyzing financial time series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5sLl4UUoHXiH9x0irRfvg.png" /></figure><p>However, these techniques should be applied carefully. A pattern observed in historical data does not necessarily mean it will continue in the future. Researchers should also be aware of potential issues such as look-ahead bias and market noise.</p><h3>Exploring SciPy’s Key Subpackages</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5s6PRVnRS7zNrfF1VULwA.png" /><figcaption>subpackages for quantitative finance</figcaption></figure><h3>A Simple Optimization Example with SciPy</h3><p>Before looking at more complex financial optimization problems, let’s start with a simple mathematical example to understand how SciPy’s optimization tools work.</p><p>Suppose we want to minimize the following mathematical function:</p><p>f(x) = (x-3)² + 2</p><p>We can use SciPy to find the value of (x) that produces the minimum.</p><pre>from scipy.optimize import minimize<br><br>def objective(x):<br>    return (x[0] - 3)**2 + 2<br><br>result = minimize(objective, x0=[0.0])<br><br>print(&quot;Optimal x:&quot;, result.x[0])<br>print(&quot;Minimum value:&quot;, result.fun)</pre><pre>Optimal x: 3.0000000283269603<br>Minimum value: 2.000000000000001</pre><p>This is a simple mathematical example, but the same optimization framework can be extended to financial problems involving asset weights, risk constraints, and expected returns.</p><h3>Final Thoughts</h3><p>In this article, we’ve covered what SciPy is, why it matters in quantitative finance, and some of its most useful subpackages.</p><p>SciPy provides a wide range of numerical tools that can be useful in quantitative finance, from portfolio optimization to statistical modeling and derivative valuation. Understanding its subpackages is a good starting point for exploring how mathematical concepts can be implemented in Python.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b045e1a046dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Introduction to Why Quantum Computing Matters]]></title>
            <link>https://medium.com/@dinithijayakody04/a-simple-introduction-to-why-quantum-computing-matters-964e5da3bed6?source=rss-9c2df082326b------2</link>
            <guid isPermaLink="false">https://medium.com/p/964e5da3bed6</guid>
            <category><![CDATA[future-of-computing]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum-computer]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Dinithi Jayakody]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 14:17:18 GMT</pubDate>
            <atom:updated>2026-01-26T14:17:18.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EtND3mqhBC8SE4zxKhn6Fw.png" /></figure><blockquote>“Nature isn’t classical … and if you want to make a simulation of Nature, you’d better make it quantum mechanical …” <br>-Richard Feynman, American physicist, 1981</blockquote><p>We’re now at a point where the problems we want computers to solve (think new drugs, unbreakable encryption, or optimizing the entire supply chain) are getting complex. So, are our classical computers enough to solve those complex problems?</p><p>Feynman’s insight captures a crucial truth: If natural phenomena behave according to quantum mechanics, perhaps our computers should too.</p><p>So, this blog is here to break down why we need quantum computing.</p><h4>What is classical computing?</h4><p>Everything your phone, laptop, or cloud server does boils down to bits. A bit is super simple: it’s either a 0 or a 1. Billions of these tiny on/off switches flip around, follow strict logic rules (AND, OR, NOT), and somehow we get Netflix, ChatGPT, and cat memes.</p><p>Classical computers are predictable. Same input → same output, every single time. That reliability is why we trust them with our banking, space missions, and doom-scrolling.</p><h4>Where Classical Computing Fails</h4><p>For decades we just kept making transistors smaller and faster (thanks, Moore’s Law). Every couple of years, twice the power, half the size. It was magic… until it wasn’t. Now, as transistors shrink closer to atomic scale, they begin to face physical limitations of miniaturization. Another concern is whether classical computers can continue to solve increasingly complex problems as technology advances. So to face those problems, researchers began exploring quantum computing as the next major leap.</p><h4>What Is Quantum Computing?</h4><p>Instead of bits, quantum computers use qubits.</p><p>A regular bit is either 0 or 1. A qubit, however, can exist in a superposition. This is a special quantum state that’s a linear combination of 0 and 1 (mathematically written as α|0⟩ + β|1⟩, where α and β are complex numbers, and the squares of their magnitudes tell us the probabilities of measuring 0 or 1). Until we measure it, the qubit stays in this blended quantum possibility. It is not fixed as definitely 0 or definitely 1. In addition, qubits can also become entangled, meaning the state of one qubit can depend on the state of another. These properties allow quantum computers to process multiple possibilities at the same time. So instead of checking one possibility at a time like a classical computer, a quantum computer explores huge numbers of possibilities simultaneously. And also, quantum computers are probabilistic until measurements are performed. When it’s the right kind of problem, the speedup isn’t just big; it’s game-over big.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HW2nF0oMzGLoszvkphNmKA.png" /></figure><h4>A Brief Timeline of Quantum Computing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evhbX0bc4q5BuUUQXrNfpw.png" /><figcaption><a href="https://quantumpedia.uk/a-brief-history-of-quantum-computing-e0bbd05893d0">Source</a></figcaption></figure><h4>The Quantum Applications</h4><p>There are several areas where quantum computing could significantly impact the world.</p><ol><li><em>Optimization<br> </em><br>Finding the absolute best solution among billions or even trillions of options is really tough for regular computers. Think about picking the perfect mix for an investment portfolio, planning the quickest delivery routes for a whole city, or creating the best airline flight schedules. As the problem gets bigger, classical methods take forever and need huge amounts of computing power. They usually end up with a “pretty good” answer instead of the true best one because they can get stuck in local traps.<br>Thanks to special features like superposition and entanglement, quantum algorithms can explore enormous option spaces much more efficiently in the right situations.</li></ol><p>Here are two great examples:</p><ul><li>Grover’s algorithm gives a strong speedup for unstructured search problems. These are like trying to find one specific item in a giant unsorted list, and search is a key piece of many optimization challenges. A classical computer has to check up to N items in the worst case, which takes O(N) time. Grover’s algorithm finds the answer with high probability in roughly O(√N) time.</li><li>Quantum annealing is a different method that companies like D-Wave use. This approach works especially well for combinatorial optimization problems. Good examples include the famous Traveling Salesman Problem (finding the shortest route that visits a bunch of cities and returns home) and portfolio optimization (balancing risk and reward across many investments).</li></ul><p>When the problem fits, these quantum techniques do not just run a bit faster. They can solve things that were simply out of reach or would take way too long on normal computers.</p><p>2.<em> Cryptography</em></p><p>Shor’s algorithm can find the prime factors of an integer in polynomial time, a problem that classical computers take exponential time to solve.</p><p>3. <em>Drug Discovery &amp; Materials</em></p><p>Finally we can accurately simulate molecules and chemical reactions quantum mechanically. That means discovering new drugs, batteries, fertilizers, or superconductors orders of magnitude faster.</p><h4>Limitations</h4><p>Although quantum computing offers many advantages, it is still in its early stages, like the 1940s for classical computers.<br>One of the biggest challenges is noise, which is also called decoherence. This happens when outside things disturb the qubits. Things like tiny vibrations, electromagnetic signals, or even cosmic rays can interfere. As a result, the fragile quantum states break down quickly in just milliseconds. That causes many errors during calculations.<br>Qubits are extremely sensitive to external disturbances. To minimize these disturbances, quantum computers must operate at temperatures close to absolute zero, inside million-dollar refrigerators.</p><p>But every year the systems get larger, the qubits last longer, and the error rates drop. Ongoing research continues to push the technology forward, gradually bringing it closer to practical, real-world use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*A846DA31PhOf7LGmpEB6vQ.png" /></figure><h4>Conclusion</h4><p>Quantum computing isn’t about replacing your classical laptop; it’s about giving us a tool to solve problems that were previously physically impossible.</p><p>While the technology is complex and still maturing, the potential is clear:</p><ul><li>Classical computers will continue to handle 99% of our daily tasks with reliability and speed.</li><li>Quantum computers will be specialized tools for unlocking the secrets of the universe, securing our data, and optimizing our most complex systems.</li></ul><p>“The quantum era has begun, not to replace classical computing, but to expand what’s computationally possible.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=964e5da3bed6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>