<?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 Mohammed Nainia on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Nainia on Medium]]></description>
        <link>https://medium.com/@mohammednainia?source=rss-cc1fd5cf8668------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fj-5tK4tbQ6E9b3UJhjG9A.jpeg</url>
            <title>Stories by Mohammed Nainia on Medium</title>
            <link>https://medium.com/@mohammednainia?source=rss-cc1fd5cf8668------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:08:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohammednainia/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[I Didn’t Follow a Straight Path. I Built One]]></title>
            <link>https://medium.com/@mohammednainia/i-didnt-follow-a-straight-path-i-built-one-ef9ead9a6144?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef9ead9a6144</guid>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[personal-growth]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 17:50:31 GMT</pubDate>
            <atom:updated>2026-03-27T17:50:31.542Z</atom:updated>
            <content:encoded><![CDATA[<p>Some careers begin with a clear plan.</p><p>Mine began with discomfort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdFG7mHHs60rJzuHp-Qp-w.png" /></figure><p>I started in economics at the Faculty in Safi. Later, I moved into commerce at OFPPT. At that stage, I was still trying to understand where I belonged. I did not have a master plan. I was simply moving forward, making practical decisions, and trying to build something better from what was in front of me.</p><p>Then I started working in a call center.</p><p>At first, it was just work. A necessary step. A way to keep moving.</p><p>But after about a year, something changed.</p><p>What became hard was not only the routine. It was the feeling of standing still. Of repeating the same cycle without learning, without growing, without feeling challenged. My days were full, but my mind felt underused. Over time, that created real anxiety attacks.</p><p>Not because the job was unbearable in the usual sense.</p><p>Because I felt trapped in a version of myself that was no longer evolving.</p><p>That period became one of the most important turning points in my life.</p><p>Because sometimes anxiety is not just fear.</p><p>Sometimes it is friction.</p><p>A signal that you have been living below your own potential for too long.</p><p>I do not romanticize that chapter. It was heavy. But it forced me to face something honestly: I could not keep waiting for change to happen on its own.</p><p>So I started building outside of work.</p><p>I began learning how to code on my own, with help from my brother. It was not elegant. It was confusion, repetition, trial and error, and long hours of quiet effort. The kind of learning that happens when no one is watching and no one can rescue you from the process.</p><p>But slowly, it changed me.</p><p>Coding did more than teach me a technical skill. It gave me evidence that I could rebuild myself through discipline. It showed me that even if my environment stayed the same for a while, I did not have to stay the same within it.</p><p>That changed how I saw myself.</p><p>From there, I moved into data.</p><p>What drew me in was the logic. Data demands clarity. It pushes you to think through evidence, patterns, structure, and better questions. I found something deeply natural in that way of thinking. It did not just interest me. It aligned with how I wanted to understand the world.</p><p>That is what pushed me to return to school and earn my bachelor’s degree in Data Science Applied in Economy and Management.</p><p>The degree mattered, of course. But what mattered even more was what it represented.</p><p>It marked a shift in identity.</p><p>I was no longer just trying to escape stagnation. I was moving toward something more precise.</p><p>Then came another defining stage: freelancing.</p><p>I did not quit my office job and wait for the perfect moment. I started building in parallel. Working during the day, freelancing around it, and trying to create momentum before life visibly changed.</p><p>That phase taught me a different kind of resilience.</p><p>It taught me how to carry responsibility and ambition at the same time. How to keep building even when the results were not yet obvious. How real change often begins quietly, long before other people can see it.</p><p>Over time, that path evolved again.</p><p>I moved into quant research and algorithmic trading.</p><p>Looking back, that transition makes complete sense.</p><p>Quant research brought together everything I had been building piece by piece: structured thinking, data, coding, testing, patience, and the desire to understand systems beneath the surface. What attracted me to algorithmic trading was never hype. It was the logic behind it. The discipline. The honesty.</p><p>You create rules.</p><p>You test them.</p><p>You challenge your assumptions.</p><p>And you learn, very quickly, that good research often begins where ego ends.</p><p>That world felt right to me.</p><p>For the first time, different parts of my journey stopped feeling disconnected. They started to look like preparation.</p><p>Economics in Safi gave me a foundation.<br> Commerce at OFPPT gave me practical grounding.<br> The call center taught me discipline, but also showed me what stagnation feels like.<br> The anxiety forced me to confront the cost of not growing.<br> Teaching myself to code built belief.<br> Data science gave me direction.<br> Freelancing built independence.<br> Quant research gave all of it a sharper identity.</p><p>When I look back now, my path no longer feels random.</p><p>It feels constructed.</p><p>Not in a perfect way. Not in a straight line. But with intention, step by step.</p><p>If there is one lesson in this journey, it is this:</p><p>You do not always change your life because you have a perfect vision.</p><p>Sometimes you change it because staying the same becomes unbearable.</p><p>And that, too, can become the beginning of something meaningful.</p><p>I did not start in quant.<br> I did not begin with certainty.<br> I did not follow a straight path.</p><p>I built one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef9ead9a6144" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Prompt AI Like a Quant Researcher When Building Backtests]]></title>
            <link>https://medium.com/@mohammednainia/how-to-prompt-ai-like-a-quant-researcher-when-building-backtests-0804c5f38f94?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/0804c5f38f94</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 15:09:40 GMT</pubDate>
            <atom:updated>2026-03-25T15:09:40.176Z</atom:updated>
            <content:encoded><![CDATA[<p>AI can help traders move faster, but speed is not the same as quality. In backtesting, the real value of AI comes from prompting it in a way that sharpens logic, exposes assumptions, and improves the research process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cY38jBoq9xuGQLaGh7RRCQ.png" /></figure><h3>How to Prompt AI Like a Quant Researcher When Building Backtests</h3><p>A bad prompt can ruin a backtest before the test even begins.</p><p>That is one of the most important things traders miss when using AI. Most people focus on the output. They want strategy ideas, entry rules, exit rules, and quick combinations of indicators.</p><p>But in research, the real quality often comes earlier.</p><p>It comes from the question.</p><p>AI is powerful because it can generate ideas quickly. It can help you explore strategy logic, compare concepts, organize your thinking, and speed up the research process.</p><p>But that speed creates a new problem.</p><p>If your prompts are vague, AI will not just give you weak answers. It will often give you weak answers that sound convincing enough to test. That is where the danger starts.</p><p>Because once bad logic enters your research process, everything after it becomes less trustworthy.</p><h3>AI should help you think, not think for you</h3><p>The best way to use AI in backtesting is not to treat it like a machine that “finds alpha.”</p><p>It is better to treat it like a research assistant.</p><p>A good research assistant helps you:</p><ul><li>define the hypothesis</li><li>make the logic clearer</li><li>expose hidden assumptions</li><li>identify where the idea may fail</li><li>suggest better ways to test it</li></ul><p>That is very different from asking:</p><p>“Give me a profitable RSI strategy.”</p><p>That kind of prompt is too loose to be useful.</p><p>Useful research needs structure.</p><p>What market are you testing?<br> What is the goal?<br> Higher return? Lower drawdown? Less time in the market?<br> What benchmark matters?<br> What assumptions need to be challenged?<br> What would failure look like?</p><p>Without that structure, the strategy may look good in a backtest for reasons that have nothing to do with real robustness.</p><h3>Strong prompts create cleaner research</h3><p>A better prompt does not ask AI to hand you a finished solution.</p><p>It gives AI a framework.</p><p>Something like this is much stronger:</p><p>“Help me explore simple RSI-based mean reversion ideas for ETFs. Prioritize lower drawdown and lower time in market. Keep the rules explainable. Also point out where overfitting risk is likely to appear and what should be tested out-of-sample.”</p><p>Now the conversation becomes useful.</p><p>AI is no longer guessing what you want. It is helping you investigate a specific research problem.</p><p>That is the difference between idea generation and real strategy research.</p><p>One creates noise.<br> The other creates clarity.</p><h3>The biggest hidden risk</h3><p>AI makes it easier to generate endless strategy variations.</p><p>That sounds efficient. But it also makes it easier to curve fit.</p><p>Before AI, testing dozens of small rule variations took more effort. That effort created friction. Now it is much easier to produce combinations until something looks impressive in-sample.</p><p>More thresholds.<br> More filters.<br> More conditions.<br> More “improvements.”</p><p>This is where many traders get misled.</p><p>AI did not make the research better. It just made it easier to search through noise faster.</p><p>That is why prompting matters so much.</p><p>Good prompts should reduce randomness, not multiply it.</p><h3>What to prompt AI for</h3><p>In backtesting, AI is most useful when you ask it to improve the research process itself.</p><p>For example, use it to:</p><ul><li>clarify the hypothesis</li><li>explain what market behavior the strategy depends on</li><li>identify weak assumptions</li><li>suggest meaningful benchmarks</li><li>propose robustness checks</li><li>describe likely failure cases</li><li>simplify the system logic into plain language</li></ul><p>That last one matters a lot.</p><p>If you cannot explain a strategy simply, there is a good chance you do not understand it well enough yet.</p><p>And if you do not understand it well, you are more likely to trust it for the wrong reasons.</p><h3>The real edge</h3><p>A quant mindset is not about finding the most exciting idea.</p><p>It is about reducing self-deception.</p><p>That is how AI should be used in backtesting.</p><p>Not as a shortcut to “good systems.”<br> As a tool that helps you ask sharper questions.</p><p>Because better prompts do not guarantee a better strategy.</p><p>But they do improve the chances that your backtest is built on logic instead of optimism.</p><p>And in systematic trading, that matters a lot more than people think.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0804c5f38f94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Let AI Generate 100 Trading Strategies-Here’s What I Learned]]></title>
            <link>https://medium.com/@mohammednainia/i-let-ai-generate-100-trading-strategies-heres-what-i-learned-18fcab16b0f0?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/18fcab16b0f0</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[backtesting]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 04:33:45 GMT</pubDate>
            <atom:updated>2026-03-24T04:33:45.033Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etVnFHoVRqjkXkgS5zYiPQ.png" /></figure><h3>I Tried Something Simple</h3><p>What happens if you let AI generate trading strategies?</p><p>Not one or two.</p><p>But dozens.</p><p>So I did exactly that.</p><p>I used AI to generate variations of simple ideas:</p><ul><li>RSI conditions</li><li>Different thresholds</li><li>Basic filters</li><li>Simple exit logic</li></ul><p>Nothing complex.</p><p>Just structured exploration at scale.</p><h3>Most of Them Failed</h3><p>That part wasn’t surprising.</p><p>What surprised me was <em>how</em> they failed.</p><p>They didn’t fail randomly.</p><p>They failed in patterns.</p><ul><li>Some worked only in trending markets</li><li>Others only in mean-reverting phases</li><li>Some had strong returns — but huge drawdowns</li><li>Others were stable — but barely profitable</li></ul><p>Each strategy had a specific behavior.</p><p>On its own, none of them felt reliable.</p><h3>The Important Shift</h3><p>At first, I was looking for winners.</p><p>The “best” strategy.</p><p>The one to trade.</p><p>But after seeing enough results, that goal stopped making sense.</p><p>Because the question changed.</p><p>It was no longer:</p><p>“Which strategy works?”</p><p>It became:</p><p>“What does each strategy reveal?”</p><h3>AI as a Pattern Generator</h3><p>AI didn’t give me an edge.</p><p>It gave me volume.</p><p>More variations.<br> More outcomes.<br> More failures.</p><p>And that’s exactly what you need in systematic trading.</p><p>Because edge rarely comes from one idea.</p><p>It comes from understanding distributions.</p><p>Seeing:</p><ul><li>What works sometimes</li><li>What works consistently</li><li>What breaks under pressure</li></ul><p>This is hard to see when testing manually.</p><p>AI makes it obvious.</p><h3>From Strategies to Behaviors</h3><p>Each generated strategy captured something different:</p><ul><li>A reaction to volatility</li><li>A response to pullbacks</li><li>A momentum continuation</li><li>A reversal signal</li></ul><p>Individually, they looked weak.</p><p>But collectively, they described the market.</p><p>That’s when the perspective shifted again.</p><p>I stopped thinking in strategies.</p><p>I started thinking in behaviors.</p><h3>Building From Structure</h3><p>Instead of selecting one strategy, I started combining them.</p><p>Not randomly.</p><p>But based on what they were doing.</p><ul><li>One handles deep pullbacks</li><li>One captures shallow dips</li><li>One reacts to spikes</li></ul><p>Each plays a role.</p><p>Together, they form a system.</p><p>And systems behave very differently from single strategies.</p><p>They’re less dependent on one condition.</p><p>Less fragile.</p><p>More adaptable.</p><p>AI doesn’t build your trading strategy.</p><p>It accelerates your research.</p><p>It allows you to:</p><ul><li>Test more ideas</li><li>See patterns faster</li><li>Fail quickly</li><li>Refine structure</li></ul><p>It removes friction.</p><p>But it doesn’t replace thinking.</p><h3>The Hidden Risk</h3><p>There’s a trap here.</p><p>If you’re not careful, AI will push you toward:</p><p>More ideas<br> More variations<br> More optimization</p><p>And that leads to noise.</p><p>Not insight.</p><p>Without structure, AI just helps you overfit faster.</p><p>The goal isn’t to find a strategy that works.</p><p>It’s to understand why things work — and when they stop working.</p><p>AI helps you get there faster.</p><p>But only if you use it the right way.</p><p>Not as a shortcut.</p><p>But as a tool for exploration.</p><p>Generating many trading strategies with AI reveals consistent patterns in how they succeed and fail. Instead of focusing on finding a single winning strategy, the real edge comes from understanding behaviors and combining them into structured systems. AI accelerates this discovery process, but without proper thinking, it can also lead to faster overfitting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18fcab16b0f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RSI Is Not an Indicator And AI Proves It]]></title>
            <link>https://medium.com/@mohammednainia/rsi-is-not-an-indicator-and-ai-proves-it-359ce1aca36d?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/359ce1aca36d</guid>
            <category><![CDATA[trading-system]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 01:15:51 GMT</pubDate>
            <atom:updated>2026-03-24T01:15:51.101Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCrdZr_YFR6PoztQTm0iTA.png" /></figure><h3>RSI Was Never the Edge</h3><p>Most traders use RSI the same way.</p><p>RSI below 30 → buy<br> RSI above 70 → sell</p><p>Simple.</p><p>And usually ineffective.</p><p>During my testing, I kept seeing the same thing:</p><p>Small changes in RSI settings completely changed performance.</p><p>That’s not robustness.</p><p>That’s fragility.</p><h3>The Problem Isn’t RSI</h3><p>If you treat RSI as a standalone rule, you’re asking one condition to carry the entire system.</p><p>It won’t.</p><p>Some RSI strategies work in trends.<br> Others only in ranges.<br> Some make money — but with large drawdowns.</p><p>Individually, they’re inconsistent.</p><p>But there’s a pattern behind that inconsistency.</p><h3>What AI Made Obvious</h3><p>When I started using AI, I didn’t use it to build strategies.</p><p>I used it to generate variations.</p><p>Dozens of RSI conditions:</p><ul><li>Different lengths</li><li>Different thresholds</li><li>Different filters</li></ul><p>Most of them failed.</p><p>But they didn’t fail randomly.</p><p>They failed in <em>specific ways</em>.</p><p>And that’s where the insight came from.</p><h3>RSI as a Framework</h3><p>RSI is not telling you when to trade.</p><p>It’s describing market behavior.</p><ul><li>Oversold in a trend</li><li>Oversold in a range</li><li>Momentum continuation</li><li>Exhaustion</li></ul><p>Each variation captures a different state.</p><p>On their own, they’re weak.</p><p>Together, they form structure.</p><h3>From Rule to System</h3><p>A single RSI condition is just a piece.</p><p>A system is a collection of pieces working together.</p><p>Instead of searching for the “best RSI strategy,” the goal becomes:</p><p>Combine behaviors.</p><ul><li>One condition handles deep pullbacks</li><li>Another captures shallow dips</li><li>Another reacts to volatility</li></ul><p>Individually fragile.</p><p>Together, more stable.</p><p>One thing became clear:</p><p>The edge wasn’t just in entries.</p><p>It was in exposure.</p><p>RSI controls when you’re in the market — and when you’re not.</p><p>Less time in market with similar returns means:</p><ul><li>Lower drawdowns</li><li>Better efficiency</li><li>More control over risk</li></ul><p>That’s where the real improvement happens.</p><h3>What AI Actually Did</h3><p>AI didn’t give me a better RSI strategy.</p><p>It accelerated the process.</p><p>More variations.<br> Faster testing.<br> Clearer patterns.</p><p>It exposed something simple:</p><p>RSI was never meant to stand alone.</p><h3>Closing Thought</h3><p>Most traders look for better signals.</p><p>But signals don’t create robustness.</p><p>Structures do.</p><p>RSI is not an edge.</p><p>It’s a building block.</p><p>And once you start combining those blocks into systems, the question changes:</p><p>Not “does this work?”</p><p>But “how do these pieces work together?”</p><p>RSI is often treated as a standalone signal, but it behaves inconsistently across market conditions. By using AI to generate and test multiple RSI variations, patterns emerge that reveal RSI as a framework rather than a rule. The real edge comes from combining these conditions into structured systems and controlling time in market, not optimizing a single indicator.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=359ce1aca36d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Backtest Looked Brilliant. Then Out-of-Sample Exposed the Truth.]]></title>
            <link>https://medium.com/@mohammednainia/the-backtest-looked-brilliant-then-out-of-sample-exposed-the-truth-82d14e0f67be?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/82d14e0f67be</guid>
            <category><![CDATA[trading-system]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[backtesting]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[systematic-trading]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 04:24:19 GMT</pubDate>
            <atom:updated>2026-03-10T04:24:19.606Z</atom:updated>
            <content:encoded><![CDATA[<p>Most trading systems look smart in-sample.</p><p>That is the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x_yJcqvkyvTok2fOt13y8w.png" /></figure><p>When you build a strategy, it is very easy to create something that explains the past beautifully. The equity curve looks smooth. The drawdowns seem controlled. The metrics feel convincing. Sharpe is decent. Profit factor looks strong. Time in market seems efficient. Everything appears to be working.</p><p>Until you test it somewhere it has never been seen before.</p><p>That is where the real conversation begins.</p><p>One of the most important lessons in systematic trading is that a strategy does not become interesting when it performs well in-sample. It becomes interesting when it survives out-of-sample.</p><p>And those are not the same thing.</p><h3>The trap most traders fall into</h3><p>During strategy research, the first goal is usually simple: find something that works.</p><p>So you test conditions. You adjust thresholds. You compare exits. You change lookback lengths. You swap tickers. You try different combinations until the numbers start looking good.</p><p>This process feels productive because every adjustment gives feedback. You are not guessing anymore. You are refining.</p><p>But there is a hidden danger in that refinement.</p><p>The more you optimize a strategy on the same historical data, the more likely you are to build a system that fits that specific past instead of capturing a durable market behavior.</p><p>That is what in-sample performance often hides.</p><p>It can reward you for being clever.<br> But it can also reward you for overfitting.</p><p>A strategy can look excellent not because it discovered a real edge, but because it learned the personality of that exact dataset too well.</p><h3>What in-sample actually means</h3><p>In-sample is the data you use to build the strategy.</p><p>This is the laboratory.</p><p>It is where you test ideas, discover patterns, and shape the system logic. If you are building an RSI-based system, this is where you decide which RSI periods matter, which thresholds produce the behavior you want, what type of exit improves the trade profile, and how exposure changes the result.</p><p>There is nothing wrong with in-sample testing. It is necessary.</p><p>You cannot build a strategy without it.</p><p>But in-sample should be treated as the design phase, not the final proof.</p><p>That distinction matters a lot.</p><p>Because in-sample performance is always flattered by the fact that the system was built there.</p><p>Even when you are not consciously curve-fitting, the process itself introduces bias. Every decision you make is influenced by the feedback from that same dataset.</p><p>That means the strategy is not only being tested on the data.<br> It is being shaped by it.</p><h3>What out-of-sample really tests</h3><p>Out-of-sample is the part of history the system did not get to study while being built.</p><p>This is the exam.</p><p>The logic was created elsewhere. The thresholds were chosen elsewhere. The structure was finalized elsewhere. Now the strategy is asked to perform on fresh data without further adaptation.</p><p>That is a completely different kind of test.</p><p>Out-of-sample does not care how elegant your research process was.<br> It does not care how much effort went into optimization.<br> It only answers one question:</p><p>Does the logic still work when the market changes?</p><p>That is why out-of-sample matters so much. It tests transferability.</p><p>It asks whether the edge is real enough to survive outside the environment that created it.</p><h3>A simple way to think about it</h3><p>Imagine a student who studies by memorizing the exact answers to one practice exam.</p><p>When the real exam is identical, they score perfectly.</p><p>But if the questions change slightly, they struggle.</p><p>That student did not learn the subject.<br> They learned the test.</p><p>A lot of trading systems behave the same way.</p><p>In-sample, they look brilliant because they memorized the past.<br> Out-of-sample reveals whether they actually learned something about market behavior.</p><p>That is the difference.</p><h3>What surprised me during testing</h3><p>One thing I discovered through system research is that strong in-sample results often create too much confidence too early.</p><p>When a branch or condition set produces impressive numbers, the instinct is to trust it. Especially when the combination of return, drawdown, and time in market looks unusually efficient.</p><p>But some of the most attractive in-sample systems lose a lot of their appeal the moment they face out-of-sample data.</p><p>Not always because they collapse.</p><p>Sometimes they simply become ordinary.</p><p>The CAGR drops.<br> The drawdown gets wider.<br> The entries arrive later.<br> The exits become less efficient.<br> The return per unit of exposure weakens.</p><p>And suddenly what looked like a sharp edge starts looking like a local accident.</p><p>That is a healthy realization.</p><p>Because the purpose of research is not to fall in love with beautiful backtests.<br> It is to identify logic that remains believable when the market stops cooperating.</p><h3>Why out-of-sample is more honest</h3><p>Out-of-sample strips away the comfort of customization.</p><p>You do not get to keep adjusting parameters after every disappointment.<br> You do not get to smooth the result by tailoring it to each regime.<br> You do not get to rescue weak logic with another round of refinement.</p><p>You see the system more as it is.</p><p>That honesty is uncomfortable, but valuable.</p><p>A mediocre in-sample strategy with respectable out-of-sample behavior is often more interesting than a spectacular in-sample strategy with weak out-of-sample follow-through.</p><p>Because systematic trading is not about explaining history elegantly.</p><p>It is about building something robust enough to tolerate uncertainty.</p><h3>The real role of in-sample</h3><p>This is where many traders get confused.</p><p>The conclusion is not that in-sample is useless.</p><p>Far from it.</p><p>In-sample is where ideas are born. It is where you discover whether a concept has enough structure to deserve further testing. It helps you understand the mechanics of the strategy. It shows how entries, exits, holding periods, and exposure interact.</p><p>It is where you learn.</p><p>But learning is different from validation.</p><p>In-sample says, “This idea might have something.”<br> Out-of-sample says, “This idea still behaves reasonably when conditions change.”</p><p>You need both.<br> But they do not carry equal weight.</p><h3>Why this matters even more in quantitative trading</h3><p>The more systematic your process becomes, the easier it is to generate variations.</p><p>You can test dozens of parameter ranges, multiple indicator thresholds, several exit styles, different asset pairs, and countless combinations of them. That is one of the strengths of quant research.</p><p>It is also one of the biggest dangers.</p><p>Because a broad research process can produce many “good” strategies by chance alone.</p><p>If you search long enough, you will eventually find something that looks impressive on historical data.</p><p>That does not mean you found an edge.<br> It may just mean you found a coincidence with good formatting.</p><p>Out-of-sample helps separate signal from decoration.</p><p>It does not make a strategy perfect.<br> But it makes the evaluation more credible.</p><h3>What traders should actually look for</h3><p>When reviewing out-of-sample results, I do not think the question should be, “Is it as strong as in-sample?”</p><p>That standard is often unrealistic.</p><p>Some degradation is normal. In-sample is the environment where the system was designed. Out-of-sample is naturally harsher.</p><p>The better question is this:</p><p>Does the strategy retain its character?</p><p>If a system was designed to control drawdown, does it still control drawdown reasonably well?<br> If it was designed to reduce time in market, does it still stay selective?<br> If it was meant to improve risk-adjusted returns, do those still remain respectable?<br> If it was supposed to act differently from buy-and-hold, does that behavior still show up?</p><p>That kind of continuity matters more than perfect replication.</p><p>I am less interested in whether the exact CAGR survives.<br> I am more interested in whether the logic survives.</p><h3>The danger of judging a system by one side only</h3><p>A strategy judged only by in-sample can be dangerously optimistic.</p><p>A strategy judged only by out-of-sample can also be misleading, especially if the OOS period is too short or happens to be unusually hostile.</p><p>That is why the relationship between the two matters more than either one in isolation.</p><p>In-sample tells you what the system was trying to do.<br> Out-of-sample tells you whether it could still do it when removed from its comfort zone.</p><p>The gap between them tells you something important about robustness.</p><p>A small performance drop with similar behavior is usually a good sign.<br> A huge collapse is a warning.<br> A totally different profile suggests the system may not be anchored to a stable idea.</p><p>This is not just about numbers.<br> It is about consistency of behavior.</p><h3>What this changes in practice</h3><p>For traders building systems, this should change the goal.</p><p>The goal is not to create the most impressive in-sample equity curve.</p><p>The goal is to create logic that remains structurally believable after leaving in-sample.</p><p>That often means accepting less glamorous results during development.</p><p>It means resisting the urge to optimize every weak spot.<br> It means preferring simple logic over overly tailored logic.<br> It means paying attention to robustness, not just peak metrics.<br> It means being suspicious of anything that looks too perfect.</p><p>In trading research, perfection is usually not a sign of genius.</p><p>It is often a sign that the system has become too intimate with the past.</p><p>A trading system does not prove its worth when it shines on familiar data.</p><p>It proves its worth when it steps into unfamiliar conditions and still behaves like itself.</p><p>That is why in-sample is where a strategy is built.<br> But out-of-sample is where trust begins.</p><p>And in systematic trading, trust matters more than beauty.</p><p>Because the market will never pay you for having a convincing backtest.<br> It only pays when the logic survives reality.</p><p>In-sample testing is where a strategy is designed, but out-of-sample testing is where its credibility begins. A strong system is not the one that fits history best, but the one that still behaves logically when it faces data it was never built on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82d14e0f67be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If the Best Trading System Is the One That Stays Out of the Market Most of the Time?]]></title>
            <link>https://medium.com/@mohammednainia/what-if-the-best-trading-system-is-the-one-that-stays-out-of-the-market-most-of-the-time-afc98fb89a4a?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/afc98fb89a4a</guid>
            <category><![CDATA[algorithmic-trading]]></category>
            <category><![CDATA[systematic-trading]]></category>
            <category><![CDATA[trading-system]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 20:32:45 GMT</pubDate>
            <atom:updated>2026-03-08T20:38:19.642Z</atom:updated>
            <content:encoded><![CDATA[<h3>A quant researcher’s view on why lower exposure can sometimes lead to better trading outcomes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wpHKlYL_q7OUoknp2zZMOw.png" /></figure><p>Most traders think a good system should always be doing something.</p><p>Always in.<br> Always active.<br> Always chasing the next move.</p><p>At first glance, that sounds logical. If the market is where the opportunities are, then more time in the market should mean more chances to make money.</p><p>But during my testing, I kept running into a different idea.</p><p>Some of the most interesting systems were not the ones trading all the time. They were the ones that entered selectively, stayed exposed only when conditions were favorable, and spent surprisingly large portions of time doing absolutely nothing.</p><p>That changed the way I think about strategy design.</p><p>Because the real goal of a trading system is not just to make money. It is to make money while exposing itself to as little unnecessary risk as possible.</p><p>And sometimes, the system that wins is the one that knows when to stay out.</p><h3>The problem with how most people judge trading systems</h3><p>When most people look at a strategy, they ask one question first:</p><p>How much did it make?</p><p>That question matters, of course. Profit is important. But on its own, it tells an incomplete story.</p><p>Imagine two systems.</p><p>The first produces a 20% return in a year while staying invested almost all the time. The second also produces a 20% return, but it is only in the market 35% of the time.</p><p>Those two returns may look identical on paper. But they are not the same achievement.</p><p>The second system reached the same destination with much less exposure. It spent less time vulnerable to market shocks, less time sitting through noise, and less time absorbing the emotional and financial cost of being continuously exposed.</p><p>That difference is not cosmetic. It is structural.</p><p>Markets do not reward you simply for participating. They reward you for participating well.</p><p>And that means time in the market should not be treated as a neutral detail. It should be treated as a cost.</p><h3>Exposure is not free</h3><p>This is one of the biggest mindset shifts I have had through quantitative testing.</p><p>Many traders think of exposure as normal. Something automatic. Something harmless unless the market crashes.</p><p>But exposure is never free.</p><p>Every day your system is active, it is carrying risk. Not just the risk of a major drawdown, but also the smaller, more constant forms of damage that come from being present in the wrong conditions.</p><p>Bad environments erode systems slowly. Choppy periods create false signals. Weak trends waste entries. Volatile reversals distort smooth equity curves. Even when the long-term result is still positive, too much unnecessary exposure can make the path far uglier than it needs to be.</p><p>That matters more than most people realize.</p><p>A trading system is not only judged by where it ends. It is judged by what it forces you to endure along the way.</p><p>This is why I pay close attention not only to return, but also to drawdown, time in market, and how efficiently the system converts exposure into performance.</p><p>Because if two systems make similar returns, the one that needed less market time to do it is often the more interesting system.</p><h3>The weather analogy</h3><p>One simple way to think about this is to imagine the market as weather.</p><p>If you stand outside all day, every day, you will experience sunshine, wind, rain, and storms. Some days will be pleasant. Some will not. But the longer you remain outside, the more weather you are forced to absorb.</p><p>A trading system works in a similar way.</p><p>The more time it spends in the market, the more conditions it must survive. Good ones and bad ones. Clean trends and messy reversals. Strong environments and hostile ones.</p><p>Now imagine a second approach.</p><p>Instead of living outside full-time, you only step out when the weather is favorable. You are not trying to experience every condition. You are trying to be selective.</p><p>That does not guarantee perfection. You will still get caught sometimes. No system avoids all bad periods.</p><p>But selectivity changes the game.</p><p>It reduces unnecessary exposure. It lowers the amount of noise you must endure. And often, it improves the quality of the returns you earn relative to the time you spend at risk.</p><p>That is what many traders miss.</p><p>The edge is not always in predicting more. Sometimes the edge is in participating less.</p><h3>What surprised me during testing</h3><p>One thing I discovered through system research is that lower exposure does not automatically mean weaker performance.</p><p>In fact, some strategies become more compelling precisely because they are more selective.</p><p>That sounds counterintuitive at first. Most people assume that if a system is in the market less often, it must also make less money. Sometimes that is true. But not always.</p><p>What matters is not how often a system trades. What matters is whether the time it chooses to be active is high quality.</p><p>A system that filters aggressively may miss some good moves. But it may also avoid a large amount of mediocre or harmful exposure. And that tradeoff can be worth it.</p><p>This is where quantitative thinking becomes so important.</p><p>Without testing, it is easy to fall in love with activity. Frequent entries feel productive. Constant signals feel intelligent. High engagement creates the illusion of control.</p><p>But the data often tells a quieter story.</p><p>The best systems are not always the busiest.<br> They are not always the most exciting.<br> They are not always the ones generating the most trades.</p><p>Sometimes they are just more disciplined.</p><p>They wait.<br> They filter.<br> They stay inactive for long stretches.<br> And then they act when the odds improve.</p><p>That kind of behavior can look boring from the outside.</p><p>From a research perspective, it can be beautiful.</p><h3>Why time in market deserves more respect?</h3><p>Time in market is often treated like a secondary metric. Something traders glance at, then ignore.</p><p>I think that is a mistake.</p><p>Time in market tells you how long your capital is exposed to uncertainty. It tells you how often your system is asking you to accept market risk. It tells you whether a return was achieved efficiently or expensively.</p><p>A system that earns strong returns with lower exposure is telling you something important: it may have found a way to be more selective about when risk is worth taking.</p><p>That does not mean low time in market is always better. A system can be too inactive. It can miss too many opportunities. It can become overly dependent on a small number of trades.</p><p>But once again, the goal is not to worship low exposure for its own sake.</p><p>The goal is efficiency.</p><p>The question is not, “How little can I trade?”</p><p>The question is, “How much return quality am I getting for the time I’m exposed?”</p><p>That is a much better question. And it leads to better research.</p><h3>Why this matters psychologically too?</h3><p>There is also a human side to this that matters.</p><p>A strategy that is always in the market may look fine in a backtest, but it can feel very different in real life.</p><p>Continuous exposure means continuous pressure. You are always sitting inside uncertainty. Always carrying open risk. Always vulnerable to the next piece of bad market behavior.</p><p>That wears on people.</p><p>Even systematic traders are not robots. They still have to live through drawdowns, volatility, and periods where the strategy feels broken. The longer a system stays exposed, the more emotional endurance it may demand.</p><p>This is another reason I think selective systems deserve more attention.</p><p>A strategy that reduces unnecessary time in the market may not just improve metrics. It may also be easier to hold with discipline.</p><p>And that matters.</p><p>Because the best system on paper is useless if the person running it cannot stay with it through realistic conditions.</p><p>Robust strategy design is not just about mathematical performance. It is also about behavioral survivability.</p><h3>The hidden trap of constant action</h3><p>There is something seductive about systems that are always active.</p><p>They look alive. They feel productive. They create a sense that the strategy is constantly hunting for profit.</p><p>But activity is not the same thing as quality.</p><p>In many areas of life, doing more creates better outcomes. In trading, doing more often creates more friction, more exposure, more mistakes, and more opportunities to be hurt by conditions that do not suit your logic.</p><p>This is why I have become increasingly skeptical of the idea that a strategy should be praised just because it is always engaged.</p><p>Constant action can be a sign of opportunity.<br> But it can also be a sign of poor selectivity.</p><p>And poor selectivity is expensive.</p><p>A system should not earn points for being busy.<br> It should earn points for being effective.</p><h3>A better way to think about system quality</h3><p>When I evaluate a strategy, I do not want to know only whether it made money.</p><p>I want to know how it made money.</p><p>Did it require near-constant exposure?<br> Did it survive massive drawdowns to get there?<br> Did it rely on being in the market during every type of condition?<br> Or did it find a way to concentrate its exposure in more favorable moments?</p><p>That distinction changes everything.</p><p>Because once you start thinking this way, you stop chasing systems that merely look profitable. You start searching for systems that are efficient, resilient, and selective.</p><p>That does not mean profit becomes unimportant. It means profit is no longer enough.</p><p>Return without context can be misleading.</p><p>A strategy that makes less money but does so with significantly less exposure and better drawdown control may actually be the stronger foundation. Especially if it can be combined with other systems, scaled intelligently, or used as part of a broader portfolio design.</p><p>This is where the conversation becomes much more interesting than simple return chasing.</p><p>Now you are not just asking whether a system works.</p><p>You are asking whether it works elegantly.</p><h3>The practical implication for traders</h3><p>For traders building or evaluating systematic strategies, the lesson is simple:</p><p>Do not assume more market participation is better.</p><p>More exposure does not automatically mean more edge.<br> More trades do not automatically mean more intelligence.<br> More activity does not automatically mean better design.</p><p>Sometimes a strategy improves when you ask it to do less.</p><p>Sometimes the key improvement is not adding another entry rule, another indicator, or another layer of complexity.</p><p>Sometimes the improvement comes from making the system more selective about when it is willing to take risk.</p><p>That shift can affect everything.</p><p>It can improve drawdown behavior.<br> It can reduce wasted exposure.<br> It can make performance more efficient.<br> And it can make the strategy easier to trust when conditions get difficult.</p><p>In other words, it can turn a noisy system into a deliberate one.</p><p>The market will always offer motion. There will always be another signal, another setup, another reason to stay involved.</p><p>But good system design is not about responding to every opportunity.</p><p>It is about deciding which opportunities are worth the risk.</p><p>That is the part many traders underestimate.</p><p>The strongest system is not always the one that trades the most.<br> It is not always the one that stays exposed the longest.<br> And it is not always the one that looks the most impressive at first glance.</p><p>Sometimes, the best trading system is the one that has learned a rare skill.</p><p>How to stay out of the market.</p><p>And in systematic trading, that restraint can be an edge of its own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afc98fb89a4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Earthquakes and Corruption: A Deadly Connection?]]></title>
            <link>https://medium.com/@mohammednainia/earthquakes-and-corruption-a-deadly-connection-34a54aed352f?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a54aed352f</guid>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[geology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[earthquake]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Sun, 22 Sep 2024 15:59:46 GMT</pubDate>
            <atom:updated>2024-09-22T16:14:45.906Z</atom:updated>
            <content:encoded><![CDATA[<p>When we think about the devastation caused by earthquakes, we often focus on the power of nature. However, another factor plays a significant role in determining how destructive these events can be: <strong>corruption</strong>.</p><p>The link between corruption and earthquake fatalities is undeniable, with numerous studies and real-world examples demonstrating how poor governance and unethical practices lead to the collapse of buildings, loss of life, and economic damage. This article will explore the connection between corruption and earthquake disasters, using recent events and global data to illustrate how corruption amplifies the destructive power of natural disasters.</p><h4>The Global Impact of Earthquakes</h4><p>The global impact of natural disasters in <strong>2022</strong> extended beyond earthquakes, with landslides contributing significantly to fatalities across various regions. The image above illustrates the widespread destruction caused by landslides, particularly in <strong>Asia</strong> and <strong>South America</strong>. In 2022, major seismic events triggered catastrophic landslides that claimed thousands of lives. These regions, already vulnerable to earthquakes, faced compounded risks from landslides, further increasing the death toll. Much like earthquakes, landslides in these areas resulted in massive destruction, complicating rescue and recovery efforts and highlighting the deadly combination of seismic activity and poor infrastructure resilience.</p><figure><img alt="Landslide Fatality ArcMap 2022" src="https://cdn-images-1.medium.com/max/960/1*qfAfcbkzGHoFb4NMtX-2jw.jpeg" /><figcaption>Landslide Fatality ArcMap 2022</figcaption></figure><h3>The Case of Morocco: A Local Perspective</h3><p>In <strong>September 2023</strong>, Morocco was hit by the <strong>Marrakesh-Safi earthquake</strong>, the most powerful seismic event in the country’s recorded history, with a magnitude of <strong>6.8</strong>. This disaster tragically claimed nearly <strong>3,000 lives</strong>, revealing significant vulnerabilities in the country’s infrastructure, particularly in rural and underdeveloped regions. Despite Morocco’s ongoing efforts to improve disaster preparedness, the earthquake exposed gaps in enforcement of building regulations, especially in less regulated areas. Many homes in rural regions were poorly constructed, often due to a combination of limited resources, lack of proper oversight, and local-level corruption.</p><p>Morocco’s <strong>CPI score of 43</strong> places it in the mid-range of global corruption rankings, yet the relatively high death toll suggests that corruption still plays a role in weakening infrastructure resilience. While the country’s corruption is not as extreme as in places like Haiti or Turkey, issues such as non-enforcement of building codes and insufficient regulatory oversight in rural areas have made certain communities more vulnerable to seismic events.</p><p>The <strong>Marrakesh-Safi earthquake</strong> highlighted the critical need for Morocco to strengthen governance, especially in the construction sector. Improving transparency, increasing accountability, and ensuring that building regulations are strictly enforced across all regions, including rural areas, would help reduce fatalities in future earthquakes. By tackling these challenges, Morocco can work toward reducing the devastating effects of earthquakes, as seen in countries like Japan and Chile, where strong governance and anti-corruption measures have proven effective in minimizing the toll of natural disasters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0-VnC8vG60wwOhp8bemJw.png" /></figure><p>While the magnitude of an earthquake determines its potential to cause damage, the real toll of an earthquake is often determined by how well-prepared a country is, both in terms of infrastructure and governance.</p><h4>How Corruption Magnifies Earthquake Damage?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYkBOLnc06zOXAMJjuh0dg.png" /></figure><p>Corruption weakens a country’s ability to prepare for and respond to earthquakes in several critical ways:</p><ol><li><strong>Weak Building Standards</strong>: Corruption in the construction industry allows unsafe buildings to be constructed. In countries with high levels of corruption, bribes and kickbacks can enable builders to bypass safety regulations. For example, in Turkey, <strong>construction amnesties</strong> allowed builders to ignore safety standards, resulting in the construction of thousands of unsafe buildings. Many of these buildings collapsed during the 2023 earthquake, leading to thousands of preventable deaths​</li><li><strong>Misuse of Disaster Funds</strong>: In countries affected by corruption, funds meant for disaster preparedness are often misappropriated. Turkey, for example, collected over <strong>$34 billion</strong> in “earthquake taxes” after the 1999 disaster. However, much of this money was not used for its intended purpose, leaving the country vulnerable to future earthquakes​. This is a common problem in many corrupt nations, where disaster funds are siphoned off by officials instead of being used to build resilient infrastructure and improve emergency response systems.</li><li><strong>Inefficient Disaster Response</strong>: Corruption also affects how quickly and effectively a country can respond to an earthquake. After the 2023 Turkey earthquake, it was revealed that the government’s disaster management agency (AFAD) was poorly prepared. The agency was criticized for having inadequate coordination, insufficient resources, and for being staffed by unqualified political appointees</li></ol><p>This lack of preparedness and expertise led to delays in rescue operations and the distribution of aid, further increasing the death toll.</p><h4>The Corruption-Earthquake Connection</h4><p>The link between corruption and earthquake fatalities is clear when we look at global data. The <strong>Corruption Perception Index (CPI)</strong> ranks countries based on how corrupt they are perceived to be, with lower scores indicating higher corruption levels. Countries with low CPI scores, such as Haiti and Turkey, often suffer higher death tolls in earthquakes compared to countries with better governance, like Japan and New Zealand.</p><p>Below is a <strong>bar chart</strong> that shows the relationship between CPI scores and earthquake fatalities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LWH3mW2BgV_Ocwt4W8w9Q.png" /></figure><p>As we can see, countries with lower CPI scores tend to have higher fatalities, even when earthquakes of similar magnitude occur. For example, Haiti’s 2010 earthquake, with a magnitude of 7.0, resulted in over <strong>230,000 deaths</strong>, while New Zealand’s 2011 earthquake of similar magnitude resulted in no fatalities.</p><p>The difference lies in the enforcement of building standards and the level of corruption in each country.</p><p>In the <strong>scatter plot</strong> below, we further explore the correlation between corruption and earthquake fatalities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuaxjpWwBkMzgZ4sNXgjcg.png" /></figure><p>This scatter plot shows a clear trend: as corruption levels increase, the number of earthquake fatalities rises. Countries like Chile and Japan, which have lower corruption levels, experience fewer fatalities in earthquakes compared to countries with higher corruption levels, such as Haiti and Turkey.</p><h4>The Global Construction Industry: A Breeding Ground for Corruption</h4><p>The construction industry, which is worth over <strong>$7.5 trillion annually</strong>, is widely regarded as the most corrupt sector of the global economy​</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1B2B9Wa9rL6-fsHI_KH2GA.png" /></figure><p>Corruption in this industry takes many forms, from bribes to subvert inspections to the use of substandard materials to cut costs. The result is poorly built structures that are highly vulnerable to earthquakes. During seismic events, the consequences of these corrupt practices become devastatingly clear, as buildings collapse and lives are lost.</p><h4>Poverty and Corruption: A Deadly Combination</h4><p>One of the challenges in addressing the link between corruption and earthquake fatalities is that poverty and corruption often go hand-in-hand. Poor countries tend to have weaker governance systems and more corruption. This makes it difficult to separate the effects of poverty from the effects of corruption. However, studies show that even when controlling for poverty, corruption still plays a significant role in increasing earthquake fatalities​.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2n1vye5jZVoMbbCfhjTXYw.png" /></figure><p>For example, many poor countries like Chile and Japan have managed to reduce earthquake fatalities by enforcing strict building codes and reducing corruption. On the other hand, wealthier but more corrupt countries like Turkey and Haiti have experienced higher death tolls due to corruption in the construction industry and disaster management systems.</p><h3>Suggested Solutions To Fight Corruption and Save Lives During Earthquakes</h3><ol><li><strong>Enforce Strong Building Codes</strong>: Corruption in construction puts lives at risk. By ensuring building codes are followed and inspections are not compromised, we can create safer homes and infrastructure that can withstand earthquakes. Regular checks and accountability in the construction process are key to making sure lives are protected when disaster strikes.</li><li><strong>Make Disaster Funds Count</strong>: In times of crisis, people rely on disaster funds to help rebuild and recover. But when these funds are misused, entire communities are left vulnerable. By creating transparent systems that show exactly where the money goes, we can ensure funds are used to strengthen infrastructure and prepare for future disasters, instead of disappearing into the wrong hands.</li><li><strong>Hold Leaders Accountable</strong>: Fighting corruption starts at the top. When government officials and decision-makers are held accountable, it becomes harder for corruption to thrive. Governments need to prioritize cracking down on corrupt practices, especially in sectors like construction and emergency management, where lives are on the line.</li><li><strong>Empower Communities</strong>: The fight against corruption isn’t just for governments — it’s for all of us. When communities understand how corruption affects their safety, they can demand better oversight and governance. By empowering people to hold officials accountable and push for transparency, we can create a safer environment for everyone.</li><li><strong>Learn from Success Stories</strong>: Countries like Japan and Chile have shown that strong governance and strict building regulations can save lives. By sharing these success stories and learning from nations that have tackled corruption effectively, other countries can strengthen their own disaster preparedness and reduce the loss of life in earthquakes.</li></ol><p>The devastation caused by earthquakes is not solely the result of nature’s power. Human factors, particularly corruption, play a significant role in determining the extent of the damage. By tackling corruption, especially in the construction and disaster management sectors, countries can drastically reduce the number of lives lost during earthquakes. The correlation between corruption and earthquake fatalities is undeniable: where corruption is high, death tolls rise.</p><p>Governments, particularly in earthquake-prone regions, must prioritize transparency and accountability. Strict enforcement of building regulations, proper allocation of disaster funds, and the improvement of emergency response systems are critical to minimizing the loss of life in future earthquakes. Without these measures, earthquakes will continue to turn into avoidable human catastrophes.</p><h3>Sources</h3><ol><li><strong>Transparency International 2023 CPI</strong>:<a href="https://www.transparency.org/en/cpi/2023">Transparency International 2023 CPI</a>​(<a href="https://www.transparency.org/en/cpi/2023">Transparency.org</a>)​(<a href="https://us.transparency.org/news/transparency-international-releases-the-2023-corruption-perceptions-index/">Transparency International</a>)</li><li><strong>Nature Study (Ambraseys &amp; Bilham, 2011)</strong>: <a href="https://www.nature.com/">Nature Study</a></li><li><strong>APM Research Lab</strong>: <a href="https://www.apmresearchlab.org/">APM Research Lab</a>​(<a href="https://www.apmresearchlab.org/2023-earthquake-turkey-data-in-context">APM Research Lab</a>)</li><li><strong>New Scientist</strong>: <a href="https://www.newscientist.com/">New Scientist</a>​(<a href="https://www.newscientist.com/article/dn19958-did-corruption-raise-haitis-death-toll/">New Scientist</a>)</li><li><strong>The Yale Globalist</strong>: <a href="https://globalist.yale.edu/">The Yale Globalist</a>​(<a href="https://globalist.yale.edu/onlinecontent/blogs/corruption-kills-earthquake-death-tolls-and-the-role-of-corruption/">Yale Globalist</a>)​(<a href="https://globalist.yale.edu/onlinecontent/blogs/corruption-kills-earthquake-death-tolls-and-the-role-of-corruption/">Yale Globalist</a>)</li><li><strong>Transparency International (Turkey)</strong>: <a href="https://www.transparency.org/">Transparency International</a> (<a href="https://www.transparency.org.nz/blog/corruption-kills-turkey-earthquake">Transparency International New Zealand</a>)</li><li><strong>World Population Review</strong>: <a href="https://worldpopulationreview.com/">World Population Review</a>​(<a href="https://worldpopulationreview.com/country-rankings/most-corrupt-countries">World Population Review</a>)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a54aed352f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How NVIDIA Changed the Game]]></title>
            <link>https://medium.com/@mohammednainia/how-nvidia-changed-the-game-96f269de6d8f?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/96f269de6d8f</guid>
            <category><![CDATA[stocks]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[make-money-online]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Tue, 09 Jul 2024 20:24:30 GMT</pubDate>
            <atom:updated>2024-07-09T20:24:30.407Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s rapidly evolving world, artificial intelligence (AI) is transforming industries at an unprecedented pace. Among the many companies leading this charge, NVIDIA stands out not only for its technological advancements but also for the substantial wealth it has generated for its employees.</p><p>So how did they do it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJuEyO_lxAvwK5_0YA3YhQ.jpeg" /></figure><h3>The Jensen Huang Effect</h3><p>Jensen Huang, the CEO of NVIDIA, has been the driving force behind the company’s remarkable success. Since founding NVIDIA in 1993, Huang’s visionary leadership has revolutionized the graphics processing unit (GPU) market. Under his guidance, NVIDIA has developed cutting-edge technologies that have become essential in various fields, including gaming, data centers, and AI research.</p><p>But Huang’s impact extends beyond technological innovation. His strategic decisions and leadership have significantly boosted NVIDIA’s stock price. This surge has not only benefited investors but also created a wave of millionaires among NVIDIA’s employees, thanks to lucrative stock options and company shares.</p><h3>Impressive Financial Gains</h3><p>A recent poll conducted on the anonymous professional network, Blind, revealed a staggering statistic: 76% of NVIDIA employees reported having a net worth exceeding $1 million. This figure is a testament to the company’s explosive growth and the substantial value of its stock options. NVIDIA’s market capitalization has soared, reflecting its dominance in AI and graphics processing.</p><p>The financial success of NVIDIA’s employees highlights the company’s ability to generate wealth for those who contribute to its success. This phenomenon is not just a personal victory for individual employees but also a testament to the company’s overall growth and prosperity.</p><h3>The Emerging NVIDIA “Mafia”</h3><p>The wealth generated within NVIDIA has broader implications beyond individual financial gains. Drawing parallels to the “PayPal Mafia” of the early 2000s, a group of former PayPal employees who went on to found and fund numerous successful startups, the emerging “NVIDIA Mafia” could drive the next wave of tech innovation.</p><p>With their newfound wealth and extensive expertise, these NVIDIA employees are well-positioned to launch and support the next generation of tech startups. Their experience and financial resources can foster innovation, leading to the development of groundbreaking technologies and companies that could shape the future of various industries.</p><h3>The Future of AI and Startups</h3><p>As AI continues to advance, the influence of companies like NVIDIA will only grow stronger. The success of NVIDIA’s employees underscores the potential for wealth creation within the tech industry. It also highlights the importance of visionary leadership and strategic growth in fostering an environment where employees can thrive both professionally and financially.</p><p>NVIDIA’s story serves as a powerful reminder of the opportunities that exist within the tech sector. Aligning with companies at the forefront of innovation and possessing strong leadership can lead to substantial rewards for employees.</p><h3>What This Means for Aspiring Tech Professionals</h3><p>For those already in the tech industry or aspiring to join, NVIDIA’s success story is a compelling example of what is possible. It emphasizes the importance of choosing to work with innovative companies that are leaders in their field. By aligning with such organizations, individuals can position themselves to reap the benefits of their growth and success.</p><p>NVIDIA’s success is not just a tale of financial prosperity. It represents the power of AI, the impact of strategic leadership, and the ripple effects of wealth creation within the tech community. As we observe the rise of the “NVIDIA Mafia,” it becomes clear that the future of AI and tech innovation looks brighter than ever.</p><p>If you’re interested in the transformative power of AI and want to stay updated on how it is reshaping industries and creating new opportunities for innovation and growth, follow me for more insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96f269de6d8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is AI Just If-Else Statements?]]></title>
            <link>https://medium.com/@mohammednainia/is-ai-just-if-else-statements-b24b7b2b2dbc?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/b24b7b2b2dbc</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 22:10:58 GMT</pubDate>
            <atom:updated>2024-07-02T22:10:58.958Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, YOUR BIG BROTHER is here ! There’s a common misconception that AI is just a bunch of if-else statements, and I knew I had to clear things up. Let’s break this down in simple terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOMaJanwFW8AOzdL4qs9jg.jpeg" /></figure><h3>Is AI Just Doing If-Else Statements?</h3><p>Nope, not at all! AI (Artificial Intelligence) is way more complex than that. While if-else statements are basic programming tools, AI uses advanced techniques and algorithms that go far beyond simple conditional logic. Let’s dive into what makes AI so special.</p><h3>Machine Learning: Learning from Data</h3><p>AI uses machine learning to get smarter over time. Imagine you’re learning to ride a bike. You fall a few times, but eventually, you get the hang of it. Machine learning algorithms do something similar. They learn from data and improve without needing to be explicitly programmed every step of the way.</p><ul><li><strong>Neural Networks</strong>: Think of these as a web of tiny brain cells that work together to recognize patterns.</li><li><strong>Decision Trees</strong>: These are like flowcharts that help AI make decisions.</li><li><strong>Support Vector Machines</strong>: Fancy tools that help AI find patterns and make predictions.</li></ul><h3>Deep Learning: Going Deeper</h3><p>Deep learning is a special kind of machine learning that uses neural networks with many layers. It’s like peeling an onion, layer by layer, to understand complex information.</p><ul><li><strong>High-Level Abstractions</strong>: Deep learning can analyze images, understand speech, and even process natural language, just like peeling an onion to get to the core.</li></ul><h3>Knowledge Representation and Reasoning</h3><p>AI can represent knowledge using logical structures, like building a Lego model with various pieces. It then uses reasoning techniques to solve problems.</p><ul><li><strong>Logic and Ontologies</strong>: AI organizes information logically.</li><li><strong>Probabilistic Models</strong>: These models help AI make informed guesses.</li></ul><h3>Natural Language Processing (NLP): Talking Like Humans</h3><p>NLP allows AI to understand and generate human language. Imagine having a chat with a robot that actually understands you!</p><ul><li><strong>Sentiment Analysis</strong>: This helps AI understand emotions in text.</li><li><strong>Named Entity Recognition</strong>: AI can pick out names, dates, and other important info.</li><li><strong>Machine Translation</strong>: Think of Google Translate — that’s NLP in action!</li></ul><h3>Computer Vision: Seeing the World</h3><p>AI can process visual information, just like our eyes do.</p><ul><li><strong>Object Detection</strong>: Finding and identifying objects in an image.</li><li><strong>Image Classification</strong>: Sorting images into categories.</li><li><strong>Semantic Segmentation</strong>: Understanding each part of an image.</li></ul><h3>Planning and Optimization: Smart Decisions</h3><p>AI can plan actions to achieve goals and optimize solutions for complex problems. It’s like having a super-smart friend who can solve puzzles quickly.</p><ul><li><strong>Scheduling</strong>: Organizing tasks efficiently.</li><li><strong>Logistics</strong>: Managing the movement of goods.</li><li><strong>Game Playing</strong>: AI can strategize in games like chess or Go.</li></ul><p>While if-else statements are the foundation of programming, AI is so much more. It combines advanced algorithms, data processing, and reasoning to create intelligent systems that can adapt, learn, and solve complex problems.</p><p>So, next time someone says AI is just a bunch of if-else statements, you’ll know better. AI is like a brainy big sibling, always learning, adapting, and getting smarter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b24b7b2b2dbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Trading Isn’t for Young People]]></title>
            <link>https://medium.com/@mohammednainia/why-trading-isnt-for-young-people-984bbd32e098?source=rss-cc1fd5cf8668------2</link>
            <guid isPermaLink="false">https://medium.com/p/984bbd32e098</guid>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Mohammed Nainia]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 15:17:03 GMT</pubDate>
            <atom:updated>2024-06-29T15:17:03.661Z</atom:updated>
            <content:encoded><![CDATA[<p>I know a lot of you are excited about making money and finding ways to get rich quickly. I’ve been hearing about a lot of young people getting into trading — whether it’s stocks, forex, or even cryptocurrencies. I get it. The idea of making a lot of money fast is super tempting. But as your older sibling, I want to share some thoughts on why this might not be the best idea for most of you.</p><blockquote><em>“Success is not the result of making money; earning money is the result of success — and success is in direct proportion to our service.” — Earl Nightingale</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fENt0srrGNg86pc69BaVig.gif" /></figure><p><strong>It’s Not Just About Skill, It’s About Luck</strong></p><p>First off, trading isn’t as straightforward as it seems. You might think that with enough research and strategy, you can beat the market and make a profit. But the truth is, a lot of trading is based on luck. Sure, you can learn the basics and follow the trends, but there are so many factors that are out of your control. The market can be unpredictable, and sometimes, no matter how much you study, things just don’t go your way. Imagine putting in all that effort and still losing money because of something you couldn’t foresee.</p><p><strong>The Need for Feedback</strong></p><p>When you’re learning something new, feedback is super important. If you’re playing a sport, your coach can tell you what you’re doing right and wrong. If you’re learning an instrument, your teacher can guide you on how to improve. But with trading, feedback is not so clear. You might make money, but it doesn’t always mean you made a good decision — it could just be luck. On the other hand, if you lose money, it’s hard to know if it was a bad decision or just bad luck. This lack of clear feedback makes it really tough to learn and get better.</p><p><strong>The Emotional Roller Coaster</strong></p><p>Trading can also be an emotional roller coaster. When you make money, you feel on top of the world. But when you lose, it can be really tough to handle. This emotional stress can take a toll on you, and it’s something a lot of people don’t talk about. It’s important to think about how this could affect your mental health, especially when you’re young and still figuring things out. Constantly worrying about market movements can be exhausting and distract you from other important things in life, like your studies or spending time with friends and family.</p><p><strong>The Importance of Learning and Growing</strong></p><p>Instead of diving into trading, think about other ways to grow your money that also help you learn valuable skills. Consider starting a small business, investing in your education, or even finding a part-time job that teaches you about the field you’re interested in. These paths might not promise quick riches, but they do offer steady growth and valuable experience that will benefit you in the long run. When you invest in yourself, you’re building a foundation that will support you throughout your life, not just for a quick win.</p><p><strong>Patience Pays Off</strong></p><p>I know it’s hard to be patient when you’re excited about the future and the possibilities it holds. But remember, building wealth takes time and effort. It’s a marathon, not a sprint. The habits and knowledge you develop now will shape your future success. By focusing on steady, reliable ways to grow your wealth, you’re setting yourself up for long-term success and stability.</p><p>I’m not saying you should never trade or that making money quickly is always bad. But it’s important to understand the risks and know that trading is not a guaranteed way to get rich. Take the time to learn, grow, and find stable ways to build your future.</p><p>Remember, there’s no rush. Success takes time, and the journey is just as important as the destination.</p><p>Take care and think wisely.</p><p>Your older sibling.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=984bbd32e098" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>