<?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: Sharon Otieno</title>
    <description>The latest articles on DEV Community by Sharon Otieno (@sharon_otieno).</description>
    <link>https://dev.to/sharon_otieno</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%2F3246935%2F43c9cb22-fe8a-45ec-8e34-60f4da380cc9.jpg</url>
      <title>DEV Community: Sharon Otieno</title>
      <link>https://dev.to/sharon_otieno</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharon_otieno"/>
    <language>en</language>
    <item>
      <title>Retrieval Augmented Generation (RAG) for Dummies</title>
      <dc:creator>Sharon Otieno</dc:creator>
      <pubDate>Sun, 14 Sep 2025 10:54:23 +0000</pubDate>
      <link>https://dev.to/sharon_otieno/retrieval-augmented-generation-rag-for-dummies-2lc2</link>
      <guid>https://dev.to/sharon_otieno/retrieval-augmented-generation-rag-for-dummies-2lc2</guid>
      <description>&lt;p&gt;Retrieval-Augmented Generation (RAG) is a technique that optimises an AI model’s performance by connecting it with external knowledge bases. RAG then helps large language models (LLMs) provide more accurate, relevant, and high-quality responses. Let’s put things into perspective.&lt;/p&gt;

&lt;p&gt;Imagine someone asked you which planet has the most moons. Thinking back to when one was younger, one would say that Jupiter has 88 moons (for example). However, this response is flawed since the information is out of date, and the source itself is not credible. LLMs have similar challenges.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwfhlbhtdkzr53td00604.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwfhlbhtdkzr53td00604.jpg" alt=" " width="480" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s assume that you had first gone and looked up the question on a reputable source, such as NASA or the European Space Agency. You would have most likely gotten that Saturn has the most moons, as scientists keep discovering new ones.&lt;br&gt;
&lt;strong&gt;Where exactly does retriever-augmentation come in?&lt;/strong&gt;&lt;br&gt;
So let's say you were using ChatGPT. Now, rather than solely relying on what the model knows, it would refer to a ‘content store’, where there is reliable data. The model would then retrieve content relevant to the query from the store. So, rather than stating that the answer is Jupiter, the store would reveal that the correct planet is Saturn.&lt;br&gt;
Rather than having to retrain the model, all you have to do is update the model, and you can ensure that the store is always up to date. This approach lowers the risk of hallucination, allows access to up-to-date information, and improves trust in the model. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7yn27sskl5zd76hdf4n.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7yn27sskl5zd76hdf4n.jpg" alt=" " width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Summary of How RAG Works&lt;/strong&gt;&lt;br&gt;
User submits a prompt ↠ Retriever searches a knowledge base for relevant documents or data (retrieval)↠ The system combines the original prompt with the retrieved content (augmentation)↠ Generator (LLM) produces a response based on this enriched input (generation)↠ Output is returned to the user. &lt;/p&gt;

</description>
      <category>nlp</category>
      <category>ai</category>
      <category>rag</category>
      <category>gpt3</category>
    </item>
    <item>
      <title>Becoming a Data Analyst: My Linear Regression Story</title>
      <dc:creator>Sharon Otieno</dc:creator>
      <pubDate>Sat, 23 Aug 2025 14:29:25 +0000</pubDate>
      <link>https://dev.to/sharon_otieno/becoming-a-data-analyst-my-linear-regression-story-2jof</link>
      <guid>https://dev.to/sharon_otieno/becoming-a-data-analyst-my-linear-regression-story-2jof</guid>
      <description>&lt;p&gt;Transitioning from environmental science into the world of data and machine learning has undoubtedly been a challenging journey. This is especially because I have always been intimidated by the complexities of mathematical models. But despite all these, I have gradually learned the importance of breaking down concepts and ultimately using them to uncover patterns and make predictions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Linear Regression
&lt;/h2&gt;

&lt;p&gt;A core area of machine learning is linear regression. It basically entails modeling the relationship between variables to predict an outcome. asay, for instance, you wanted to predict house prices based on the number of rooms each room has. Normally, a house's price increases as the size of the house increases. Therefore, by plotting the relationship between the square footage and price of the house, linear regression helps you find a line that estimates how the prices rise due to additional square meters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use Cases
&lt;/h2&gt;

&lt;p&gt;While I initially found it challenging to grasp these ideas, over time, I learned just how strongly variables influence the prediction outcome. Consider these cases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Estimating salary based on years of experience.&lt;/li&gt;
&lt;li&gt;Predicting water demand based on population growth. &lt;/li&gt;
&lt;li&gt;Predicting academic performance from attendance rates.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;The Modelling Process&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In each scenario, you first have to define your features and the target variable. In the water/population growth example, the target variable (y) is water demand, while the independent variable (x) is the population size.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Our assumption is that as the population increases, water's demand also rises. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We would then visualize the relationship, train a linear regression model, interpret coefficients, and use the insights acquired to predict future water demand based on the projected population growth. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ultimately, we would evaluate how effective and accurate the model is in providing valuable recommendations. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Words
&lt;/h2&gt;

