<?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 Jayesh yadav on Medium]]></title>
        <description><![CDATA[Stories by Jayesh yadav on Medium]]></description>
        <link>https://medium.com/@007jayeshyadav?source=rss-fa4e1622b157------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-7UtgEA30sL4lSeJc4PqWQ.jpeg</url>
            <title>Stories by Jayesh yadav on Medium</title>
            <link>https://medium.com/@007jayeshyadav?source=rss-fa4e1622b157------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:52:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@007jayeshyadav/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[Microsoft’s new Prompt Engineering Method — I Ran Brutal Tests So You Don’t Have To]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://ai.plainenglish.io/microsofts-new-prompt-engineering-method-i-ran-brutal-tests-so-you-don-t-have-to-448af64bbd84?source=rss-fa4e1622b157------2"><img src="https://cdn-images-1.medium.com/max/1240/1*4bfmxcqg5feLjiZeVd9sgg.png" width="1240"></a></p><p class="medium-feed-snippet">POML vs Plain Text: When Structure Actually Matters in Prompt Engineering</p><p class="medium-feed-link"><a href="https://ai.plainenglish.io/microsofts-new-prompt-engineering-method-i-ran-brutal-tests-so-you-don-t-have-to-448af64bbd84?source=rss-fa4e1622b157------2">Continue reading on Artificial Intelligence in Plain English »</a></p></div>]]></description>
            <link>https://ai.plainenglish.io/microsofts-new-prompt-engineering-method-i-ran-brutal-tests-so-you-don-t-have-to-448af64bbd84?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/448af64bbd84</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 16:51:40 GMT</pubDate>
            <atom:updated>2025-08-25T17:00:51.037Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building an Intelligent Agentic RAG System for Production.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://ai.plainenglish.io/building-an-intelligent-agentic-rag-system-for-production-aea23fa9703d?source=rss-fa4e1622b157------2"><img src="https://cdn-images-1.medium.com/max/1248/1*BdxCk3wzZo7X_uxfuWQzmg.png" width="1248"></a></p><p class="medium-feed-snippet">How intelligent decision-making, multi-stra tegy retrieval, and adaptive workflows transform do from reactive pipelines to thinking system</p><p class="medium-feed-link"><a href="https://ai.plainenglish.io/building-an-intelligent-agentic-rag-system-for-production-aea23fa9703d?source=rss-fa4e1622b157------2">Continue reading on Artificial Intelligence in Plain English »</a></p></div>]]></description>
            <link>https://ai.plainenglish.io/building-an-intelligent-agentic-rag-system-for-production-aea23fa9703d?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/aea23fa9703d</guid>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[langraph]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Sun, 17 Aug 2025 16:19:28 GMT</pubDate>
            <atom:updated>2025-08-18T11:22:58.452Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How Agentic GraphRAG is Giving AI a Real Brain]]></title>
            <link>https://blog.stackademic.com/how-agentic-graphrag-is-giving-ai-a-real-brain-61a070206f41?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/61a070206f41</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 04:36:56 GMT</pubDate>
            <atom:updated>2025-08-22T07:23:17.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DteriAlzZOH82Dbb4glVdA.png" /></figure><p>Have you ever asked an AI a question, only to get an answer that sounds smart but is just… completely wrong? It happens all the time! These big AI models, or LLMs, are amazing at language, but let’s be honest, they don’t really <em>understand</em> things like we do. And when they make mistakes on important stuff, that can be a real problem.</p><p>So, the tech world has been working hard to solve this. The journey basically had two big breakthroughs:</p><ol><li>First, we realized AI was terrible at connecting the dots. Imagine having a million sticky notes but no idea how they relate to each other. So, we gave the AI a “mind map” to see all the connections. That’s <strong>GraphRAG</strong>.</li><li>Then, we saw it was still just following a strict set of instructions. It couldn’t really think for itself. So, we gave it a “brain” to make its own decisions. That’s <strong>Agentic RAG</strong>.</li></ol><p>When you put those two ideas together, you get <strong>Agentic GraphRAG</strong>. It’s the big thing happening in 2025, and it’s how we’re finally getting AIs that don’t just repeat information, but actually think.</p><h3>Why Your AI Struggles with Puzzles (And How Graphs Help)</h3><p>Okay, so the first try at making AIs smarter was something called RAG. The idea was simple: just give the AI a bunch of documents to read before it answers. Kind of like giving it some notes to study from.</p><p>The problem? It was like throwing a pile of random articles at it. The AI couldn’t connect the dots between them. It might see “Steve Jobs” in one article and “Apple” in another, but it didn’t <em>know</em> they were connected. It couldn’t solve any problem that needed more than one piece of information.</p><p>That’s where <strong>GraphRAG</strong> came in. It organizes all that information into a massive, interconnected mind map. So now, the AI can finally see how everything links together. It’s a total game-changer! The accuracy numbers are just incredible, with some systems jumping from around 50% to over 90% correct. That’s a huge improvement!</p><h3>But What if the Plan Isn’t Working? (This is Why Agents are Key)</h3><p>Even with that awesome mind map, there was still another problem. The whole process was super rigid. It could only follow one simple recipe, step-by-step. If step one gave a bad result, the whole thing would just fall apart.</p><p>That’s where <strong>agents</strong> come in and completely change the game.</p><p>An agent is basically an AI that can actually <em>think</em> for itself. It’s not just following a script anymore. It can:</p><ul><li><strong>Make a plan:</strong> It looks at your question and figures out a smart, multi-step way to solve it.</li><li><strong>Use tools:</strong> It has a whole toolbox. It can do a web search, dig through the knowledge map, or run some analysis. It picks the right tool for the job.</li><li><strong>Fix its own mistakes:</strong> This is the best part. If a search doesn’t work out, the agent can literally say, “Well, that didn’t work. Let me try again a different way.” It’s not so fragile anymore; it’s much more robust.</li></ul><h3>A Quick Refresher: Building the Brain vs. Using It</h3><p>Just so we’re on the same page, it helps to think of this in two parts: there’s the setup, and then there’s the “go time.”</p><p><strong>Part 1 is the setup (Building the brain):</strong> This is all the prep work. You feed the system all your documents, it processes them, and organizes everything into that cool knowledge graph. It’s like stocking and organizing a library. This all happens offline.</p><p><strong>Part 2 is “go time” (The smart librarian):</strong> This is where the agent lives. When you ask a question, the agent doesn’t add new information. Its whole job is to be a super-smart librarian who sprints through the library you already built, finds the exact right information, and puts it all together for you.</p><p>The whole “Agentic GraphRAG” idea is all about making this librarian part as smart and flexible as possible.</p><h3>So How Does It All Work Together?</h3><p>When you put it all together? It’s pretty magical. The agent uses the graph like its personal playground. It can jump from one idea to another to figure out really complex stuff.</p><p>For example, you could ask it something tricky like: <em>“Find me all the scientists who wrote about climate change, see who funded them, and then tell me what else those funders are interested in.”</em></p><p>An older AI would have no idea where to start. But the agent? It just makes a plan and gets it done, hopping from point to point on the graph. First, a broad search for papers. Next, a hop on the graph to the authors and their funders. Then, another hop from the funders to their other projects. It’s that simple!</p><h3>A Look at the Technology Behind It</h3><p>So how do people actually build this stuff now? It’s all about these cool new approaches.</p><ul><li><strong>Agentic Routers:</strong> Think of this as a traffic cop for questions. It looks at your query and sends it to the right specialist agent to handle it.</li><li><strong>Multi-Agent Systems (MAS):</strong> You can have a whole team of AI agents working together on a problem. Frameworks like <strong>CrewAI</strong> help make this happen.</li><li><strong>Corrective Loops (CRAG/Self-RAG):</strong> This is the agent checking its own work and re-doing it if it’s not good enough.</li><li><strong>Stateful Orchestration:</strong> This is the technical plumbing that lets agents remember what they’ve done and learn from it, using tools like <strong>LangGraph</strong>.</li></ul><p>Looking ahead, the vision is even more ambitious. The key challenges are not just about building these systems, but about measuring them.</p><p>The new frontier is <strong>evaluation</strong>. Traditional metrics that check the final answer are no longer sufficient. We are moving from asking, “Was the answer right?” to “Did the agent make the right decisions to get there?” This requires new benchmarks and frameworks that can trace and score the agent’s entire reasoning process.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61a070206f41" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/how-agentic-graphrag-is-giving-ai-a-real-brain-61a070206f41">How Agentic GraphRAG is Giving AI a Real Brain</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forward Propagation: The Mathematical Foundations of Neural Networks and Their role in Large…]]></title>
            <link>https://medium.com/@007jayeshyadav/forward-propagation-neural-network-predictions-and-how-it-is-connected-to-large-language-models-48f9dc36253a?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/48f9dc36253a</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[neural-network-training]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 08:11:17 GMT</pubDate>
            <atom:updated>2025-08-07T19:46:28.771Z</atom:updated>
            <content:encoded><![CDATA[<h3>Forward Propagation: The Mathematical Foundations of Neural Networks and Their role in Large Language Models</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8T40C-JXP1K1vfPzPPuurA.jpeg" /></figure><p>Neural networks have revolutionized the field of machine learning by enabling models to learn from vast amounts of data and make accurate predictions. One of the fundamental processes in neural networks is forward propagation, where the input data is passed through the network to generate an output. This post aims to provide a mathematical intuition behind forward propagation, using a simple neural network example and discussing the importance of trainable parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqbWqtDhKzdNS8SmsLNl1g.png" /></figure><h4>Understanding Forward Propagation</h4><p>Forward propagation is the process by which input data is passed through the layers of a neural network to generate an output. This involves calculating the weighted sum of inputs and biases at each node, followed by applying an activation function. The basic mathematical operation in forward propagation can be expressed as:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmath.embed.fun%2Fembed%2FuX3R22My6vqJK9WhnaG6ae&amp;display_name=Embed+Fun&amp;url=https%3A%2F%2Fmath.embed.fun%2FuX3R22My6vqJK9WhnaG6ae&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=embed" width="200" height="96" frameborder="0" scrolling="no"><a href="https://medium.com/media/4eafdecbc15a01e17e8afc939e0aa5e1/href">https://medium.com/media/4eafdecbc15a01e17e8afc939e0aa5e1/href</a></iframe><p>Where:</p><ul><li>O is the output of the neuron.</li><li>σ is the activation function (e.g., sigmoid, ReLU).</li><li>W is the weight matrix.</li><li>X is the input vector.</li><li>B is the bias vector.</li></ul><h4>Layer-by-Layer Calculation:</h4><ol><li>Input Layer to First Hidden Layer:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*qLcxXP_jyFx2jy-sD7dbQg.png" /></figure><p>The output of the hidden layer is calculated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*589M9Jx5GVCSsuTjAFOqMw.png" /></figure><p>2. First Hidden Layer to Second Hidden Layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*0I3DHQW6qyqo1Z39pH-mlw.png" /></figure><p>The output of the second hidden layer is calculated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*b91j59tmQ5BCs_zeKki8UQ.png" /></figure><p>3. Second Hidden Layer to Third Hidden Layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*Uhb93YbCSVUHOqScwQ8QMA.png" /></figure><p>The output of the third hidden layer is calculated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*YTFv5-R7GIwXiaIpYDtEwA.png" /></figure><p>The final output is calculated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*hIlewcFuMDI5WyJtsVSYig.png" /></figure><h4>Importance of Trainable Parameters</h4><p>While working with neural networks, it is crucial to be aware of the total number of trainable parameters. These parameters include weights and biases, which the model learns during the training process through backpropagation. Knowing the number of trainable parameters helps in understanding the model’s complexity and the computational resources required.</p><p>In the provided example:</p><ul><li>Input layer: 4 nodes</li><li>First hidden layer: 3 nodes</li><li>Second hidden layer: 2 nodes</li><li>Third hidden layer: 1 node</li></ul><p>The total number of trainable parameters can be calculated as:</p><ul><li>Weights between input and first hidden layer: 4×3=12</li><li>Biases in first hidden layer: 3</li><li>Weights between first and second hidden layer: 3×2=6</li><li>Biases in second hidden layer: 2</li><li>Weights between second and third hidden layer: 2×1=2</li><li>Biases in third hidden layer: 1</li></ul><p>Total trainable parameters = 12+3+6+2+2+1=26</p><p>During training, these 26 parameters will be adjusted to minimize the loss function.</p><h4>Perceptron: The Basic Building Block</h4><p>A perceptron is a single-layer neural network that consists of input nodes, weights, a bias, and an activation function. The perceptron outputs a binary result based on the weighted sum of inputs and the bias. It serves as the foundation for more complex neural networks.</p><p>The output of a perceptron can be represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*ZbXjApsoMTumTUcFCVarYQ.png" /></figure><h4>Sample Data:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*8tgdeRBWykXIP-NwIWMYeQ.png" /></figure><p>Here, ‘cgpa’, ‘iq’, ‘10thm’, and ‘12thm’ are the input features, and ‘placed’ is the output label indicating whether a student got placed (1) or not (0)</p><p>Lets solve for 1 row :</p><p>Layer 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*hogESRup2w7JLPt4iqP1NA.png" /></figure><p>Layer 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*EEjs7jhcSwH4hla8eFXouw.png" /></figure><h4>Forward Propagation Steps :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*En9dE49ZuUrGlYc59KoOiQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ggMJzH_fNH1s_Ersqr9Qag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qcf9KaXvwqmbLIpnqKm_3g.jpeg" /></figure><p>The predicted output y^​ for the input (7.2, 72, 69, 81) is approximately 0.78</p><h3>Forward Propagation in LLMs :</h3><p>Forward propagation in LLMs works on the same principles as in simpler neural networks but at a much larger scale. Here’s how the concepts apply:</p><ol><li><strong>Input Representation:</strong></li></ol><ul><li>In LLMs, the input is typically a sequence of words or tokens. Each word is converted into a numerical representation called an embedding, which captures the semantic meaning of the word.</li></ul><p><strong>2. Network Architecture:</strong></p><ul><li>LLMs use complex architectures such as Transformers, which consist of multiple layers of attention mechanisms and feed-forward neural networks.</li><li>Each layer in the Transformer model processes the input embeddings and passes the processed information to the next layer.</li></ul><p><strong>3. Weights and Biases:</strong></p><ul><li>Just like in simpler neural networks, LLMs have weights and biases that are trained during the training phase.</li><li>However, the number of parameters in LLMs is typically in the billions, making them much larger and more complex.</li></ul><p><strong>4. Computation in Layers:</strong></p><ul><li>During forward propagation, each layer in the Transformer model applies a series of linear transformations (weights and biases) followed by non-linear activation functions.</li><li>Additionally, the attention mechanism allows the model to weigh the importance of different words in the input sequence dynamically.</li></ul><p><strong>5. Output Generation:</strong></p><ul><li>The final layer of the LLM produces a probability distribution over the vocabulary for the next word in the sequence.</li><li>The word with the highest probability is chosen as the output, and the process continues for generating subsequent words in the text.</li></ul><h4>Example: Forward Propagation in a Transformer Layer</h4><p>Consider a simple example of forward propagation through a single Transformer layer:</p><ol><li><strong>Input Embeddings:</strong></li></ol><ul><li>Suppose we have an input sequence of words: “The cat sat on the mat.”</li><li>Each word is converted into an embedding vector using a pre-trained embedding matrix.</li></ul><p><strong>2. Attention Mechanism:</strong></p><ul><li>The attention mechanism computes attention scores for each pair of words in the input sequence.</li><li>These scores determine how much each word should attend to every other word in the sequence.</li></ul><p><strong>3. Weighted Sum and Bias:</strong></p><ul><li>For each word, the model computes a weighted sum of the embeddings of all words in the sequence, where the weights are the attention scores.</li><li>A bias vector is added to this weighted sum.</li></ul><p><strong>4. Feed-Forward Network:</strong></p><ul><li>The result is passed through a feed-forward neural network with its own weights and biases.</li><li>Non-linear activation functions are applied to introduce non-linearity.</li></ul><p><strong>Output:</strong></p><ul><li>The output of the feed-forward network is passed to the next Transformer layer or to the final layer if it’s the last layer in the model.</li></ul><h4>Importance of Forward Propagation in LLMs</h4><p>Forward propagation is crucial in LLMs because:</p><ul><li><strong>Prediction:</strong> It is the mechanism through which the model generates predictions based on the input data.</li><li><strong>Training:</strong> During training, forward propagation is used to compute the loss, which is then used in backpropagation to update the weights and biases.</li><li><strong>Efficiency:</strong> Understanding forward propagation helps optimize the model for faster inference and lower computational costs.</li></ul><h4>Conclusion:</h4><p>Forward propagation is a core process in neural networks where input data is transformed through layers of weights, biases, and activation functions to produce an output, essential for both making predictions and computing loss during training. Neural networks, consisting of layers of neurons, utilize forward propagation to process inputs and adjust parameters via backpropagation to minimize prediction error. Large Language Models like GPT and Gemini Pro, which are advanced neural networks designed for natural language processing tasks, use a complex Transformer architecture to handle input embeddings, dynamically weigh word importance through attention mechanisms, and generate text outputs. Understanding forward propagation is crucial for setting up, training, and optimizing both simple neural networks and sophisticated LLMs, ensuring efficient processing and accurate predictions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48f9dc36253a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gaussian/Normal Distribution]]></title>
            <link>https://medium.com/@007jayeshyadav/gaussian-normal-distribution-b520355480e2?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/b520355480e2</guid>
            <category><![CDATA[probability-distributions]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[normal-distribution]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Sun, 28 Aug 2022 03:29:17 GMT</pubDate>
            <atom:updated>2025-08-07T19:04:49.904Z</atom:updated>
            <content:encoded><![CDATA[<p>A probability function called the normal distribution describes the distribution of values for a variable. The majority of the observations in the normal distribution are centred around the central peak and the probability for values that are further from the mean taper off equally in both directions. The bell curve and the Gaussian distribution are other names for the normal distribution. A vertical line intersects the centre of the bell-shaped normal distribution. The centre of the distribution is where the mean, median, and mode are all equal and situated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YzH0a7s_SDdl-VMD4IGAZg.png" /></figure><h3><strong>Few Examples</strong></h3><ul><li>Marks on a test.</li><li>Rolling a dice</li><li>Tossing a coin</li><li>Heights of people.</li><li>Measurement errors.</li><li>Blood pressure.</li><li>IQ scores.</li><li>Salaries.</li></ul><h3><strong>Properties</strong></h3><ul><li><strong>The mean, median, and mode are equal - </strong>The maximum frequency point, or the point that contains the majority of the variable’s observations, is referred to as the midpoint of the normal distribution. All three central tendency measures fall at the midpoint, as well. In a normal distribution that is properly formed, these measurements are typically equal.</li><li><strong>It is symmetric- </strong>The normal distribution has a totally symmetrical shape. This indicates that we can cut the normal distribution curve in half at its midpoint to get two equal pieces. Furthermore, the symmetric shape is present when the number of observations on either side of the curve is equal.</li><li><strong>Skewness and kurtosis - </strong>The coefficients skewness and kurtosis indicate how divergent the distribution is from a normal distribution. While kurtosis gauges the thickness of the tail distribution in relation to the normal distribution, it gauges the symmetry of the normal distribution.</li></ul><h3>Empirical rule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0vO_5fsIThnjrybUUnQyQ.png" /></figure><ul><li>68% of the data falls within one standard deviation(-σ1 to +σ1) of the mean.</li><li>95% of the data falls within two standard deviations(-σ2 to +σ2) of the mean.</li><li>99.7% of the data falls within three standard deviations(-σ3 to +σ3) of the mean.</li></ul><h3>Distribution</h3><h4>Probability Density Function (PDF)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*HOxugrPVtfzWNsowDvsU0Q.png" /></figure><h4><strong>Cumulative Density Function (CDF)</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*dyTGtNIjcAdbMAekBBl5xg.png" /></figure><h3>Example 1</h3><blockquote>Each animal lives to be 13.1 years old on average (mean), and the standard deviation of the lifespan is 1.5 years. If someone wants to know the probability that an animal will live longer than 14.6 years, they could use the empirical rule. Knowing the distribution’s mean is 13.1 years old, the following age ranges occur for each standard deviation:</blockquote><blockquote>One standard deviation (µ ± σ): (13.1–1.5) to (13.1 + 1.5), or 11.6 to 14.6</blockquote><blockquote>Two standard deviations (µ ± 2σ): 13.1 — (2 x 1.5) to 13.1 + (2 x 1.5), or 10.1 to 16.1</blockquote><blockquote>Three standard deviations (µ ± 3σ): 13.1 — (3 x 1.5) to 13.1 + (3 x 1.5), or, 8.6 to 17.6</blockquote><blockquote>The person solving this problem needs to calculate the total probability of the animal living 14.6 years or longer. The empirical rule shows that 68% of the distribution lies within one standard deviation, in this case, from 11.6 to 14.6 years. Thus, the remaining 32% of the distribution lies outside this range. One half lies above 14.6 and the other below 11.6. So, the probability of the animal living for more than 14.6 is 16%.</blockquote><h3>Example 2</h3><blockquote>95% of students at school are between 1.1m and 1.7m tall.</blockquote><blockquote>Assuming this data is <strong>normally distributed</strong> can you calculate the mean and standard deviation?</blockquote><blockquote>The mean is halfway between 1.1m and 1.7m:</blockquote><blockquote>Mean = (1.1m + 1.7m) / 2 = <strong>1.4m</strong></blockquote><blockquote>95% is 2 standard deviations on either side of the mean (a total of 4 standard deviations) so:</blockquote><blockquote>1 standard deviation= (1.7m-1.1m) / 4 = 0.6m / 4 = <strong>0.15m</strong></blockquote><h3>Standard Normal Distribution</h3><p>It is not possible to find an explicit expression for <strong>Fx(x) = P(X &lt;= x)</strong>, so tables have to be used. These are provided for the distribution of<strong><em> Z = (X-μ)/σ.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Tsd7gYekPnaO0jBgjFTlrA.png" /></figure><p><strong>Simply put, a z-score (also called a standard score) gives you an idea of how far from the mean a data point is. More technically it’s a measure of how many standard deviations below or above the population mean a raw score is.</strong></p><p>Z score is the position of a single data with respect to its mean value which is defined in terms of standard deviation. It is a raw value’s relationship to a set of values. Z score of a value defines how far or close the position of a raw value is from the mean value of the set of data. It is represented in terms of standard deviation. In simpler terms, the Z score is the value of the deviation of a single data from its group mean value represented in terms of standard deviation</p><h3>Why Standardize … ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*APGc6BhWMK2RbR7aHX7rVg.png" /></figure><p>It can help us make decisions about our data.</p><blockquote><strong>Let&#39;s understand using an Example: Professor Willoughby is marking a test.</strong></blockquote><blockquote>Here are the students’ results (out of 60 points):</blockquote><blockquote>20, 15, 26, 32, 18, 28, 35, 14, 26, 22, 17</blockquote><blockquote>Most students didn’t even get 30 out of 60, and<strong> most will fail</strong>.</blockquote><blockquote>The test must have been really hard, so the Prof decides to Standardize all the scores and only fail people more than 1 standard deviation below the mean.</blockquote><blockquote>The <strong>Mean is 23</strong>, and the <strong>Standard Deviation is 6.6</strong>, and these are the Standard Scores:</blockquote><blockquote>-0.45, -1.21, 0.45, 1.36, -0.76, 0.76, 1.82, -1.36, 0.45, -0.15, -0.91</blockquote><blockquote>Now only 2 students will fail (the ones lower than −1 standard deviation)</blockquote><blockquote>Much fairer!</blockquote><h3>Positive &amp; Negative Z Scores</h3><p>In a standard normal distribution, one element is indicated by a Z score. It might be lower or higher than the mean value. The Z score could be either left or right of the mean in relation to the SND. The Z score of a raw element makes it evident by the sign of the score whether the element is below or above the average. Z score is a signed value as a result. So, either a positive or negative Z score is possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*UBTBJxD5YcOBgTn-1PAOrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*PDq0BJoin4JDP1y02uuReQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*LZUwdUVjFqEokRf7f7WCwQ.png" /></figure><p>Thanks for reading!</p><p>For any suggestions or corrections, please leave your comments below and follow for updates and if you liked the article, please hit the 👏 icon.</p><p>Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b520355480e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Q-Q Plots and skewness of data]]></title>
            <link>https://medium.com/@007jayeshyadav/q-q-plots-and-skewness-of-data-296fc0fc9011?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/296fc0fc9011</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Thu, 25 Nov 2021 08:31:32 GMT</pubDate>
            <atom:updated>2025-08-07T19:08:13.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6tk1akAVmeorG2ORRNMIA.png" /></figure><p>A QQ-Plot is used to visually determine how close a sample is to the normal distribution or Which distribution matches our data, is it normal or uniform or exponential, etc. ? We can use qq plot to answer this question</p><blockquote>let say we have a dataset of Gene Expression</blockquote><p>Step 1: Give each point its own Quantile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*9AJbjpeqabW3-FTcuNFByQ.png" /><figcaption>15 lines dividing the data into equal-sized groups</figcaption></figure><p>Step 2: Get a normal curve :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*I5YCpObuwQhozPpTguQvNA.png" /></figure><p>Step 3: Add the same number of Quantiles to the curve as we have in data</p><p>if there are 15 lines dividing the data, then 15 lines <em>(red lines) </em>on the normal curve into equal-sized groups</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*WjZIIvA3fo_amqsvNxxmPA.png" /></figure><p>step 5 : Plot QQ Graph</p><p>QQ graph has two axes, Y-axis is Data Quantiles</p><p>The X-axis is Normal quantiles, Then plot the points</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*-OnPOt5ulYUHk5vxwTx_wg.png" /><figcaption>Points not on straight line</figcaption></figure><p>Now see if points fit on a straight line or not, if data is normally distributed most of the points will be on line</p><p>But in our case points are not making a straight line, So we should match the data to another distribution like uniform distribution or exponential distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*0hI63-0akK0DzMD0frp5kw.png" /></figure><h3>Q-Q plots and skewness of data</h3><p>Now let’s see how we can determine skewness using a Q-Q plot</p><p>Q-Q plots can be used to determine skewness as well. If the see the left side of the plot deviating from the line, it is left-skewed. When the right side of the plot deviates, it’s right-skewed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*oFa6DRmPPhcAQrS0JXlvqg.png" /><figcaption>Left-skewed distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*bMkT2FqTnzqxDT5B2r4W-g.png" /><figcaption>Right-skewed distribution</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=296fc0fc9011" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PDF and CDF in EDA]]></title>
            <link>https://medium.com/@007jayeshyadav/pdf-and-cdf-in-eda-480fb0b68b8a?source=rss-fa4e1622b157------2</link>
            <guid isPermaLink="false">https://medium.com/p/480fb0b68b8a</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Jayesh yadav]]></dc:creator>
            <pubDate>Sun, 07 Nov 2021 22:33:05 GMT</pubDate>
            <atom:updated>2025-08-07T19:59:54.419Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQ4FFk1g4cDQtvbdHkzfEg.png" /></figure><p>Table of contents</p><ul><li>Histograms</li><li>What are PDF and CDF</li><li>Use of pdf and cdf</li></ul><p>Before jumping to PDF or CDF , we must have knowledge of histograms</p><p>Histogram is made of Bins , Now what are bins ?</p><p>Bins are the frequency of a particular class interval . Now questions comes how histograms is related to EDA</p><p>Histograms are used to summarize discreet or continuous data that are measured on an interval scale</p><h3>PDF (Probability Density function)</h3><p>When we smoothen the histograms we get PDF as output</p><p>Let’s take an example of iris dataset</p><p>So we have plotted the pdf for variable “setosa” on petal length</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*vaE9jAOi_uM6cJ98VyFQ6A@2x.jpeg" /></figure><p>Y-axis becomes the percentages</p><p>X-axis is petal length</p><p>So From PDF we can get the information at any point ,like at <strong>Red point</strong> – Total values or percentage below and inside the bell-curve is total distribution of Red point that is <strong>10 percent</strong></p><p>Same as for <strong>Black point 25 Percent</strong></p><h3>CDF (Cumulative density function)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57rpe41NQ6yd1wLZmRuLKQ.png" /></figure><p>CDF is obtained using PDF</p><p>If we add Point P and Q of PDF , we will get new value that will be value of CDF (adding previous value of PDF gives next value of CDF)</p><h3>Now How we use CDF :-</h3><p>So point R is 90 percent of Distribution and in the dataset there 90 percent of data that is less than value 100</p><h3>How PDF are formed ?</h3><p>PDF are formed using smoothen the Histograms</p><p>Histograms are smoothened using <strong>kernel Density Estimation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYlbZXPePM2mtqMMx0YU5Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=480fb0b68b8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>