<?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 Subin Alex on Medium]]></title>
        <description><![CDATA[Stories by Subin Alex on Medium]]></description>
        <link>https://medium.com/@alexkutty19?source=rss-40acf1fcb022------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3n3Nj-SIY43csGCG8vLweQ.jpeg</url>
            <title>Stories by Subin Alex on Medium</title>
            <link>https://medium.com/@alexkutty19?source=rss-40acf1fcb022------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:09:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexkutty19/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[From Amoeba to Airplanes: A Hypothetical Evolutionary Journey]]></title>
            <link>https://alexkutty19.medium.com/from-amoeba-to-airplanes-a-hypothetical-evolutionary-journey-d129b6b4a7f7?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/d129b6b4a7f7</guid>
            <category><![CDATA[random-thoughts]]></category>
            <category><![CDATA[ai-generated-content]]></category>
            <category><![CDATA[evolution]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sat, 25 Jan 2025 09:58:06 GMT</pubDate>
            <atom:updated>2025-01-25T09:58:06.368Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine starting life as an amoeba, a single-celled organism with no brain, no capacity for thought, and no awareness of the world beyond its immediate environment. How could such a simple being evolve over billions of years to eventually recognize and understand something as complex as an airplane? This thought experiment takes us on an evolutionary journey, from the simplest forms of life to advanced intelligence capable of understanding flight.</p><h3>Step 1: Reacting to the Environment</h3><p>As an amoeba, survival hinges on responding to stimuli in the environment — light, vibrations, or chemical gradients. Let’s suppose airplanes, even in their earliest forms, create disturbances in the environment: shadows from their flight, sound waves from their engines, or even chemical particles from their fuel. While the amoeba lacks any understanding, it might instinctively move toward or away from these changes, purely as a biological reaction.</p><p>This simple response to stimuli lays the groundwork for future evolution. Over generations, random mutations might make some amoebas slightly more sensitive to certain environmental changes. Those that benefit from these mutations — say, by avoiding predators or finding food more effectively — survive and reproduce, passing on these traits.</p><h3>Step 2: Developing Specialized Senses</h3><p>Fast forward millions of years. Through countless cycles of mutation and natural selection, the descendants of the amoeba have evolved into multi-cellular organisms with specialized sensory structures.</p><ul><li><strong>Light Sensitivity</strong>: Early organisms might develop basic eyespots to detect changes in light, such as the shadow of an airplane passing overhead.</li><li><strong>Vibration Detection</strong>: Some organisms might evolve structures to detect vibrations, allowing them to sense the distant rumble of airplane engines.</li><li><strong>Chemical Detection</strong>: Others might develop an acute sense of smell or taste, perhaps responding to trace amounts of chemicals in the air from airplane exhaust.</li></ul><p>These adaptations are not driven by a goal of understanding airplanes, but by the basic principle of survival. Organisms that can better detect and respond to their environment have an edge.</p><h3>Step 3: Multi-Cellular Complexity and Nervous Systems</h3><p>As organisms grow more complex, some evolve nervous systems to process sensory information. This leap enables them to respond to environmental stimuli more effectively and begin forming rudimentary associations. For example, a shadow overhead might be linked to a predator — or an airplane — prompting the organism to take shelter.</p><p>Through natural selection, nervous systems become more sophisticated, eventually leading to the emergence of brains. Now, these organisms can not only react but also process patterns and learn from their environment.</p><h3>Step 4: The Evolution of Intelligence</h3><p>Intelligence evolves as a result of competition, social interactions, and the need to solve complex problems. At this stage, descendants of the amoeba might now be mammals with highly developed brains, capable of curiosity and abstract thought. They begin to investigate their surroundings, observe patterns in the sky, and question the nature of the large, moving objects casting shadows or making sounds.</p><p>This curiosity paves the way for innovation. Early humans, for example, study birds and dream of flight. Over time, they create tools, build telescopes, and develop theories about aerodynamics. Eventually, they invent airplanes themselves, achieving powered flight and gaining full understanding of these machines.</p><h3>Step 5: Civilization and Airplane Recognition</h3><p>In the final stage, the evolution of intelligence culminates in the rise of civilizations capable of creating and comprehending advanced technology. Airplanes, which were once just environmental disturbances to an amoeba’s ancestors, are now understood in intricate detail. From their design and engineering to their role in transportation and global connectivity, airplanes become an integral part of modern life.</p><h3>A Journey of Billions of Years</h3><p>This journey from amoeba to airplanes spans billions of years of evolution, driven by random mutations, natural selection, and the gradual accumulation of complexity. It’s a testament to the power of evolution — a process that starts with simple, mindless reactions and leads to beings capable of curiosity, creativity, and innovation.</p><p>The amoeba’s descendants didn’t set out to understand airplanes. Instead, they adapted to survive, each step building on the last. Over time, these small changes led to extraordinary outcomes — the ability not just to recognize airplanes, but to design and fly them. It’s a humbling reminder of the vast possibilities contained within the simple spark of life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d129b6b4a7f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Neural Networks Find True Positive Alerts in Transaction Monitoring Systems]]></title>
            <link>https://alexkutty19.medium.com/how-neural-networks-find-true-positive-alerts-in-transaction-monitoring-systems-ea30b3f61ab7?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea30b3f61ab7</guid>
            <category><![CDATA[transaction-monitoring]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[aml-compliance]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sat, 24 Aug 2024 20:28:33 GMT</pubDate>
            <atom:updated>2024-08-24T20:28:33.833Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s financial institutions, transaction monitoring systems play a vital role in detecting suspicious activities. One of the biggest challenges these systems face is distinguishing between <strong>true positive (TP)</strong> alerts (legitimate suspicious activities) and <strong>false positives (FP)</strong> (normal activities wrongly flagged as suspicious). In this post, I’ll walk you through how <strong>neural networks</strong> help improve this classification process, making it easier to detect real threats while reducing unnecessary alerts.</p><p><strong>Step 1: The Challenge of Classifying Transaction Alerts</strong></p><p>Imagine you have a transaction flagged as potentially suspicious. The transaction monitoring system needs to classify this alert into one of three categories:</p><ul><li><strong>True Positive (TP)</strong> — A legitimate suspicious activity.</li><li><strong>False Positive (FP)</strong> — A normal activity that was wrongly flagged.</li><li><strong>False Negative (FN)</strong> — A suspicious activity that was missed.</li></ul><p>In a nutshell, the system’s job is to analyze a transaction’s details and decide whether it’s a true positive or just a false alarm.</p><p><strong>Step 2: How Neural Networks Process Transactions</strong></p><p>To tackle this problem, the transaction’s details (like amount, location, time, etc.) are fed into a <strong>neural network</strong>. But what exactly happens inside the neural network? Let’s break it down:</p><ul><li><strong>Input Layer</strong>: This layer takes the transaction data and prepares it for analysis. Think of it as the starting point where the transaction is broken down into various features.</li><li><strong>Hidden Layers</strong>: These layers are where the magic happens. The hidden layers contain small units called <strong>neurons</strong>, which process different parts of the input. Some neurons might look at patterns in the transaction amount, while others might focus on unusual locations or times.</li><li><strong>Final Layer (Output Layer)</strong>: After processing the transaction, the network gives <strong>three raw scores</strong>: one for each class (TP, FP, FN). These raw scores are just numbers and aren’t probabilities yet, but we’ll get there.</li></ul><p>For example, the raw outputs might look like this:</p><ul><li><strong>True Positive (TP): 1.5</strong></li><li><strong>False Positive (FP): -0.5</strong></li><li><strong>False Negative (FN): 2.5</strong></li></ul><p>At this point, the network has analyzed the transaction but hasn’t yet decided which class (TP, FP, or FN) the transaction belongs to. To make that decision, we need to convert these raw numbers into probabilities.</p><p><strong>Step 3: Softmax — Turning Raw Scores into Probabilities</strong></p><p>Raw scores don’t help much on their own because:</p><ul><li>They aren’t between <strong>0 and 1</strong> (which probabilities need to be).</li><li>They don’t add up to <strong>1</strong> (which probabilities must).</li></ul><p>This is where the <strong>softmax function</strong> comes in. It takes the raw scores and converts them into probabilities. After applying softmax, the raw scores (1.5, -0.5, 2.5) might look like this:</p><ul><li><strong>Probability of TP = 0.3</strong> (30% chance the alert is a true positive).</li><li><strong>Probability of FP = 0.1</strong> (10% chance the alert is a false positive).</li><li><strong>Probability of FN = 0.6</strong> (60% chance the alert is a false negative).</li></ul><p>Now we have probabilities, and the class with the highest probability will be the prediction.</p><p><strong>Step 4: Making the Prediction</strong></p><p>In this case, <strong>False Negative (FN)</strong> has the highest probability (0.6), meaning the system predicts that the transaction is likely to be a <strong>false negative</strong> — a suspicious activity that might have been missed. But how does the network learn to make better predictions over time?</p><p><strong>Step 5: Training the Neural Network</strong></p><p>The network doesn’t start off perfect. It needs to learn from its mistakes, and this happens during the <strong>training phase</strong>. Here’s how it works:</p><p><strong>a.Weights and Biases</strong>:</p><p>Every neuron has <strong>weights</strong> and <strong>biases</strong> that help it process data, but at the start, these are random. As a result, the network’s predictions are random too at first.</p><p><strong>b.Forward Pass</strong>:</p><p>The transaction goes through the network, and the raw scores for TP, FP, and FN are generated. Softmax converts these scores into probabilities, and the network makes a prediction.</p><p><strong>c.Loss Calculation</strong> (How Wrong Was the Prediction?):</p><p>The system compares its predicted probabilities with the <strong>true label</strong>. For example, if the true label is “True Positive” but the network predicted “False Negative” with high confidence, the system calculates how far off the prediction was. This is called the <strong>loss</strong>.</p><p><strong>d.Backpropagation</strong> (Fixing Mistakes):</p><p>The network adjusts its internal weights and biases using an algorithm called <strong>backpropagation</strong>. The goal is to reduce the loss so that next time, the system makes a better prediction.</p><p><strong>e.Updating the Network</strong>:</p><p>The network slowly learns by adjusting its weights over time, improving its ability to classify future transaction alerts correctly.</p><p><strong>Step 6: Iterative Improvement</strong></p><p>This process — where the network makes predictions, calculates its loss, and updates itself — happens repeatedly across many examples. Over time, the network becomes better at recognizing <strong>true positives</strong> while reducing <strong>false positives</strong> and <strong>false negatives</strong>.</p><p><strong>Recap: How the Process Works</strong></p><p>Here’s a quick recap of how the neural network classifies transaction alerts:</p><ul><li><strong>Input</strong>: The transaction’s details are fed into the network.</li><li><strong>Hidden Layers</strong>: The network processes the transaction features, looking for patterns that indicate suspicious activity.</li><li><strong>Raw Scores</strong>: The network produces raw scores for True Positive, False Positive, and False Negative.</li><li><strong>Softmax</strong>: These raw scores are converted into probabilities.</li><li><strong>Prediction</strong>: The class with the highest probability is the predicted outcome.</li><li><strong>Training</strong>: The network learns from its mistakes and gradually improves by adjusting its internal parameters (weights and biases).</li></ul><p><strong>Final Thoughts</strong></p><p>Neural networks are powerful tools for improving transaction monitoring systems. They help financial institutions reduce false positives, which is crucial for avoiding unnecessary manual investigations. At the same time, they enhance the system’s ability to detect true suspicious activities, making the process more efficient and accurate.</p><p>By understanding how these networks work behind the scenes, we can appreciate the complexity of identifying real threats in financial transactions, ensuring the system gets smarter and more effective over time.</p><p><strong>Have any questions or thoughts? Feel free to comment below or reach out! I’d love to hear your feedback on how neural networks are shaping the future of transaction monitoring systems.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea30b3f61ab7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling Univariate Regression: Understanding Least Squares and Inference]]></title>
            <link>https://alexkutty19.medium.com/unraveling-univariate-regression-understanding-least-squares-and-inference-861c2d234f56?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/861c2d234f56</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[regression-analysis]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 20:17:18 GMT</pubDate>
            <atom:updated>2024-08-18T20:17:18.042Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Univariate regression is one of the fundamental building blocks in machine learning. It’s all about predicting a single output y from an input x. However, to truly grasp its magic, we need to understand the mathematical machinery that drives it, and more importantly, how different concepts depend on each other to give us a clear picture.</p><p>In this article, I will guide you through the process of univariate regression, breaking down key concepts like least squares loss, inference, and the role of normal distributions, step by step.<br>1. What Is Univariate Regression?</p><p>At its core, univariate regression aims to predict a single value, y, from an input, x. However, instead of directly trying to guess y, we use a model represented by f(x, φ), where φ is a set of parameters that the model adjusts to make its predictions as close as possible to the actual values.</p><p>Here’s how it works:</p><p>Goal: Predict the value of y using input x by training a model.<br> Model: The model f(x, φ) predicts what we call the mean (μ) of a normal distribution over possible values for y.</p><p>But why a normal distribution? Let’s dig deeper.<br>2. The Role of Normal Distribution</p><p>A key idea in univariate regression is assuming that the output y is random and follows a normal distribution. A normal distribution is characterized by two things:</p><p>The mean (μ): This is where most of the values are expected to center.<br> The variance (σ²): This tells us how spread out the values are around the mean.</p><p>In univariate regression, the model f(x, φ) is responsible for predicting the mean (μ) of this distribution. The variance σ² is often assumed to be constant and does not depend on x.</p><p>This gives us a probabilistic framework where instead of predicting a single output, the model predicts a distribution of possible values for y, with μ = f(x, φ).<br>3. Least Squares Loss Function</p><p>Now that we have our model predicting the mean (μ) of the distribution, we need a way to measure how well the model is doing. This is where the loss function comes into play.</p><p>The starting point is the log-likelihood function, which measures how “likely” the actual observed values y are, given the model’s predictions. Mathematically, the log-likelihood is:</p><p>scss</p><p>L(φ) = — Σ log(Pr(yᵢ | f(xᵢ, φ), σ²))</p><p>However, we can simplify this expression step by step. First, by applying the logarithm, we can split the function into a constant term and a term involving the prediction error:</p><p>scss</p><p>L(φ) = Σ ((yᵢ — f(xᵢ, φ))²) / (2σ²)</p><p>Here’s the magic: Since the constant (1 / 2σ²) does not affect the optimization (it doesn’t depend on φ), we drop it, leaving us with the least squares loss function:</p><p>scss</p><p>L(φ) = Σ (yᵢ — f(xᵢ, φ))²</p><p>This is the formula most people know from linear regression. It simply measures the difference between the actual value yᵢ and the predicted value f(xᵢ, φ), and squares that difference to ensure all errors are positive.<br>4. The Inference Process: Finding the Best Prediction</p><p>Once we have the least squares loss function, the next step is inference. Inference is the process of making a prediction based on the model after it has been trained. But instead of directly predicting y, the model gives us a distribution over possible values of y.</p><p>In this case, the most likely value of y is the mean (μ) of the normal distribution. To formalize this, we use the maximum likelihood estimate:</p><p>scss</p><p>ŷ = argmax Pr(y | f(x, φ̂))</p><p>The symbol argmax means “find the value of y” that maximizes the probability. Since we are working with a normal distribution, we know that the maximum occurs at the mean (μ). Therefore, the best prediction ŷ is simply the model’s predicted mean:</p><p>scss</p><p>ŷ = f(x, φ̂)</p><p>This tells us that the most likely estimate for y, after the model has been trained, is exactly the mean predicted by the model.<br>5. Connecting the Dots: How Everything Fits Together</p><p>Let’s summarize the sequence of concepts and their dependencies:</p><p>Univariate regression aims to predict y from x, but it predicts the mean (μ) of a normal distribution over possible values of y.<br> The normal distribution is characterized by a mean μ and a variance σ². The model predicts the mean, while σ² is often assumed constant.<br> To train the model, we use the least squares loss function, which measures the difference between the predicted mean f(x, φ) and the actual values y.<br> When we make predictions, or perform inference, we take the most likely estimate, which is the mean of the predicted normal distribution.</p><p>By breaking down the process into these steps, we can see how the normal distribution, least squares loss function, and inference are all interconnected. The model predicts the mean, and our job is to adjust the parameters φ to minimize the errors between the predicted means and the actual values.</p><p><strong>Conclusion</strong></p><p>Univariate regression may sound simple at first, but its power lies in its ability to predict not just single values but probability distributions over possible outcomes. By understanding how each concept depends on the others — normal distributions, least squares, and inference — you can gain a much clearer picture of how these equations work and why they’re so effective.</p><p>The next time you see the familiar formula Σ (yᵢ — f(xᵢ, φ))², remember that it’s not just a formula for errors, but a result of probabilistic assumptions about how data behaves. And at its heart is the idea that our model is predicting the mean of a distribution, not just an outcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=861c2d234f56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Power of Percentages: Unveiling Surprising Insights]]></title>
            <link>https://alexkutty19.medium.com/the-hidden-power-of-percentages-unveiling-surprising-insights-1baa9aa992d7?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/1baa9aa992d7</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[percentage]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sun, 04 Aug 2024 08:49:35 GMT</pubDate>
            <atom:updated>2024-08-04T08:51:23.758Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to numbers, percentages might seem straightforward. But there’s a lot more to them than meets the eye. They hide fascinating and counterintuitive properties that can really change how we understand data, finance, and even daily decisions. Let’s dive into some of the lesser-known aspects of percentages and see their effects with some interesting data examples.</p><p><strong>The Paradox of Percentage Increase vs. Decrease</strong></p><p>Here’s an intriguing fact: a decrease followed by the same percentage increase doesn’t get you back to the original value. Check this out:</p><ul><li>Starting amount: $100</li><li>Decrease by 20%: 100×(1−0.20)=80</li><li>Increase the reduced amount by 20%: 80×(1+0.20)=96</li></ul><p>Using the same percentage for both decrease and increase, we end up with $96, not $100. This paradox shows why context matters when dealing with percentage changes.</p><p><strong>The Subtlety of Percentages of Percentages</strong></p><p>Calculating the percentage of a percentage often gives a smaller result than you might think. For example:</p><ul><li>What is 20% of 50%?</li><li>Calculation: 20%×50%=0.20×0.50=0.10, which is 10%.</li></ul><p>This counterintuitive outcome shows how percentages of percentages can significantly change what we expect.</p><p><strong>The Compounding Effect: Small Percentages, Big Impact</strong></p><p>Compounding is one of the most powerful concepts in finance. Small, consistent percentage increases can lead to substantial growth over time. Here’s an illustration:</p><ul><li>Initial amount: $1,000</li><li>Annual interest rate: 10%</li></ul><p>Year Amount Interest Earned 0 $1,000 $0 1 $1,100 $100 2 $1,210 $110 3 $1,331 $121 4 $1,464.10 $133.10</p><p>Each year, the interest earned grows thanks to compounding. After just four years, the amount has increased by nearly 50%.</p><p><strong>The Rule of 72: Estimating Doubling Time</strong></p><p>The Rule of 72 is a handy way to quickly estimate how long it’ll take for an investment to double at a given annual rate of return. Just divide 72 by the interest rate:</p><ul><li>Interest rate: 6%</li><li>Doubling time: 72÷6=12 years</li></ul><p>This rule offers a straightforward way to gauge the growth potential of investments.</p><p><strong>The Misleading Nature of Average Percentages</strong></p><p>Averages can be deceptive, especially with percentages. Consider these growth rates:</p><ul><li>Year 1: 10%</li><li>Year 2: 20%</li></ul><p>An incorrect average would be (10%+20%)/2=15%. However, the correct average, using the geometric mean, is:</p><p>(1+0.10)(1+0.20)−1≈14.89%</p><p>This discrepancy shows how the geometric mean provides a more accurate measure for average growth rates.</p><p><strong>The Impact of Percentage Error</strong></p><p>Understanding the difference between absolute and relative percentage changes is crucial. Here’s a simple example:</p><ul><li>Increase from 30 to 50:<br> — Absolute increase: 50−30=20<br> — Relative increase: 20/30×100%=66.67%</li><li>Decrease from 50 to 30:<br> — Absolute decrease: 50−30=20<br> — Relative decrease: 20/50×100%=40%</li></ul><p>Though the absolute change is the same, the relative percentages differ significantly, showing why context is key in percentage calculations.</p><p><strong>Conclusion</strong></p><p>Percentages are more than just simple fractions; they hold nuanced and powerful properties that can greatly influence our understanding of various scenarios. Whether it’s the paradox of percentage increase vs. decrease, the subtlety of percentages of percentages, or the impact of compounding, these insights remind us to approach percentages with a critical mind. By appreciating the hidden complexities of percentages, we can make more informed decisions in finance, data analysis, and beyond.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1baa9aa992d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Single Point Estimates in Machine Learning]]></title>
            <link>https://alexkutty19.medium.com/understanding-single-point-estimates-in-machine-learning-02e97e386eeb?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/02e97e386eeb</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 14:08:48 GMT</pubDate>
            <atom:updated>2024-08-03T14:08:48.732Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of machine learning, predictions often come in the form of single point estimates. But what does this mean, and how does it compare to predicting a distribution? Let’s explore this with a practical example.</p><h3>What is a Single Point Estimate?</h3><p>A single point estimate is a specific value predicted by a model as the output for a given input. It represents the model’s best guess or single prediction for the output without providing any information about the uncertainty or variability of this prediction.</p><p><strong>Example:</strong> Imagine you’re using a machine learning model to predict the price of a house based on its features (like size, location, number of rooms, etc.). If the model predicts that the price of a particular house is exactly $300,000, this $300,000 is the single point estimate. It is the model’s specific prediction for the house’s price based on the input features.</p><h3>Why Use a Single Point Estimate?</h3><p>Single point estimates are useful because they provide a clear and direct answer. They are simple and easy to understand, making them practical for many applications where you just need one predicted value.</p><h3>Limitation of Single Point Estimates</h3><p>The limitation is that single point estimates don’t convey any information about the uncertainty or confidence in the prediction. For example, if the model predicts $300,000, it doesn’t tell you how likely it is that the actual price will be close to $300,000 or how much it could vary.</p><h3>Extending to Distributions</h3><p>To address this limitation, you can extend the model to predict a distribution over possible outputs. Instead of just giving a single point estimate (like $300,000), the model might provide a mean price (e.g., $300,000) and a measure of uncertainty (e.g., a variance of $25,00⁰²), indicating that the actual price could reasonably fall within a range around the mean.</p><h3>Explaining the Concept of Distributions Over Outputs</h3><p>Let’s break down the concept of computing a distribution over outputs using a model:</p><ol><li><strong>Introduction to the Idea:</strong></li></ol><ul><li>The idea is to adapt a machine learning model to not just give a single prediction but to provide a probability distribution over possible outputs. This involves calculating the likelihood of different outcomes rather than just one.</li></ul><ol><li><strong>Simple Solution:</strong></li></ol><ul><li>The approach to achieve this is straightforward. You start by selecting an appropriate probability distribution that fits the nature of your output data. This is known as a parametric distribution because it is defined by a finite set of parameters.</li></ul><ol><li><strong>Choosing a Parametric Distribution:</strong></li></ol><ul><li>For example, if your outputs are real numbers, you might choose the normal distribution. This distribution is suitable for continuous data and is defined by two key parameters: the mean (which represents the central value) and the variance (which indicates the spread or uncertainty).</li></ul><ol><li><strong>Model Predicting Parameters:</strong></li></ol><ul><li>The machine learning model is then trained to predict the parameters of the chosen distribution. For the normal distribution, the model might predict the mean value based on the input data, while the variance might be kept as a constant or also predicted by the model.</li></ul><ol><li><strong>Illustrative Example:</strong></li></ol><ul><li>Suppose you’re predicting house prices. The model predicts that the mean price of a house is $300,000, and based on historical data, the variance is $25,00⁰². This means the actual price can vary around the mean, providing a range of likely values rather than just one fixed number.</li></ul><h3>Core Idea and Its Relation to Each Step</h3><p>The main concept here is to enhance the prediction capabilities of a machine learning model by including a measure of uncertainty. This is achieved through:</p><ol><li><strong>Defining the Problem:</strong> The task is to adapt a model to output a probability distribution.</li><li><strong>Simple Approach:</strong> The method involves selecting a suitable parametric distribution.</li><li><strong>Step-by-Step Process:</strong></li></ol><ul><li>Choose the right distribution.</li><li>Use the model to predict the distribution’s parameters.</li></ul><ol><li><strong>Concrete Example:</strong> The explanation is solidified by using the normal distribution for real-valued outputs.</li></ol><p>Each step builds on the previous one, guiding the reader through the practical process of moving from single point estimates to predictive distributions. This comprehensive approach helps in understanding not just the predicted value but also the confidence and variability around that prediction.</p><p>By understanding and utilizing distributions in predictions, we gain valuable insights into the confidence and potential variability of our models’ outputs. This approach leads to more informed and reliable decision-making in machine learning applications.</p><p>#MachineLearning #DataScience #PredictiveModeling</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02e97e386eeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing Shallow and Deep Neural Networks: A Detailed Analysis]]></title>
            <link>https://alexkutty19.medium.com/comparing-shallow-and-deep-neural-networks-a-detailed-analysis-c8b809c4c27c?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8b809c4c27c</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 12:47:30 GMT</pubDate>
            <atom:updated>2024-08-03T13:13:21.427Z</atom:updated>
            <content:encoded><![CDATA[<p>When designing neural networks, one common decision is whether to use a shallow or deep architecture. Both have their advantages and disadvantages, depending on the task at hand. In this post, we’ll compare two neural networks that map a scalar input x to a scalar output y: a shallow network with one hidden layer and a deep network with multiple hidden layers.</p><h3>The Neural Networks</h3><h4>Shallow Network</h4><ul><li><strong>Structure:</strong> Single hidden layer</li><li><strong>Hidden Units:</strong> 95</li></ul><h4>Deep Network</h4><ul><li><strong>Structure:</strong> 10 hidden layers</li><li><strong>Hidden Units per Layer:</strong> 5</li></ul><h3>Calculating Parameters</h3><h4>Shallow Network</h4><ol><li><strong>Input to Hidden Layer:</strong></li></ol><ul><li>Weights: 1×95=95</li><li>Biases: 95</li><li><strong>Total:</strong> 95+95=190</li></ul><ol><li><strong>Hidden Layer to Output Layer:</strong></li></ol><ul><li>Weights: 95×1=95</li><li>Biases: 1</li><li><strong>Total:</strong> 95+1=96</li></ul><ol><li><strong>Total Parameters:</strong><br> 190+96=286</li></ol><h4>Deep Network</h4><ol><li><strong>Input to First Hidden Layer:</strong></li></ol><ul><li>Weights: 1×5=5</li><li>Biases: 5</li><li><strong>Total:</strong> 5+5=10</li></ul><ol><li><strong>Hidden Layers to Hidden Layers:</strong></li></ol><ul><li>For 9 connections (between 10 layers):</li><li>Weights: 5×5=25</li><li>Biases: 5</li><li><strong>Total per connection:</strong> 25+5=30</li><li><strong>Total for all connections:</strong> 9×30=270</li></ul><ol><li><strong>Last Hidden Layer to Output Layer:</strong></li></ol><ul><li>Weights: 5×1=5</li><li>Biases: 1</li><li><strong>Total:</strong> 5+1=6</li></ul><ol><li><strong>Total Parameters:</strong><br> 10+270+6=286</li></ol><p>Both networks have the same number of parameters: 286.</p><h3>Linear Regions</h3><h4>Shallow Network</h4><ul><li><strong>Number of Linear Regions:</strong> 295 (a very large number)</li></ul><h4>Deep Network</h4><ul><li><strong>Number of Linear Regions:</strong> 5^10=9,765,625</li></ul><p>The deep network, despite having fewer units per layer, can create significantly more linear regions due to its multiple layers.</p><h3>Runtime Performance</h3><h4>Shallow Network</h4><ul><li>Likely to run faster due to fewer layers and operations per forward pass.</li></ul><h4>Deep Network</h4><ul><li>May be slower due to more layers and operations, despite having the same number of parameters.</li></ul><h3>Conclusion</h3><ul><li><strong>Shallow Network:</strong> Runs faster but may be limited in modeling complex functions.</li><li><strong>Deep Network:</strong> More powerful in terms of creating linear regions and modeling complexity but may run slower.</li></ul><p>In summary, the choice between a shallow and deep neural network depends on the specific requirements of your task. If speed is crucial, a shallow network might be preferable. If modeling complex patterns is more important, a deep network could be the better choice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8b809c4c27c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comprehensive Guide to Constructing Piecewise Linear Functions Using Hidden Units with ReLU…]]></title>
            <link>https://alexkutty19.medium.com/comprehensive-guide-to-constructing-piecewise-linear-functions-using-hidden-units-with-relu-90a46633b1f5?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a46633b1f5</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 09:47:47 GMT</pubDate>
            <atom:updated>2024-08-03T09:55:41.843Z</atom:updated>
            <content:encoded><![CDATA[<h3>Comprehensive Guide to Constructing Piecewise Linear Functions Using Hidden Units with ReLU Activations</h3><h3>Overview</h3><p>This guide summarizes the concepts and problem-solving steps involved in constructing piecewise linear functions using hidden units with ReLU activations. It includes detailed thought processes, mathematical formulations and key insights.</p><h3>Key Concepts</h3><p>1. Piecewise Linear Functions:<br> — Functions composed of multiple linear segments.<br> — Each segment is defined over a specific interval and has its own slope.<br> 2. ReLU Activation:<br> — Rectified Linear Unit (ReLU) is defined as a(x) = max(0, x).<br> — It outputs zero for negative inputs and increases linearly for non-negative inputs.<br> 3. Hidden Units:<br> — Used in neural networks to transform input data.<br> — Each hidden unit applies a ReLU activation to a linear combination of inputs.</p><h3>Creating a Function with Four Linear Regions</h3><h3>Given Information</h3><p>- Slopes: [1, 1, -1]<br> — Joints: [1/6, 2/6, 4/6]</p><h3>Solution Steps</h3><p>1. Define Hidden Unit Activations:<br> — h_1(x) = max(0, x — 1/6)<br> — h_2(x) = max(0, x — 2/6)<br> — h_3(x) = max(0, 4/6 — x)<br> 2. Combine Activations:<br> — The final function is a linear combination of hidden unit activations:<br> f(x) = φ_0 + φ_1 h_1(x) + φ_2 h_2(x) + φ_3 h_3(x)<br> 3. Determine Coefficients:<br> — Solve for φ_0, φ_1, φ_2, φ_3 to ensure the function oscillates correctly.</p><h3>Creating Functions with Three and Five Linear Regions</h3><h3>Part 1: Three Linear Regions Using Two Hidden Units</h3><p>1. Define Hidden Unit Activations:<br> — h_1(x) = max(0, x — p)<br> — h_2(x) = max(0, x — q)<br> 2. Combine Activations:<br> f(x) = φ_0 + φ_1 h_1(x) + φ_2 h_2(x)<br> 3. Intervals and Behavior:<br> — For x &lt; p:<br> f(x) = φ_0<br> Both h_1(x) and h_2(x) are zero because x is less than p and q.<br> — For p ≤ x &lt; q:<br> f(x) = φ_0 + φ_1 (x — p)<br> Here, h_1(x) is active and h_2(x) is still zero.<br> — For x ≥ q:<br> f(x) = φ_0 + φ_1 (x — p) + φ_2 (x — q)<br> Here, both h_1(x) and h_2(x) are active.<br> 4. Set φ_1 to Ensure Correct Slope:<br> φ_1 = 1 / (q — p)<br> This choice ensures that the function f(x) will increase linearly from 0 to 1 as x goes from p to q.<br> 5. Graphical Representation:<br> — Visualize the function to confirm the behavior.</p><h3>Part 2: Five Linear Regions Using Four Hidden Units</h3><p>1. Define More Hidden Units:<br> — Additional hidden units for more joints.<br> 2. Generalize the Process:<br> — Similar steps to define and combine activations.</p><h3>Correcting for True Oscillatory Behavior</h3><h3>Insight: Resetting Activations</h3><p>1. Adjust Piecewise Definitions:<br> — Ensure hidden unit activations reset at their respective points.<br> 2. Define Correct Piecewise Functions:<br> — h_1(x) = <br> — 0 if x &lt; p<br> — x — p if p ≤ x &lt; q<br> — 0 if x ≥ q<br> — h_2(x) = <br> — 0 if x &lt; q<br> — x — q if x ≥ q<br> 3. Combine Correctly:<br> f(x) = φ_0 + φ_1 h_1(x) + φ_2 h_2(x)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a46633b1f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open loop and closed loop cards]]></title>
            <link>https://alexkutty19.medium.com/open-loop-and-closed-loop-cards-2466881b72b5?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/2466881b72b5</guid>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 16:35:47 GMT</pubDate>
            <atom:updated>2024-03-04T16:35:47.566Z</atom:updated>
            <content:encoded><![CDATA[<p>Open loop and closed loop cards</p><p>Open loop cards can be used with any merchant.</p><p>Closed loop cards can be only used with specific merchants.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2466881b72b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Business day configuration in sas aml]]></title>
            <link>https://alexkutty19.medium.com/business-day-configuration-in-sas-aml-805e25c74599?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/805e25c74599</guid>
            <category><![CDATA[anti-money-laundering]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[finance-and-banking]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Thu, 22 Feb 2024 15:02:25 GMT</pubDate>
            <atom:updated>2024-02-22T15:03:48.279Z</atom:updated>
            <content:encoded><![CDATA[<p>Business day configuration in sas aml</p><p>Fsk job calendar non-business day if configured as -1</p><p>p100xx_begin_date calculation has usage of compiled date_num format , which will skip the weekends which are non business days for banks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=805e25c74599" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy to read an ArXiv]]></title>
            <link>https://alexkutty19.medium.com/easy-to-read-an-arxiv-e8261c1639dd?source=rss-40acf1fcb022------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8261c1639dd</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[arxiv]]></category>
            <dc:creator><![CDATA[Subin Alex]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 20:37:31 GMT</pubDate>
            <atom:updated>2024-02-11T20:37:31.512Z</atom:updated>
            <content:encoded><![CDATA[<p>Easy to read an ArXiv</p><p>Download a paper and give it to chatgpt . Easy peasy to understand atleast 80% of PhD alien language and notorious math Equations with Greek alphabets :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8261c1639dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>