<?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 sandeep rawat on Medium]]></title>
        <description><![CDATA[Stories by sandeep rawat on Medium]]></description>
        <link>https://medium.com/@srkec2007?source=rss-37ba24e64896------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VhTP5Zq3dAnR_D1Y.jpg</url>
            <title>Stories by sandeep rawat on Medium</title>
            <link>https://medium.com/@srkec2007?source=rss-37ba24e64896------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 03:47:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@srkec2007/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[Your Test Came Back Positive. Are You Really Sick? A simple introduction to Bayes’ Theorem]]></title>
            <link>https://medium.com/@srkec2007/your-test-came-back-positive-are-you-really-sick-a-simple-introduction-to-bayes-theorem-384b29f65a94?source=rss-37ba24e64896------2</link>
            <guid isPermaLink="false">https://medium.com/p/384b29f65a94</guid>
            <category><![CDATA[bayes-theorem]]></category>
            <dc:creator><![CDATA[sandeep rawat]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 05:19:21 GMT</pubDate>
            <atom:updated>2026-10-27T05:19:21.405Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. The story</h3><p>Picture this. A brand-new disease breaks out. We’ll call it <strong>Covid-2</strong>. There is already a confirmatory test for it: a blood test, which we’ll call the <strong>Covid-2_bloodtest</strong>. It is very precise, but it is expensive and slow, so it can’t be used to screen the whole population.</p><p>So scientists rush to build a cheap initial screening test, the <strong>Covid2_screening_test</strong>. Like every medical test, it isn’t perfect. Sometimes it says “positive” when the person is healthy (a <strong>false positive</strong>). Sometimes it says “negative” when the person really has the disease (a <strong>false negative</strong>)..</p><p>The screening test is approved and sent out to clinics. One morning a patient walks in with a fever and a cough. The doctor runs the Covid2_screening_test and it comes back <strong>positive</strong></p><p>The patient asks the obvious question:</p><blockquote><em>“Doctor, how sure are you that I actually have Covid-2?”</em></blockquote><p>Most people, and quite a few professionals too, would answer, “if screening test is 95% accurate, so you’re 95% likely to have it.”</p><p>That answer is usually <strong>wrong</strong>, and sometimes very wrong. Working out the right answer is exactly what <strong>Bayes’ Theorem</strong> is for</p><h3>2. What the test makers tell us</h3><p>When the screening test is developed, it is tried on people whose true condition is already known, because they have also taken the expensive Covid-2_bloodtest. That gives us two key numbers.</p><p><strong>Plain meaning</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*Bzx3Y9s4rnU6O4SrBbRadw.png" /></figure><p>From these two numbers we can work out the error rates:</p><ul><li><strong>False negative rate</strong> = 100% − 95% = <strong>5%</strong> (test misses to identity sick )</li><li><strong>False positive rate</strong> = 100% − 95% = <strong>5%</strong> (healthy people wrongly marked)</li></ul><p>Now notice something important. Both numbers answer the question:</p><blockquote><strong><em>“If</em></strong><em> you are sick (confirmed with blood test), what will the screening test say?”</em></blockquote><p>The patient is asking the <strong>reverse</strong> question:</p><blockquote><em>“The test said positive. </em><strong><em>So</em></strong><em> am I sick?”</em></blockquote><p>These two questions are not the same, and mixing them up is one of the most common mistakes in reasoning about probability.</p><p>In math notation:</p><ul><li>What we <strong>know</strong>: P(Positive | Disease) = 0.95</li><li>What we <strong>want</strong>: P(Disease | Positive) = ?</li></ul><p>(Read the vertical bar “|” as “given that”.)</p><p><strong>Bayes’ Theorem is the bridge that turns the first into the second.</strong></p><h3>3. The missing ingredient: how common is the disease?</h3><p>To flip the question around, we need one more piece of information that people tend to forget:</p><blockquote><strong><em>Before the screening test was done, how likely was it that this person had Covid-2?</em></strong></blockquote><p>This is called the <strong>prior probability</strong>, or the <strong>base rate</strong>. If you’re testing the whole population, it is roughly the <strong>prevalence</strong>, meaning the share of people who currently have the disease.</p><p>Why does it matter? Because a test doesn’t just catch sick people. It also produces false alarms among healthy people. When the disease is <strong>rare</strong>, healthy people vastly outnumber sick ones, so even a small false-alarm rate can produce <strong>more false positives than true positives</strong>.</p><h3>4. Let’s just count people (no formulas yet)</h3><p>Forget the equations for a moment and imagine <strong>10,000 people</strong> from the general public. Assume <strong>1%</strong> of them actually have Covid-2.</p><p><strong>Step 1: Split into sick and healthy</strong></p><ul><li>Sick: 1% of 10,000 = <strong>100 people</strong></li><li>Healthy: <strong>9,900 people</strong></li></ul><p><strong>Step 2: Run the screening test on everyone</strong></p><ul><li>Among the 100 sick people, the test catches 95% → <strong>95 true positives</strong> (and misses 5)</li><li>Among the 9,900 healthy people, 5% are flagged by mistake → <strong>495 false positives</strong></li></ul><p><strong>Step 3: Look only at the people who tested positive</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*ihYOFRE9mpTwQFACxCf9cg.png" /></figure><p>So 590 people got a positive result, and only 95 of them are really sick.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*KfKQ5vJtBCkPLwiu5aOUzA.png" /></figure><p><strong>A “95% accurate” test, and a positive result still means only about a 16% chance of having the disease.</strong></p><p>This surprises nearly everyone. It isn’t a trick; it comes straight from the fact that healthy people outnumber sick people 99 to 1.</p><blockquote><em>In machine-learning language, this 16% is the test’s </em><strong><em>Precision</em></strong><em> (also called </em>Positive Predictive Value<em>): of everything flagged positive, how much is truly positive.</em></blockquote><blockquote><strong>You can stop reading here.</strong> At this point the intuition is in place. If you don’t want to go into formulas for calculating the exact chance of being sick after a positive test, there’s no need to read further. You have already used Bayes’ Theorem behind the scenes: the table above <em>is</em> Bayes’ Theorem, done by manual counting. Rest of the details are pretty much same &amp; repeat of available text</blockquote><h3>5. Now the formula (it’s just the counting, written neatly)</h3><p>Bayes’ Theorem says:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*niMdgrfuKaBoYrwUU0tGnA.png" /></figure><p>Where:</p><ul><li><strong>P(D)</strong> = prior: chance of disease before testing (say 1%)</li><li><strong>P(+ | D)</strong> = sensitivity: chance of a positive if sick (95%)</li><li><strong>P(+)</strong> = overall chance of a positive result, from <strong>either</strong> group:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*AzTyj59FGjdqUgHqwPMyxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*11WS4b2l01lhjwp_pL_vsA.png" /></figure><p>That’s the same <strong>16%</strong> we got by counting. The formula is just a compact version of the table.</p><p>In plain words:</p><blockquote><strong><em>Updated belief = (How well the evidence fits the hypothesis × What you believed before) ÷ (How common the evidence is overall)</em></strong></blockquote><h3>6. But our patient had symptoms. That changes everything.</h3><p>Back to the clinic. The patient didn’t come in off the street at random. They came in <strong>with fever and cough during an outbreak</strong>. That alone makes Covid-2 far more likely <em>before</em> any test is done.</p><p>Suppose doctors know that <strong>30%</strong> of people showing these symptoms during the outbreak actually have Covid-2. Same test, new prior:</p><p>Test PositiveTest NegativeTotal<strong>Actually sick</strong> (30%)2,8501503,000<strong>Actually healthy</strong> (70%)3506,6507,000<strong>Total3,200</strong>6,80010,000</p><p>$$P(D \mid +) = \frac{2850}{3200} \approx \mathbf{89\%}$$</p><p><strong>Same test, same positive result: 16% for a random person, 89% for a symptomatic patient.</strong></p><p>This is the heart of Bayes’ Theorem. <strong>A test result doesn’t give you an answer on its own. It updates what you already believed.</strong></p><h3>7. How the base rate drives the answer</h3><p>Same test (95% sensitivity, 95% specificity), different starting probabilities:</p><p>Prior chance of diseaseChance of disease after a positive test0.1% (very rare, mass screening)~1.9%1%~16%5%50%10%~68%30% (symptomatic patient)~89%50%95%</p><p><strong>Lesson:</strong> with a rare disease, positive results are mostly false alarms. When the disease is common in the group being tested, the same positive result is much more trustworthy.</p><h3>8. Which matters more: fewer false positives or fewer false negatives?</h3><p>Keep the prevalence at 1% and improve only the <strong>specificity</strong> (fewer false alarms):</p><p>SpecificityFalse positive rateChance of disease after a positive95%5%~16%99%1%~49%99.9%0.1%~91%</p><p>When a disease is rare, <strong>cutting false positives</strong> is what makes a positive result believable. This is why mass-screening tests need extremely high specificity.</p><h3>9. What about a negative result?</h3><p>Bayes works just as well in the other direction. For our symptomatic patient (30% prior), what if the test had come back <strong>negative</strong>?</p><p>From the table in Section 6:</p><p>$$P(D \mid -) = \frac{150}{6800} \approx 2.2\%$$</p><p>So a negative result drops the risk from 30% to about 2%. That’s reassuring, but it isn’t zero, and that’s why doctors sometimes say, “If symptoms continue, come back and retest.”</p><h3>10. Testing again: Bayes as a learning loop</h3><p>What if a random person tests positive (now 16%) and takes a <strong>second</strong> test, which is also positive?</p><p>The trick is that <strong>today’s answer becomes tomorrow’s prior</strong>:</p><p>$$P(D \mid ++) = \frac{0.95 \times 0.161}{(0.95 \times 0.161) + (0.05 \times 0.839)} \approx \mathbf{78\%}$$</p><p>One positive took them from 1% to 16%. A second took them from 16% to 78%. Each piece of evidence moves the belief further.</p><p><em>(This assumes the two test results are independent. If the test keeps making the same mistake for a given person, repeating it adds less information. A different kind of confirmatory test, like PCR after a rapid test, is better.)</em></p><p>This is exactly how real testing works: a <strong>cheap screening test first</strong>, then an <strong>expensive, more accurate confirmatory test</strong> for those who screen positive. Bayes explains why that strategy makes sense.</p><h3>11. So why Bayes’ Theorem? What can it do?</h3><p><strong>1. It answers the question people actually care about.</strong> Test makers report “If sick → chance of positive.” Patients and doctors need “If positive → chance of sick.” Bayes converts one into the other.</p><p><strong>2. It forces us to consider the base rate.</strong> It protects us from the <strong>base-rate fallacy</strong>, which means judging the evidence while ignoring how common or rare the condition is.</p><p><strong>3. It combines evidence with context.</strong> Symptoms, exposure history, local outbreak levels, and test results all feed into one consistent number.</p><p><strong>4. It supports updating step by step.</strong> Each new result updates the belief, and the posterior becomes the next prior. That’s how science and medicine learn.</p><p><strong>5. It guides public-health decisions.</strong> It helps decide <strong>who</strong> to test (testing symptomatic people gives more reliable positives), <strong>which</strong> tests to use for screening versus confirmation, and <strong>how many</strong> follow-up tests to run.</p><p><strong>6. It’s everywhere beyond medicine.</strong> Spam filters, fraud detection, courtroom evidence, weather forecasts, and machine-learning classifiers all use the same logic.</p><h3>12. A few honest caveats</h3><ul><li><strong>The prior is often an estimate.</strong> At the start of a new outbreak nobody knows the true prevalence, so the answer from Bayes is only as good as that estimate.</li><li><strong>Sensitivity and specificity can vary.</strong> They can change with the stage of illness, the quality of the sample (a poorly taken swab, for example), and the lab doing the test.</li><li><strong>Repeated tests may not be independent.</strong> Treat a “second positive” with care if it’s the same test on the same sample type.</li></ul><p>Even with these limits, Bayes gives a <strong>clear and honest</strong> way to reason under uncertainty, which is far better than taking “95% accurate” at face value.</p><h3>13. One-line takeaway</h3><blockquote><strong><em>A test result never speaks alone. It updates what you already believed. Bayes’ Theorem tells you by exactly how much.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384b29f65a94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Past Is Your Foundation, Not Your Boundary]]></title>
            <link>https://medium.com/@srkec2007/your-past-is-your-foundation-not-your-boundary-caee186a6989?source=rss-37ba24e64896------2</link>
            <guid isPermaLink="false">https://medium.com/p/caee186a6989</guid>
            <category><![CDATA[mind-power]]></category>
            <category><![CDATA[curiosity]]></category>
            <dc:creator><![CDATA[sandeep rawat]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 05:26:01 GMT</pubDate>
            <atom:updated>2026-08-12T05:36:55.745Z</atom:updated>
            <content:encoded><![CDATA[<p>The assumed path ,</p><p>We study a subject → get a degree → choose a profession → work within that field → become good at it.</p><p>And somewhere along the way, we unconsciously start believing that our education defines the boundaries of what we are allowed to explore.</p><p>But some of the most interesting discoveries in science came from people who didn’t think that way.</p><p>They were not necessarily asking, <em>“What should someone with my qualification study?”</em></p><p>They were asking a much simpler question:</p><p><em>“This is interesting.<br>Why does this happen?”</em></p><h3>Lets take some examples of the past …..why we should think</h3><p>William Gilbert was trained as a physician, but he didn’t think:</p><blockquote>“I’m a doctor, therefore I should only study medicine.”</blockquote><p>He saw something in nature that he didn’t understand and simply followed the question.</p><p>His path was roughly:</p><p>Medicine → curiosity about magnets → experiments → Earth is magnetic → De Magnete (1600)</p><p>And this pattern repeats throughout the history of science.</p><h3>Faraday is an even more dramatic example</h3><p>Faraday didn’t come from an elite academic background. He was the son of a blacksmith and worked as a bookbinder’s apprentice.</p><p>While binding scientific books, he became fascinated by what he was reading.</p><p>He eventually became one of the greatest experimental scientists ever.</p><p>He didn’t start with:</p><blockquote>“I have the right qualification to study electromagnetism.”</blockquote><p>He started with:</p><blockquote>“That’s interesting. What happens if I try this?”</blockquote><h3>And then there’s Maxwell.</h3><p>Maxwell had the mathematical background, but his breakthrough came partly because he was willing to take Faraday’s very different, intuitive picture of “lines of force” seriously and ask:</p><blockquote>“Can I express this physically intuitive idea mathematically?”</blockquote><h3>That’s a recurring pattern</h3><p>The history isn’t really:</p><p>Degree → Job → Discover something inside your specialization</p><p>It’s often:</p><p>Curiosity → Question → Experiment → Unexpected result → New question → Theory</p><p>And sometimes the most important question comes from outside someone’s formal profession.</p><h3>In short</h3><p>Curiosity has no job description.</p><p>So don’t let your past limit the questions your mind is willing to ask.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caee186a6989" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Mathematics of Hope:What the Bell Curve Teaches Us About Life]]></title>
            <link>https://medium.com/@srkec2007/the-mathematics-of-hope-what-the-bell-curve-teaches-us-about-life-00f8fc38cf90?source=rss-37ba24e64896------2</link>
            <guid isPermaLink="false">https://medium.com/p/00f8fc38cf90</guid>
            <category><![CDATA[hope]]></category>
            <category><![CDATA[bell-curve-of-life]]></category>
            <dc:creator><![CDATA[sandeep rawat]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 03:24:01 GMT</pubDate>
            <atom:updated>2026-07-23T03:29:56.947Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>What the Bell Curve Teaches Us About Life</em></strong></p><p><em>“This too shall pass.”</em><br> For centuries, philosophers, saints, and poets have repeated these words. Interestingly, modern statistics offers a beautiful analogy that helps us understand why this wisdom resonates so deeply.</p><p><strong>Introduction</strong></p><p>Life often feels unfair.</p><p>Some people appear to have endless success, while others seem surrounded by hardship. Some enjoy years of happiness, while others struggle through seasons of pain.</p><p>Yet, if we step back and observe life over decades instead of days, a different picture begins to emerge.</p><p>No one remains permanently at the top. No one remains permanently at the bottom.Life has a remarkable tendency to change.</p><p>Statistics cannot prove this philosophical truth, but one of its most beautiful ideas — the <strong>bell curve</strong> — provides a powerful way to think about it.</p><p><strong>Every Life Is Built One Event at a Time</strong></p><p>Imagine that every experience in your life carries an emotional value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*TF7QLsBy822qSXSzuOwFfA.jpeg" /></figure><p>A lifetime is simply thousands of these moments added together.</p><p>Some are joyful. Some are painful. Most are ordinary. No single event defines a life.</p><p>It is the accumulation of countless experiences that shapes who we become.</p><p><strong>Why the Bell Curve?</strong></p><p>One of the most remarkable discoveries in statistics is that when many independent influences combine, the resulting outcomes often form a <strong>bell-shaped distribution</strong>.</p><p>Most observations gather around the middle.</p><p>Extreme outcomes become increasingly rare.</p><p>The bell curve appears everywhere:</p><ul><li>Human height</li><li>Intelligence</li><li>Measurement errors</li><li>Natural variations</li><li>Biological characteristics</li></ul><p>Perhaps our emotional lives exhibit a similar rhythm.</p><p>Not because mathematics proves it…</p><p>…but because life itself seems to follow the same pattern.</p><p><strong>A Different Way to Look at Happiness</strong></p><p>The bell curve does <strong>not</strong> say that every person experiences exactly the same amount of happiness or suffering.</p><p>Life is undeniably unequal. Some people face greater hardships.</p><p>Some are born into greater privilege. Some carry burdens that others never experience.</p><p><strong>Yet there is another truth.</strong></p><p>Very few lives consist of uninterrupted joy. Very few lives consist of uninterrupted sorrow.</p><p>Most lives become a mixture of both.Success is followed by failure.</p><p><strong>Loss is followed by healing.</strong></p><p>Hope follows despair. Challenges follow comfort. Life keeps moving.</p><p><strong>Two Lessons Hidden Inside the Bell Curve</strong></p><p><strong>When Life Is Beautiful</strong></p><p>If today is one of your happiest days…</p><p>Pause.</p><p>Be grateful.</p><p>Do not mistake today’s success for permanence.</p><p>The promotion will become normal.</p><p>The applause will fade.</p><p>The excitement will settle.</p><p>The very reason happiness feels beautiful is because it is temporary.</p><p>Gratitude is a far wiser response than pride.</p><p><strong>When Life Feels Heavy</strong></p><p>If today is one of your darkest days…</p><p>Remember this.</p><p>Pain also changes.</p><p>No winter has lasted forever.</p><p>No storm has continued endlessly.</p><p>History is filled with people whose greatest chapters began immediately after their most difficult ones.</p><p>Hope is not naïve.</p><p>Hope is an understanding that life is dynamic.</p><p><strong>Time Is the Great Equalizer</strong></p><p>Time humbles everyone.</p><p>It softens victories.</p><p>It heals wounds.</p><p>It changes relationships.</p><p>It changes ambitions.</p><p>It changes people.</p><p>Not because everyone receives identical fortunes…</p><p>But because no state remains permanent.</p><p>Everything moves.</p><p><strong>The Wisdom Hidden in Statistics</strong></p><p>Perhaps this is why nearly every wisdom tradition teaches the same lesson.</p><p>Be humble in success.</p><p>Be patient in suffering.</p><p>Neither joy nor sorrow belongs to us forever.</p><p>They are both travelers.</p><p>We merely host them for a while.</p><p><strong>Conclusion</strong></p><p>The bell curve is more than a graph.</p><p><strong>It is a reminder.</strong></p><p>A reminder that life’s extremes are rarely permanent.</p><p>That today’s happiness deserves gratitude.</p><p>That today’s suffering deserves patience.</p><p>Mathematics does not prove this truth.</p><p>It simply offers a beautiful metaphor for something humanity has known for thousands of years.</p><p>So when happiness visits, welcome it with gratitude.</p><p>When sorrow visits, welcome it with courage.</p><p>Because both have something in common.</p><p><strong>Neither came to stay.</strong></p><p><strong>“The secret of life is not to chase permanent happiness or fear permanent sorrow. The secret is to remember that life, like every beautiful curve in nature, is always moving toward balance.”</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00f8fc38cf90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Rule-Based Systems vs AI/ML: Solving Problem with Right tool, Not the Flashiest One]]></title>
            <link>https://medium.com/@srkec2007/rule-based-systems-vs-ai-ml-solving-problem-with-right-tool-not-the-flashiest-one-376009e251fc?source=rss-37ba24e64896------2</link>
            <guid isPermaLink="false">https://medium.com/p/376009e251fc</guid>
            <dc:creator><![CDATA[sandeep rawat]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 10:36:06 GMT</pubDate>
            <atom:updated>2026-08-03T07:48:57.038Z</atom:updated>
            <content:encoded><![CDATA[<p>In recent years, we’ve seen a massive trend where every solution seems to carry the AI/ML label — even when no real machine learning is involved. There’s a growing perception that unless your system includes artificial intelligence, it’s outdated or inferior. But is that really true?</p><p>The core goal of any technology should be <strong>problem solving</strong> — not technology for technology’s sake. In this article, I’ll break down the difference between rule-based systems and AI/ML-based systems using simple logic and examples. I’m not an AI/ML expert — just someone who wants to think clearly about when machine learning actually adds value. Please feel free to correct me in comment section</p><p><strong>🤖 AI/ML ≠ Always Better</strong></p><p>A solution labeled “AI/ML-based” isn’t automatically better or smarter. Sometimes a <strong>simple rule-based system</strong>, designed by domain experts, does the job more accurately, efficiently, and transparently.</p><p>In fact, if a rule-based system handles both current and foreseeable future scenarios effectively, it’s a sign of <strong>deep domain understanding</strong>. You’re able to foresee edge cases, codify logic, and handle exceptions. There’s no need to complicate things with machine learning just for the sake of trendiness.</p><p><strong>🧱 When Rule-Based Systems Work Well</strong></p><p>Let’s say we’re trying to estimate the cost C of an article based on two variables. A group of mathematicians has already established a linear relationship involving these two variables:</p><ul><li>Availability A</li><li>Demand D</li></ul><p>We might define this as a function:</p><p>C = F(A, D)<br>we know this relationship well — say it’s linear — we use a fixed formula:</p><p>C = p × A + q × D<br>Where p and q are parameters that can vary by region. For example:</p><ul><li>In USA: p = 2, q = 4</li><li>In India: p = 1, q = 4</li></ul><p>This approach is rule-based with parameter tuning. If new input-output data becomes available, we can re-estimate <strong>p</strong> and <strong>q</strong> to improve prediction accuracy. In engineering, this process is traditionally called <strong>model calibration</strong> or <strong>parameter estimation</strong>. From a modern machine learning perspective, automatically estimating these parameters from data can also be viewed as a simple form of supervised learning. However, the key point is that the <strong>functional structure is already known</strong>; only a small number of coefficients are being estimated rather than discovering a new relationship.</p><p>I could share another example from telecom world. In cellular wireless communication, RF propagation modeling is a critical component of network planning. One widely used empirical model is the <strong>Hata model</strong>, which estimates the path loss over distance in urban areas. The general formula for the Hata model is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*3pYEe4YRAvyStsX6SEjPcg.png" /><figcaption>Form of Hata based model</figcaption></figure><p>In practical use, this model needs to be <strong>tuned or recalibrated</strong> using measured input-output data (e.g., drive test data or field measurements). This tuning process adjusts the <strong>coefficients and correction factors</strong> to better reflect local terrain and urban characteristics. However, it’s important to note that <strong>the structure of the Hata model remains unchanged</strong> during this process.</p><p>Thus, while the tuning involves optimization and parameter fitting, the <strong>underlying propagation model remains fixed</strong>. Traditional RF engineering refers to this process as <strong>model calibration</strong> rather than AI. From a machine learning viewpoint, automatic estimation of the coefficients can be regarded as a simple parametric learning problem. The important distinction is that <strong>the model structure comes from domain knowledge, whereas only the parameters are learned from data.</strong></p><p><strong>🤯 When AI/ML Becomes Necessary</strong></p><p>Now imagine a more complex case of cost of a article. The relationship between inputs and cost isn’t linear, and it varies across markets. In India, perhaps a quadratic relationship gives better predictions &amp; for USA equation with variable A with degree 4 gives more accurate results.</p><p>C = p × <strong>A²</strong> + A + q × D² + 2A + 4D # For India<br>C = p × <strong>A⁴</strong> + A + q × D² + 2A + 4D # For USA</p><p>Now the <strong>structure of the function itself varies</strong> with input conditions. It’s hard (or impossible) to define a single equation that fits all markets or scenarios. Here’s where <strong>machine learning</strong> shines:</p><ul><li>The model structure can <strong>adapt</strong> to different data patterns.</li><li>Instead of manually rewriting formulas for each region, we <strong>train</strong> a model on data.</li><li>The system <strong>learns</strong> the underlying function, even when it’s nonlinear or high-dimensional.</li></ul><p>In other words, <strong>when you can’t handcraft reliable rules</strong>, machine learning can step in to discover hidden patterns.</p><p><strong>🧪 Quick Litmus Test: Rule-Based or ML?</strong></p><p>Ask yourself:</p><p>✅ Can I write clear rules that cover all known and future scenarios?</p><p>→ Use <strong>rule-based systems</strong>. Easier to maintain, more explainable.</p><p>❌ Are the scenarios too complex, high-dimensional, or unpredictable?</p><p>→ Consider <strong>AI/ML</strong>, provided you have enough quality data to train on.</p><p><strong>⚠️ A Note on Misuse of AI/ML</strong></p><p>Machine learning should not be the first choice simply because data is available. In many engineering domains, strong domain knowledge leads to simpler, more interpretable, and often more reliable solutions. AI should complement engineering expertise, not replace it.</p><p>Let’s put it this way:</p><p>Rule-based systems, calibrated mathematical models, and machine learning should not be viewed as competing technologies but as points on a spectrum. As prior domain knowledge decreases and problem complexity increases, the reliance on data-driven learning naturally increases. Good engineering lies in choosing the simplest approach that delivers the required accuracy, explainability, and maintainability.</p><p><strong>💬 Final Thoughts</strong></p><blockquote>There’s absolutely nothing wrong with using rule-based systems — in fact, they often reflect deep domain expertise and a clear understanding of the problem. While machine learning offers powerful capabilities, it’s most effective when applied in the right context.<br> Rather than chasing buzzwords, let’s stay focused on the core objective: choosing the right approach for the problem at hand — whether it’s a tried-and-tested model or a data-driven AI solution.</blockquote><p>Let’s <strong>shift the focus back to the problem itself</strong> and choose the best solution — whether it comes from AI/ML or rule-based methods — rather than getting caught up in the buzzwords.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=376009e251fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>