<?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 A. Hawary on Medium]]></title>
        <description><![CDATA[Stories by A. Hawary on Medium]]></description>
        <link>https://medium.com/@ahawary?source=rss-bf0f1a425223------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*esLxUnraAMsklUImrpyU-w.jpeg</url>
            <title>Stories by A. Hawary on Medium</title>
            <link>https://medium.com/@ahawary?source=rss-bf0f1a425223------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:42:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahawary/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[The Missing “Swagger” for Data: Why Our AI Agents Are Still Flying Blind]]></title>
            <link>https://ahawary.medium.com/the-missing-swagger-for-data-why-our-ai-agents-are-still-flying-blind-841e7d391993?source=rss-bf0f1a425223------2</link>
            <guid isPermaLink="false">https://medium.com/p/841e7d391993</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-semantics]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[A. Hawary]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 17:11:13 GMT</pubDate>
            <atom:updated>2025-12-19T17:11:13.184Z</atom:updated>
            <content:encoded><![CDATA[<p>It started in a meeting room, 7 months ago.</p><p>We were holding a company hackathon — Engineering Managers, Product Managers, and Tech Leads all jammed together. Our CTO had issued a clear challenge: find an idea that has value to our business — small or big, yet directly related to our business — implement it, and ship it in a week. We were relying on Replit (back when it was still affordable for this kind of thing) to speed us up.</p><p>I dug through my graveyard of uncompleted, “half-assed” projects and pulled out one that had been gathering dust: a self-serve data platform designed to serve ready-made insights to business users.</p><p>The motivation was pure desperation. We were drowning in a momentum of requests that left our Data SLAs crying in the corner. The overwhelm was so intense that I literally told my team: “If anyone says ‘Good Morning’ to you, ask them to file it as a data request and wait for our reply.” We needed to eliminate this mountain of daily ad-hoc work so we could finally find the breathing room to focus on the massive infrastructure overhaul we had planned for our data stack in 2024.</p><p>But there was a reason that project was in the graveyard. When I first started it a year prior, it had stalled completely. I had poured huge amounts of time into it with very little progress. Why? Because back then, I was building everything from scratch. This was just before the era of “vibe coding” and AI-assisted development really took over. I was trying to manually code the bridge between raw data and business value, and it was exhausting.</p><h3>The Shift: Fast Forward to Today</h3><p>To be honest, that hackathon week was a nightmare. It damaged my self-esteem. I watched my colleagues shipping impressive work in the first one or two days, while I was completely stuck. I felt like something was wrong with me. They would clap and celebrate, and I sat there silent, sweating, my anxiety rising with every cheer.</p><p>Luckily, we had a long Eid vacation right after. I spent six sleepless days grinding on the project. Two weeks later, I realized what had happened: I was trying to build a spaceship with the attitude of building an origami kite. But the output <em>was</em> impressive. I knew it when our CTO — who rarely shows excitement or gets impressed easily — told me he saw it. I did it out of pure anxiety, not just capability, but it worked.</p><p>That breakthrough became the foundation for what came next.</p><p>I spent the next five months relentlessly adding features and reworking our data infrastructure. The challenge wasn’t just the code; it was the semantics — making our data actually consumable by the platform. We had built the spaceship, but the fuel was still sitting like raw oil in the desert. We needed to extract it, refine it, and fuel the engine to finally take the business where it needed to go.</p><p>The result was a robust user segmentation platform with a simple but ambitious goal: enable instantaneous user segmentation for marketing targeting on <strong>Braze</strong>, powered by a <strong>TimescaleDB</strong> built on <strong>Snowflake</strong> data, <strong>dbt</strong>, and <strong>Airflow</strong>.</p><p>I implemented a Gemini-based chatbot with access to a small text file describing our segmentation logic and the segmentation TS database design. I watched as the system started generating complex modeling and queries to segment users in seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gt8c-FQwTmvPvgAOuwDMNw.png" /><figcaption>Agentic Segmentation: Turning plain English prompts into complex audiences.</figcaption></figure><p>Now, any business user can chat with our analytics agent, asking it to create any type of user segmentation — no matter how complex the logic. Whether they need to compare time frames, measure drop and growth intervals, or calculate percentiles, the agent handles it. In seconds, it creates the segments, validates them, interprets the business implications, and even generates recommendations. With a final command, it syncs those segments directly to <strong>Braze</strong> and <strong>Amplitude</strong> for targeting across both product and marketing realms. It was doing in seconds what used to take me days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MhPRqZbGda0vf13LPxWMmg.png" /><figcaption>One-click sync for Amplitude segments.</figcaption></figure><p>But then I paused. I realized I had solved a massive challenge without even noticing it. And suddenly, a different document I wrote 1.5 years ago popped into my head.</p><h3>The “Paranoid” Dictionary</h3><p>The seed for this was planted when I joined my current company two years ago.</p><p>I was immediately bombarded with initials and acronyms. People threw them around with such confidence that I assumed they were global industry standards. As a senior hire, I felt too ashamed to ask what they meant. I’d sneak off to Google, find nothing, and eventually ask shyly — only to discover they were just internal project names that everyone had silently agreed to treat like universal truths.</p><p>That was the turning point. I started asking about the meaning of everything. I hunted for Business and Technical ADRs, PRDs — anything written down. Unsurprisingly, I found massive gaps. Instead of docs, I was pointed to “people archives” — folks like Duty, who had been there for 7 or 8 years.</p><p>I felt threatened. Our “documentation” could take time off, get sick, or leave the company at any moment.</p><p>I vouched for hiring a Documentation Engineer immediately. I had worked with one before — an amazing documentation engineer, the first of that species I ever met, who used to interrogate us for hours in a cold, empty office with nothing but a desk and two chairs. It was intense; I sometimes felt like I was about to confess to childhood crimes. But it worked.</p><p>A month later, Khaled joined. A top-tier CS graduate, a total geek who somehow found joy in documentation. He was impressive. Together, we started documenting everything in a frenzy.</p><p>We launched project after project. We tried to document schemas, pipelines, and workflows. But honestly? Most of those projects ended up in the graveyard. I could feel the pain clearly — the disconnect between the technical data and the business reality — but I wasn’t sure what to do to treat that pain. I knew something fundamental was missing, but I couldn’t put my finger on it.</p><p>Then came the last trial — the most mature and comprehensive one. Eighteen months ago, still trying to scratch that itch, I built a full ontology dictionary (long before I knew the word ‘ontology’ in a data context). It was exhaustive, covering every conceivable factor to keep a metric under strict surveillance.</p><p>But this wasn’t your standard Excel sheet with a list of KPIs. I am a perfectionist — sometimes to a fault. At the time, I blamed it on “control anxiety” — a desperate need to keep every single moving part under my eye.</p><p>I created a schema with obsessive detail:</p><ul><li><strong>Business &amp; Tech Definitions:</strong> Rigorously defined.</li><li><strong>Operand Connections:</strong> Precise mapping of which columns were involved in which calculation.</li><li><strong>Ownership:</strong> The specific Technical and Business owners (so I knew exactly who to contact for any changes).</li><li><strong>Operational Context:</strong> The actual business operations on the ground and the app features driving those metrics.</li></ul><p>I created the schema and, after filling in just two metrics, I felt a strange sense of relief. “Okay, I feel safe now,” I thought. “We can get back to filling this later.” I remember looking at it back then thinking, <em>“Am I over-engineering this? Is this just my paranoia trying to control chaos?”</em> And honestly? That specific document is still there, waiting for me to finish it.</p><h3>The “Aha!” Moment</h3><p>As I watched Gemini navigate my segmentation tool, it hit me.</p><p><strong>That “paranoid” document wasn’t over-engineering. It was the missing link.</strong></p><p>The reason my agents were working so well wasn’t just because the LLM was smart. It was because I had inadvertently given them the <strong>Context</strong>.</p><p>I had the <strong>Data</strong> (Warehouse + TimescaleDB). I had the <strong>Agents</strong> (Gemini). I had the <strong>Consumption Layer</strong> (a slick UI integrated with several tools). And crucially, I had the <strong>Context</strong> — the schema and business definition document.</p><p>Because the segmentation data was a single big table and its rollups ready for consumption, preparing this context required less effort, yet it was the decisive element. It was the needed knowledge injection for the model. It was the fuel to the car, enabling the engine to start and the system to take off.</p><p>But without that rigorous “Dictionary” — that map linking the “cold” database columns to the “warm” business reality — the agents would have been hallucinating. They would have been guessing.</p><p>I realized I was building the infrastructure for <strong>Agentic Analytics</strong> before I even knew what that meant.</p><h3>The Industry Gap: Trapped Brains and Cold Data</h3><p>Reflecting on this, I see a glaring gap in our industry.</p><p>We are trying to force AI agents to work for us, but we are giving them “cold” data. We ask them to analyze “Churn,” but we don’t give them the map.</p><p><strong>1. The “Cold Column” Problem</strong> Agents see a column named t_status_03. They don&#39;t know that this specific column, when joined with t_events using a specific logic, is the operand for &quot;Active Users.&quot;</p><p>They are missing the actual relationships between tables that define our specific business logic. How do <em>we</em> define “Churn”? What constitutes “About to Churn”? What about our seasonality? Without explicit context, an agent might confuse genuine churn with a seasonal pattern where users disappear for a month and naturally return later. We are missing the standard that maps the physical database schema directly to these nuanced calculation operands.</p><p><strong>2. The “Context Void”</strong> We miss the relationship between the data and the actual operation of the business. We aren’t linking the data points to the <strong>marketing campaigns we launched</strong>, the <strong>product releases we shipped</strong>, the <strong>outages we had</strong>, or the <strong>political events</strong> the country we are operating in went through. We are missing the external correlations that explain <em>why</em> the data looks like that.</p><p>Right now, this knowledge is trapped. Sometimes it has no digital source of truth at all — at least not one we can access. It is scattered across Google Docs, Sheets, emails, and meeting notes, or even scrawled on a piece of paper. Or worse, it is locked in the head of a Senior Engineer. When they leave, the “Brain” of the company leaves with them.</p><h3>The Proposal: A “Swagger” for Data</h3><p>Based on these learnings, the missing piece is clear.</p><p>My “paranoid” dictionary shouldn’t have been an anomaly or a secret weapon I built in isolation. It should be the industry standard.</p><p>In 2010, the software world realized that APIs were useless if machines couldn’t read them. The community rallied around <strong>Swagger (OpenAPI)</strong>, creating a universal “contract” that decoupled the interface from the code. It allowed any tool to talk to any API without friction.</p><p><strong>We need exactly this for Data.</strong></p><p>We need a community-driven <strong>Open Standard for the Semantic Layer and Ontology Dictionaries</strong>.</p><p>Not another proprietary tool that locks your logic into a vendor’s black box. Not a scattered collection of Google Docs and mental notes. But a rigorous, machine-readable protocol that maps:</p><ol><li><strong>The Schema:</strong> The raw physical data structure.</li><li><strong>The Metrics:</strong> Clear definitions linking business goals directly to metric calculation equation operands (how multiple columns from separate tables — and even separate data sources — combine to define the “High Value Customer” segment).</li><li><strong>The Operations:</strong> Documentation of business activities and their specific relation to data patterns (marketing campaigns, seasonality, outages, and political events).</li></ol><p>With this standard, we finally complete the stack:</p><ul><li><strong>Integrations:</strong> Connecting the data sources.</li><li><strong>Agents:</strong> Ready to consume and learn.</li><li><strong>Knowledge Graph:</strong> The “Ready-to-Eat” context they need to understand the business instantly.</li><li><strong>Environment:</strong> The platform to integrate it all.</li></ul><p>This moves us from a vague business question to an ROI-measured action in moments — without hallucination and without weeks of training.</p><p>We have the pipes (Warehouses). We have the workers (Agents). We are missing the <strong>Dictionary</strong>.</p><p>I see clearly that the community is in deep need of this foundation. We must build it soon so it has time to mature. Honestly, I feel we are already a little late.</p><p>I am actively looking for the founding members to start building this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*yX4fPhmLvwKk-5uBF6UbNg.jpeg" /><figcaption>John Richards, a retired regional journalist, founded the society in 2001 and waged an 18-year war to protect the apostrophe.</figcaption></figure><p>Consider the <strong>Apostrophe Protection Society</strong>. Founded in 2001 by John Richards, it was a dedicated community fighting to uphold a standard of correctness in a world that was increasingly careless. This wasn’t a casual hobby for Richards; he was famously serious about his mission, going so far as to patrol the streets armed with sticky tape to personally cover up rogue apostrophes on signs advertising “Pizza’s” and “Burger’s.” But in 2019, even he had to shut it down. His closing statement was a warning we should all heed: <em>‘The ignorance and laziness present in modern times have won.’</em></p><p>We cannot let that happen to our data. We cannot let entropy and laziness win because we were too busy to build the standard. We are building the very language that AI will use to understand our world.</p><p><strong>Who is in?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=841e7d391993" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When I First Met the Truth: From Childhood Lies to Workplace Deception]]></title>
            <link>https://ahawary.medium.com/when-i-first-met-the-truth-from-childhood-lies-to-workplace-deception-1aa71daee8f6?source=rss-bf0f1a425223------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aa71daee8f6</guid>
            <dc:creator><![CDATA[A. Hawary]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 08:40:01 GMT</pubDate>
            <atom:updated>2025-10-12T08:40:01.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever noticed that when you don’t know something exists, you can’t even see it even if it is obvious?</p><p>That was me as a child — living in a world where <strong>lying simply didn’t exist</strong>. Everyone around me seemed trustworthy by default. Adults were sources of truth, authority, and wisdom. I believed everything they said, because why wouldn’t I? The idea that people could deliberately invent things hadn’t entered my universe yet.</p><p>My childhood wasn’t just filled with simple confusion; it was marked by a series of deliberate, bewildering falsehoods. I can recall at least <strong>ten distinct incidents</strong> where adult answers didn’t make sense or refused to add up. Every time someone told me something that defied logic, I spent days afterward trying to rationalize it, searching <strong>in vain</strong> for a thread of truth.</p><p>Putting aside those mysterious creatures that would come to us if we didn’t finish our meals — what a brilliant strategy to give a child bad dreams and anxiety just to ensure they eat their food! Clearly, it’s more crucial to have a physically well child with future trauma than a fussy eater. It almost makes you wonder if therapists invented these monsters as an early adoption strategy for their future client base.</p><p>Yet, some adult fabrications were more sophisticated than simple parenting threats. I distinctly remember a cousin who recounted an elaborate story about his application to a “super intelligence force.” He claimed he executed a <strong>clever, unorthodox trick</strong> to stand out in a room full of top-notch candidates, and they were supposedly astonished by his creativity. He insisted he was “the best of the best of the best,” and that they simply couldn’t believe how creative he was to solve the issue. The entire anecdote was later debunked for me on two fronts: First, I saw that exact scene two years later in a movie. Second, and more tellingly, he didn’t get the job becuase there was no job at all — a fact I knew because he was, quite obviously, unemployed at the time he was telling this grand tale.</p><p>Not long after, there was the <strong>toy pistol incident</strong>. I was maybe six, and for some reason, I kept trying to shoot my sister with the soft orange bullets. After a few warnings, my father took the bullets, went to the living room, and came back saying calmly, “I threw them to the house behind us.” I believed him without a trace of doubt. The window hadn’t been opened, but somehow that didn’t matter. I simply thought he was capable of things I couldn’t yet understand — maybe that was just what being an adult meant.</p><p>My own childhood behavior was already full of invention; I was constantly making up stories, imagining worlds, and, of course, denying I was the one who broke things — even when caught on the spot. But I saw my ability to deny and invent as a unique, private craft. It hadn’t dawned on me that every adult carried an entire inner world of motives and fears that could influence them to bend or entirely create reality.</p><p>I was still operating as a lone universe. The mysteries left by grown-ups — their stories and rules that didn’t quite make sense — were numerous, leaving a small, persistent trail of confusion. My only logical defense for a long time was: <strong>“Adults have superpowers. I’ll understand them when I’m older.”</strong></p><p>Months passed, and then the inevitable moment came. One afternoon, while climbing the bookshelf in our living room, I saw something that stopped me cold. There they were — my orange bullets — resting quietly on the top shelf, covered in a thin layer of dust.</p><p>That was the moment <strong>something cracked open inside me</strong>. A strange mix of surprise and quiet disappointment. My father hadn’t thrown them anywhere, although he told me so. It was such a small thing, yet it changed how I saw the world. Until that moment, I didn’t know adults could do so — that words could be used to bend reality rather than describe it.</p><p>From there, the truth began to surface more quietly. I noticed contradictions — events adults “forgot,” stories that changed depending on who told them. At first, I assumed they simply had bad memories. But little by little, I realized something that felt like a small heartbreak: <em>They didn’t forget. They lied.</em></p><p>I can’t recall how old I was when it fully sank in, but I remember the wave of questions: How many “facts” I believed were inventions meant to guide, scare, or entertain me? That realization broke a kind of innocence I could never fully recover. The quiet revelation that people often construct their own version of reality — and that their minds operate differently from mine — was a profound awakening. From that point on, I stopped taking people’s words for granted. Lies existed, and that meant nothing could be fully trusted anymore.</p><p>It took years to rebuild a balanced view of it all — to understand that lying isn’t always malicious. People lie for countless reasons: fear, shame, pride, protection, or just habit. I learned to forgive those early deceits, to see them as part of how humans make sense of the world. But I also made a quiet promise to myself to at least not to be fooled, and to keep my right to confront when needed.</p><p>Life, of course, has its own sense of humor. The same lessons always return in more complex forms. Eventually, I found myself facing a new breed of deception — the kind that lives comfortably in offices, meetings, and professional conversations. The world of work introduced me to liars of every kind: charming ones, cautious ones, strategic ones — and perhaps the most dangerous of all, the ones who truly <strong>believe their own lies</strong>.</p><p>That kind of liar fascinated me the most. People who repeat a lie so many times that it rewrites their memory. They tell it calmly, convincingly, without guilt — because, in their mind, it’s no longer a lie. They’ve become prisoners of their own fabrication. This <strong>implanted truth</strong> is the version of the world they can sleep at night with; it’s the distorted reality that allows them to continue their life. I’ve known some who went so far in faking reality that they seemed to me to be acting, and the irony is, they <em>were</em> telling the truth — their created and internally consistent truth. It’s terrifying because they don’t look like liars; their body language and tone are perfectly consistent. You’re not just fighting dishonesty — you’re fighting <strong>distorted belief</strong>.</p><p>Some lies only hurt the liar, but in the workplace, lies spread like viruses. They infect trust, distort communication, and quietly destroy teams. I met many “snakes,” but none as quietly dangerous as those who lie with conviction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8c4vxlcVmM334tNzoE_Oxg.png" /></figure><p>Some lies only hurt the liar, but as I grew older, I began to notice a different stage where dishonesty took on a much more serious role — the workplace. Unlike childhood, where lies were mostly harmless, playful, or meant to guide, in professional environments they could ripple outward, affecting not just individuals but entire teams. Patterns I had first seen in family and friends — bending the truth, exaggerating, omitting details — now appeared in meetings, emails, and project updates, with far higher stakes.</p><p>This experience is what led me to read <em>The Truth About Lies in the Workplace</em> by Carol Kinsey Goman. It gave structure to what I had observed but couldn’t always explain. It helped me name the patterns, recognize the motives, and understand how to navigate around them.</p><p>I’ll be following up with Part Two, where I’ll share a deeper summary of the book — the lessons, behavioral cues, and what they teach us about honesty, self-awareness, and survival in professional life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aa71daee8f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Don’t Know What We Don’t Know — Together]]></title>
            <link>https://ahawary.medium.com/we-dont-know-what-we-don-t-know-together-89c6b46e31db?source=rss-bf0f1a425223------2</link>
            <guid isPermaLink="false">https://medium.com/p/89c6b46e31db</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[team-dynamics]]></category>
            <category><![CDATA[impostor-syndrome]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[cognitive-bias]]></category>
            <dc:creator><![CDATA[A. Hawary]]></dc:creator>
            <pubDate>Sat, 27 Sep 2025 10:44:49 GMT</pubDate>
            <atom:updated>2025-10-07T12:36:55.016Z</atom:updated>
            <content:encoded><![CDATA[<h3>We Don’t Know What We Don’t Know — Together</h3><h4>Shared Minds, Shared Blind Spots: Rethinking Team Knowledge</h4><p>I’ve been reading a book called <a href="https://www.goodreads.com/work/quotes/51368545-the-knowledge-illusion-why-we-never-think-alone"><em>The Knowledge Illusion</em></a>, and it’s been revealing in unexpected ways. It made me start seeing things differently and helped me realize how easily we overestimate what we actually understand. Psychologists call this the <em>illusion of explanatory depth</em> — the feeling that we understand something much better than we actually do. Most of us think we know how everyday things like a zipper or a toilet flush work — until we’re asked to explain step by step. Suddenly, the confidence evaporates, replaced by uncomfortable gaps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*xJxAqMZm5_y5ze-mfi1JKQ.jpeg" /><figcaption><a href="https://www.goodreads.com/work/quotes/51368545-the-knowledge-illusion-why-we-never-think-alone">The Knowledge Illusion: Why We Never Think Alone: Sloman, Steven</a></figcaption></figure><p>Now, scale that mental gap up to an entire team, where individual self-deception becomes a <strong>collective blind spot</strong> — a far more dangerous phenomenon.</p><p>That’s what I’ve been wrestling with lately: the moment we <em>think</em> we know something, we often stop being curious about it. In today’s fast, noisy world — where we’re constantly nudged to chase every opportunity, try every new thing, and keep up for fear of missing out — it’s hard to pause and ask: <em>Do we really understand what we think we know?</em></p><p>Here’s the paradox: the things we openly admit we don’t know often push us to seek help, learn, or search for guidance. But the things we <em>believe</em> we know — often only at a shallow level — can be far more dangerous. We act with <strong>false confidence</strong>, rarely questioning or validating, and end up making mistakes we could have avoided. The core danger isn’t that we don’t know things, but that our untested, shallow individual knowledge compounds into a <em>systemic, shared delusion of competence</em> when we work together.</p><h3>The Toxic Collision: Ignorance and Doubt</h3><p>Life is always more complex than it first appears, and when you put people together in a group, the dynamics often amplify biases, false confidence, and distorted self-perceptions. What happens individually becomes <strong>multiplied socially</strong>.</p><p>We often observe the <em>Dunning–Kruger effect</em> in individuals: People with low competence in a domain often overestimate their abilities because they lack the very skills needed to spot their own gaps. Meanwhile, those with real competence often underestimate themselves, assuming that what feels easy for them must be easy for everyone else too. <em>(The curse of knowledge plays a role here as well.)</em></p><p>The real problem arises when these two forces collide in the same room.</p><p>I’’ve seen it play out many times: ignorance paired with false confidence often takes center stage, while those with deeper knowledge hold back, tangled in doubt and self-questioning. The irony is striking — true expertise usually brings humility, curiosity, and the courage to keep questioning, while ignorance shows up loud, bold, and certain.</p><p>This dynamic creates a <strong>Vacuum of Expertise</strong>: the least knowledgeable speak the loudest, propped up by false certainty (Dunning–Kruger), while the most competent voices hesitate, second-guessing themselves (Impostor Syndrome). When this imbalance multiplies across a group, ignorance gains authority, and expertise retreats into silence — the perfect setup for systemic failure.</p><h3>The Multiplier Effect: From Gaps to Systemic Failure</h3><p>We often hear the term <em>multiplier effect</em> used in a positive sense — especially in business, where the combined efforts of a team exceed what any one individual could achieve. But the multiplier effect is neutral: it works both ways. Positive qualities compound to create extraordinary results, while negative ones can escalate problems faster than we expect.</p><p>Think of the math: three competent, thoughtful individuals working together don’t just add up to “three times the value.” Their collective intelligence and collaboration can multiply into ten or twenty times the impact. Now reverse the equation: two overconfident but ignorant individuals can cause far more damage together than either could alone. Scale that up — five, ten, or an entire team operating not on real confidence but on a <em>Shared Delusion of Competence</em>: the unspoken belief that “someone else must have checked it,” or “what are the chances we all missed the same thing?” This collective blind spot — this negative multiplier — can snowball into catastrophe far faster than any single individual’s mistake.</p><p>A striking example, mentioned in the book, is the <strong>Castle Bravo nuclear test</strong> in 1954. U.S. scientists expected a 5-megaton blast; it exploded at 15. The fallout poisoned nearby islanders and fishermen. The cause wasn’t a single mistake but <strong>groupthink</strong>: each expert assumed the others had done their job perfectly, so no one challenged the assumptions. This catastrophe was the <em>Illusion of Explanatory Depth</em> at an institutional scale, fueled by the toxic collision of biases. <strong>Confidence was unchecked, genuine doubt was left unspoken, and the system of trust and accountability failed them.</strong></p><p>In teams and companies, the danger isn’t just overconfidence — it’s the toxic mix of <strong>overconfidence, impostor syndrome, and misled humility</strong> working side by side. The least knowledgeable often speak the loudest, propped up by false certainty (<em>Dunning–Kruger</em>). Meanwhile, the most competent voices hold back, second-guessing themselves, afraid they don’t know enough. Caught in the middle are team members who genuinely admit their own lack of knowledge, but who mistakenly defer to the loudest, most certain voice, failing to validate or double-check based on a misplaced trust. When this imbalance multiplies across a group, the effect compounds: <strong>ignorance gains authority, and crucial validation steps are skipped</strong> by everyone as expertise retreats into silence. That’s how organizations drift, not suddenly but steadily, into costly failures.</p><p>The Castle Bravo test is a vivid reminder: catastrophe didn’t happen because no one knew enough, but because <strong>assumptions went unchallenged, confidence was unchecked, and genuine doubt was left unspoken.</strong> In the end, it wasn’t knowledge that failed them — it was the <strong>system of trust, dialogue, and accountability</strong> that broke down.</p><p>And that’s the real lesson for teams today: <em>competence only protects us when it has the courage to speak, and confidence only serves us when it is tested.</em> Anything less is just the next blind spot waiting to explode.</p><h3>How Teams Can Break the Cycle</h3><p>Escaping the trap of overconfidence and impostor silence takes more than polite advice — it needs <strong>discipline and structure</strong>. Teams that avoid costly failures usually do five things consistently:</p><ul><li><strong>Institutionalize Doubt</strong>: Make it normal, even mandatory, for every plan to be challenged. If no one is asking <em>“what if we’re wrong?”</em> the process is broken. For example, implement a formal <em>Red Team Review</em> on all major decisions, whose sole purpose is to argue against the plan’s success.</li><li><strong>Expose Assumptions Early</strong>: Don’t wait for failures to reveal hidden gaps. Force assumptions into the open, and test them. A shared spreadsheet listing every assumption with an assigned owner for validation is a simple but powerful tool.</li><li><strong>Balance the Voices</strong>: Build mechanisms that amplify the quiet expert and slow down the loud novice. In critical decision meetings, try requiring junior or quieter team members to speak first, ensuring their input isn’t biased by those with more organizational authority.</li><li><strong>Reward Candor, Not Certainty</strong>: Treat people who surface risks and limitations as assets, not obstacles. Make it clear that surfacing a risk is more valuable than maintaining an illusion of perfection.</li><li><strong>Close the Loop</strong>: After every decision, revisit the outcome. Accountability isn’t blame — it’s the habit of learning by verifying whether the results matched the initial confidence.</li></ul><h3>From Blind Spots to Collective Strength</h3><p>No single person sees the whole picture. But when teams design their culture to <strong>challenge confidently, doubt openly, and hold each other accountable</strong>, the multiplier effect works in their favor. Confidence becomes grounded, humility becomes powerful, and blind spots turn into insight.</p><p>That’s how organizations avoid drifting into the next <em>“Castle Bravo”</em> — not by knowing everything, but by building systems where no assumption goes untested, and no voice goes unheard.</p><p><strong>Author’s note:</strong> This article was grammar-checked and edited for readability by ChatGPT, but the ideas and perspectives are <em>my own</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89c6b46e31db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Manifest of Resistance for Intoverted Tech Leaders— Career Reflections]]></title>
            <link>https://ahawary.medium.com/a-manifest-of-resistance-for-intoverted-tech-leaders-career-reflections-fe1a74ef102c?source=rss-bf0f1a425223------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe1a74ef102c</guid>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[career-reflection]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <dc:creator><![CDATA[A. Hawary]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 08:08:51 GMT</pubDate>
            <atom:updated>2024-07-29T08:08:51.048Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>In one months, I’ll be celebrating a decade in my professional career!</strong> And I believe this is the first time, almost, to stop and look at my journey retrospectively. Looking back now I can say undoubtedly, I made what I could and I hope It was enough. The flaw in my story is that I do have an intrinsic feeling of “I did not do well enough” even in my most glorious moments that are highlighted by the people around me. I always felt I did not do my best, and I needed to do better. Now, tackling my mid thirties, what dramatically changed is that I got that look to life as whole to be satisfied with being good enough and doing my local-best every day, which could have a very low bar some days and very high one for another.</p><p>Looking back now, I can see a mix of successes and learning experiences. I’ve developed some amazing algorithms, even if not all of them shipped. I’ve spent countless hours honing my skills, and while some code hasn’t made it through peer review, the feedback has always been valuable. In other instances, I’ve tackled complex problems with elegant solutions, sometimes even without being fully aware of the prior challenges faced.</p><p>There have been moments where I’ve misspoken or offered uninformed opinions. But those experiences, however humbling, have been essential for my growth. It’s the trade-off for the countless times my contributions have made a real difference.</p><p>However, my experience as the Head of Data at <strong>4Sale int.</strong> over the last 9 months has been an entirely different story — it accelerated everything unexpectedly. It remains a profound journey for me, and I’ve learned countless lessons that have fundamentally transformed my mindset. With a lot going on I am still trying to understand and learn from, there are some lessons and insights I would love to write down to share and to get back to from now and then.</p><p>While I’m making progress, there are clear obstacles hindering my learning that require deliberate attention. Finding myself constantly questioning, resisting my cognitive biases and presumptions.</p><p>If I were to label this phase of my career, I’d call it the <strong>‘Tempting Resistance Phase.’</strong> And the following uncovering the battleground within my mind:</p><p><strong>Resisting Old Habits for Growth:</strong></p><ol><li><strong>Hands-Off Leadership:</strong> Resisting the urge to dive into hands-on technical challenges isn’t easy. As a leader, my role now involves overseeing the team — even if it means handling the less exciting tasks while leaving the thrilling ones to my team. Lucky them!</li><li><strong>Speaking Up vs. Holding Back:</strong> Resisting the temptation to always have the <em>‘right’ </em>opinion in every conversation — or even staying silent when I disagree — is crucial. Overcoming the fear of being wrong, even looking dumb sometimes, or uninformed allows personal growth and fosters an environment where the entire team can express themselves without fear of stigma.</li><li><strong>Managing Emotions:</strong> Resisting becoming overly emotional has been a recurring theme for me. Throughout my journey, I’ve noticed that many engineers — myself included — are sensitive, introverted, and sometimes even emotionally fragile. The ability to manage emotions, avoid taking things personally, and focus on facts and objectivity rather than emotions has become on the top of my growth plan list.</li><li><strong>Finding the Spotlight:</strong> Balancing the resistance between showing off and healthy self-promotion has been an interesting journey for me. I used to prefer a low profile — quietly working on my own machine, achieving amazing results without seeking recognition. In those early years of my career, I’d avoid most meetings where I had to present my work, fearing it would come across as arrogance or self-importance. However, today, I’ve found a middle ground. It’s not about showing off; it’s about celebrating the accomplishments of the entire team. When I present now, it’s not about me — it’s about recognizing the collective achievements. Finding that sweet spot has made all the difference.</li><li><strong>Overcoming the Urge to Interrupt:</strong> Resisting the urge to interrupt others during conversations, whether formal or casual, is really very challenging to me. I’ve been reading the book <strong>“Scattered Minds,” </strong>recently<strong>, </strong>which discusses ADHD, and while I don’t believe I have the condition, I recognize some similarities in my own experience. The book describes what the author called “hyperactive mind” that races with ideas, creating an impulse to share immediately. I’ve noticed this tendency in myself and others during meetings and casual chats. I’m currently working on improving my listening skills by taking time to process information before responding, as I believe now no one leading people can survive without listening to them carefully.</li><li><strong>Overplanning: </strong>Resisting over-planning has been a personal challenge for me. I tend to meticulously think through every aspect of my work and life. While this results in beautifully crafted, high-quality plans, the reality hits hard during implementation — timelines break, and execution falters, ending up with a lot of abandoned plans. Having a plan is essential, but diving too deep into micro-details can consume time and hinder execution. So, here’s what I’ve learned: Strive for a practical plan — one with enough details to guide efficiency without drowning in unnecessary complexity.</li><li><strong>Healthy Boundaries:</strong> Resisting being always nice with people while it is already part of my personality is a hard one. So It’s important to me to find a balance between being kind and assertive. While it’s natural to all of us to want everyone to like us, it’s unrealistic to expect everyone to love you or enjoy working with you. Instead focusing on building trust and respect and being kind not nice — By showing empathy, compassion, and understanding, and being authentic should be the goal.</li><li><strong>Resisting Spreading Data-Driven Negativity: </strong>In the hidden corners of my mind, I harbor a secret talent: foreseeing impending chaos and clearly seeing the cracks forming. In the past I used to share–what said to be–my negative predictions directly and bluntly, leaving people with a negative feeling, as if I was evangelizing the chaos rather than trying to prevent it. While my predictions were often accurate, I realized the importance of discretion and resisting the urge to speak it up. Instead of sharing my pessimistic outlook, I opted to present the underlying data to those potentially affected, giving them the equation operator and operands; Allowing them to run their own conclusions based on the facts.</li><li><strong>Resisting Assumptions: </strong>It’s challenging to resist making assumptions, especially when working with data. My mind constantly seeks patterns and insights to make assumptions, often leading to premature conclusions. This habit extends to how I interact with people. Recognizing that people are not data points, I’ve learned the importance of direct communication. Instead of speculating about intentions, it’s essential to ask for clarification and build shared understanding, particularly in ambiguous situations.</li><li><strong>Resisting Shortcuts in Leading:</strong> Resisting the urge to give direct advice when you’re not asked for, is a constant challenge. When I say not asked for, I mean that people maybe not in the right mode or time so not ready. Throughout my nearly six years of experience working as a coach with children, I’ve discovered that indirect guidance — akin to coaching — is often more effective than issuing direct commands. Adults, much like children, can feel defensive when given explicit instructions. When faced with explicit instructions, adults can become defensive, their rational thinking hindered by perceived threats. Instead, by gently guiding individuals and encouraging self-discovery, leaders create a more collaborative and receptive environment. People are more receptive to ideas they generate themselves than to those imposed upon them. While this approach demands patience and time, the results are ultimately more fruitful. Although it implies more to personal growth aspects when leading people; it also sometimes holds true when addressing technical or operational challenges arising from a subordinate or peer’s behavior or personal traits.</li></ol><p>As I reflect on my journey as a new head of engineering, I see a fascinating interplay between personal growth and professional responsibilities. Sometimes, these roles clash, and I’ve noticed contradictions. Yet, unless I narrow the gap between them, resistance persists. Career growth and personal development are inseparable — they fuel each other. Authenticity isn’t optional; it’s foundational. Authenticity is crucial at all levels, but leadership demands a higher degree of self-awareness to avoid harming others or experiencing burnout while fulfilling daily obligations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe1a74ef102c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Not To Burn Out As An Aspiring Data Engineer]]></title>
            <link>https://ahawary.medium.com/how-not-to-burn-out-as-an-aspiring-data-engineer-85a59039df3a?source=rss-bf0f1a425223------2</link>
            <guid isPermaLink="false">https://medium.com/p/85a59039df3a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[A. Hawary]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 14:59:49 GMT</pubDate>
            <atom:updated>2023-07-17T15:14:00.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BsuhAbDE_ONeqbkurxKhRw.jpeg" /></figure><p>I have been working with Python for 8 years at an EdTech company, where I was involved in a variety of projects and tasks. My official title was Python Technologist, but that did not capture the full scope of my work or even be descriptive enough for its scope. I had to explain to others what I am actually doing under this title and where I fall in the tech field. Some of the things I did were: developing MVPs and POCs for new ideas, automating repetitive tasks and workflows for other teams to enhance work productivity and process efficiency, building ML models for various applications, processing and cleaning data from different sources, creating editable video frames from JSON files using the Bezier algorithm, and more. Each project was a new challenge that required the team to stretch and expand our territory to a new land to acquire new technologies and tools quickly and effectively. I enjoyed working in a fast-paced, delivery-oriented environment with a lot of talented people who shared my passion for working on innovative ideas.</p><p>My journey was amazing, but it had to come to an end, and I needed to move to a new place and get a fresh start out of my comfort zone to raise the bar of the challenge. Then I started to look at the market to see where I could fit in. I realized that there was no clear match for me at that time. I began to evaluate my skills and compare them with market demand. I was drawn to data engineering because I had years of experience handling various kinds of data (especially semi-structured and unstructured data). I decided to label myself as a Data Engineer and fill in the gaps in my knowledge. I quickly identified that I needed to improve my SQL, data modeling, Big Data Ecosystem, and cloud technologies skills, and learn the market terminology and tech stacks for DE projects.</p><p>I felt overwhelmed by then, as I read every new Medium or LinkedIn blog about the DE learning plan. There were so many new tools and technologies that I would need years to understand and get used to them, let alone master them!</p><p>I started to doubt my choice to switch to data engineering. But then I got a remote job as a Software Engineer in a new company, and after 2 months, I realized I was doing pure data engineering work without knowing it at first; I was creating Python adaptors to ingest data from third-party data sources into Dagster ETLs using gRPC APIs. Three months later, I moved to a new project to migrate ETLs from R to Python and transfer ETLs from Apache Airflow to Dagster.</p><p>I learned that the only way to become a data engineer is to get your hands dirty doing data engineering work and not to wait until you feel ready and qualified to apply for data engineering jobs (most probably, you’ll never feel so). Data Engineering is a very challenging domain for perfectionists (Ask me!)</p><p>I spent horrible nights doubting my ability, struggling with self-doubt, and wondering if I should switch to a simpler job. But I was already committed, involved, and passionate about it. I searched for others who made the same transition from software engineering to data engineering and found some helpful articles that cleared up a misunderstanding I had. I realized that I didn’t have to master everything in this vast field to be a competent data engineer; I just had to grasp the basics horizontally across the domain, know something about everything, and focus on one area to specialize in, building vertically on this one, trying to know everything about it. And the options were many! (ETLs, data warehousing engineering, big data engineering, data modeling, etc.)</p><p>Data engineering is a dynamic and diverse field with many tools and techniques. It was hard to find a single course that covered everything I needed to learn. I had to use different sources, such as courses, books, articles, and guided projects. After a thorough search, I discovered three tracks that were well-reviewed and could be used as a starting point.</p><h4>Coursera: IBM Data Engineering Professional Certificate</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*deddZtSEtP5DSyA_VuQ3Jg.png" /></figure><h3>Udacity: How to Become a Data Engineer Nanodegree</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gl6duqDW3Dx4LTHClyAJHw.png" /></figure><h3><strong>DataCamp: Data Engineer with Python </strong>Career Track</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*PdwXBpb1zzwlDkzLZnYP-g.png" /></figure><p>I decided to complete the three tracks one by one. And along the way, I tried to figure out which area of data engineering I wanted to specialize in.</p><p>After 6 months on this journey, here are the most important lessons I’ve learned about DE:</p><ol><li>A formula for burning out as a DE: Put pressure on yourself to know everything about everything</li><li>Data engineering can mean different things for different teams and companies. Get ready and be flexible to shift to new tools and technologies with every team you join</li><li>Enjoy the learning journey, celebrate the milestones, and embrace the challenges as you grow with it.</li><li>You don’t need to remember everything, you just need to know how to find what you need quickly.</li><li>Unfortunately, for introverts, you won’t have much time to stay in your comfort zone. You’ll have to collaborate with many teams and attend many meetings.</li><li>Python is amazing, but at some point, you may need to take a look at R, Scala, or Java, so be ready</li><li>You need to stay updated on market trends, as there are frequent changes in the data landscape that you don’t want to miss completely. At least know where each tool or technology fits in, so as not to feel left behind by time.</li></ol><p>Now, I have finished the Udacity DE Nanodegree and the IBM DE Professional Certificate, and I’m close to finishing the DataCamp track. I still don’t have a clear preference for a specific area, but now I have a good understanding of the overall picture of data engineering and a realistic assessment without underestimating or overestimating myself, which helped me know exactly in which areas I need to invest and improve. I started job hunting because I think I’m ready to start a new journey with data engineering, to take on projects that put into practice what I’ve learned and leverage my years of experience in a new way with data products as a data enabler.</p><p><strong>Stay tuned for the next article, where I’ll talk about my learning experience, feedback, and advice about the certificates I mentioned.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85a59039df3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Not To Get Fooled By Your Ideas!]]></title>
            <link>https://ahawary.medium.com/how-not-to-get-fooled-by-your-ideas-bbcb597f24f9?source=rss-bf0f1a425223------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbcb597f24f9</guid>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[monty-hall]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[behavioral-economics]]></category>
            <dc:creator><![CDATA[A. Hawary]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 18:47:12 GMT</pubDate>
            <atom:updated>2022-11-21T18:47:12.456Z</atom:updated>
            <content:encoded><![CDATA[<p>A while ago I published a survey that only had a single question. It was a traditional coin-flip question: A coin is flipped a million consecutive times, and the outcomes are recorded. Which of the following expresses the result of the experiment?</p><p>1- Approximately 50% heads and 50% tails</p><p>2- Exactly 50% heads and 50% tails</p><p>3- The result is totally random and unpredictable</p><p>When I wrote the question, I was expecting that the majority of responses will lean towards a certain choice. The reason for that was an idea that stuck with me for a long time, till I started to actually practice experimental probability — we will come to that later on. This idea is that flipping a coin once will certainly result theoretically in a probability of 50% for either side, but maybe if we repeated the experiment many times, the result will begin to tip significantly towards one of them, resulting maybe in 700 times for the first side if the coin was tossed 1000 times for example. This idea might be the result of the traditional method of teaching experimental sciences like statistics and probability — as well as the rest of the mathematical concepts — that only scratches the surface of these concepts without focusing on actually linking them to the experimental aspect, giving our imagination space to fill the resulting gap with ideas that are not necessarily true or in accord with the actual theory, yet all that matters is that these ideas put our minds at ease and go with the way we look at things that we assume are of similar nature. For example, imagine that when teaching you about gases, your teacher leaves out the fact that helium is lighter in density than air, then your mind tries to imagine a balloon filled with helium. Instantly, your mind will conjure a picture of the helium balloon lying on the ground due to gravity pulling like any other balloon filled with air. The mind cannot tolerate the lack of answers and would often rather adopt a delusional-ready idea than take the more effortful path of thinking or researching. The result is hundreds, and maybe thousands, of faulty adopted ideas.</p><p>Now, before sharing the result of the survey, I’d like to share some facts:</p><ol><li>I haven’t mentioned in the survey whether the coin is ideal and fair. By ideal, I mean having an equal probability for both sides. For example, imagine a coin with one metal side and one wooden side. Would the probability be equal for both sides?</li><li>I didn’t mention the conditions under which the experiment was conducted. Which side was up in each coin flip? Was the experiment conducted in an airtight room, or close to an open window on a windy day?</li></ol><p>Actually, I intentionally left out that data on purpose, so as not to give the mind a chance to arrange thoughts and make many logical calculations. Since the main objective of the experiment is to trigger the emotional and impulsive choice that is based solely on intuition and subconscious tendencies.</p><p>The results of the survey — at the time of writing this article — (with more than 3000 participants) are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6d3GkEIR0F2Y9G-_" /></figure><p>About 70% of the participants picked the third answer “the result is totally random and unpredictable.” You can view the survey and its results <a href="https://docs.google.com/forms/d/1trH21DWnodzpjDbR6bhuiS4hY2_I8spcHiAM5w9Etlc/edit%23responses">here</a>.</p><p>Let’s take a moment to reflect on what happened.</p><p>The question begins with one of the rules of probability theory which states that the probability of an event = the number of favorable outcomes/the number of total outcomes. This means that the probability of getting tails = 1 (the number of tails of the coin) divided by 2 (total sides of the coin). It was phrased as follows: “If you know that the probability of getting one side of the coin is 50:50 if it was randomly tossed.” Here, there are two possibilities:</p><p>1. You believe in the rule’s applicability in real life; thus you choose the answer that says that the result would be very close to the theoretical ratio when the experiment is repeated a million times.</p><p>2. You understand the rule ‘theoretically’, yet you are not sure that it would apply in real life, or doubt that it would apply to the experimental outcomes every single time.</p><p>Using experimental probability, I conducted the experiment. The computer chose randomly — that’s a story for another time — from either side of the coin for a million consecutive times, and the results came out as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c9r1gsQ1wAWj44va" /></figure><p>The yellow line represents the average ratio of getting one side. You will notice that the number hovered around the mean at first before it settles completely on it as the number of trials increased, it finally settles at approximately 50% after 15000 trials. That is the right answer to the question, that the final result after running the experiment a million times is that the probability of either side approaches 50:50. Right, why a million times? Why not a thousand or a hundred? Well, we will try to answer these questions, and meanwhile, try to understand how the majority made that mistake.</p><p>Imagine that you have reached the final level in a game show. You find yourself competing against the rules of probability in a game. Before you are three closed boxes. One of them has the final prize, and the other two are empty. You must randomly choose only one of the three boxes, playing a game against probabilities. After you exhaust your intuition and lean on the biases and tendencies of your subconscious, you finally make your choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*Vi82lOWeeb24EeIq" /></figure><p>Let’s assume that you chose the first box. Before you open it, the game show host blows a surprise: He opens one of the other two boxes to reveal that it is empty then excludes it. He then gives you a final chance to switch boxes. Now you can decide to either keep your first box or switch it for the other remaining one. What would you do?</p><ol><li>Keep your initial box (maybe you picked the right box already and he is just trying to confuse you).</li><li>Switch it for the other box (maybe this is a chance to correct a mistake you made).</li><li>It wouldn’t make a difference (for each of them stands a chance of 50:50).</li></ol><p>Before you continue reading, take a moment to consider what you would do in that situation, then — if you wish — click <a href="https://forms.gle/S1WmvCJm1tK19E4C7">here</a> to see the answers of the other participants.</p><p>Right, let’s assume that you went with the first choice. Most studies done on this problem found that most of the participants believed that switching boxes and keeping the first box both have the same odds of winning, yet the majority (around 87%) chose not to switch. That is quite normal since the question is too simple to fool anyone. A kid who just learned his first lesson in probability can answer it. It is a purely straightforward statistical problem! Choosing between two things is a game we used to play as kids: Heads or tails? Which hand has the coin? Both choices have the same probability: (1/2) or 50% It wouldn’t matter whether you pick the first or the second. There are only two possibilities in total (heads or tails, left or right), thus the probability of picking the right answer or choice from the two is 1/2 or 50%.</p><p>Congratulations! you still remember your first probability lesson, and that is exactly how your mind was tricked. Let me surprise you though: your answer is wrong! The probability of choosing the right box from the two boxes by either keeping your initial box or switching to the second is not 50:50.</p><p>No need to worry though. Not long ago, the consensus among mathematicians was that your answer is correct, till it was proven otherwise later on.</p><p>Before you start calling me ignorant, let me explain how your mind was tricked.</p><p>But first let me tell you the answer right away: Switching your box doubles the probability of winning (compared to keeping it). Indeed, this means that:</p><ol><li>Keeping your box gives you a 1/3 or 33.33% chance of winning.</li><li>While switching gives you a 2/3 or 66.66% chance of winning.</li></ol><p>Weird, right?</p><p>Let me explain.</p><p>You were initially given three boxes to choose from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*tQMTEmQyhza0X00I" /></figure><p>Let’s say you chose the first box, in which the probability of finding the prize is 1/3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*7c7ymyO0PQFdlEkF" /></figure><p>This means that the probability of finding the prize in the other two boxes combined is 2/3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*Rb-aRJR6ZsnBrHww" /></figure><p>The third box was revealed empty and excluded. And since we now know for a fact that it is empty, the probability of finding the prize in it is 0/3 or 0%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*brserFDeNcYwL7X4" /></figure><p>Since:</p><p>the probability of finding the prize in the second box + probability of finding the prize in the third box = 2/3</p><p>The probability of finding it in the third box = 0</p><p>therefore:</p><p>The probability of finding the prize in the second box + 0 = 2/3</p><p>therefore:</p><p>The probability of finding it in the second box = 2/3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*xpKLnyAqHHR8YVGj" /></figure><p>Simple, right? Yet, it sounds purely theoretical still. All right then, let’s try something else. Have you watched ‘Black Mirrors: Bandersnatch’? It is an interactive episode on Netflix that allows you, at certain points, to choose from several options, directing the events towards the desired path. Things speed up heading towards an end unknown to you, but somehow you have been part of its making.</p><p>Let’s play a similar game. Below is the complete path of the game with all possibilities charted out. In each phase, make your preferred choice. Then let’s meet afterward…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IJ-1Vivu39Zfk8gF" /></figure><p>With a simple calculation, we find that the game has 6 possible paths in total:</p><ol><li>Choosing the first box and keeping it.</li><li>Choosing the first box then switching.</li><li>Choosing the second box and keeping it.</li><li>Choosing the second then switching.</li><li>Choosing the third box and keeping it.</li><li>Choosing the third box and then switching.</li></ol><p>If we look at all the paths in the above chart, we will find that three of them lead to winning, while three lead to losing. Hence the total probability of both winning and losing is 50:50. Wow! What happened then to the 33:66 we talked about!</p><p>Let’s take another look. If we review the three possible outcomes of keeping our choice, we find that keeping it resulted in one win, and two losses. The opposite happens when we choose to switch. That rendered two wins and a loss.</p><p>Hence switching (two wins and one loss) raises the probability of winning to 2/3.</p><p>Right, I feel that you are not totally convinced though. I’ve been there too. I trust mathematics, but as I said, the theoretical aspect may at times be proven inapplicable in real life by practical experiments. So, I decided to play the game with the computer for a million consecutive times, asking it each time to choose a box, then I excluded one empty box of the remaining two and made it keep the one it chose, then I record the result, be it a win or a loss. The experiment was conducted in 1000 iterations, each of 1000 trials. For each of the 1000 iterations, I calculated the total probability of winning for all the 1000 trials.</p><p>To make it easier to grasp, imagine playing two iterations of 10 trials each:</p><ol><li>In the first iteration, you win 5 of the 10 trials, thus the probability of winning is 50%.</li><li>In the second iteration, you win 8 of the 10 trials, thus the probability of winning is 80%.</li></ol><p>The experiment then is repeated another thousand thousand times, this time the computer chooses to switch its initial choice each time. Then for another thousand thousand times, allowing it to randomly choose one of them.</p><p>What do you guess was the result?</p><p>If you are one of those who feel for their gun whenever graphs are brought up, go ahead and do that, for we will be looking at plenty of these!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lEEJQng4fQAxjYyb" /></figure><p>As shown in the graph, the means of winning for committing to the first chosen box or randomly choosing or switching boxes are approximately 33.3%, 50%, and 66.6% respectively. Exactly, theoretically, the graph above tells us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EqYUwgYDVbuNq2om" /></figure><p>The horizontal axis of the graph represents the number of iterations ranging from 0 to 1000 moving towards the right. The vertical axis represents the percentage of winning for every iteration (of 1000 trials each). The green, red, and yellow bars represent switching, random choice, and committing to the first choice respectively. We can clearly see that the percentages are approximate as follows:</p><ol><li>Committing to the first choice has a winning percentage of 33.3%, which is the lowest among the three</li><li>Random choice has a slightly higher percentage of wins at 50%</li><li>Switching has the highest percentage of wins at 66.6%</li></ol><p>The graph below shows the number of wins for all the million consecutive trials using the three strategies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gj6IZFLZu-xipZit" /></figure><p>In the graph, the horizontal axis represents the number of trials from 0 to 1 million trials. The vertical axis represents the number of wins from 0 at the bottom going up with each win.</p><p>After 1 million consecutive trials, switching boxes rendered 666000 wins.</p><p>After 1 million consecutive trials, keeping the box rendered 333000 wins.</p><p>After 1 million consecutive trials, randomly choosing rendered 500000 wins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PouYzXVaSHh4VwZg" /></figure><p>To put it more clearly, if you choose one box out of a hundred, your chances of winning stand at 1%.</p><p>If I exclude 98 empty boxes (knowing that all of them are empty), leaving only one — other than the one you chose — the probability of it being the winning box becomes 99%. This conscious intervention in the random experiment tips the scales in favor of the remaining choice and gives it a statistical edge.</p><p>Well, what happened here?</p><p>In fact, this mathematical conundrum is a bit more complicated than the question that was asked at the beginning of this article, though it addresses the same core concept. This problem is one of the mathematical problems that are not easily grasped by intuition and was the subject of many studies and research that attempted to understand where it goes wrong, and what renders it counterintuitive. The studies suggested several different reasons, one or more of which might stand behind your wrong answer.</p><ol><li>The Dunning-Kruger effect: The Dunning-Kruger effect is a cognitive bias in which people tend to overestimate their knowledge and ability in a specific area. The effort needed for them to realize the extent of their ignorance in that area is the same effort needed to fully grasp it. Meaning that one cannot realize the full extent of their ignorance of a specific area until they learn about it and know it inside out. Take the coin problem, for example, your mind assumed that it already possesses all the experience and data needed for solving such a problem, meanwhile, it actually neglected a basic and fundamental statistical rule: ‘the rule of large numbers’ which states that the larger the sample, the more accurate the predictions (i.e., the narrower the gap between experimental probability and theoretical probability). Hence the ‘million’ trials in my coin flip question.</li><li>Loss aversion bias: It is a cognitive bias in which most people tend to avoid losing so much that they focus on that more than on trying to win. That is why in the box problem, the mind raises a red flag to alert you of the risk of switching your box, which may be the winning box, despite the actual uncertainty. In this case, switching would mean risking to win what is not yours, while the safer choice would be to lower the probability of regretting your choice in case your box turns out to be the winning one.</li><li>Using untrained intuition If not stimulated and provoked consistently, the mind tends to simplify rather than go deep. When this happens, the conscious mind refrains from any interventions, leaving the subconscious to impulsively make the choice based on intuition. Thus, without any mental effort or actual thinking, you tend to choose impulsively and emotionally. It neglects, for example, the fact the show host made a conscious intervention and excluded a box that he knows for sure is empty, despite the significance of such a fact. It then sees the situation as a matter of a random choice between two boxes with equal chances, but the Meaning that the event of excluding one of the two choices after you make your choice is inseparable from the experiment as a whole, As this is an event that changed the scales of probability, definitely tipping them in favor of the remaining box.</li><li>People tend to focus, i.e., assume that they stand before a completely new situation, instead of updating. Updating here means that the original situation still stands, yet our knowledge of it has increased — after the exclusion of the empty box– while focusing means that the mind assumes that it is a totally new situation: Two boxes, one of them containing the prize. That means equal probability!</li></ol><p>What do we learn from that?</p><p>The main idea here is the mind and how it processes and deals with decision-making. In his book ‘Thinking, Fast and Slow’ Daniel Kahneman, a famous psychologist and behavioral economist, says that despite its tremendous capabilities, the mind is lazy. By lazy he means that it tries to minimize the effort it exerts in performing its various mental processes as much as possible. The mind has two systems of thinking: Fast Thinking, which is the instinctive and emotional type of thinking that does not require significant effort or consciousness. It takes place in the subconscious, where impressions, emotions, and tendencies reside. Slow Thinking is the more effortful and taxing system, since it requires consciousness and alertness, and occurs in the conscious mind. An example of it would be trying to solve a complex math problem. When a person gets used to a certain mental activity that they regularly practice, after some time, their subconscious adapts to it and it gets programmed into its system, rendering it a habit that can be mindlessly performed by the subconscious every time. For example, learning to drive a car. At first, driving is a very complicated process that requires your full attention and mental alertness, and you feel that there are dozens of details to it that completely drain you, but after some time, as you get used to it, it becomes a totally instinctive act, performed mindlessly and subconsciously. This is very similar to what happens with mathematics. Your subconscious starts to build intuition towards different types of problems it gets exposed to, and after a while, it begins to solve simple ones that it repeatedly encounters easily and without effort. The problem here is the untrained intuition; leaving your instinct — with all its baggage of cognitive biases — to make choices in situations that require a higher level of consciousness and attention. So, watch your thinking and your decision-making during the day. You will be surprised how much of your choices are driven by your emotions and your subconscious tendencies. Choices that if you consciously considered, you might see as illogical.</p><p>Note: This article is about a famous statistical paradox named the Monty Hall Problem (after the host of a famous 90s game show). If you wish, you can look it up and read more about it.</p><p>You can access the Python code for the experiment here <a href="https://github.com/Hawary13/Monty-Hall-Hypothesis-Test">Hawary13/Monty-Hall-Hypothesis-Test</a>”</p><p>You can try playing Monty Hall’s game here <a href="http://math.ucsd.edu/~crypto/cgi-bin/MontyKnows/monty2?0%2019305">Let’s Make a Deal: Screen 2</a>&quot;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbcb597f24f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>