<?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 Tajrin on Medium]]></title>
        <description><![CDATA[Stories by Tajrin on Medium]]></description>
        <link>https://medium.com/@tajrin?source=rss-5c9b7c787e06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*4nPvOcT-jQ3mPNrCXrB68Q.jpeg</url>
            <title>Stories by Tajrin on Medium</title>
            <link>https://medium.com/@tajrin?source=rss-5c9b7c787e06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:27:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tajrin/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[Optimizing Decision-Making with Bayes’ Decision Theory]]></title>
            <link>https://medium.com/swlh/optimizing-decision-making-with-bayes-decision-theory-8801e1d72ae6?source=rss-5c9b7c787e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/8801e1d72ae6</guid>
            <dc:creator><![CDATA[Tajrin]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 06:16:53 GMT</pubDate>
            <atom:updated>2026-10-10T20:06:17.563Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Bayes’ Decision Theory, rooted in Bayes’ Theorem, provides a framework for making decisions under uncertainty by combining probabilistic reasoning with the cost of being wrong. Long criticized for its subjectivity and computational demands, the Bayesian approach gained traction in the mid-20th century as decision theory was formalized, and took off with modern computing. Today it underpins applications in artificial intelligence, machine learning, healthcare, cybersecurity, and business, powering techniques such as Bayesian neural networks, personalized medicine, and fraud detection.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTRCpUNAOke9aIPxM-q-QA.png" /><figcaption>Old belief + new evidence = better belief</figcaption></figure><p>In this article, we will cover:</p><ul><li>Introduction</li><li>Notable Applications of Bayes’ Decision Theory</li><li>Why Bayes’ Theorem Is the Core Component</li><li>Bayesians vs. Frequentists</li><li>Derivation of Bayes’ Theorem</li><li>A Worked Example: Naive vs. Bayesian Reasoning</li><li>Key Insights from the Example</li><li>How Bayes’ Theorem Updates Beliefs</li><li>Bayes’ Theorem vs. Bayes’ Decision Theory</li><li>Bayes’ Decision Theory: Formula &amp; Explanation</li><li>Conclusion</li></ul><h3><strong>Introduction</strong></h3><p><strong>What is Bayes’ Decision Theory?</strong></p><ul><li>A framework for <strong>choosing the best action under uncertainty by minimizing expected loss</strong>.</li><li>It builds on <strong>Bayes’ Theorem</strong>: the theorem updates our beliefs, and decision theory uses them to pick an action.</li></ul><blockquote><strong><em>Prior × Likelihood → Posterior</em></strong><em> (initial belief + new evidence = updated belief)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoGihSmG9OjdlZcJdcp7bw.png" /><figcaption>Old belief + new evidence = a better belief: shifted toward the data, and narrower (more certain)</figcaption></figure><p><strong>Key Components</strong>:</p><ul><li><strong>States of nature (θ):</strong> the possible true situations (e.g., disease or no disease).</li><li><strong>Prior and likelihood:</strong> what we believe beforehand and how well the evidence fits each state, combined into the posterior.</li><li><strong>Actions (a):</strong> the decisions available (e.g., treat or don’t treat).</li><li><strong>Loss function L(a, θ):</strong> the cost of taking action a when the truth is θ.</li><li><strong>Decision rule:</strong> choose the action with the lowest posterior expected loss.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0ngQ7e3fbcCGDoCywqXeQ.png" /><figcaption>Left: Thomas Bayes (portrait of uncertain identity, c. 1701–1761) and Pierre-Simon Laplace (1749–1827). Right: first page of Bayes’ essay, published posthumously in 1763. Images: public domain.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ZUjJ5lDYHhMzdn-_6g0-Dg.png" /><figcaption>During World War II, Alan Turing and his Bletchley Park colleagues used Bayesian methods to break the Enigma. The work stayed classified until the 1970s, and although statisticians shunned Bayes for its subjectivity, physicists, business schools, computer scientists and the military kept using it because it worked.</figcaption></figure><h3><strong>Notable applications of Bayes’ Decision Theory</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFGSgH5Ggv31Yi87N_tNIQ.png" /></figure><h3>Why Bayes’ Theorem Is the Core Component</h3><p>There are two main schools of statistical inference: frequentist and Bayesian.</p><p><strong>Frequentist vs. Bayesian in brief</strong></p><ul><li><strong>Frequentist:</strong> probability is the long-run frequency of events over repeated experiments. Parameters are fixed but unknown, and the data are random. Prior beliefs are not formally part of the model.</li><li><strong>Bayesian:</strong> probability expresses degree of belief. Parameters are treated as uncertain and described by a prior distribution, which is updated with data. Modern computing (especially MCMC) made this practical for complex models.</li></ul><p><strong>Why Bayes’ Theorem matters for decisions:</strong></p><ol><li><strong>Updates beliefs with new evidence:</strong> the posterior from one step becomes the prior for the next.</li><li><strong>Quantifies uncertainty:</strong> it gives a full probability distribution, not just a single estimate.</li><li><strong>Built on conditional probability:</strong> it reverses P(evidence | hypothesis) into P(hypothesis | evidence), which is what decisions actually need.</li><li><strong>Corrects intuitive mistakes:</strong> it exposes errors like the base rate fallacy (your medical test example).</li><li><strong>Scales to complex systems:</strong> it underpins Bayesian networks, filtering, and hierarchical models.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b--iQJVsdOrfsIMMdVDsgw.png" /><figcaption>Bayes’ Theorem: updating a prior belief with the likelihood of new data to get the posterior.</figcaption></figure><h3><strong>Bayesian </strong>vs<strong> Frequentists</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r233FDnvAxZ9EIXu" /><figcaption>Two schools of statistical inference: frequentist (left) and Bayesian (right).</figcaption></figure><p>In <strong>Bayesian inference</strong>, we use <strong>Bayes’ Theorem</strong> to update our beliefs as data arrive. The posterior from one update becomes the prior for the next, so our beliefs keep improving with each new piece of evidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-MIsmtHxn6SmCNcjsjDDnA.png" /><figcaption>Bayesian updating: prior knowledge combined with the likelihood of new data gives the posterior, which becomes the next prior. Frequentist methods use the new data alone, with no formal prior.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*XCWOa31_uJh5z2tiZg3ukw.png" /><figcaption>Which approach fits depends on the data, the prior knowledge, and the goal. Neither is universally better.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Eg8kFI2TltYoxCYvpRDL6Q.png" /></figure><h3><strong>The Formula of Bayes’ Theorem</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*V1FpekIhyb24ck9ptgC9NA.png" /></figure><h3><strong>Derivation of Bayes’ Theorem</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVb5DqzZRcFFkqs493X3Fw.png" /></figure><h3><strong>Example of a Scenario</strong></h3><p>Suppose we have a test for a certain disease with the following properties:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RIQEbpL29S4_LO1C3BvaiQ.png" /></figure><h3><strong>Question:</strong> Given a positive test result, what is the probability that you actually have the disease?</h3><h4><strong>1. Without Bayes’ Theorem: the Naive Approach (Base Rate Fallacy)</strong></h4><p>The naive approach treats the test’s sensitivity as the answer, ignoring how rare the disease is and ignoring false positives.</p><ul><li>Sensitivity is P(Positive Test | Disease) = 0.99.</li><li>The naive approach says P(Disease | Positive Test) = 0.99 = 99%.</li></ul><p><strong>Why this is wrong:</strong> it confuses P(Positive | Disease) with P(Disease | Positive). These are different conditional probabilities. The naive answer ignores:</p><ul><li><strong>The base rate:</strong> only 1% of people have the disease.</li><li><strong>False positives:</strong> 5% of healthy people also test positive.</li></ul><p>Because the healthy group is so much larger, many of the positive results come from healthy people. The naive approach therefore greatly overestimates the probability that a person with a positive test has the disease. Section 2 shows the correct calculation using Bayes’ Theorem.</p><h4><strong>2. </strong>With Bayes’ Theorem</h4><p>Bayes’ Theorem lets us update our belief about the probability of having the disease, taking into account both the <strong>prior probability</strong> (prevalence) and the <strong>new evidence</strong> (the test result).</p><p><strong>In words:</strong></p><p>Probability you have the disease after testing positive = (Probability of testing positive if you have the disease × Probability you had the disease before knowing the test result) / Probability of a person testing positive (with or without the disease)</p><p><strong>The formula for Bayes’ Theorem is:</strong></p><blockquote>P(Disease | Positive Test) = P(Positive Test | Disease) · P(Disease) / P(Positive Test)</blockquote><p><strong>Where:</strong></p><ul><li><strong>P(Disease | Positive Test)</strong> is the posterior probability (what we want to calculate).</li><li><strong>P(Positive Test | Disease)</strong> is the sensitivity (99%).</li><li><strong>P(Disease)</strong> is the prior probability (prevalence, 1%).</li><li><strong>P(Positive Test)</strong> is the total probability of testing positive.</li></ul><h4>Step 1: Calculate the Total Probability P(Positive Test)</h4><p>The total probability of testing positive is the sum of the probabilities of testing positive when the person has the disease and when they do not:</p><p>P(Positive Test) = P(Positive Test | Disease) · P(Disease) + P(Positive Test | No Disease) · P(No Disease)</p><p>Where:</p><ul><li>P(Positive Test | Disease) = 0.99 (sensitivity)</li><li>P(Disease) = 0.01 (prevalence)</li><li>P(Positive Test | No Disease) = 0.05 (false positive rate, which is 1 − 0.95 specificity)</li><li>P(No Disease) = 0.99</li></ul><p>So the calculation is:</p><p>P(Positive Test) = (0.99 · 0.01) + (0.05 · 0.99) = 0.0099 + 0.0495 = <strong>0.0594</strong></p><h4>Step 2: Apply Bayes’ Theorem</h4><p>Now that we know P(Positive Test) = 0.0594, we can find the probability that the person actually has the disease, given that they tested positive.</p><p>P(Disease | Positive Test) = P(Positive Test | Disease) · P(Disease) / P(Positive Test)</p><p>Substitute the known values:</p><p>P(Disease | Positive Test) = (0.99 · 0.01) / 0.0594</p><p>Now calculate:</p><p>P(Disease | Positive Test) = 0.0099 / 0.0594 ≈ <strong>0.1667 (about 16.7%)</strong></p><p>Even with a 99% sensitive test, a positive result means only about a <strong>16.7%</strong> chance of having the disease. The disease is rare (1%), so false positives from the large healthy group outnumber the true positives.</p><h3><strong>Key Differences</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*0xF-FXvTngLnjX30rklM6g.png" /></figure><h3><strong>Frequentist vs Bayesian Statistics</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*R4icDvVa04YbAImmmAkpEg.png" /><figcaption>Frequentist vs Bayesian estimation: the frequentist estimate is based on the new data alone, while the Bayesian estimate combines the old data (prior) with the new data, so it falls between the two.</figcaption></figure><p>The two approaches treat prior knowledge differently. A typical <strong>frequentist</strong> analysis bases its estimate on the new data alone. A <strong>Bayesian</strong> analysis combines the prior (old) knowledge with the new data, so the updated estimate falls between the two.</p><p><strong>Example: COVID-19 vaccine trials</strong></p><p>The Pfizer/BioNTech trial used a Bayesian statistical design for its primary efficacy analysis, while the Moderna trial used a frequentist analysis. Both approaches led to valid conclusions, and both vaccines showed about 95% efficacy. The example shows that the two frameworks are used in real, high-stakes research, not that one is better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34CCGkShzyGvlAl3YQnAig.png" /><figcaption>Two COVID-19 vaccine trials analysed with different statistical frameworks: Moderna (frequentist) and Pfizer/BioNTech (Bayesian). Both reported about 95% efficacy.</figcaption></figure><h3><strong>How Bayes’ Theorem updates beliefs with each new piece of evidence</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRvbJ0NTe-qBne4YsI7Cwg.png" /><figcaption>Each panel shows our belief about a coin’s probability of heads, P(H), after a given number of flips. We start with a uniform prior (0 trials, no information). As more data arrives, Bayes’ Theorem updates the belief: the curve shifts toward the observed proportion of heads (dashed line) and becomes narrower, showing growing certainty. Each panel has its own vertical scale.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKVHnryybEQr9FxuQ5yXzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Il22svNZBc2-iharHAMB9A.png" /><figcaption>A higher share of successes shifts the posterior toward 1, and a higher share of failures shifts it toward 0.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*jj6qpzOleMH4gL9e" /><figcaption>The Bayesian learning cycle: prior knowledge generates predictions (deduction), the predictions are compared with observed data, and the resulting prediction error drives a knowledge update (induction) that becomes the new prior.</figcaption></figure><h3><strong>Bayes’ Theorem vs. Bayes’ Decision Theory</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*91UB2DgnwK8TeBzNmEPEzg.png" /><figcaption>Bayes’ theorem updates the probability of a hypothesis from evidence, while Bayesian decision theory combines those probabilities with costs or utilities to pick the optimal action.</figcaption></figure><h3><strong>Bayes’ Decision Theory: Formula &amp; Explanation</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/0*Y5G_0wTL4MibGOWj" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*qU3FXGufKMUe1dA7" /></figure><p><strong>a</strong> is any decision you can make from the set of possible decisions.</p><p><strong>a∗</strong> is the <strong>best decision</strong> among those possible decisions, the one that minimizes the expected loss or maximizes the expected benefit based on the available information (data B).</p><h3><strong>Conclusion</strong></h3><p>Bayes’ theorem, published in the 18th century, fell out of favor for much of the 19th and early 20th centuries. Frequentist statisticians criticized it for:</p><ol><li>Subjectivity in choosing priors</li><li>Computational limitations</li></ol><p><strong>Mid-20th century: decision theory.</strong> Bayes’ theorem was combined with loss functions to form Bayesian decision theory.</p><p><strong>Late 20th century: computational revival.</strong> Methods such as MCMC, together with cheaper computing, made Bayesian analysis practical.</p><p><strong>Present day: a foundational tool.</strong> Bayesian decision theory underpins reasoning under uncertainty, with applications in:</p><ul><li><strong>AI and machine learning:</strong> NLP, reinforcement learning, Bayesian neural networks</li><li><strong>Healthcare:</strong> disease diagnosis, personalized medicine, decision support</li><li><strong>Security:</strong> codebreaking and probabilistic threat detection</li><li><strong>Business and finance:</strong> fraud detection, risk management, analytics</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*v4bzrMBJaGm12Qy1" /><figcaption>A scene from the popular TV series The Big Bang Theory, with a whiteboard nod to Bayes’ theorem alongside a mock probability and decision-theory timeline.</figcaption></figure><h3><strong>References:</strong></h3><p><strong>Books and Primary Sources</strong></p><ul><li>Bayes, T., &amp; Price, R. (1763). An essay towards solving a problem in the doctrine of chances. <em>Philosophical Transactions of the Royal Society of London, 53</em>, 370–418.</li><li>Good, I. J. (2000). Turing’s anticipation of empirical Bayes in connection with the cryptanalysis of the Naval Enigma. <em>Journal of Statistical Computation and Simulation, 66</em>(2), 101–111.</li><li>McGrayne, S. B. (2011). <em>The theory that would not die: How Bayes’ rule cracked the Enigma code, hunted down Russian submarines, and emerged triumphant from two centuries of controversy.</em> Yale University Press.</li></ul><p><strong>Web Articles</strong></p><ul><li>Analytics Vidhya. Bayesian statistics for beginners in simple English. <a href="https://www.analyticsvidhya.com/blog/2016/06/bayesian-statistics-beginners-simple-english/">https://www.analyticsvidhya.com/blog/2016/06/bayesian-statistics-beginners-simple-english/</a></li><li>Analytics Vidhya. Introduction to the powerful Bayes’ theorem for data science <a href="https://www.analyticsvidhya.com/blog/2019/06/introduction-powerful-bayes-theorem-data-science/">https://www.analyticsvidhya.com/blog/2019/06/introduction-powerful-bayes-theorem-data-science/</a></li><li>OptiMonk. Mastering Bayesian A/B testing. <a href="https://www.optimonk.com/mastering-bayesian-a-b-testing/">https://www.optimonk.com/mastering-bayesian-a-b-testing/</a></li><li>Wikipedia. Bayes’ theorem. Wikimedia Foundation. <a href="https://en.wikipedia.org/wiki/Bayes%27_theorem">https://en.wikipedia.org/wiki/Bayes%27_theorem</a></li><li>Wikipedia. Thomas Bayes. Wikimedia Foundation. <a href="https://en.wikipedia.org/wiki/Thomas_Bayes">https://en.wikipedia.org/wiki/Thomas_Bayes</a></li></ul><p><strong>Educational Platforms</strong></p><ul><li>Math Is Fun. Bayes’ theorem: Explained with examples. <a href="https://www.mathsisfun.com/data/bayes-theorem.html">https://www.mathsisfun.com/data/bayes-theorem.html</a></li></ul><p><strong>ResearchGate</strong></p><ul><li>ResearchGate. Illustration of how prior belief distributions update to posterior beliefs (figure). <a href="https://www.researchgate.net/figure/Illustration-of-how-prior-belief-distributions-update-to-posterior-beliefs-The-grid_fig1_360489628">https://www.researchgate.net/figure/Illustration-of-how-prior-belief-distributions-update-to-posterior-beliefs-The-grid_fig1_360489628</a></li></ul><p><strong>YouTube Videos</strong></p><ul><li>Bayesian reasoning for beginners. MinutePhysics <a href="https://www.youtube.com/watch?v=BcvLAw-JRss">https://www.youtube.com/watch?v=BcvLAw-JRss</a></li><li>Bayes theorem: Explained like you’re five. TED-Ed <a href="https://www.youtube.com/watch?v=R13BD8qKeTg">https://www.youtube.com/watch?v=R13BD8qKeTg</a></li><li>A clear explanation of Bayes theorem. Khan Academy <a href="https://www.youtube.com/watch?v=NNWQz713wGs">https://www.youtube.com/watch?v=NNWQz713wGs</a></li><li>The better way to do statistics | Bayesian #1. Very Normal, April 3, 2024. <a href="https://www.youtube.com/watch?v=3jP4H0kjtng">https://www.youtube.com/watch?v=3jP4H0kjtng</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8801e1d72ae6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/optimizing-decision-making-with-bayes-decision-theory-8801e1d72ae6">Optimizing Decision-Making with Bayes’ Decision Theory</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Basics of Business Email Communication]]></title>
            <link>https://medium.com/swlh/basics-of-effective-business-email-communication-554447a28be8?source=rss-5c9b7c787e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/554447a28be8</guid>
            <category><![CDATA[communication-skills]]></category>
            <category><![CDATA[business-communication]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Tajrin]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 17:09:37 GMT</pubDate>
            <atom:updated>2026-10-12T13:53:01.864Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced business world, email has become a cornerstone of effective communication. This article covers the fundamentals of business email etiquette equipping you to write professional messages with clarity and confidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*B8Vdqcb4lD1H-TAe5sdEQA.jpeg" /></figure><p>Email is a mandatory part of our daily work life. Yet most professionals never formally learn <em>how</em> to write one well. This article summarizes the core principles of professional email communication briefly, practically, and with rules you can apply immediately.</p><p><strong>After reading this, you will know:</strong></p><ul><li>Grammar &amp; style choices for professional emails</li><li>The three essential parts of every email</li></ul><h3>Grammar &amp; Style</h3><h3>Tense</h3><p>Use tenses with intention:</p><ul><li><strong>Past, Present, and Future</strong> tenses serve different temporal references</li><li><strong>Past participle</strong> signals a completed action, e.g., <em>“The report has been submitted”</em></li><li><strong>Present participle</strong> indicates an ongoing or continuous action, e.g., <em>“We are currently reviewing your request”</em></li></ul><p>Mixing tenses carelessly creates confusion. Be deliberate.</p><h3>Voice</h3><p>The right voice depends on your audience and purpose:</p><ul><li><strong>One-to-one communication → Active voice.</strong> Direct, personal, and warm. Active voice creates engagement, it makes the reader feel addressed, not processed.</li><li><strong>One-to-many communication → Passive or formal voice.</strong> Mass communications, company-wide announcements, and formal notices often benefit from a more detached, impersonal tone where the focus is on the action, not the actor.</li><li><strong>Peer review / Research papers → Passive voice.</strong> Academic and professional reports conventionally follow passive, formal writing, e.g., <em>“The data were analyzed”</em> rather than <em>“We analyzed the data.”</em></li></ul><blockquote><strong><em>Key insight:</em></strong><em> Active voice is the default for most email communication. Passive voice is a tool, reach for it when formality or context demands it, not out of habit. Overusing passive voice in everyday correspondence reduces engagement and can feel cold or evasive.</em></blockquote><h3>The Three Parts of Every Email</h3><p>Every professional email should have exactly three structural components: <strong>Salutation</strong>, <strong>Body</strong>, and <strong>Parting</strong>.</p><h3>1. Salutation</h3><p>The opening line sets tone and respect. Choose based on your relationship and what you know about the recipient:</p><p>Situation Salutation Writing to a team <em>Dear Team,</em> Recipient is unknown or unspecified <em>To Whom It May Concern,</em> Female recipient <em>Dear Ms. [Last Name],</em> Male recipient <em>Dear Mr. [Last Name],</em> Gender unknown <em>Dear [Full Name],</em></p><p><strong>Priority rule:</strong> Personal relationship takes precedence over business relationship when choosing your tone and salutation style. Writing to someone you know well? Let it show. Writing to a stranger in a formal context? Default to formal.</p><p><strong>Use bold text</strong> in the salutation to add visual emphasis where appropriate.</p><h3>2. Body — The Three T’s</h3><p>Follow the classic communication framework, sometimes called the <strong>“Three T’s”</strong>:</p><ol><li><strong>T — Tell them what you are going to tell them.</strong> <em>(Introduction / purpose statement)</em></li><li><strong>T — Tell them what you want to tell them.</strong> <em>(The main content)</em></li><li><strong>T — Tell them what you have told them.</strong> <em>(Summary / call to action)</em></li></ol><p>This structure works because of the <strong>concentration curve</strong> — a reader’s attention peaks early, gradually falls, and slightly recovers at the end. By front-loading the purpose and closing with a clear summary, you work <em>with</em> this curve, not against it. Keep the middle engaging to prevent the dip from becoming a drop.</p><h3>3. Parting (Closing)</h3><ul><li>End with a <strong>single, complete line</strong>, e.g., <em>Have a great day. / Sincerely, / Thank you.</em></li><li><strong>No abbreviations.</strong> Avoid <em>Thx, Rgds, Br,</em> or any other shorthand. They undermine professionalism.</li><li>Keep your parting line <strong>separate from your email signature</strong>, the closing sentiment and the formal sign-off serve different purposes.</li></ul><h3>Additional Best Practices</h3><ul><li><strong>Subject line:</strong> Craft it to be specific and accurate. A vague subject (“Checking in”) forces the reader to open the email to understand its relevance. A good subject line does the work upfront.</li><li><strong>Proofreading:</strong> Always review before sending. A single typo can undercut an otherwise professional message.</li><li><strong>Attachments:</strong> Only attach files that are directly relevant. Name them descriptively, Q3_Report_Final.pdf is better than document1.pdf.</li><li><strong>Timeliness:</strong> Responding promptly signals respect and reliability. Delayed replies, especially to time-sensitive matters, create a negative impression.</li></ul><h3>Quick Reference: Email Fields</h3><p>Field Purpose <strong>To</strong> The primary recipient(s), the person or people directly addressed <strong>CC</strong> <em>(Carbon Copy)</em> Secondary recipients who need to be aware of the email but aren’t the primary addressee <strong>BCC</strong> <em>(Blind Carbon Copy)</em> Recipients who are informed without other recipients seeing their email address</p><p><strong>Use bold text</strong> in your email body to emphasize key terms, deadlines, or action items.</p><h3>Conclusion</h3><p>Good email communication is a learnable skill, not a talent. Applying these fundamentals, the right tense, the right voice, a clear three-part structure, and careful closing elevates both the clarity of your message and your professional credibility.</p><p>Start with one principle. Practice it until it’s automatic. Then move to the next.</p><h3>Source</h3><p><em>Adapted from a summary of the workshop “Basics of Business Communication Skills,” organized by </em><a href="https://dnet.org.bd/"><em>Dnet</em></a><em>, a social enterprise.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=554447a28be8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/basics-of-effective-business-email-communication-554447a28be8">The Basics of Business Email Communication</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving simultaneous equations using Matrices]]></title>
            <link>https://medium.com/analytics-vidhya/solving-simultaneous-equations-using-matrices-83fa57537a19?source=rss-5c9b7c787e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/83fa57537a19</guid>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Tajrin]]></dc:creator>
            <pubDate>Wed, 10 Jun 2020 13:20:58 GMT</pubDate>
            <atom:updated>2026-07-08T07:23:47.693Z</atom:updated>
            <content:encoded><![CDATA[<h3>Solving simultaneous equations using matrices</h3><h4>Matrices are among the most widely used mathematical constructs in computer science. They’re particularly useful for solving a large number of equations quickly and at a reduced computational cost. Using an everyday example, this article introduces the basic concepts of matrices and shows how they can be used to solve a system of linear equations.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*JJcXn_F7-kxyLYdGK9mCKw.png" /></figure><p>We need to develop a <strong>fast</strong> algorithm when we have to solve a linear system of equations of a large size. In order to solve a system faster, we may need to use a calculator with a big RAM and/or a high clock rate (CPU). But it is not enough when faster means days (or more) if we tackle the problem in the wrong way. <a href="https://math.stackexchange.com/questions/160328/what-is-the-usefulness-of-matrices">[5]</a></p><p>To reduce the <strong>computational costs</strong>, we have to come up with a good algorithm, a smart idea. But in order to do so, we need to exploit some properties (which are encoded somehow in the coefficients of the matrix) or some structure of the linear system.</p><h3>Intention</h3><p>In this article, we’re going to look at matrices. We will solve an apples and oranges problem <a href="https://www.coursera.org/learn/linear-algebra-machine-learning/">[1]</a> and will learn:</p><ul><li>Why matrices are important bricks for solving simultaneous equations.</li><li>How to use matrices for simultaneous equations.</li><li>How to find out the price of individual items using matrices when we only have the total bill.</li></ul><h3>What are matrices?</h3><blockquote>Matrices are objects that rotate and stretch vectors. And they’re also objects that let us solve these sorts of problems.</blockquote><h3>Where do matrices come into play?</h3><p>Now we know that matrices enjoy particular properties that might be crucial for developing a fast algorithm, or even for proving that a solution exists or that the solution has some nice property. Some important points to note:</p><ul><li>A linear system can be written in matrix-vector form.</li><li>Matrices may look like just a fancy, compact way to write down a system of equations — mere tables of numbers — but they are much more than that.</li><li>Just by taking a quick look at the matrix, we can tell whether the system has a solution.</li><li>We can also tell whether the solution is non-negative (meaning that all components of the solution are non-negative). We wouldn’t be able to draw this conclusion just by looking at the system without trying to solve it.</li><li>We can also determine how many operations we need to solve the system (one operation being a single addition, subtraction, multiplication, or division), even if we construct a larger system with the same pattern.</li></ul><h3>How to use matrices for simultaneous equations?</h3><p>Matrices can be used to compactly write and work with systems of equations, and they can be manipulated in any way that normal equations can be. This is very helpful when we start to work with systems of equations. It is helpful to understand how to organize matrices to solve these systems. <a href="https://courses.lumenlearning.com/boundless-algebra/chapter/using-matrices-to-solve-systems-of-equations/">[6]</a></p><p>It is important to do the following:</p><ul><li>Make sure that all of the equations are written in the same manner, meaning the variables need to be in the same order.</li><li>Make sure that one side of each equation contains only the variables and their coefficients, and the other side contains just the constants.</li></ul><h3>Example</h3><p>Say we walk into a fruit shop and we buy two apples, and three oranges, and suppose that costs 8 dollars. We write it to this equation:</p><p><strong>2a + 3b = 8</strong></p><h3>Here,</h3><h3>a = an apple</h3><h3>b = an orange</h3><p>Now, say we go to that fruit shop on another day and we buy 10 apples and 1 orange. And the shopkeeper charges us 13 dollars. So the equation is:</p><p><strong>10a + 1b = 13</strong></p><p>This is an example of a Linear Algebra problem.</p><p>We will have to solve these <strong>simultaneous equations</strong> in order to find out the price of individual apples and oranges. Knowing the prices will help us to decide which offers better value or we can just predict the bill.</p><p>We might think the shop must-have sticker prices, why would we do this? But actually, this sort of thing, price discovery, happens all the time in many businesses with complicated products and service agreements and more expensive purchases. Think about what happens when we buy an apartment or a car for instance.</p><p>It might be quite difficult to solve all these equations by hand frequently. So, we might want a computer algorithm to do it for us which will <strong>save time</strong>.</p><h3>So, the equations are…</h3><h3>2a + 3b = 8</h3><h3>10a + 1b = 13</h3><p>Constant linear coefficients in these equations: <strong>2, 10, 3, 1</strong></p><p>That relates the input variables A and B, to the output 8 and 13. We can consider it as a vector <strong>[a, b]</strong>, that describes the prices of apples and oranges.</p><p>Here, 8 and 13 are the cost (how many we might want to buy).</p><p>These are just simultaneous equations, and we can write them down in a different way, as a matrix problem:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*Igqim_O6JnFiMNgxQHzf6w.png" /></figure><p>Consider it as…</p><p><strong>[ Known values ] [ Unknown values ] = [Output ]</strong></p><p>This matrix is an object with numbers in 2, 3, 10, 1 where:</p><ul><li><strong>Our first trip:</strong> 2, 3</li><li><strong>Our second trip:</strong> 10, 1</li></ul><h3>Again…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*PEiuREvmZ6tHTt85M8YPgw.png" /></figure><h3>Operations on the matrices…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*cZ_WIuO0uPPumFzKxxnFqg.png" /></figure><p>Now we will multiply this out in the following way:</p><ul><li>We would multiply the elements in the rows by the elements in the column.</li><li>We’d multiply the top row times that column: (2 X a) + (3 X b).</li><li>And we’d say that <strong>(2a + 3b)</strong> equaled the top row on the right-hand side.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*8NUlGa8AVWMcvf_sfWFJRQ.png" /><figcaption>2a + 3b = 8</figcaption></figure><ul><li>And do the same for the next row, that row times that column is: <strong>10a + 1b</strong>, is equal to the row on the bottom on the right-hand side.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*HGCWez3dQWhVCkfdWSbzKA.png" /><figcaption>10a + 1b = 13</figcaption></figure><p>Finally, that looks like our two simultaneous equations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*wMKfXcyhwnaMkiEl1xR5ZA.png" /><figcaption>Two simultaneous equations</figcaption></figure><p>Now let’s check what happens if we multiply that matrix by the unit basis (x-axis) vector.</p><ul><li><strong>Step 1:</strong> (2 X 1) + (3 X 0) = 2</li><li><strong>Step 2:</strong> (10 X 1) + (1 X 0) = 10</li></ul><h3>The result is…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*coBHoJiFZo4otFMwxZM4TA.png" /><figcaption>Multiplied the matrix by the unit basis (x-axis) vector</figcaption></figure><p>It takes the little unit vector which we called e1 hat, and transforms it to another place:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*AfoBFWiODrRcUJZy34uL6g.png" /><figcaption>e1 hat</figcaption></figure><p>Let’s do that with the other basis vector. Multiply 2, 3, 10, 1 multiplied by 0, 1:</p><ul><li><strong>Step 1:</strong> (2 X 0) + (3 X 1) = 3</li><li><strong>Step 2:</strong> (10 X 0) + (1 X 1) = 1</li></ul><h3>And the result…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*4XDhRBm3RxTaVK6U6Tim_w.png" /><figcaption>Multiplied the matrix by the y-axis vector</figcaption></figure><p>The other basis vector e2 hat gets transformed over to 3, 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*aqMccCFk9z2rrFq7wCBwUg.png" /><figcaption>e2 hat</figcaption></figure><h3>So, the complete picture is…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*-hfVCMsno75ZVznxWMd3jg.png" /></figure><h3>Note</h3><p><strong>e1 prime = changed e1</strong></p><p><strong>e2 prime = changed e2</strong></p><p>The matrix <strong>2, 3, 10, 1</strong> is a function that</p><ul><li>Operates on input vectors and gives us other output vectors, and</li><li>It moves the basis vectors in some way, it transforms them, it changes the space.</li></ul><p>And a set of simultaneous equations here is to find out what vector we need in order to get a transformed product at the position 8, 13.</p><h3>Conclusion</h3><p>We learned why matrices are important building blocks for solving simultaneous equations, and how to use them. I hope this article gave you an idea of why studying matrices and their properties is of crucial importance in improving the efficiency of linear solvers.</p><h3>Definitions of terms used</h3><h4>Simultaneous equations</h4><blockquote>Simultaneous equations are two or more equations, each with an equal number of unknown variables that are related to each other and are “simultaneous” because they are solved together. <a href="https://www.helpingwithmath.com/by_subject/equations_expressions/simultaneous-equations-8ee8.htm">[2]</a></blockquote><p><strong>Example:</strong> These 2 equations have an equal number of unknown variables…</p><p><strong>2a + 3b = 8</strong></p><p><strong>10a + 1b = 13</strong></p><h4>Coefficient</h4><blockquote>The coefficients are the numbers that are multiplied with the variables. So for the equation 2a + 3b = 8 the coefficients are 2, 3. <a href="http://mathcentral.uregina.ca/QQ/database/QQ.09.07/h/maddie1.html">[3]</a></blockquote><h4>Matrix</h4><p>(Plural: Matrices)</p><blockquote>A matrix is a collection/ rectangular arrangement of numbers arranged into rows and columns. Usually, the numbers are real numbers. <a href="https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:mat-intro/a/intro-to-matrices">[4]</a></blockquote><p>Example of a 2×2 matrix (2 rows and 2 columns):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*RcGysxzhkXJSrfO_m2avpQ.png" /><figcaption>2×2 matrix (2 rows and 2 columns)</figcaption></figure><h4>Vector</h4><p>A vector may refer to any of the following:</p><ul><li>In computer programming, a vector is either a pointer or an array with only one dimension.</li><li>In mathematics, a vector is a quantity with both a magnitude and direction.</li><li>In computer graphics, the term vector describes a line with a starting and ending point.</li><li>In computer security, the term attack vector refers to a particular method for exploiting a system vulnerability.</li></ul><h4>Unit vector</h4><blockquote>Unit vectors are vectors whose magnitude is exactly 1 unit, and the unit vectors [0,1] and [1,0] can form together any other vector. <a href="https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:vectors/x9e81a4f98389efdf:unit-vec/v/intro-unit-vector-notation">[7]</a></blockquote><h4>Clock rate (CPU)</h4><blockquote>The clock rate of a CPU is most useful for providing comparisons between CPUs in the same family, and it is only one of several factors that can influence performance when comparing processors in different families.</blockquote><p>But the clock rate alone is generally considered to be an inaccurate measure of performance when comparing different CPUs families. It can sometimes be misleading since the amount of work different CPUs can do in one cycle varies. Software <a href="https://en.wikipedia.org/wiki/Benchmark_(computing)">benchmarks</a> are more useful. <a href="https://en.wikipedia.org/wiki/Clock_rate#Comparing">[8]</a></p><p>[ Last updated on <em>December 24, 2020</em><strong> </strong>]</p><p><strong><em>References:</em></strong></p><ol><li><a href="https://www.coursera.org/learn/linear-algebra-machine-learning/">https://www.coursera.org/learn/linear-algebra-machine-learning/</a></li><li><a href="https://www.helpingwithmath.com/by_subject/equations_expressions/simultaneous-equations-8ee8.htm">https://www.helpingwithmath.com/by_subject/equations_expressions/simultaneous-equations-8ee8.htm</a></li><li><a href="http://mathcentral.uregina.ca/QQ/database/QQ.09.07/h/maddie1.html">http://mathcentral.uregina.ca/QQ/database/QQ.09.07/h/maddie1.html</a></li><li><a href="https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:mat-intro/a/intro-to-matrices">https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:mat-intro/a/intro-to-matrices</a></li><li><a href="https://math.stackexchange.com/questions/160328/what-is-the-usefulness-of-matrices">https://math.stackexchange.com/questions/160328/what-is-the-usefulness-of-matrices</a></li><li><a href="https://courses.lumenlearning.com/boundless-algebra/chapter/using-matrices-to-solve-systems-of-equations/">https://courses.lumenlearning.com/boundless-algebra/chapter/using-matrices-to-solve-systems-of-equations/</a></li><li><a href="https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:vectors/x9e81a4f98389efdf:unit-vec/v/intro-unit-vector-notation">https://www.reddit.com/r/learnmath/comments/68l3mh/unit_vector_vs_unit_basis_vector/</a></li><li><a href="https://en.wikipedia.org/wiki/Clock_rate#Comparing">https://en.wikipedia.org/wiki/Clock_rate#Comparing</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83fa57537a19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/solving-simultaneous-equations-using-matrices-83fa57537a19">Solving simultaneous equations using Matrices</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a vector?]]></title>
            <link>https://medium.com/analytics-vidhya/what-is-a-vector-5c86fc2b57c1?source=rss-5c9b7c787e06------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c86fc2b57c1</guid>
            <category><![CDATA[vector]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Tajrin]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:31:37 GMT</pubDate>
            <atom:updated>2026-06-03T18:04:10.781Z</atom:updated>
            <content:encoded><![CDATA[<h3>Vectors: The Math Concept Powering Every Machine Learning Model</h3><p><em>Vectors, a foundational concept in linear algebra, are ordered lists of scalars. In machine learning, they play a crucial role in organizing data, describing algorithms, and representing target variables (e.g., y), and vectorizing data is often a fundamental first step in building ML models. While vectors and arrays may look similar, they are distinct: arrays are a programming data structure, whereas vectors carry mathematical properties such as addition, scalar multiplication, and dot products. This article explores the importance of vectors, their role in machine learning, and the key differences between vectors and arrays.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*XAWOMTPxOUmp5Wy7bZ01Bg.jpeg" /></figure><p>Vectors are a foundational element of linear algebra. A vector is an ordered sequence of scalars — values of a fixed length <em>n</em>, where each element is identified by its position.</p><p><em>In this article, we will discover linear algebra vectors for machine learning.</em></p><p>After reading this article, we will know:</p><ul><li>What a vector is.</li><li>Why vectors are important.</li><li>Major differences between an array and a vector.</li></ul><p>Vectors are used throughout machine learning from describing algorithms and processes to representing data such as the target variable (y) during model training. They provide a convenient and efficient way to organize data, and vectorizing the data is often one of the very first steps in building a machine learning model.</p><h3>Vector in terms of machine learning</h3><p>In machine learning and programming, vectors appear in many forms — as raw input data, model parameters, weights, and more.</p><p>For instance, the input (3.14159, 2.71828, 1.618) is a vector of 3 elements, and could be represented as a point in 3-dimensional space. A program would store this as a 1D array of shape (3,) — a one-dimensional structure holding three scalar values.</p><p>The feature vector is simply one row of input. For instance, in the popular machine learning example of housing price prediction, we might have features (table columns) including a house’s year of construction, number of bedrooms, area (m²), and garage size (auto capacity). This would give input vectors such as</p><pre>[1988, 4, 200, 2]<br>[2001, 3, 220, 1]</pre><p>In Simple words,<br><strong><em>Dimensions</em></strong> : The attributes/features taken for analysis</p><p><strong><em>n-Dimensional Vector</em></strong> : &lt;e1, e2, e3, …., en&gt; where <em>ei</em> is the value of dimension <em>i</em> and elements are ordered.</p><p><strong>Example:</strong> <br>&lt;180, 74, M, 60, 120&gt; is a <strong>5-Dimensional Vector</strong> where 180, 74, M, 60, 120 are the values of attributes height, weight, gender, pulse_rate, and cholesterol_level respectively.</p><p>&lt;180, 74, M, 60, 120&gt; and &lt;180, M, 74, 60, 120&gt; are not the same, as the order of dimensions weight and gender are changed.</p><p>Think of it as a list of values or a row in a table. The data structure is a 1-dimensional array; a vector of <strong>N</strong> elements is an <strong>N</strong>-dimensional vector, a vector of N elements is an N-dimensional vector, one dimension for each element.</p><p>A vector may refer to any of the following:</p><ol><li>In computer programming, a vector is an array with only one dimension.</li><li>In mathematics, a vector is a quantity with both magnitude and direction.</li></ol><p>3. In computer graphics, the term vector describes a line with a starting and ending point.</p><p>4. In computer security, the term attack vector refers to a particular method for exploiting a system vulnerability.</p><p><strong>Example:</strong></p><p>If we survey the heights of people in a population, we may get a distribution like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*TP5ussJjcrQSYNxNubEvSg.jpeg" /></figure><p>This histogram can also be represented as a vector — a list of numbers. We record the frequency of people with heights in intervals of 2.5 cm: between 150 cm and 152.5 cm, between 152.5 cm and 155 cm, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/0*dfdwZXNyBEr500iQ.png" /><figcaption>vector <strong>f</strong></figcaption></figure><p>We define this as vector <strong>f</strong>, whose components are the sizes of each bar in the histogram.</p><h3>Some points to note</h3><ul><li>A vector, in programming, is a type of array that is one-dimensional.</li><li>A vector is often represented as a 1-dimensional array of numbers, referred to as components, and displayed in either column or row form.</li><li>Vectors are used in programming languages as data structure containers for storing data.</li><li>Vectors are similar to arrays, but their actual implementation and operation differs.</li><li>Vector containers are implemented as dynamic arrays. Like regular arrays, elements are stored in contiguous memory locations and can be accessed using iterators or pointer offsets.</li><li>Unlike regular arrays, storage in vectors is handled automatically, allowing the container to expand and contract as needed.</li><li>Vectors can typically hold any object — we can create a class to hold vehicle information and store an entire fleet in a vector.</li><li>Vectors still allow constant-time access to individual elements via index, just like an array.</li><li>Each element in a vector must be of the same type. Mixing types through casting or pointer manipulation risks errors in later operations.</li><li>Represented geometrically, vectors typically describe coordinates within an n-dimensional space, where n is the number of components. A simple representation is an arrow in a vector space, with an origin, direction, and magnitude.</li></ul><h3>Major differences between an array and a vector</h3><ul><li>Unlike typical arrays, the size of a vector container can grow and shrink dynamically to accommodate different storage needs.</li><li>Vectors have a dynamic structure, support upfront size allocation, and enable fast memory allocation.</li><li>Vectors can be thought of as dynamic arrays.</li></ul><h3><strong>Glossary</strong></h3><p><strong>Scalar</strong> — A single numerical value, e.g. 3.14 or 42.</p><p><strong>Vector</strong> — An ordered sequence of scalars of fixed length n.</p><p><strong>n-Dimensional vector</strong> — A vector with n components, each representing one attribute or dimension.</p><p><strong>Feature vector</strong> — A single row of input data, where each element corresponds to one feature.</p><p><strong>Vectorization</strong> — The process of converting raw data into vector form for use in ML algorithms.</p><p><strong>Dynamic array</strong> — A data structure that automatically resizes as elements are added or removed.</p><p><strong>Magnitude</strong> — The length or size of a vector, computed as the Euclidean norm.</p><h3>Conclusion</h3><p>Vectors are a fundamental concept in both mathematics and programming. In machine learning, they serve as the primary way to represent data, model parameters, and algorithmic inputs. As data structure containers, they provide an organized, dynamic, and mathematically grounded way to store and operate on collections of values.</p><h3><strong>References</strong></h3><ol><li>Strang, G. (2016). <em>Introduction to Linear Algebra</em> (5th ed.). Wellesley-Cambridge Press.</li><li>Brownlee, J. (2018). <em>Basics of Linear Algebra for Machine Learning</em>. Machine Learning Mastery.</li><li>Goodfellow, I., Bengio, Y., &amp; Courville, A. (2016). <em>Deep Learning</em>. MIT Press. Chapter 2: Linear Algebra.</li><li>NumPy Documentation — <a href="https://numpy.org/doc/">numpy.org</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c86fc2b57c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/what-is-a-vector-5c86fc2b57c1">What is a vector?</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>