&lt;p&gt;Overall, my journey with linear regression has made me realize that despite one's anxiety, one can use mathematical tools to unlock insights, guide real-world decisions, and engage in data-driven processes.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>datainsights</category>
    </item>
    <item>
      <title>How I Calculated Premier League Win Probabilities Using Python</title>
      <dc:creator>Sharon Otieno</dc:creator>
      <pubDate>Thu, 31 Jul 2025 19:23:01 +0000</pubDate>
      <link>https://dev.to/sharon_otieno/how-i-calculated-premier-league-win-probabilities-using-python-4oo8</link>
      <guid>https://dev.to/sharon_otieno/how-i-calculated-premier-league-win-probabilities-using-python-4oo8</guid>
      <description>&lt;p&gt;Imagine you wanted to make an informed guess on which football teams are likely to win in the Premier League, based on last season's performance. Well, this is what I set out to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extracting Data From the API
&lt;/h2&gt;

&lt;p&gt;The first step I took was to access the football-data.org API website, which would be the source of my data. Now, what exactly is an API? Think of an API as a bridge between a website and your code. While the website has the data you need, you can use your computer to make requests from the site. The two systems then interact, exchange data, and deliver responses. &lt;/p&gt;

&lt;p&gt;Once you access the website, you need to create an account, typically via your email, where an authentication code can be sent. This code allows you to access and use the data. With the code at hand, you can then proceed to install the necessary libraries on Python (I used json (to load the data), requests, and pandas(to work with tables)). The next step I took was to set the URL to match the data I wanted. Since I wanted the latest data, I filtered using year, setting it to 2024. I then made the request to access the data, which was fetched successfully.&lt;/p&gt;

&lt;h2&gt;
  
  
  Manipulating the Data
&lt;/h2&gt;

&lt;p&gt;After fetching, one now has to read the data. The data = json.load(f) line then allowed me to convert the file from JSON to a Python dictionary. With this, I was then able to prepare the data for further analysis. The first thing I did was extract the relevant fields I needed, which included the home and away teams, the date each match was played, and the teams' respective scores. &lt;/p&gt;

&lt;p&gt;The next thing I did was create a function that would extract the winning teams based on their scores. This, for instance, showed me that while Manchester United FC played against Fulham FC, it scored one goal. The next step entailed aggregating the appearances and wins to see the total number of games each team won.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting the Win Probabilities
&lt;/h2&gt;

&lt;p&gt;My final step involved using the total wins per team against the total matches played to calculate the probability that they would win this season. From this, I learned that Liverpool FC had a total of 25 wins, the highest of all. This meant that it had the highest probability of being the winning team in the coming Premier League. &lt;br&gt;
This was quite an interesting project!&lt;/p&gt;

</description>
      <category>probabilities</category>
      <category>python</category>
      <category>api</category>
    </item>
    <item>
      <title>Why Central Tendency Rules in the World of Data Science</title>
      <dc:creator>Sharon Otieno</dc:creator>
      <pubDate>Sun, 20 Jul 2025 13:20:07 +0000</pubDate>
      <link>https://dev.to/sharon_otieno/why-central-tendency-rules-in-the-world-of-data-science-3f0e</link>
      <guid>https://dev.to/sharon_otieno/why-central-tendency-rules-in-the-world-of-data-science-3f0e</guid>
      <description>&lt;p&gt;As a data scientist, one is expected to collect, organize, summarize, analyze, and draw inferences from data. This is where statistical processes come in handy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Central Tendency?
&lt;/h2&gt;

