<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Margaret Q. Ombere</title>
    <description>The latest articles on DEV Community by Margaret Q. Ombere (@maggyq).</description>
    <link>https://dev.to/maggyq</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3256267%2F48b3583e-e887-4cd4-84fe-d2412d53876c.jpg</url>
      <title>DEV Community: Margaret Q. Ombere</title>
      <link>https://dev.to/maggyq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maggyq"/>
    <language>en</language>
    <item>
      <title>RAGS</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Mon, 15 Sep 2025 02:50:15 +0000</pubDate>
      <link>https://dev.to/maggyq/rags-4kej</link>
      <guid>https://dev.to/maggyq/rags-4kej</guid>
      <description>&lt;h1&gt;
  
  
  RAG FOR DUMMIES
&lt;/h1&gt;

&lt;h2&gt;
  
  
  What is RAG?
&lt;/h2&gt;

&lt;p&gt;RAG means &lt;strong&gt;Retrieval-Augmented Generation&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
That’s just a fancy way of saying: &lt;em&gt;“AI that looks things up before answering.”&lt;/em&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Without RAG:&lt;/strong&gt; The AI only answers from what it remembers (its training).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;With RAG:&lt;/strong&gt; The AI can check extra documents or a database, then give a better answer.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
It’s like asking a friend a question:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If they answer from memory, they might forget details.
&lt;/li&gt;
&lt;li&gt;If they check a book first, the answer will be fresher and more correct.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why is RAG Useful?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt; &lt;strong&gt;Up-to-date answers&lt;/strong&gt; – no old information stuck in memory.
&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Customizable&lt;/strong&gt; – you can connect it to your own files, notes, or company data.
&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;More accurate&lt;/strong&gt; – reduces mistakes where AI “makes things up.”
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  In Short
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;RAG = AI Memory + Library Access&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
It makes AI smarter, more reliable, and more useful in real life.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>UNSUPERVISED LEARNING</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Sun, 31 Aug 2025 15:38:20 +0000</pubDate>
      <link>https://dev.to/maggyq/unsupervised-learning-19n6</link>
      <guid>https://dev.to/maggyq/unsupervised-learning-19n6</guid>
      <description>&lt;p&gt;&lt;a href="https://medium.com/@maggyombere/unsupervised-learning-288837c8486d" rel="noopener noreferrer"&gt;https://medium.com/@maggyombere/unsupervised-learning-288837c8486d&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
      <category>datascience</category>
    </item>
    <item>
      <title>classification in supervised learning</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Sun, 24 Aug 2025 18:09:26 +0000</pubDate>
      <link>https://dev.to/maggyq/classification-in-supervised-learning-5hhh</link>
      <guid>https://dev.to/maggyq/classification-in-supervised-learning-5hhh</guid>
      <description>&lt;h2&gt;
  
  
  Classification in Supervised Learning:
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Supervised Learning in Simple Terms.
&lt;/h2&gt;

&lt;p&gt;Supervised learning is like being taught by example. You get a question, and the teacher gives you the answer. After enough practice, you can solve similar questions on your own.  &lt;/p&gt;

&lt;p&gt;In machine learning, this means training a model with inputs (features) and their correct outputs (labels), so it can predict hidden cases.  &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How Classification Fits In&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Classification is about chosing between categories. Think of it as answering &lt;em&gt;yes or no&lt;/em&gt;, or sometimes choosing between multiple options.  &lt;/p&gt;

&lt;p&gt;For example:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is this review &lt;strong&gt;positive&lt;/strong&gt; or &lt;strong&gt;negative&lt;/strong&gt;?
&lt;/li&gt;
&lt;li&gt;Is this animal a &lt;strong&gt;cat&lt;/strong&gt;, &lt;strong&gt;dog&lt;/strong&gt;, or &lt;strong&gt;bird&lt;/strong&gt;?
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model learns patterns from data and then applies them to new cases.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## Algorithms That Power Classification&lt;/strong&gt;&lt;br&gt;
Some popular tools include:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Logistic Regression&lt;/strong&gt;: Quick and effective for simple cases
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decision Trees&lt;/strong&gt;: Human-friendly and visual
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KNN&lt;/strong&gt;: Straightforward, compares with nearby data points
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;## My Reflections&lt;/strong&gt;&lt;br&gt;
I’ve found classification to be both exciting and humbling. At first, it felt easy — “just label things.” But the deeper I went, the more I realized that &lt;strong&gt;data quality, feature engineering, and balance&lt;/strong&gt; matter more than the algorithm itself.  &lt;/p&gt;

