<?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 Rechitasingh on Medium]]></title>
        <description><![CDATA[Stories by Rechitasingh on Medium]]></description>
        <link>https://medium.com/@rechitasingh?source=rss-f3786afa1608------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ce6Ff2d8EPMeHKehO7LeYw.jpeg</url>
            <title>Stories by Rechitasingh on Medium</title>
            <link>https://medium.com/@rechitasingh?source=rss-f3786afa1608------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:05:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rechitasingh/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[A $2,000 payment saved me $2,500 in interest. I built a tool to understand why.]]></title>
            <link>https://medium.com/illuminations-mirror/a-2-000-payment-saved-me-2-500-in-interest-i-built-a-tool-to-understand-why-8df37da681f3?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/8df37da681f3</guid>
            <category><![CDATA[financial-literacy]]></category>
            <category><![CDATA[personal-finance]]></category>
            <category><![CDATA[debt]]></category>
            <category><![CDATA[student-loans]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 13:31:01 GMT</pubDate>
            <atom:updated>2026-04-30T11:30:40.548Z</atom:updated>
            <content:encoded><![CDATA[<h4>What loan math taught me about interest, extra payments, and why most calculators don’t help enough</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YMxLXw8eg1vZpy1SNs0xg.png" /><figcaption>PayoffPilot snapshot</figcaption></figure><h4><strong>For Your Curiosity</strong></h4><p>Did you know that if you borrow $50K at 13% for 15 years, you ultimately end up paying close to $114K in total?<strong> </strong>More than half of that (roughly 56%) is just interest.</p><p>That number really got to me.</p><p>If you ask me why I was digging around these numbers, well, because, like a lot of people, I’ve dealt with different kinds of loans over time. And every time I come across some extra cash in hand, I would start wondering the same thing:</p><ul><li>Should I put this towards my loan?</li><li>What would that change exactly?</li><li>Does my installment reduce? Does my tenure reduce?</li><li>How much interest am I actually saving?</li></ul><p>In my case, it got messier because I disbursed (released) my loan in two installments, so now I have two amortization schedules. The loan has two interest amounts, two remaining principal amounts, and no holistic numbers.</p><p>So, I did what most people do: opened Excel.</p><h4>Why It Got Messy</h4><p>Then started pulling numbers from different reports, creating formulas, trying scenarios, and checking whether an extra payment now would make a meaningful difference later. It worked, technically. But it was exhausting. And every time I wanted to test a new scenario, it became a mini project. And EVERY TIME it felt like starting from scratch.</p><p>That was the real problem.</p><p>It wasn’t that the math was impossible. It was that understanding the loan in a practical, repeatable way was much harder than it should have been.</p><p>I also tried using online calculators and bank-provided tools. But I’d say this: They were helpful for basic estimates, but they didn’t answer the kinds of questions I actually had. For instance,</p><ul><li>What if I pay an extra $25 every month?</li><li>What if I pay $1,000 every quarter?</li><li>What if I make a one-time $2,000 payment in month 7 because I got a bonus or tax refund?</li></ul><p>And what happens if it’s a loan where the EMI stays fixed (like car loans) and the tenure reduces, versus one where the tenure stays fixed and the EMI changes?</p><p>Real life is irregular. Most calculators assume it isn’t. Since I was not getting all these answers in one place, I decided to act as my own client and solve the problem at hand.</p><h4>Exploring Solutions</h4><p>And yes, I did think about using AI more deeply for this.</p><p>Here’s the rationale for not using AI every time I had a question. It’s because it’s great for understanding concepts, exploring possibilities, and even helping think through projections. But for this problem, I didn’t need something that gave me a smart answer once. I needed something I could use again and again, with my own numbers, and trust every time.</p><p>So instead of building something fancy, I built something useful.</p><h4>My Solution</h4><p>That’s how the loan payoff calculator (PayoffPilot) started.</p><p>I wanted one place where I could model the kinds of decisions people actually make: extra monthly payments, quarterly payments, one-time erratic payments, fixed EMI vs recalculated EMI, and even future-date views of what the loan would look like after planned payments.</p><p>Because that’s how financial decisions happen in real life. Not in straight lines.</p><p>And this is where the numbers got interesting.</p><ul><li>A $2,000 extra payment on my loan saved me more than $2,500 in interest.</li><li>For a $50K loan at 13% over 15 years, even an extra $1,000 per quarter can cut the total interest dramatically (by ~50%).</li></ul><p>Seeing those numbers change live made something click for me in a way static amortization tables never did.</p><p>You don’t just understand the cost of the loan better.</p><p>You start seeing the cost of delay differently, too.</p><h4>What The Numbers Look Like</h4><p>Let me demonstrate below, using the calculator, the $50K example. This shows how the interest amount cuts down to half for a $50K loan, if you pay $1000/quarter extra. Also, this is just an example; you can build your own scenarios, or if you want, the scenario labs section shows you 7 different pre-built scenarios that you can take reference from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lz-JsPnSs4bB-Lg8ZsMk3Q.gif" /><figcaption>PayoffPilot — showcasing $1K extra quarterly payment cutting $50K loan interest in half</figcaption></figure><h4>The Shift In Mindset</h4><p>Honestly, this tool has definitely made me more mindful about spending and towards my finances.</p><p>Because now, when I think about an extra dollar going somewhere, I also think about what that same dollar could do if I put it toward the loan. And that changes behavior. Not out of fear, but out of clarity.</p><p>We all knew that knowledge is key, and boy, <strong>that’s true</strong>!</p><h4>What I Took Away</h4><p>As an AI engineer, I could have built something fancy. However, it’s not the tools that matter; it’s the approach. Places where you need a needle, a sword won’t do much! At the end of the day, adding value to life is the goal.</p><p>It’s been quite some time since I’ve been using this tool, and it has helped me a lot. And of course, this has only been used by me on a few scenarios, but feel free to use it and add your inputs. If you have any questions or concerns, let me know in the comments, and I’d be happy to answer or update.</p><p>I’ve linked the calculator and the GitHub repo below in case you want to try your own scenarios.</p><p>Github repo: <a href="https://github.com/rechita/loan-payoff-optimizer.git">https://github.com/rechita/loan-payoff-optimizer.git</a></p><p>Live Calculator link: <a href="https://rechita-loan-payoff-optimizer-loan-optimizer-ipd2od.streamlit.app/">https://rechita-loan-payoff-optimizer-loan-optimizer-ipd2od.streamlit.app/</a></p><h3>About The Author</h3><p><em>Dear Readers, I am passionate about the subject and love writing about data science topics and food for thought articles. The most important thing is that I’m open to feedback!</em></p><p><em>I’d love to know your comments. If this article helped you in any way, or if you have feedback, please don’t hesitate to drop a note! Also, feel free to drop a comment if you want further explanation of the topic, and I’ll try to solve it here, or write another article on it!</em></p><p><em>To know more about me, I have a small article right here for you:</em></p><p><a href="https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad">About Me — Rechita Singh</a></p><p><em>Let’s get Chatting…</em></p><p><em>Let’s get Chatting…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8df37da681f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illuminations-mirror/a-2-000-payment-saved-me-2-500-in-interest-i-built-a-tool-to-understand-why-8df37da681f3">A $2,000 payment saved me $2,500 in interest. I built a tool to understand why.</a> was originally published in <a href="https://medium.com/illuminations-mirror">ILLUMINATION’S MIRROR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[And I decided to write again!]]></title>
            <link>https://medium.com/new-writers-welcome/and-i-decided-to-write-again-73dfd8d9edee?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/73dfd8d9edee</guid>
            <category><![CDATA[new-writers-welcome]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[comeback-story]]></category>
            <category><![CDATA[writers-on-medium]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 10:21:20 GMT</pubDate>
            <atom:updated>2026-01-27T10:21:20.072Z</atom:updated>
            <content:encoded><![CDATA[<h4>Bringing my inner writer to light after a year-long break of self-exploration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G8tzOw4HsoIOMRl6FaVtPA.png" /><figcaption>Credits: My graduation picture — May’24</figcaption></figure><p>I always liked writing, be it about myself, things I see, observe, experience, anecdotes, or about my professional findings. But still, for quite some time, I stopped posting publicly. I can think of many… many reasons, but the most prominent one would be — ‘I needed to take a step back and think what’s really important to me!’. I wanted to write about everything… my work, interesting findings, data science, tools, etc. But at the same time, I like thinking about life, experiences, thoughts, emotions, people, and how they interact, and more.</p><p>The whole of last year was something! It felt like riding an uncertain wave. Overwhelmed by my own ambitious thoughts, I just took down my writing from the internet and into my diary. Because that felt like the right way to go! No one to judge, or tell me that ‘I don’t follow what you’re doing?’. There, I don’t have to explain my thoughts or the reason for taking a complete 180-degree turn from my earlier positioning. There, I could easily switch topics privately from science to emotions, without skipping a beat. At least, that’s how I felt.</p><p>Now, I feel that it was less about avoiding conflict but more about a subconscious survival instinct kicking in! Hence, starting here, I’ll explore my voice and embrace change. I am hopeful that while pouring my heart out here, the path will become clearer.</p><p>I set off on this journey 3 years ago, coming to a new country and starting from scratch. During this time, I graduated with a near-perfect GPA, worked for some great companies meeting and learning from some great people. And the things I learnt about myself in all these years would have taken me ages in the comfort of my home. I am living a kind of independence that I used to imagine in my dreams. It doesn’t matter how long it takes; it will happen! You know why? Because you’re not going to settle for anything less! Now I’m here to share what I’m learning with you.</p><p>Years of experience have taught me to take a chance and do whatever I really want to do, and things will follow. That is why I have recently taken up a Sr Data Scientist-AI role in a Retail company! I am learning so much in this process and am excited to share my personal and professional experiences.</p><p>In short, going forward, I’ll be writing about intelligence — both human and artificial — and what it teaches me about learning, work, and independence. Hoping to add some value along the way!</p><p>With that, I’ll begin…</p><h3>About The Author</h3><p><em>Dear Readers, I am passionate about the subject and love writing about data science topics and food for thought articles. The most important thing is that I’m open to feedback!</em></p><p><em>I’d love to know your comments. If this article helped you in any way, or if you have feedback, please don’t hesitate to drop a note! Also, feel free to drop a comment if you want further explanation of the topic, and I’ll try to solve it here, or write another article on it!</em></p><p><em>To know more about me, I have a small article right here for you:</em></p><p><a href="https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad">About Me — Rechita Singh</a></p><p><em>Let’s get Chatting…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73dfd8d9edee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/new-writers-welcome/and-i-decided-to-write-again-73dfd8d9edee">And I decided to write again!</a> was originally published in <a href="https://medium.com/new-writers-welcome">New Writers Welcome</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Named Entity Recognition Unmasked — The Essential Guide]]></title>
            <link>https://medium.com/data-science/named-entity-recognition-unmasked-the-essential-guide-404ad0568964?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/404ad0568964</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Fri, 29 Mar 2024 16:14:05 GMT</pubDate>
            <atom:updated>2024-03-29T16:14:05.789Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Named Entity Recognition Unmasked — </strong>The Essential Guide</h3><h4>How to Extract Personal Information from Text Corpus Using NER Like a Pro</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SN4vi7R1FOb_I00t" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Introduction</strong></h4><p>Okay, imagine this — you’ve got mountains of articles, journals, and blogs stuffed with information that you want to process. Now imagine you think it will be helpful for the community too if they get a chance to work with this data, HOWEVER, you wouldn’t want to share the data right away as it may contain certain personal information that shouldn’t be shared without the consent of those people.</p><p>Since it’s not viable to ask for permission from all those people, you decide to use your skills and mask any personal information under FERPA guidelines. It is common for companies to mask their data when sharing it outside for analysis or demo purposes and it’s easier with numeric data. And here we want to do the same but with textual data.</p><p>Now here, since we are talking about text data, we will be employing a technique in Natural Language Processing (NLP). Enter Named Entity Recognition (NER), a trusty NLP detective unlocking those hidden data treasures. The purpose here is to identify the personal information.</p><p>Let’s dive deeper into how NER works, the concept behind the NER mechanism, ways to implement NER, which solution approach to pick from and why, and how to implement the solution to this problem in Python.</p><h4><strong>Named Entity Recognition (NER): The Technical Breakdown</strong></h4><p>In simple terms, NER is all about teaching computers to spot those specific ‘entities’ within texts, in this case Personally Identifiable Information (PII). Picture it like giving your program a set of highlighters — one for names, one for places, one for companies, one for college, student ID, email address, or anything that can identify a person personally in this case and risk his/her identity. Here’s a peek at how NER works:</p><ul><li><strong>Rule-based Systems:</strong> The old-school approach. We create hand-written rules, like “a name usually starts with a capital letter.” Works decently for basic cases but can get extremely complex. Also, if you have many rules, it can become messier and messier</li><li><strong>Machine Learning Approach:</strong> Statistical models learn from massive datasets. Think of it like showing your NER system tons of examples so it can find patterns on its own. That’s how machine learning works for everything. However, it can still have performance issues when it comes to textual data.</li><li><strong>Deep Learning Superstars:</strong> Neural networks are the most famous model approach for textual, image, and video data-related problems. Handling complex language similar to what we humans do. These models understand context, making them incredibly accurate. The only condition here, you need to use lots and lots of data, or else the model will end up memorizing most of the training data (overfitting). Although there are techniques to control that, however, it still works best with a large corpus of data.</li></ul><h4><strong>Techniques in Detail: The Brains Behind NER</strong></h4><p>We’ve seen that NER can leverage various techniques, each with its strengths. Here’s a closer look under the hood:</p><ol><li><strong>Conditional Random Fields (CRFs):</strong></li></ol><p>Imagine you’re teaching your NER system to spot locations. You show examples of addresses like “10 Made UP Street, London, UK.” CRFs excel at this because they look at the entire sequence of words and their relationships. They consider that “London” following a number and “UK” following a city strongly suggests a location entity. This makes CRFs powerful for tasks like NER where context is very crucial.</p><p>Read this great article on TDS about CRF and the math behind it here: <a href="https://towardsdatascience.com/conditional-random-fields-explained-e5b8256da776">Conditional Random Fields Explained</a> by <a href="https://medium.com/u/bec849d9e1d2">Nikos Kafritsas</a></p><p><strong>2. LSTM Networks (Long Short-Term Memory):</strong></p><p>Let’s say you want to identify people’s names in text. LSTMs were a great invention after RNN because they have a special ability — a memory! Yes, they can hold memory or context and predict as per the context. Unlike CRFs (that only consider the current word), LSTMs can remember previous words in the sequence and not derail from context. This is important for NER. Why? Because that will help you understand whether it was Apple the company or Apple the fruit.</p><p>Let’s take another example: in the sentence “Dr. Smith is a renowned cardiologist,” an LSTM can remember the title “Dr.” and use that context to correctly classify “Smith” as a person’s name.</p><p>Here’s a real-world example: Imagine you’re building a NEWS classifier model that categorizes articles based on the people mentioned. An LSTM-based NER system could surely identify entities like “Barack Obama” or “Elon Musk” even when their names appear within complex sentences and are classified. Great implementation, isn’t it?</p><p>Read this article for a <a href="https://towardsdatascience.com/lstm-networks-a-detailed-explanation-8fae6aefc7f9">Comprehensive Introduction to LSTM</a> by <a href="https://medium.com/u/2f79d1e1bf6d">Rian Dolphin</a></p><p><strong>3. Transformers:</strong></p><p>Transformers are the current hot topic of NLP, and NER is no exception. These models use an attention mechanism, like focusing all your attention on a specific detail in a painting. What they do is, pay attention to relevant words across the entire sentence and not just nearby ones. Imagine it like a human looking at a text he/she hasn’t read before. We glace here and there, paying attention (spotlight kind of) to various sections and picking up meanings. This technique empowers them to understand complex relationships and identify even obscure entities.</p><p>For example, consider the sentence “The CEO of Acme Corp, based in California, announced a new product launch.” A Transformer-based NER system can pay attention to “CEO” and “Acme Corp” even though they are separated by several words. It can then use this attention to correctly classify “Acme Corp” as an organization.</p><p>This capability makes Transformers ideal for tasks like identifying medical terms in research papers or specific product names in social media data.</p><p>Read this article to see what fine-tuning can do: <a href="https://towardsdatascience.com/ner-with-transformers-and-spacy-b3240bc65eb4">NER with Transformers and Spacy</a> by <a href="https://jamescalam.medium.com/">James Briggs</a>. And if you are still wondering about Attention, start by reading this article, it talks about Attention in detail:<a href="https://towardsdatascience.com/all-you-need-to-know-about-attention-and-transformers-in-depth-understanding-part-1-552f0b41d021"> All you need to know about ‘Attention’ and ‘Transformers’ — In-depth Understanding — Part 1</a> by<a href="https://arjun-sarkar786.medium.com/"> Arjun Sarkar</a></p><p><strong>Beyond the Basics: Emerging Techniques</strong></p><p>The world of NER is constantly evolving. Here are some exciting developments to keep an eye on:</p><ul><li><strong>Bidirectional LSTMs (BiLSTMs):</strong> These are LSTMs on steroids, processing text forwards and backward. This grants them an even deeper understanding of context. It can have drawbacks because you can’t predict using this, as you feed the sentence both forwards and backward. So the system knows about the context.</li><li><strong>Named Entity Disambiguation (NED):</strong> Again, let’s take the Apple example. Imagine you see the name “Apple” in the text. Is it the tech giant or a reference to the fruit? NER can be coupled with NED to identify the most likely meaning in context.</li></ul><p>By understanding these techniques and staying updated on the latest advancements, you can use the power of NER to unlock valuable personal information from text data and fuel your research endeavors.</p><h4><strong>NER in Action: Your Project Code Sneak Peek</strong></h4><p>It&#39;s time for some hands-on stuff! Let’s say you’re using Python and the awesome spaCy library:</p><p>Python</p><pre>python -m spacy download en_core_web_trf</pre><pre>pip install spacy<br>pip install nltk</pre><pre>import spacy<br>from spacy import displacy<br>import nltk  # Assuming you might use NLTK for additional tasks <br>from nltk.corpus import stopwords  # Example of utilizing NLTK<br><br># Load a powerful pre-trained NER model (adjust based on your needs)<br>nlp = spacy.load(&quot;en_core_web_trf&quot;)<br><br># Define your text for analysis<br>text = &quot;&quot;&quot;<br>Jane Doe, a researcher at Stanford University, recently published a paper on <br>Natural Language Processing.  Dr. John Smith from MIT will be collaborating on the <br>project.  They can be reached at jane.doe@stanford.edu and john_smith@mit.edu.<br>&quot;&quot;&quot;<br><br># Process the text with NER<br>doc = nlp(text)<br><br># Print identified entities <br>print(&quot;Entities Found:&quot;)<br>for entity in doc.ents:<br>    print(entity.text, entity.label_)<br><br># Visualize the NER results<br>displacy.render(doc, style=&quot;ent&quot;, jupyter=True)<br></pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tM-oGjTd1dJRLwjg5BtOg.png" /><figcaption>Author’s image — Output of the above code</figcaption></figure><p>You can see above that although NER was able to pick up the Name and Organization perfectly, it missed out on their email addresses. Let’s explore why that may be the case and how to correct it.</p><p><strong>Reasons for Missing Email Addresses</strong></p><ol><li><strong>NER Model Limitations:</strong> Standard NER models are usually trained on categories like names, organizations, locations, etc. While they <em>might</em> pick up on some email patterns, it’s not their primary strength. Hence it missed it in this case</li><li><strong>Email Address Complexity:</strong> Email formats can be surprisingly diverse. Simple ones like “Gmail and Yahoo” might be recognized, but more intricate patterns may be missed. Say, it can pick up gmail IDs but may miss out on some organizational-specific IDs. Again, this is what happened in this case.</li></ol><p>Although we know the reason, we may be more focused on how to correct the problem here!</p><p>Let’s use one of the three techniques mentioned below to personalize and solve the task at hand:</p><ul><li><strong>Regular Expressions (Regex):</strong> Regex allows crafting specific patterns to match email addresses. This was developed way back and it is used a lot. You can think of it as somewhat hard coding to recognize a pattern in programming. Here’s a basic example:</li></ul><pre>import re<br><br>email_regex = r&#39;\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b&#39;<br>emails = re.findall(email_regex, text)<br>print(emails)</pre><ul><li><strong>Specialized Libraries:</strong> You can use libraries like email_validator. These are dedicated to the task of email identification and validation if validating email is your use case.</li><li><strong>Enhancing Your NER Model:</strong> You could fine-tune your existing model by providing examples of email addresses as an additional entity type. However, it will require more data and potentially more complex model training. This includes using pre-trained models like BERT etc. Again, read this article <a href="https://towardsdatascience.com/ner-with-transformers-and-spacy-b3240bc65eb4">NER with Transformers and Spacy</a> by <a href="https://jamescalam.medium.com/">James Briggs</a>. It talks about fine-tuning roBERTA and using spaCy. And this option will become clearer to you.</li></ul><p>Let’s pick the first approach for demonstration purposes and implement it into the code. We could add a section dedicated to email extraction as below:</p><p>Python</p><pre>import re<br><br>email_regex = r&#39;\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b&#39;<br>emails = re.findall(email_regex, text)<br>print(&quot;Emails Found:&quot;, emails) </pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*CaL-OEJiV1AC2cJls7R70A.png" /><figcaption>Author’s image — Output of the above code</figcaption></figure><p><strong>Choosing the Best Approach</strong></p><p>The ideal solution depends on your specific project:</p><ul><li><strong>Simple Emails + Accuracy:</strong> Regex is likely sufficient.</li><li><strong>Complex Emails + Reliability:</strong> A specialized email validation library is safest.</li><li><strong>Extensive NER Retraining:</strong> If NER accuracy for other entities is vital, and you have lots of email-focused data, retraining your model could be the long-term solution. You guessed it right, you use those fancy techniques like using a BERT pre-trained model by fine-tuning and using it for your problem. Some important considerations before using this would be: <br><br>- <strong>Data:</strong> Fine-tuning often requires a decent amount of labeled data. If you have limited data, other techniques (like regex) might be initially more practical.<br>- <strong>Complexity:</strong> Fine-tuning involves more setup and potentially more computational resources than using regex or basic libraries.</li></ul><h4><strong>Resources to Power Up Your NER Skills</strong></h4><ul><li><strong>spaCy:</strong> Stellar NLP library with excellent NER support (<a href="https://spacy.io/">https://spacy.io/</a>).</li><li><strong>NLTK:</strong> The classic NLP toolkit (<a href="https://www.nltk.org/">https://www.nltk.org/</a>).</li><li><strong>Stanford CoreNLP:</strong> Powerful suite of NLP tools (<a href="https://stanfordnlp.github.io/CoreNLP/">https://stanfordnlp.github.io/CoreNLP/</a>)</li></ul><p><strong>The Road Ahead</strong></p><p>NER is still a hot research area — get ready for models that grasp complex relationships, spot custom entities, and work across languages! This tech is revolutionizing how we extract and use information from the vast sea of text around us.</p><p><strong>Feel free to request even more technical details or real-world examples to add to the article. Let’s make this a powerhouse guide to NER!</strong></p><h3>About The Author</h3><p><em>Dear Readers, I am passionate about the subject and love writing about data science topics and food for thought articles. The most important thing is, that I’m open to feedback!</em></p><p><em>I’d love to know your comments. If this article helped you in any way, or you have feedback, please don’t hesitate to drop a note! Also, feel free to drop a comment if you want further explanation of the topic and I’ll try to solve it here, or write another article on it!</em></p><p><em>To know more about me, I have a small article right here for you:</em></p><p><a href="https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad">About Me — Rechita Singh</a></p><p><em>Let’s get Chatting…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=404ad0568964" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/named-entity-recognition-unmasked-the-essential-guide-404ad0568964">Named Entity Recognition Unmasked — The Essential Guide</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Enigma of the Inner Voice]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/new-writers-welcome/the-enigma-of-the-inner-voice-289aeb3b9e5d?source=rss-f3786afa1608------2"><img src="https://cdn-images-1.medium.com/max/2600/0*m-X8Ga1syTQF8K6M" width="5760"></a></p><p class="medium-feed-snippet">Exploration of my Inner Voice&#x200A;&#x2014;&#x200A;My Journey</p><p class="medium-feed-link"><a href="https://medium.com/new-writers-welcome/the-enigma-of-the-inner-voice-289aeb3b9e5d?source=rss-f3786afa1608------2">Continue reading on New Writers Welcome »</a></p></div>]]></description>
            <link>https://medium.com/new-writers-welcome/the-enigma-of-the-inner-voice-289aeb3b9e5d?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/289aeb3b9e5d</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[thoughts]]></category>
            <category><![CDATA[new-writers-welcome]]></category>
            <category><![CDATA[inner-voice]]></category>
            <category><![CDATA[critical-thinking]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Mon, 25 Mar 2024 02:10:38 GMT</pubDate>
            <atom:updated>2024-03-27T05:59:52.899Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Statistics Made Easy for Data Science- Story Approach]]></title>
            <link>https://medium.com/illumination/statistics-made-easy-for-data-science-story-approach-1ffdaceab255?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ffdaceab255</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fundamentals]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 18:13:45 GMT</pubDate>
            <atom:updated>2024-03-19T18:55:58.605Z</atom:updated>
            <content:encoded><![CDATA[<h4>Getting started with statistics in a storytelling format</h4><p>I searched the web a lot, but couldn’t find any resource that has explained Statistics for Data Science in a conversational format that explains why we use statistics, and how it impacts our lives in the first place!</p><p>Well, that’s why I decided to write one here. This will be all you need to grasp the statistical concepts intuitively as this article will act as the filler between all the questions you are having. Questions like — “Why should I even care about statistics?” and “How does it work?”</p><h4>TOPICS WE WILL COVER:</h4><p><a href="#0684"><strong>Case Study Introduction</strong></a></p><p><a href="#944b"><strong>Descriptive Statistics:</strong></a></p><ul><li><a href="#3091">Measures of Central Tendency</a></li><li><a href="#a62c">Measure of Skewness and Kurtosis</a></li></ul><p><a href="#6aa8"><strong>Distributions — for Probability</strong></a></p><ul><li><a href="#0b37">Introduction</a></li><li><a href="#df6f">Random Variables</a></li><li><a href="#594d">Probability Distributions</a><br>- <a href="#594d">Binomial distribution</a><br>- <a href="#95dd">Poisson Distribution</a><br>- <a href="#82c6">Exponential Distribution</a><br>- <a href="#e6a6">Normal Distribution</a><br>- <a href="#6de3">Student T distribution</a></li></ul><p><a href="#2fe0"><strong>Sampling Distributions</strong></a></p><p><a href="#Fd05"><strong>Confidence Interval</strong></a></p><p><a href="#d334"><strong>Hypothesis Testing</strong></a></p><p><a href="#dc52"><strong>Recap</strong></a></p><p><a href="#283b"><strong>References</strong></a></p><h3>Case Study Introduction</h3><p>Let’s start —</p><p>So, say you’re in college, and you started wondering…</p><blockquote>“I wonder what is the height of people at this place? If I stand in the ground with everyone, how long/short will I be?”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*RdV71ZLDrglfA4EjbPMoyw.png" /><figcaption>Generated with AI: <a href="https://deepai.org/machine-learning-model/">https://deepai.org/machine-learning-model/</a></figcaption></figure><p><strong><em>Case Question</em></strong><em>: What is the height of all the students in your college/school? (I’ll take the example of UTD)</em></p><p>Well if you Google, you’ll see there are <strong>29,543</strong> students enrolled!!</p><p>And if you’re lucky and have the correct data (courtesy of the Health Department, say), you’ll have something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*F92C-0ofEHFxRg7K17G_Og.png" /><figcaption>Author image</figcaption></figure><p>Now there are no missing values as we have data for all!</p><p><strong>YEAH RIGHT!! LIKE THAT’S THE CASE… EVER!! 😀</strong></p><p>Still, the <strong>Main Problem</strong> was, that even if we had the data,</p><ol><li>Understanding all these ~ 30K data points intuitively is not an easy task</li><li>If you’re a super-human maybe you could, however, making insights out of it will be time-consuming!</li></ol><p>What do we do?</p><p>Pick easy Approaches!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3><strong>Descriptive Statistics:</strong></h3><h4><strong>Measures of Central Tendency:</strong></h4><p>It includes <strong>Mean, Median, Mode, Geometric Mean, Hypergeometric Mean,</strong> and whatnot…</p><p>What do they do?</p><p>All these measures give you <strong>One Point</strong> trying to <strong>summarize</strong> all those <strong>~30K data</strong> points and these are called: <strong>Point Estimates</strong>!! Doesn’t sound that scary now, hopefully!</p><p>Do you need formulas? Refer to this link:</p><p><a href="https://www.cuemath.com/mean-median-mode-formula/">Mean Median Mode Formula - What Is Mean Median Mode Formula? Examples</a></p><p><strong>Back to the case question:</strong></p><p>Now, we take out a sample of 100 UTD students randomly and calculate the mean. And we get mean as 5’6! We pick samples because let’s face it, who wants to work with ALL THAT DATA? 🥱</p><p>So, <strong>x_bar = 5’6</strong></p><blockquote>This assumes that all those ~30K students’ height is 5’6!</blockquote><p>Well as far as we know, UTD does have a basketball team.. So… There must be something that we’re missing... So not everyone can be 5&#39;6.</p><p>So, what’s wrong with the estimate of 5’6 feet? Well, we just answered that!</p><blockquote><strong>Remember: We are trying to understand those ~30K records with a handful of numbers! That’s all Statistics is about!</strong></blockquote><p><strong>Quick important points:</strong></p><ol><li>Mean is based on ALL DATA points</li><li>The median is the middle value; Not affected by all data points (hence outliers)</li><li>Mode: Umm, highest frequency. Can have interesting applications</li></ol><p><strong><em>Do Note</em></strong><em>: All of these point estimates are called AVERAGES. So when you hear ‘Average’ it’s not always Mean. Could be any of these and more…</em></p><h4>Measure of Skewness and Kurtosis:</h4><p>Okay! Now we try to figure out by how much the height of the UTD students differs from 5 ‘6 feet (since there can be a basketball team included in our data). Well, the measure of skewness will help us understand that.</p><blockquote><strong>Skewness </strong>is a measure of the asymmetry of a distribution. A distribution is asymmetrical when its left and right sides are not mirror images.</blockquote><p>A distribution (that is, if I plot all those data points in a graph) can have <strong>right (or positive)</strong>, <strong>left (or negative), or zero skewness</strong>. A right-skewed distribution is longer on the right side of its peak, and a left-skewed distribution is longer on the left side of its peak:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*kCZ4UW1C6fvaGdnvSQIKMA.png" /><figcaption><a href="https://www.scribbr.com/statistics/skewness/">Stats Link to Skewness</a></figcaption></figure><p>What’s happening to mean, median, and mode in this case? The below image helps us understand:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*C9dkDzRQVhC_kmzIF9__Sw.png" /><figcaption><a href="https://www.shutterstock.com/image-vector/mean-median-mode-graph-negatively-skewed-2303311739">https://www.shutterstock.com/image-vector/mean-median-mode-graph-negatively-skewed-2303311739</a></figcaption></figure><p><strong>Right Skew: </strong>If we have more data fall on the right side of the graph, there are fewer high values, and the tail is stretched to the right. This will cause the mean to be impacted by the lower values and hence, it’ll be smaller than the mode and median (as they are not calculated on all the data).</p><p>The left skew is exactly opposite of the right skew, and normal distribution occurs when all the mean=median=mode coincides.</p><p>These distributions help us understand how data is distributed for a normal distribution!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3ZvdP1-3BAf46hPIwEHvA.png" /><figcaption><a href="https://www.scribbr.com/statistics/normal-distribution/">https://www.scribbr.com/statistics/normal-distribution/</a></figcaption></figure><p>But don’t worry, you don&#39;t have to plot all the data points to know the skewness of the data, because that’ll defy our whole purpose of working with statistics here!</p><p>You can simply use a formula, that gives you ONE number for skewness, and that will tell you how skewed is the data. Simple enough?!</p><p>How to get the number, Go to this link to get more information on how to calculate it on Python <a href="https://www.datacamp.com/tutorial/understanding-skewness-and-kurtosis">here</a>:</p><p>Well, since we are talking in simple terms, let me explain to you how it works:</p><ul><li>Skewness, based on whatever formula you chose, if the skew = 0, that means you have equally distributed data on the left and right side of the point estimate. what will be the peak of this data, depends on another concept called Kurtosis:</li><li>Kurtosis: measures how peak is the data.</li></ul><h4>Kurtosis</h4><blockquote>Measures the flatness and/or peakedness of the curve</blockquote><p>If the value (beta) is &gt; 3, it’s leptokurtic, beta = 3 is mesokurtic, beta &lt; 3 is platykurtic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*BWYKzdj6HgN1CPgtaaYlJA.png" /><figcaption><a href="https://www.sciencedirect.com/topics/social-sciences/kurtosis">https://www.sciencedirect.com/topics/social-sciences/kurtosis</a></figcaption></figure><p>Well, let me tell you a fun fact! for the longest time, mesokurtic was my favorite word! And you what that means? Mesokurtic is NORMAL! :)</p><p>You guessed it right!! <a href="#e6a6">NORMAL DISTRIBUTION</a> has skew = 0 and is mesokurtic (beta=3). Don’t be scared, we will cover distributions soon enough!</p><p>Let’s re-iterate here:</p><blockquote>Plotting the data (of calculating skewness, kurtosis) can tell you about the reliabillity of the central tendency measure you took (say mean), on a preliminary basis. Say the data is skewed, you know that mean would not have been the right estimate for you!</blockquote><p>That’s all about Data for now…Let’s start with studying the distribution of data based on probability, and in a more sophisticated way, developed by statisticians over time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3>Distributions — For Probability</h3><h4><a href="#e621">Introduction:</a></h4><p>What are they? Probability distributions are a way of describing how likely different outcomes are to occur in a random event or experiment.</p><p>Think of it as a <strong>roadmap that helps you understand the probabilities of different events</strong>, which can be useful for predicting outcomes and making decisions.</p><p>It looks like a mathematical function that gives you probabilities of various events, like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*Trp3Kh5Z2yWAhH3ISu4_BA.png" /><figcaption>Google image</figcaption></figure><p>We use these distributions because these help us <strong>concise our work and give a compact form of function</strong>. It helps us generate the probabilities of the random events.</p><p>But, to understand the probability distributions, first, we will have to understand what <strong>x</strong> is in the formula. And that is called a <strong>random variable!</strong></p><h4>Random Variable</h4><p>By definition:</p><blockquote>We can consider random variables<strong>(rv)</strong> as the function that<strong> maps Sample Space to the Real line</strong>!</blockquote><p>It’s as simple as that! That’s it! How, you ask?</p><p>Ever heard of a coin-tossing experiment? Well what you’re doing is mapping sample space like (H, H, H), (T, T, T), (H, T, T), (T, H, H), and so on … to a random variable with values ranging from 0 to 3; X being number of heads (say)</p><p>i.e. X belongs to (0, 1, 2). Looks something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*XQzuOTJSBD9Mb3XS68XOsA.png" /><figcaption>Author’s image</figcaption></figure><p>To give you an overview, of what probability distribution does — it provides a functional form to compute the probabilities for various values of random events, (say rv X &lt;= 2 in the coin tossing example).</p><p>Now, these probability functions can change, and the nature of random variables can change however, the underlying idea remains the same!</p><h4><strong>Underlying idea — IMPORTANT</strong></h4><ol><li>We are mapping sample space to real line R (i.e. random variables).</li><li>These random variables take a range (or set) of values based on their definition (discrete or continuous).</li><li>They also have probabilities assigned to the occurrence of each event</li><li>These probabilities are defined in functional form, called probability distributions.</li><li>These probability distributions can be <strong>discrete or continuous </strong>based on your discretion</li></ol><h3>Probability Distributions</h3><p>Now that we have a good understanding of what probability distributions are, let’s see some real-world applications of a few discrete and continuous distributions to solidify your understanding!</p><h4>Binomial Distribution (Discrete)</h4><p>Discrete in nature. Here, out of a <strong>fixed number of trials n</strong>, you try to find the probability of <strong>x number of successes.</strong></p><p>Here are some fun real-world examples of situations that can be modeled using the:</p><ol><li>Tossing a coin to see how many times it lands on heads out of a certain number of flips.</li><li>Counting the number of red lights you hit on your way to work.</li><li>Testing a new recipe to see how many people like it out of a certain number of taste testers.</li></ol><p><strong>Binomial distributions</strong> can be symmetrical or skewed. Whenever p = 0.5, the binomial distribution will be symmetrical, regardless of how large or small the value of n is. However, when p ≠ 0.5, the distribution will be skewed. If p &lt; 0.5, the distribution will be positive or right-skewed.</p><p>Play around with graph —</p><p><a href="https://shiny.rit.albany.edu/stat/binomial/">https://shiny.rit.albany.edu/stat/binomial/</a></p><h4>Poisson Distribution (Discrete)</h4><p>Discrete in nature. Here, the probability of occurrence of an event is fixed and small and the number of trials approaches a large number.</p><p>It gives us the <a href="https://www.statisticshowto.com/probability-and-statistics/probability-main-index/">probability </a>of a given number of events happening in a fixed interval of time.</p><p>Examples:</p><ol><li>Counting the number of customers who enter a store in an hour.</li><li>Counting the number of phone calls received by a call center in a day.</li></ol><p>The Poisson distribution looks something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*hp7CNNqMzf4aGd7IBMpdUw.png" /><figcaption><a href="https://www.statisticshowto.com/probability-and-statistics/statistics-definitions/probability-distribution/poisson-distribution/">Poisson distrn link</a></figcaption></figure><h4>Exponential Distribution: (Continuous)</h4><p>Continuous in nature. The <strong>exponential distribution</strong> (also called the <strong>negative exponential distribution</strong>) is a probability distribution that describes the time between events in a <a href="https://www.statisticshowto.com/exponential-distribution/#poisson">Poisson process.</a></p><p>There is a strong relationship between the <a href="https://www.statisticshowto.com/probability-and-statistics/statistics-definitions/probability-distribution/poisson-distribution/">Poisson distribution</a> and the Exponential distribution. For example, let’s say a Poisson distribution models the number of births in a given time period. The time between each birth can be modeled with an exponential distribution (Young &amp; Young, 1998).</p><p>Reference is taken from <a href="https://www.statisticshowto.com/exponential-distribution/">Link — StatsHow</a></p><p>Example:</p><ul><li>“How much time will go by before a major hurricane hits the Atlantic Seaboard?” or</li><li>“How long will the transmission in my car last before it breaks?”.</li></ul><p><em>Note: The exponential distribution is one member of a very large class of probability distributions called the exponential families, or exponential classes. Some Others in this family are Chi-square distribution, Beta distribution, Gamma, Bernoulli, etc..</em></p><h4>Normal Distribution (Continuous)</h4><p>Well, this distribution is magic! It has applications in Data Science, Physics, Astrology, and Psychology... Let’s just say it’s applicable everywhere.</p><p>You know about this distribution, it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*l640szsQkB-untF-5p8wnQ.png" /><figcaption><a href="https://analystprep.com/cfa-level-1-exam/quantitative-methods/key-properties-normal-distribution/">https://analystprep.com/cfa-level-1-exam/quantitative-methods/key-properties-normal-distribution/</a></figcaption></figure><p>It has probability tables that help us understand the distribution of probabilities by the easiest means!</p><blockquote><strong>Just to give you an idea!</strong> Imagine knowing 95% of the info about the height of UTD students using 2 numbers… Mean and Standard Deviation from a sample (and not ~30K records)…</blockquote><p>A special form of Normal Distribution that helps us achieve that is…</p><h4>STANDARD NORMAL DISTRIBUTION</h4><p>Ever seen this functional form? This helps you generate the data following SND with mean 0 and sd 1. Sometimes called Z-scores</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*d5NwYNvGCSRuMjtNE9QoUg.png" /><figcaption>Book- Keller</figcaption></figure><h4>Why do we standardize?</h4><p>Well, the answer is always to make our jobs easier! It helps you follow the statistical tables to calculate the z-test scores. But you don’t need to know that! Because now, R does that with a simple command (even if you don’t standardize)!</p><h4>Student T distribution</h4><p>Well, it’s similar to Normal Distribution. All you need to know about these are:</p><ul><li>The mean of this distribution is 0</li><li>Variance &gt; 1</li><li>The graph is a bit flatter than the Normal curve</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*U0DWrMdpJsuifUXy1MvMjw.png" /><figcaption><a href="https://pressbooks.bccampus.ca/simplestats/chapter/6-8-the-t-distribution/">https://pressbooks.bccampus.ca/simplestats/chapter/6-8-the-t-distribution/</a></figcaption></figure><p><strong>The degrees of freedom represent the number of values in a statistical calculation that are free to vary. In the case of the <em>t</em>-distribution, the degrees of freedom are <em>N</em>-1 as one degree of freedom is reserved for estimating the mean, and <em>N</em>-1 degrees remain for estimating the variability. </strong>Unlike with <em>z</em>-values, where each <em>z</em>-value represents a specific probability under the normal curve, the probabilities associated with <em>t</em>-values are calculated based on their degrees of freedom. Reference: <a href="https://pressbooks.bccampus.ca/simplestats/chapter/6-8-the-t-distribution/">https://pressbooks.bccampus.ca/simplestats/chapter/6-8-the-t-distribution/</a></p><blockquote>When you can not use Normal distribution, use this instead. Cases when you can not use Normal distribution are: If the Population Standard Deviation is Unknown, and/or, sample size (n) 30.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3>Sampling Distributions</h3><p>Now, l<a href="#fd97">et’s</a> wrap up with our distributions, and talk about Sampling Distributions!</p><blockquote>Simply put, is the distribution of the various samples you take out from the populations. Calculate statistics (say mean) for each sample. Now these n means will have a distribution. And that is called a sampling distribution! SIMPLE!</blockquote><p>I know you guys are dying for me to get to the point for Exams/ or solving the problems now! Well, however, we have to get the concepts straight too. 🙂</p><p>Sampling distribution, as the name suggests,</p><ol><li>YOU TAKE SAMPLES and</li><li>CALCULATE STATISTIC (mean) for each sample, and then</li><li>Try to find the distribution of that statistic (Note, the function performed on a sample is called statistics, per se mean of the sample).</li><li>Which turns out to be a <strong>Normal distribution</strong> if the number of samples is large enough (CLT)!</li></ol><p><strong>Done! That’s about it! Concept-wise, you’ve covered Sampling distributions and the <em>Central Limit Theorem (for CLT, Normal distribution is the keyword above)!</em></strong></p><h4>Reference from Book Keller:</h4><p>Below is the distribution on random variable X — rolling of 2 dice (n = 2). Three points on Sampling Distribution and CLT</p><ol><li>Rv X and X_bar follow a tad different probability distributions.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*o_tTLdVzQOhVJUpHbZGN2A.png" /><figcaption>(Pg 287) Book Keller</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*72KljsYAke10XhUJN_GlZQ.png" /><figcaption>Book Keller</figcaption></figure><p>2. Following the distribution of X_bar, if you increase the sample size (n) which was used to calculate the mean, the distribution of X_bar will follow normal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*aU9YuXAIArJ-qigvqO8_kg.png" /><figcaption>Book — Keller</figcaption></figure><p>3. Once you know a distribution, YOU’RE GOLDEN!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3>Confidence Interval</h3><h4>Definition</h4><p>Taking reference from the book Keller (page316), below is the functional form of Confidence Interval.</p><p>Remember the distribution of X_bar, CI is nothing but</p><p><strong>CI = mean (+-) sd * z_tabulated</strong></p><h4>Note:</h4><ol><li>CI gives Lower Bound (LB) &amp; Upper Bound (UB)</li><li>Some <strong>z_tabulated </strong>are given below in the table;</li><li><strong>mean </strong>and <strong>sd </strong>are calculated for a sample at <strong>α level of significance</strong></li></ol><p><strong>Special Note: </strong>α is also known as Type I error</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*ClOCaj6rumzD0nw03xnJpw.png" /><figcaption>Book — Keller</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Ou0jZZ1sqcTYQ1mYPGxF7A.png" /><figcaption>Book — Keller</figcaption></figure><h3>Interpretation:</h3><p>When α (level of significance is 5%):</p><p><strong>Not </strong>— “ 95% probability that the <strong>population mean</strong> lies between lower bound and upper bound”</p><p><strong>Yes </strong>— “ (1 − 5%) probability that t<strong>he sample mean</strong> will be equal to a value such that the interval (LB-UB) will include the population mean”</p><blockquote>Simply put, out of all generated samples (n), we took the mean of all these samples (n means) and constructed the confidence interval (n CI). Out of these n CI, there is a 95% probability that these intervals will include the population mean.</blockquote><h3>Important Note:</h3><p>You can calculate the Confidence Interval for any Random Variable, given its<strong> distribution </strong>based on its <strong>Mean </strong>and <strong>Standard Deviations.</strong></p><p>So next time you see a Confidence Interval, you must be thrilled as this will tell you a lot about the population parameter using sample values!</p><blockquote><em>Imagine knowing a </em><strong><em>narrow range (CI) </em></strong><em>that includes </em><strong><em>all UTD students’ height’s average</em></strong><em> by just </em><strong><em>using </em></strong><em>samples of say</em><strong><em> 10% of data points with 95% confidence.</em></strong><em> Now, how fancy is that!</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3>Hypothesis Testing</h3><p>So far, we have covered the basic concepts of statistics. These concepts cover the basic questions you have in mind about your picked population. Be it the height of college students, the average income of a country, etc.</p><p>Now, you want to answer some questions about your population and test statistically, whether the number you have is even significant or not. This developed the concept of Hypothesis Testing…</p><p>For our example, say we want to know whether 5&#39;6 is the actual average of all the UTD students or not, based on the population information we already have (in the case of Z-test, that is mean and sd).</p><p>Now, the thing we’ve all been waiting for!</p><p>How to test, what to test, and most importantly… <strong>What is Hypothesis Testing</strong>?</p><p>Y’all have heard a lot about what this term is. Let me tell you the <strong>easiest informal-formal definition </strong>that I use!</p><p><em>Hypothesis is a </em><strong><em>statement </em></strong><em>you make about a population parameter (presumably true)… and then you test it for possible rejection!</em></p><p>That’s it!</p><p>We try to see at this point, whether what we think about the population parameter is true or not based on our sample results!</p><h4>Steps to perform the test:</h4><p>In general, it’s done in 4 easiest steps!</p><ol><li><strong>Set your hypothesis (H0)</strong> to anything you want to test. Usually, we set this so that we don’t have to change our processes and work that much! Because let’s face it, No one wants to work EXTRA!! So, we set a hypothesis like…<br>a)- Yes, our system generates exactly 7 packages on average<br>b)- No, there’s no discrimination in the base pay of men and women, etc…</li><li>Next, we <strong>set an alternate Hypothesis</strong>. Which will be automatically true if H0 is rejected for us! So choose wisely, because that’ll be the amount of work you’ll have to do! So it goes like this: <br>a) - Our system generates NOT 7 packages on average! What should we do now? <strong>Requires Efforts!<br>b) -</strong> There’s discrimination in the base pay of men and women. How to improve? <strong>Requires Efforts again!</strong></li><li><strong>Choose your test statistics. </strong>Remember we looked at some distributions and Confidence Intervals? Well, those concepts will help you here! For example, below is the functional form to compute Z statistics for your test. We will call it <strong>Calculated Z</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*8tCnZqT6sIANZgPGm7lO6w.png" /></figure><p>4. Last step, 2 ways, compare <strong>Calculated Z with Tabulated Z and you’re done!</strong></p><p><strong>If CalculatedZ &gt; TabZ, reject Hypothesis!</strong></p><p>What’s Tabulated Z? It’s this guy! At different levels of significance (alpha). This is an extract from a Z-table. You can check the actual table online <a href="https://www.z-table.com/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Ou0jZZ1sqcTYQ1mYPGxF7A.png" /></figure><p><strong>The second way is to find</strong> the p-value and make a decision.</p><p><strong>If p-value &lt; alpha, Reject H0</strong></p><h4>Types of Errors Associated</h4><p>You don’t reject a hypothesis unless it’s absolutely necessary!</p><p>Comes into the picture: Type I error, i.e. the error you want to allow in testing H0.</p><p><strong>Type I error states that: “You reject the null hypothesis (H0), given it was true! So WORK now!</strong></p><p>And now that we’re on the topic, there’s another error:</p><p><strong>Type II error that states: “You accept null hypothesis (H0) when it was not true”</strong></p><p>Which one is more deadly? Well...Think!</p><p>Okay, the answer is Type I. There’ &#39;s a whole reasoning behind it! Type I is sometimes called a Producer’s risk and Type II is Consumer risk. And intuitively we can figure that the Producer’s risk is more harmful to the economy than the individual consumer’s risk because of the scale of transaction/investment.</p><h3>Important Points:</h3><ol><li>Type of Hypothesis — One tail, Two Tail tests</li><li>Test stats to discuss — Z and t</li><li>P value:</li></ol><ul><li>For one tail test</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*utHE7HEPqgMx63-PKyCh4w.png" /><figcaption><a href="https://www.statisticshowto.com/probability-and-statistics/hypothesis-testing/one-tailed-test-or-two/">Tail test — stats how</a></figcaption></figure><ul><li>For two-tail test</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*ZzdVga_OMb0hlz_GHXPFcQ.png" /><figcaption><a href="https://www.statisticshowto.com/probability-and-statistics/hypothesis-testing/one-tailed-test-or-two/">Tail test — stats how</a></figcaption></figure><p>Refer to this Link <a href="https://www.statisticshowto.com/probability-and-statistics/hypothesis-testing/one-tailed-test-or-two/">Tail test — stats how</a></p><p>Note: While doing the test, when the calculated t statistics is negative, we use a lower tail for calculating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3>Let’s recap a few important points:</h3><p>Let’s solidify everything we have covered till now:</p><ul><li><strong>Goal</strong>: Understanding (in this example ~ 30K) data points intuitively with a handful of numbers</li><li><strong>The Measure of Central Tendency</strong> (mean, median, mode, etc…) gives you POINT ESTIMATES</li><li><strong>The Measure of Skewness:</strong> Gives you whether the right and left side of data distribution from the mean (or other measures of central tendency) is equally distributed or not. Skew = 0, equal distribution</li><li><strong>Kurtosis</strong>: Measures the flatness of peakedness of the distribution curve</li><li><strong>Random Variable(rv)</strong>: A function that maps sample space to the real line. Remember the coin-tossing example</li><li>We covered <strong>discrete</strong> (binomial, poison) and <strong>continuous</strong> (exponential, normal, Student’s t) distributions.</li><li><strong>NOTE</strong>: <strong>Discrete variable </strong>takes on distinct, countable values whereas <strong>Continuous rv </strong>variables take any value within a range, and the number of possible values within that range is infinite.</li><li>All distributions calculate the probability for different values the random variable takes</li><li><strong>Standard Normal Distribution </strong>is the special form of normal distribution with Mean=0, sd=1</li><li><strong>Student’s t distribution </strong>is used instead of normal when sample size &lt; 30 and/or population standard deviation is unknown</li><li><strong>Sampling distribution</strong> is the distribution of the means (or any other statistic), calculated for each sample drawn from the population. So if n samples are drawn, n means will be calculated</li><li>Calculate Confidence intervals based on mean and standard deviation (or standard error in the case of samples). <br>- <strong>Formula: CI = mean (+-) sd * z_tabulated</strong></li><li>We covered steps to perform hypothesis testing, and the errors we can make along the way of making decisions i.e. Type I and Type II errors.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UNs5YiSG4BEvi0OFBM5Ig.png" /></figure><h3>References</h3><p><strong>Book</strong>:</p><ol><li>Keller, Gerald — Statistics for management and economics-Cengage Learning (2018)</li><li>Fred Ramsey, Daniel W. Schafer — The Statistical Sleuth A Course in Methods of Data Analysis-Brooks_Cole (2013)</li></ol><p><strong>Websites</strong>:</p><p><a href="https://www.statisticshowto.com/">https://www.statisticshowto.com/</a></p><p><a href="https://www.cuemath.com/mean-median-mode-formula/">https://www.cuemath.com/mean-median-mode-formula/</a></p><p><a href="https://www.scribbr.com/statistics/skewness/">https://www.scribbr.com/statistics/skewness/</a></p><p><a href="https://shiny.rit.albany.edu/stat/binomial/">https://shiny.rit.albany.edu/stat/binomial/</a></p><p><a href="https://www.shutterstock.com/image-vector/mean-median-mode-graph-negatively-skewed-2303311739">https://www.shutterstock.com/image-vector/mean-median-mode-graph-negatively-skewed-2303311739</a></p><p><a href="https://www.scribbr.com/statistics/normal-distribution/">https://www.scribbr.com/statistics/normal-distribution/</a></p><p><a href="https://www.statisticshowto.com/probability-and-statistics/statistics-definitions/probability-distribution/poisson-distribution/">https://www.statisticshowto.com/probability-and-statistics/statistics-definitions/probability-distribution/poisson-distribution/</a></p><p><a href="https://analystprep.com/cfa-level-1-exam/quantitative-methods/key-properties-normal-distribution/">https://analystprep.com/cfa-level-1-exam/quantitative-methods/key-properties-normal-distribution/</a></p><p><a href="https://www.datacamp.com/tutorial/understanding-skewness-and-kurtosis">https://www.datacamp.com/tutorial/understanding-skewness-and-kurtosis</a></p><p><a href="https://www.sciencedirect.com/topics/social-sciences/kurtosis">https://www.sciencedirect.com/topics/social-sciences/kurtosis</a></p><h3><em>About The Author</em></h3><p><em>Dear Readers, I am passionate about the subject and love writing about data science topics and food for thought articles. The most important thing is, that I’m open to feedback!</em></p><p><em>I’d love to know your comments. If this article helped you in any way, or you have feedback, please don&#39;t hesitate to drop a note! Also, feel free to drop a comment if you want further explanation of the topic and I’ll try to solve it here, or write another article on it!</em></p><p><em>To know more about me, I have a small article right here for you:</em></p><p><a href="https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad">About Me — Rechita Singh</a></p><p><em>Let’s get chatting…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ffdaceab255" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/statistics-made-easy-for-data-science-story-approach-1ffdaceab255">Statistics Made Easy for Data Science- Story Approach</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Guilt Indestructible — Food for Thought]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/illumination/is-guilt-indestructible-food-for-thought-2969bcbc4ee3?source=rss-f3786afa1608------2"><img src="https://cdn-images-1.medium.com/max/2510/0*tGmMbw-wR8BY58Ia" width="2510"></a></p><p class="medium-feed-snippet">Exploring the guilt sources with examples and ways to tackle it</p><p class="medium-feed-link"><a href="https://medium.com/illumination/is-guilt-indestructible-food-for-thought-2969bcbc4ee3?source=rss-f3786afa1608------2">Continue reading on ILLUMINATION »</a></p></div>]]></description>
            <link>https://medium.com/illumination/is-guilt-indestructible-food-for-thought-2969bcbc4ee3?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/2969bcbc4ee3</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[spirituality]]></category>
            <category><![CDATA[thoughts]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Fri, 08 Mar 2024 19:58:06 GMT</pubDate>
            <atom:updated>2024-03-08T19:58:06.475Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[About Me — Rechita Singh]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad?source=rss-f3786afa1608------2"><img src="https://cdn-images-1.medium.com/max/1642/1*FVgSCoXVpqjOL2LtJJGFyQ.png" width="1642"></a></p><p class="medium-feed-snippet">Data Wizard, Mind Explorer, Mastering Art of Poor Jokes along the way</p><p class="medium-feed-link"><a href="https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad?source=rss-f3786afa1608------2">Continue reading on About Me Stories »</a></p></div>]]></description>
            <link>https://medium.com/about-me-stories/about-me-rechita-singh-745f9f0511ad?source=rss-f3786afa1608------2</link>
            <guid isPermaLink="false">https://medium.com/p/745f9f0511ad</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[about-me]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rechitasingh]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 10:23:24 GMT</pubDate>
            <atom:updated>2024-03-06T10:23:24.353Z</atom:updated>
        </item>
    </channel>
</rss>