&lt;p&gt;Central tendency refers to the statistical measure that represents the typical value or central point of a dataset. With central tendencies, one can provide an accurate description of the data they are interacting with. The three main measures of central tendency are: mean, mode, and median. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwrto3oa2fhn31jmdzpqp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwrto3oa2fhn31jmdzpqp.png" alt=" " width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Mean (μ) -This is the most commonly used measure. It acts as the arithmetic average value. Although the mean is a good representative of data, it is sensitive to outliers, especially when working with a small sample size.&lt;/li&gt;
&lt;li&gt;Median- The median refers to the middle value in a data set, when all the items are arranged in either ascending or descending order. While the median is easy to compute and is not distorted by skewed data, its disadvantages are that it does not use all the information available and cannot be used for further mathematical calculations. &lt;/li&gt;
&lt;li&gt;Mode- The mode refers to the most common value within a set of data. Even though it can be calculated easily and is the only measure that can be used with data that is in a nominal scale, the mode is not used in statistical analysis since it is not algebraically defined. &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Which Measure is Best to Use?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If working with &lt;em&gt;ordinal&lt;/em&gt; or &lt;em&gt;nominal&lt;/em&gt; datasets, one is not able to calculate the median or mode. It is therefore best to use the calculated mode. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Assuming you have &lt;em&gt;quantitative&lt;/em&gt; data, it is best to use either the mean or the mode. However, if the data is either skewed or has an outlier, one should opt for the median.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In every other circumstance, one can use the mean, especially since it shows the least errors.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;p&gt;Agarwal, K. (2022, September 24). Statistics for data science Part 1: Use of central tendency for data analysis. Medium. &lt;a href="https://medium.com/analytics-vidhya/statistics-for-data-science-part-1-use-of-central-tendency-for-data-analysis-d37cff35c9ea" rel="noopener noreferrer"&gt;https://medium.com/analytics-vidhya/statistics-for-data-science-part-1-use-of-central-tendency-for-data-analysis-d37cff35c9ea&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bhaskar, S., Ali, Z., &amp;amp; Sudheesh, K. (2019). Descriptive statistics: Measures of central tendency, dispersion, correlation, and regression. Airway, 2(3), 120. &lt;a href="https://doi.org/10.4103/arwy.arwy_37_19" rel="noopener noreferrer"&gt;https://doi.org/10.4103/arwy.arwy_37_19&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;S., M. (2011). Measures of central tendency: The mean. Journal of Pharmacology and Pharmacotherapeutics, 2(2), 140-142. &lt;a href="https://doi.org/10.4103/0976-500x.81920" rel="noopener noreferrer"&gt;https://doi.org/10.4103/0976-500x.81920&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;S., M. (2011). Measures of central tendency: Median and mode. Journal of Pharmacology and Pharmacotherapeutics, 2(3), 214-215. &lt;a href="https://doi.org/10.4103/0976-500x.83300" rel="noopener noreferrer"&gt;https://doi.org/10.4103/0976-500x.83300&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Discovering the Power of Excel (As an Absolute Beginner!)</title>
      <dc:creator>Sharon Otieno</dc:creator>
      <pubDate>Sun, 08 Jun 2025 12:37:00 +0000</pubDate>
      <link>https://dev.to/sharon_otieno/discovering-the-power-of-excel-as-an-absolute-beginner-18e</link>
      <guid>https://dev.to/sharon_otieno/discovering-the-power-of-excel-as-an-absolute-beginner-18e</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fundmx0k0j55siwjipvr7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fundmx0k0j55siwjipvr7.jpg" alt="Image description" width="800" height="534"&gt;&lt;/a&gt;Although many people have heard of Excel, they tend to underestimate it, thinking it is only a tool to enter data. However, it is much more than a set of rows and columns. &lt;br&gt;
In simple terms, Excel is a tool used to organize data, perform calculations, and derive valuable insights. The following examples will better portray how versatile and valuable Excel is in the real world. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Sales Performance Analysis&lt;/strong&gt;- A business can use Excel to track sales performance, such as by assessing whether females purchased more products than males. Such insights may then influence business decisions, such as whether to adjust inventory depending on demand. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human Resource Management&lt;/strong&gt;- An organization can use Excel to keep records of their employees, such as the hire date and department they work in. Such information can then be used to automate salary calculations, analyze performance over time, and evaluate trends, such as gender-based pay differences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tracking Academic Performance&lt;/strong&gt;- A school may opt to use Excel to keep records of students’ demographic information (such as gender and age), as well as test scores. Using the available information, the school can, for instance, identify learners with learning challenges and offer them additional support.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What Features Have I Been Exposed To?
&lt;/h2&gt;

&lt;p&gt;From my first week of learning about Excel, there are certain features and formulas I have been exposed to, and have grown to appreciate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The “IF” Statement&lt;/strong&gt;- In the sales performance example, let’s say the business wanted to assess if sales made were of high value or not. =IF(D2&amp;gt;15000, "High Value", "Low Value"). If the calculation (as above) were executed, the business would identify high-value and low-value sales. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conditional Formatting&lt;/strong&gt;- If an organization wanted to identify employees who, for instance, earned the lowest amount of money, it could use conditional formatting, such as color scales or data bars to spot them, especially when the data set is large. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Validation&lt;/strong&gt;- Normally, the data validation tool is used to restrict the kind of information input into a cell in a given column. So, let’s say that the school wanted to restrict academic performance into either poor, good, or excellent, the mentioned tool will prevent unrelated entries from being made, therefore ensuring consistency. &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  My Personal Reflection
&lt;/h2&gt;

&lt;p&gt;Before interacting with Excel, I only viewed data as something that you simply entered into rows and columns. It did not appear as something I was able to interact with. However, my view of data has completely changed. &lt;/p&gt;

&lt;p&gt;I recognize and appreciate that every piece of data in Excel has the potential to tell a story. Using certain tools, such as pivot tables, one can recognize patterns, discrepancies, and similarities. This data then has the potential to generate actionable insights. Now, more than ever, I am quite excited about using Excel to explore data further.  &lt;/p&gt;

</description>
      <category>excelforbeginners</category>
      <category>datadriven</category>
      <category>exceltips</category>
      <category>dataanalytics</category>
    </item>
  </channel>
</rss>