&lt;p&gt;Personally, I love how classification gives immediate, practical results and the outcomes are tangible.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## The Roadblocks I Faced&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Imbalanced classes&lt;/strong&gt; where one label is too rare
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overfitting&lt;/strong&gt;, especially in complex models
&lt;/li&gt;
&lt;li&gt;Choosing the &lt;strong&gt;right features&lt;/strong&gt; to feed the model
&lt;/li&gt;
&lt;li&gt;Making sense of ** algorithms** &lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>API probability of a win</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Wed, 30 Jul 2025 21:42:04 +0000</pubDate>
      <link>https://dev.to/maggyq/api-probability-of-a-win-5h1f</link>
      <guid>https://dev.to/maggyq/api-probability-of-a-win-5h1f</guid>
      <description>&lt;h1&gt;
  
  
  Team Win Probabilities – Season Overview
&lt;/h1&gt;

&lt;p&gt;This summary shows how 20 football teams performed based on their &lt;strong&gt;matches played&lt;/strong&gt;, &lt;strong&gt;matches won&lt;/strong&gt;, and &lt;strong&gt;win probability&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔝 Top Teams
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Team&lt;/th&gt;
&lt;th&gt;Wins&lt;/th&gt;
&lt;th&gt;Win Probability&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Liverpool FC&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.658&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Man City FC&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;0.553&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arsenal FC&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;0.526&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chelsea FC&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;0.526&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Newcastle United FC&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;0.526&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  ⚖️ Mid Performers
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Team&lt;/th&gt;
&lt;th&gt;Win Probability&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Aston Villa FC&lt;/td&gt;
&lt;td&gt;0.500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nottingham Forest FC&lt;/td&gt;
&lt;td&gt;0.500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Brighton &amp;amp; Hove Albion&lt;/td&gt;
&lt;td&gt;0.421&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Brentford FC&lt;/td&gt;
&lt;td&gt;0.421&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fulham FC&lt;/td&gt;
&lt;td&gt;0.395&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  🔻 Lower Teams
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Team&lt;/th&gt;
&lt;th&gt;Win Probability&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Man United FC&lt;/td&gt;
&lt;td&gt;0.289&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;West Ham United FC&lt;/td&gt;
&lt;td&gt;0.289&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ipswich Town FC&lt;/td&gt;
&lt;td&gt;0.105&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Southampton FC&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.053&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Liverpool led the season in win probability, while Southampton struggled the most. This data highlights clear performance gaps across teams.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>api</category>
    </item>
    <item>
      <title>Measures of Central Tendency in Data Science</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Wed, 30 Jul 2025 21:20:55 +0000</pubDate>
      <link>https://dev.to/maggyq/measures-of-central-tendency-in-data-science-2j6i</link>
      <guid>https://dev.to/maggyq/measures-of-central-tendency-in-data-science-2j6i</guid>
      <description>&lt;h1&gt;
  
  
  Measures of Central Tendency in Data Science
&lt;/h1&gt;

&lt;h2&gt;
  
  
  What Are They?
&lt;/h2&gt;

&lt;p&gt;Measures of central tendency show the center of a dataset. The main ones are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mean&lt;/strong&gt; – average value  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Median&lt;/strong&gt; – middle value  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mode&lt;/strong&gt; – most frequent value&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why They Matter
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Quick summary&lt;/strong&gt; of data  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Spot &lt;strong&gt;outliers&lt;/strong&gt;  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Help in &lt;strong&gt;model selection&lt;/strong&gt;  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Support &lt;strong&gt;data-driven decisions&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;

&lt;p&gt;For &lt;code&gt;10, 15, 15, 20, 100&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Mean = 32  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Median = 15  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mode = 15&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The mean is pulled up by the outlier (100), but median and mode reflect the true center.&lt;/p&gt;

&lt;h2&gt;
  
  
  In summary
&lt;/h2&gt;

&lt;p&gt;These measures simplify complex data and are essential for analysis in data science.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>dataviz</category>
      <category>statistics</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Understanding the relationshipi power Bi and its importance</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Wed, 30 Jul 2025 21:07:26 +0000</pubDate>
      <link>https://dev.to/maggyq/understanging-the-relationshipi-power-bi-and-its-importance-4bag</link>
      <guid>https://dev.to/maggyq/understanging-the-relationshipi-power-bi-and-its-importance-4bag</guid>
      <description>&lt;h1&gt;
  
  
  Power BI Relationships: What They Are &amp;amp; Why They Matter
&lt;/h1&gt;

&lt;p&gt;In Power BI, &lt;strong&gt;relationships&lt;/strong&gt; connect tables using a shared column (like &lt;code&gt;ProductID&lt;/code&gt;) so your data model can work properly. Without them, your visuals may be wrong or incomplete.&lt;/p&gt;

&lt;h2&gt;
  
  
  📘 What’s a Relationship?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;relationship&lt;/strong&gt; tells Power BI how two tables are linked. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Sales.ProductID&lt;/code&gt; connects to &lt;code&gt;Products.ProductID&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;This lets Power BI know which product each sale refers to&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔢 Types of Relationships
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One-to-Many (1:*)&lt;/strong&gt; – Most common (e.g., Products → Sales)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Many-to-Many (&lt;em&gt;:&lt;/em&gt;)&lt;/strong&gt; – Needs careful handling or a bridge table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One-to-One (1:1)&lt;/strong&gt; – Rare but useful in master-detail scenarios&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Why It Matters
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Accurate visuals&lt;/strong&gt;: Relationships ensure correct totals and filtering&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Better models&lt;/strong&gt;: Cleaner structure with separate tables&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Faster reports&lt;/strong&gt;: Power BI performs better with proper relationships&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DAX support&lt;/strong&gt;: Functions like &lt;code&gt;RELATED()&lt;/code&gt; depend on them&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  NB:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Makes sure one table has &lt;strong&gt;unique values&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Avoid &lt;strong&gt;bi-directional&lt;/strong&gt; filters unless needed&lt;/li&gt;
&lt;li&gt;Use a &lt;strong&gt;star schema&lt;/strong&gt; (fact table at center, dimension tables around)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📌 &lt;em&gt;Strong relationships equals(=) strong reports.&lt;/em&gt; Takes a few minutes to review them before you build!&lt;/p&gt;




&lt;h1&gt;
  
  
  powerbi #lux #datamodeling
&lt;/h1&gt;

</description>
      <category>learning</category>
    </item>
    <item>
      <title>How excel is used in real world data analysis</title>
      <dc:creator>Margaret Q. Ombere</dc:creator>
      <pubDate>Tue, 10 Jun 2025 17:28:03 +0000</pubDate>
      <link>https://dev.to/maggyq/how-excel-is-used-in-real-world-data-analysis-48p7</link>
      <guid>https://dev.to/maggyq/how-excel-is-used-in-real-world-data-analysis-48p7</guid>
      <description>&lt;p&gt;&lt;strong&gt;TOPIC: HOW EXCEL IS USED IN REAL-WORLD DATA ANALYSIS&lt;/strong&gt;&lt;br&gt;
Microsoft Excel is one of the most widely used tools for data analysis across industries. It goes beyond simple spreadsheets to offer powerful features for organizing, analyzing, and visualizing data in meaningful ways.&lt;br&gt;
&lt;strong&gt;WAYS EXCEL IS USED&lt;/strong&gt;&lt;br&gt;
Data Entry and storage/ Data Organization and Cleaning&lt;br&gt;
In real-world data analysis, the first step is often cleaning and organizing messy data. Excel allows users to import data from various sources and clean it using tools like Remove Duplicates, Text to Columns, and Data Validation. This makes it easier to prepare data for analysis.&lt;br&gt;
Statistical Analysis/formulas and calculations&lt;br&gt;
Excel offers a variety of built-in functions for basic statistical calculations, such as AVERAGE, MEDIAN, STDEV, and more. With the Data Analysis Toolpak add-in, users can perform more advanced tasks like regression analysis, t-tests, and histograms — all within Excel.&lt;br&gt;
Charts and visualization/Pivot Tables and Dashboards&lt;br&gt;
Pivot tables allow users to summarize large datasets with just a few clicks. They help answer key questions by sorting, counting, and totaling data. When combined with slicers, charts, and formulas, users can build interactive dashboards to share insights with others.&lt;br&gt;
&lt;strong&gt;EXCEL FEATURES AND FORMULAS&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;SUM
=SUM (A1:A10)
Adds all numbers in a range (e.g., from A1 to A10 etc ).&lt;/li&gt;
&lt;li&gt;AVERAGE
=AVERAGE (B2:B12)
Calculates the mean (average) of the values in a range.&lt;/li&gt;
&lt;li&gt;IF
=IF(C2&amp;gt;50, "Pass", "Fail")
Checks a condition and returns one value if true, another if false.
&lt;strong&gt;Conclusion&lt;/strong&gt;
Learning Excel has significantly transformed my understanding of data. Instead of viewing data as isolated numbers, I now see it as structured information that can reveal trends, patterns, and insights. Excel's analytical tools have helped me approach data more critically and interpret it with greater clarity and purpose.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
  </channel>
</rss>
