<?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: Elishiba Muigo</title>
    <description>The latest articles on DEV Community by Elishiba Muigo (@elimuigo).</description>
    <link>https://dev.to/elimuigo</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1172190%2Faf02caca-8347-437d-88cf-587e1d138b6b.jpeg</url>
      <title>DEV Community: Elishiba Muigo</title>
      <link>https://dev.to/elimuigo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elimuigo"/>
    <language>en</language>
    <item>
      <title>CONNECTING POWER BI TO DATABASES</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Tue, 07 Jul 2026 21:55:05 +0000</pubDate>
      <link>https://dev.to/elimuigo/connecting-power-bi-to-sql-databases-3372</link>
      <guid>https://dev.to/elimuigo/connecting-power-bi-to-sql-databases-3372</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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2fxta4fjdn5198kgvwio.webp" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2fxta4fjdn5198kgvwio.webp" alt="Aiven" width="799" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Imagine you want to own a house, but you don't have a land and you haven't budgeted well for building materials and furniture. Instead of buying the land, building the house,laying pipes, and furnishing yourself, you rent a well fully furnished house where the landlord handles all the maintenance.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;- The landlord: Aiven acts as the landlord&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;- The Apartment: Your Infrastructure&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;- The Advantages: You just move in (deploy your service) and enjoy the amenities. If the roof gets damaged(a server crashes) or you need more space(database scaling), Aiven fixes or upgrades it in the background.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Aiven - is a managed open-source data platform that provides databases, search engines, and streaming tools as a service. Allows users to perform real-time computation with SQL efficiently.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NOTE: Ensure you have the Postgresql and Power BI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  STEPS ON HOW TO CONNECT AIVEN TO POSTGRESQL
&lt;/h2&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1. SETTING UP AN AIVEN ACCOUNT&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Log in into your browser and search for Aiven, click the result and you'll be directed to a landing page. Sign Up if you are a first time user and then proceed to log in with the credentials you have used to sign up with.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. Click on any option according to what you want to use Aiven for.&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fypyoaysdg9fliry84jfr.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fypyoaysdg9fliry84jfr.png" alt="Aiven" width="800" height="238"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. Set up your country and Aiven gives you a default project name that you can customise according to what you want.&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhilum2h83f6zxfd3v4ur.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhilum2h83f6zxfd3v4ur.png" alt="Aiven" width="800" height="178"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;3. Click on explore Aiven for Streaming&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwahxh4mtjwv1wb0k9isg.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwahxh4mtjwv1wb0k9isg.png" alt="Aiven" width="800" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;4. Click on Services and choose Postgresql&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fec4xkf0sryhtdjfffaz0.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fec4xkf0sryhtdjfffaz0.png" alt="Aiven" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;5. Choose the tier you prefer and set region of your own liking and click on create service&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhzz0pl8wrb1z029mx8el.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhzz0pl8wrb1z029mx8el.png" alt="Aiven" width="799" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;6. Ensure the Service is running&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/efuda1gu2synjf97sero.png" rel="noopener noreferrer"&gt;Aiven&lt;/a&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgih0wnlxkohm1mzh1wa4.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgih0wnlxkohm1mzh1wa4.png" alt="AIVEN" width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2. CONNECTING POSTGRESQL TO AIVEN&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Open DBeaver which is already configured to Postgresql.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Click CTRL+SHIFT+N or Click on new database connection on the top right corner of deaber.&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2z1gbuvcyq0nvell7gvr.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2z1gbuvcyq0nvell7gvr.png" alt="Postgres" width="799" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Click the Postgresql and click next&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;_On the Prompt that is provided after clicking next(Connection Settings) follow the following steps:-&lt;/p&gt;

&lt;p&gt;i) For the HOST: (delete localhost and replace with the Host name in Aiven in the connection information in step 6)&lt;/p&gt;

&lt;p&gt;ii) Replace the Database name with the Aiven Database name from the     Aiven connection information.&lt;/p&gt;

&lt;p&gt;iii) Replace the port number with the Aiven port number from the Aiven connection information.&lt;/p&gt;

&lt;p&gt;iv) Do the same for the Username and Password&lt;/p&gt;

&lt;p&gt;v) Click on Finish_&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NOTE: You are replacing the details with the details,
 from the Aiven connection information from step 6 'Setting up Aiven Account'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpbod3dt72z4b0to5z4pl.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpbod3dt72z4b0to5z4pl.png" alt="PowerBI" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;3. CONNECTING TO POWER BI&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Select data source and choose postgresql&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;For the Server enter : 127.0.0.1.5432(default for localhost server)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Database: postgres&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Username: postgres&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Password: Use the password that you set when installing postgresql&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fayc9xuyo2hu3hkeasolq.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fayc9xuyo2hu3hkeasolq.png" alt="PowerBI" width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally finish and you are able to access the datasets in your local database.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;NB: INCASE WHEN CONNECTING POWER BI TO THE DATABASE AND AN ERROR PROMPT ABOUT CERTIFICATE CONFIGURATION APPEARS&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;1. Download the SSL certifacte which is located in the connection information on Aiven.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. Open the Manage Computer Certficate from your search bar.&lt;/em&gt;&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpw7moge90bafi5mwmfjo.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpw7moge90bafi5mwmfjo.png" alt="MCC" width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;3. Click on the Trusted Root Certification.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;4. Right click on certificates and then choose all tasks and then import.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;5. Change the file type to all files and select the SSL certificate you downloaded (a .pem file) and click on next until you finish.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;6. Reload the Power BI and start the connection steps again.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>postgres</category>
      <category>aiven</category>
    </item>
    <item>
      <title>Designing Effective Data Models in Power BI: Schemas and Relationships</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Thu, 02 Jul 2026 14:59:31 +0000</pubDate>
      <link>https://dev.to/elimuigo/designing-effective-data-models-in-power-bi-schemas-and-relationships-38j2</link>
      <guid>https://dev.to/elimuigo/designing-effective-data-models-in-power-bi-schemas-and-relationships-38j2</guid>
      <description>&lt;p&gt;Discover how data modeling helps organize and structure data for efficient storage, management, and analysis.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Data Modeling?
&lt;/h3&gt;

&lt;p&gt;Data modeling is a detailed process that involves creating a visual representation of data and it's relationships. It serves as a blueprint of how data is structured, stored and accessed to ensure consistency and clarity in data management.&lt;/p&gt;

&lt;p&gt;Visualize data modeling as a conceptual view of data elements or the way we structure data for building business objects.&lt;/p&gt;

&lt;h3&gt;
  
  
  Types of Data Models
&lt;/h3&gt;

&lt;p&gt;There are three main types of data models:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;h3&gt;
  
  
  Conceptual data model
&lt;/h3&gt;

&lt;p&gt;The model provides a high-level view of data, it defines keys, attributes, and relationships.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h3&gt;
  
  
  Logical data model
&lt;/h3&gt;

&lt;p&gt;The model defines how the data will be structured, it defines the structure, properties, and relationships of data elements in a way that is independent of any specific database or &lt;br&gt;
BI tool&lt;br&gt;
It serves as a blueprint, mapping out how data entities (e.g., customers, products, sales) relate to one another through primary and foreign keys.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h3&gt;
  
  
  Physical data model
&lt;/h3&gt;

&lt;p&gt;The model represents how data is actually stored in a database. It is an actual implementation in Power BI.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Understanding Dimensional Modeling
&lt;/h2&gt;

&lt;p&gt;Dimensional modeling is a logical approach to organizing data for reporting, making it easy to query and analyze.It is widely used in data warehousing and analytics, where data is often represented in terms of facts and dimensions, it simplifies complex data by organizing into star and snowflake schemas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fact Tables:&lt;/strong&gt; These tables store measurable attributes such as sales amount and transaction counts. These tables represent business processes, transactions, or events.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fziytmhvugbsl9ww6id8x.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fziytmhvugbsl9ww6id8x.png" alt=" " width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dimension Tables:&lt;/strong&gt; They store descriptions of the contexts around the fact tables. They describe and categorize fact table data, answering key analytical questions such as “who, what, when, where, why, and how.”&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd8irhn1fgab6yh6694xu.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd8irhn1fgab6yh6694xu.png" alt=" " width="800" height="514"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  STAR SCHEMA
&lt;/h2&gt;

&lt;p&gt;It's a data-modeling technique where a central fact table is surrounded by related dimension tables, visually resembling a star.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1duxbk2fmnmqy474118q.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1duxbk2fmnmqy474118q.png" alt=" " width="800" height="546"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SNOWFLAKE SCHEMA
&lt;/h2&gt;

&lt;p&gt;It extends the star schema but it allows relationships between dimensions.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnxlhbnm4czqlz4jzdhmw.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnxlhbnm4czqlz4jzdhmw.png" alt=" " width="800" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  MERGING
&lt;/h1&gt;

&lt;p&gt;Merging tables in Power BI means combining two or more tables into a single table. &lt;br&gt;
You can use merge tables based on a related column:&lt;/p&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Click on Merge Queries under the Home tab under the Combine group&lt;/li&gt;
&lt;li&gt;Select the first table and the second table you would like to merge&lt;/li&gt;
&lt;li&gt;Select the columns you would like to join the tables on by clicking on the column from the first dataset, and from the second dataset&lt;/li&gt;
&lt;li&gt;Select the Join Kind that suits your operation.
&lt;em&gt;Merge tables when you need a simplified dataset for a specific analysis or when dealing with smaller datasets where performance impact is minimal. Merging can also be good when you need to perform extensive data cleaning and transformation.&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;When merging tables you can use several types of joins. &lt;/p&gt;

&lt;p&gt;We refer to the following two tables to illustrate joins below.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqsfoxfas13dbx29cfy5s.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqsfoxfas13dbx29cfy5s.png" alt=" " width="799" height="425"&gt;&lt;/a&gt;&lt;br&gt;
Datacamp: [&lt;a href="https://www.datacamp.com/tutorial/power-bi-merge-tables" rel="noopener noreferrer"&gt;https://www.datacamp.com/tutorial/power-bi-merge-tables&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Inner Join&lt;/strong&gt; - Returns only rows that match in both tables. &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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr76635tjve2l26xh168k.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr76635tjve2l26xh168k.png" alt=" " width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the Sales table is reduced to 5 rows since Product ID ‘P020’ is not found in the Products table. Additionally, two rows from the Products table are not even included in the Sales table since no sales are recorded for them (that is, Product ID ‘P010’ and ‘P001’).&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fecb8zxrx68bnyp6ahvv5.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fecb8zxrx68bnyp6ahvv5.png" alt=" " width="760" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Left Outer Join&lt;/strong&gt;- The join returns all records from the left tables and the matched records from the right tables. If there is no match, the result is NULL on the side of the right tables.&lt;/p&gt;

&lt;p&gt;In our example, Product ID ‘P020’ has no associated product name because this product is not found in the Products table, so we just get a null value in the Product column.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn0lefzzirhbrnrq7p1fb.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn0lefzzirhbrnrq7p1fb.png" alt=" " width="788" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Right Outer Join&lt;/strong&gt; - Right join is the opposite of the left join. It returns all rows from the right table and common rows from the left table. If no match is found in the left table, NULL values will be returned for those rows. It is like the mirror image of LEFT JOIN.&lt;/p&gt;

&lt;p&gt;In our example, two products (Binder and Paper) can be found in the Products table but do not have any associated sales in the Sales table. Therefore, we have two extra rows in our Sales table that are completely blank for all columns except the Product column.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffp043nuu875qhyirbyqu.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffp043nuu875qhyirbyqu.png" alt=" " width="756" height="197"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are the different types of joins you can use:&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8nk122eqgi7mfodppsmy.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8nk122eqgi7mfodppsmy.png" alt=" " width="742" height="623"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  CARDINALITY
&lt;/h1&gt;

&lt;p&gt;Cardinality it the relationship between rows of data in separate tables within a data model. Each model relationship is defined by a cardinality type. &lt;/p&gt;

&lt;p&gt;The four options, together with their shorthand notations, are described in the following list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One-to-many (1:*)&lt;/li&gt;
&lt;li&gt;One-to-one (1:1)&lt;/li&gt;
&lt;li&gt;Many-to-many (&lt;em&gt;:&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;One-to-many (and many-to-one) cardinality&lt;/strong&gt;&lt;br&gt;
The cardinality relationship is a connection between two tables in a data model where one unique value in "one" table can be associated with multiple values in the "many" tables.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbrncukv570nd6esgcsu9.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbrncukv570nd6esgcsu9.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One-to-one (1:1) cardinality&lt;/strong&gt;&lt;br&gt;
The one-to-one relationship means both columns contain unique values. This cardinality type isn't common.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8wgjledi0d9e5warn27o.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8wgjledi0d9e5warn27o.png" alt=" " width="800" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many-to-many (&lt;em&gt;:&lt;/em&gt;)&lt;/strong&gt;&lt;br&gt;
The many-to-many relationship means both columns can contain duplicate values. This cardinality is frequently used. &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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz76ys07kh7d7xjodkvst.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz76ys07kh7d7xjodkvst.png" alt=" " width="800" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create relationships with Power BI
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;If you have different datasets you want to connect. First, upload them into Power BI&lt;/li&gt;
&lt;li&gt;Click on the Model View from the left-hand pane&lt;/li&gt;
&lt;li&gt;Connect key columns from different datasets by dragging one to another (e.g., EmployeeID to e.g., SalespersonID)&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;MORE RESOURCES TO USE:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.datacamp.com/cheat-sheet/power-bi-cheat-sheet" rel="noopener noreferrer"&gt;DATACAMP&lt;/a&gt;&lt;br&gt;
&lt;a href="https://youtu.be/TtxfKIe0HuQ?si=YRWy5DmE3f3W2Nwg" rel="noopener noreferrer"&gt;Data With Baraa&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Graphics collected from : &lt;br&gt;
&lt;a href="https://www.datacamp.com/tutorial/power-bi-merge-tables" rel="noopener noreferrer"&gt;Datacamp&lt;/a&gt;&lt;br&gt;
&lt;a href="https://youtu.be/TtxfKIe0HuQ?si=YRWy5DmE3f3W2Nwg" rel="noopener noreferrer"&gt;Data with Baraa&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>powerplatform</category>
      <category>analysis</category>
      <category>modeling</category>
      <category>schemas</category>
    </item>
    <item>
      <title>How Excel is Used in Real-World Data Analysis</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Tue, 09 Jun 2026 07:22:16 +0000</pubDate>
      <link>https://dev.to/elimuigo/how-excel-is-used-in-real-world-data-analysis-40in</link>
      <guid>https://dev.to/elimuigo/how-excel-is-used-in-real-world-data-analysis-40in</guid>
      <description>&lt;p&gt;To anyone who has basic computer knowledge will tell you they know Excel, many will just say it's a software but they might not tell you beyond that. Well they're are not wrong because it's a program developed by Microsoft most 'ignored' but doesn't negate the fact it's a powerful tool that it has a cluster of functions that one can use. &lt;br&gt;
*&lt;em&gt;Excel *&lt;/em&gt;- a program developed by Microsoft, it's a spreadsheet used that organizes data into rows and columns and allows you to do mathematical functions. &lt;br&gt;
In real world scenarios Excel is typically used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Data entry - allows users to input and organize information into structured rows and columns. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data management- enables users to input, organise, and analyse information without the need of complex databases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data analysis- excel allows users to clean data and perform mathematical functions to analyse data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Visuals and graphs- Excel has charts, graphs, maps, etc., that provide a simple and accessible way to understand our data and identify trends and outliers within datasets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Financial modelling - Excel has a built in financial modelling tool that is used to understand and perform analysis on underlying business to guide on decision making.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  WEEK 1 OF LEARNING EXCEL
&lt;/h3&gt;

&lt;p&gt;Week 1 of learning has been a rollercoaster, first thing first we explored the toolbar that holds all the tools that can be used in excel. Learning what a cell is, differentiating between a row and a column. &lt;/p&gt;

&lt;p&gt;Functions explored:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MAX () - finds the highest number in range.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MAX (A1:A100)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;MIN () - finds the lowest number in range.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MIN(A1:A100)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;AVERAGE() -  calculates the average( arithmetic mean)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AVERAGE(A1:A100)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;SUM() -  adds up numbers in range.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SUM(A1:A100)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;COUNT() - counts cells with numbers in range.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;COUNT(A1:A100)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Week 1 was a lot of introduction but I loved it, there's is so much to explore in excel, and working with data is really interesting. The best bit is well cleaned and analysed data will always explain the trend and what is happening within a business. &lt;/p&gt;

</description>
      <category>excel</category>
      <category>analytics</category>
      <category>reporting</category>
    </item>
    <item>
      <title>HANDLING THE SAFE UPDATE MODE IN MYSQL</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Thu, 12 Jun 2025 16:18:17 +0000</pubDate>
      <link>https://dev.to/elimuigo/handling-the-safe-update-mode-in-mysql-249o</link>
      <guid>https://dev.to/elimuigo/handling-the-safe-update-mode-in-mysql-249o</guid>
      <description>&lt;p&gt;*&lt;em&gt;Safe Update Mode is a feature designed to prevent unintentional data loss or corruption during update and delete operations. It restricts the execution of UPDATE and DELETE statements that don't include a WHERE clause that uses a key column, thus preventing accidental modifications to entire tables. *&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;u&gt; The Default and Safe Mode &lt;/u&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;When SQL_SAFE_UPDATES is set to 1 (which is the default setting in many MySQL client tools like MySQL Workbench), the database system will prevent UPDATE or DELETE statements that:&lt;/li&gt;
&lt;li&gt;Do not use a WHERE clause: For example, &lt;code&gt;UPDATE my_table SET column1 = 'new_value';&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Do not use a key column in the WHERE clause: For example, if id is your primary key, &lt;code&gt;UPDATE my_table SET column1 = 'new_value' WHERE some_other_column = 'value';&lt;/code&gt; would be blocked unless some_other_column is also indexed or part of a unique key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;SET SQL_SAFE_UPDATES = 1&lt;/code&gt;&lt;br&gt;
&lt;code&gt;DELETE FROM database_name.table_name&lt;br&gt;
WHERE condition;&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;u&gt; The Unsafe/ Override Mode &lt;/u&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;When SQL_SAFE_UPDATES is set to 0, the database system will not prevent UPDATE or DELETE statements that lack a WHERE clause or don't use a key in the WHERE clause.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This is typically used when you intentionally want to perform a mass update or delete operation without specifying a key column in the WHERE clause, or if you are sure about your WHERE clause, even if it doesn't involve a key. It gives you more flexibility but also removes the safety net.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;SET SQL_SAFE_UPDATES = 0&lt;/code&gt;&lt;br&gt;
&lt;code&gt;DELETE FROM database_name.table_name&lt;br&gt;
WHERE condition;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>sql</category>
      <category>sqlserver</category>
      <category>database</category>
    </item>
    <item>
      <title>A Step-by-Step Roadmap to Data Engineering</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Thu, 09 Nov 2023 20:18:43 +0000</pubDate>
      <link>https://dev.to/elimuigo/a-step-by-step-roadmap-to-data-engineering-2f9o</link>
      <guid>https://dev.to/elimuigo/a-step-by-step-roadmap-to-data-engineering-2f9o</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Data engineering is the practice of designing and building systems for collecting, storing, and analyzing data as scale. &lt;br&gt;
Data engineers work in a variety of settings to build systems that collect, manage and convert raw data into usable information for data scientists and business analysts to interpret. They make data accessible so that organizations can use to evaluate and optimize performance.&lt;/p&gt;

&lt;h3&gt;
  
  
  1.Basic programming languages
&lt;/h3&gt;

&lt;p&gt;.Knowledge in python programing and scala.&lt;br&gt;
.Knowledge of SQL and database programming. Know how to design and implement data models and database using tools such as PostgreSQL and MySQL.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Learn Linux commands and Git
&lt;/h3&gt;

&lt;p&gt;.Knowledge in version control using git, this allows you to manage changes t workloads and basic Linux commands. &lt;/p&gt;

&lt;h3&gt;
  
  
  3. Data integration, ETL and ELT
&lt;/h3&gt;

&lt;p&gt;Data integration is the process of combining data from multiple sources into cohesive view. It involves gathering data from various sources, cleaning and transforming the data to make it consistent and compatible then storing it.&lt;/p&gt;

&lt;p&gt;ETL(Extract, Transform and Load) is a process in data data warehousing and business intelligence that involves extracting data from various sources, transforming it into a format that is suitable for analysis and reporting then loading it into a data warehouse or other data repository.&lt;br&gt;
  .Experience ETL tools like Apache Kafka, Talend.&lt;/p&gt;

&lt;p&gt;ELT(Extract, Loading and Transformation) a process that involves moving raw data from a source system to a destination resource such a data warehouse.&lt;/p&gt;

&lt;p&gt;Learn about ELT and ETL and when is the best time to use which method.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Data storage and warehousing
&lt;/h3&gt;

&lt;p&gt;Data warehousing enables organizations to store, organize, and analyze data from various sources in a centralized location, providing a more complete view of the organization's data. &lt;/p&gt;

&lt;p&gt;.Learn data modelling and schema design for data warehouse.&lt;br&gt;
  .Learn data warehousing concepts and tools like Snowflake, Redshift and &lt;br&gt;
  amazon.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Data Pipelines
&lt;/h3&gt;

&lt;p&gt;A method in which raw data is ingested from various data sources and then moved to a data store, like a data lake or a data warehouse for analysis. Data can be sources form API's, SQL and NoSQL databases.&lt;/p&gt;

&lt;p&gt;.Learn about Batch processing and Streaming data.&lt;br&gt;
 .Learn the data pipeline architecture.&lt;br&gt;
 .Understanding of workflow management tools such as Apache Airflow, AWS and &lt;br&gt;
  Azure Data Factory.&lt;br&gt;
 . Familiarize with containerization technologies such as Docker and Kubernetes for managing and deploying data pipelines.&lt;/p&gt;

&lt;h3&gt;
  
  
  6.Cloud Computing
&lt;/h3&gt;

&lt;p&gt;The cloud computing platforms offer an advantage to data engineers including scalable infrastructure and a range of tools for data processing and analysis.&lt;br&gt;
  .Platforms like AWS, Google Cloud Platform and Microsoft Azure.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.Data governance and security
&lt;/h3&gt;

&lt;p&gt;Data governance ensures data is managed by legal and regulatory requirements. Another important function of data governance is helping protect data from unauthorized access, theft, and misuse. This is critical for data engineers, who are in charge of designing and maintaining secure data systems. &lt;/p&gt;

</description>
      <category>dataengineering</category>
      <category>datascience</category>
    </item>
    <item>
      <title>A COMPLETE GUIDE TO TIME SERIES MODELLING</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Mon, 30 Oct 2023 21:01:29 +0000</pubDate>
      <link>https://dev.to/elimuigo/a-complete-guide-to-time-series-modelling-1d9m</link>
      <guid>https://dev.to/elimuigo/a-complete-guide-to-time-series-modelling-1d9m</guid>
      <description>&lt;h3&gt;
  
  
  What is a Time Series Model?
&lt;/h3&gt;

&lt;p&gt;-An ordered sequence of values of variable at equally spaced time intervals. Used in accurately predicting patterns and trends in time-dependent data can offer valuable insights into fields such as climate analysis, stock marketing analysis and economics.&lt;br&gt;
&lt;b&gt;Time series modeling&lt;/b&gt; is a statistical and mathematical technique used to analyze and make predictions about data points collected and recorded over a series of time intervals. It's a method of analyzing a collection of data points over a period of time.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;Characteristics of Time Series Model&lt;/u&gt;:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;1.&lt;u&gt;Autocorrelation&lt;/u&gt;&lt;/b&gt;-It's the degree of similarity between a given time series and a lagged version of itself over successive time intervals. Autocorrelation measures the relationship between a variable's current value and its past values. It measures the correlation between a time series and a lagged version of itself. Helps in model selection and diagnostics. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;2.&lt;u&gt;Seasonality&lt;/u&gt;&lt;/b&gt;-characteristic of time series in which data experiences regular and predictable changes that reoccur every year and is said to be seasonal. Seasonality refers to periodic fluctuations. Many time series exhibit seasonality which is recurring patterns or cycles that occur at regular intervals.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;3.&lt;u&gt;Stationarity&lt;/u&gt;&lt;/b&gt;-A fundamental assumption in time series analysis is stationarity. A time series mean, variance, and autocorrelation remain constant over time.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;Time Series Analysis:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;1.&lt;u&gt;Segmentation&lt;/u&gt;&lt;/b&gt;- splits the data into segments to reveal the underlying properties of the source information.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;2.&lt;u&gt;Explanative Analysis&lt;/u&gt;&lt;/b&gt;-attempts to understand the data and the relationship between it's cause effect.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;3.&lt;u&gt;Classification&lt;/u&gt;&lt;/b&gt;-Identifies and assigns categories to the data.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;4.&lt;u&gt;Forecasting&lt;/u&gt;&lt;/b&gt;-Predicts future data. Time series models are used for forecasting future values of the series. Common techniques for forecasting include autoregressive (AR) models, moving average (MA) models, and their combinations in autoregressive integrated moving average (ARIMA) models.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;5.&lt;u&gt;Curve Fitting&lt;/u&gt;&lt;/b&gt;-Plots the data along a curve to study the relationships of variable within the data. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;6.&lt;u&gt;Descriptive Analysis&lt;/u&gt;&lt;/b&gt;-Patterns in the time series data such as trends, seasonal variations and cycles.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;7.&lt;u&gt;Exploratory analysis&lt;/u&gt;&lt;/b&gt;- Highlights the main characteristics of the time series data, usually in a visual format.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;Models of Time Series:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;ARIMA (Autoregressive Integrated Moving Average)&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
-A time series forecasting model used for analyzing and forecasting time-dependent data. It combines three key components: autoregression (AR), differencing (I for Integrated), and moving averages (MA). ARIMA models can apply in some cases where data show non-stationarity in the mean.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;Parts of ARIMA&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
&lt;b&gt;AR (Autoregressive):&lt;/b&gt; refers to the number of previous values to consider for the forecast. Described by the perimeter "p". Autoregressive is the lags of the variables in the stationary series in the estimation equation.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;I (Integrated):&lt;/b&gt; differentiation of time series data. Characterized by "d". Refers to the number of differencing applied with the objective of achieving stationary time series. Integrated means that the data values are changed with the difference between their own values and previous values to make the series stable.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;MA (Moving Average):&lt;/b&gt; a linear combination of past error values instead of previous values of the variable interest. Described by the parameter "q". Refers to the lags of forecast errors.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;SARIMA MODEL ( Seasonal Autoregressive Integrated Moving Average)&lt;/u&gt;&lt;/b&gt;&lt;br&gt;
It's designed to handle time series data with seasonal patterns. SARIMA models are widely used for time series forecasting and analysis, particularly when the data exhibit recurring patterns at regular intervals, such as daily, monthly, or yearly seasonality.&lt;/p&gt;

&lt;p&gt;When there's seasonality in the series SARIMA will instead ARIMA. There is only one variable in both data and it will be a suitable model as SARIMA supports univariate time series data.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>datascience</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>A SUMMARY OF EXPLATORY DATA ANALYSIS</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Thu, 12 Oct 2023 07:43:10 +0000</pubDate>
      <link>https://dev.to/elimuigo/a-summary-of-explatory-data-analysis-5ci4</link>
      <guid>https://dev.to/elimuigo/a-summary-of-explatory-data-analysis-5ci4</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;u&gt;The Significance of EDA&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The EDA is an approach to analyzing datasets and involves using various tools and techniques to examine and understand data. EDA helps analysts gain insights into the data, identify relationships, detect outliers and prepare the data for further analysis or modelling. Process of visually and statistically summarizing data to discover it's underlying, structure, distribution and relationships between variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Data Collection-&lt;/strong&gt; gather relevant data to the study or problem. This could be collected through various resources databases, spreadsheets, APIs and web scraping.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Data Cleaning-&lt;/strong&gt; this a step that involves removing and handling missing values, as the incorrect insights. Deal with the outliers that might skew the analysis and address duplicates and inconsistent values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Data Wrangling-&lt;/strong&gt;this is converting raw data into a usable form . Involves merging multiple data sources into a single dataset for analysis. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Statistics Summary-&lt;/strong&gt;calculates and visualize basic summary statistics like mean, median, standard deviation and quartiles for numerical variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.Data Visualization-&lt;/strong&gt;graphical representation of data to enhance understanding of the patterns, trends and insights within the data. They include: &lt;br&gt;
        -&lt;em&gt;&lt;b&gt;Bar Charts&lt;/b&gt;&lt;/em&gt; :To show frequency of categorical variables.&lt;br&gt;
        -&lt;em&gt;&lt;b&gt;Scatter plots&lt;/b&gt;&lt;/em&gt;: To explore relationships between numerical variables.&lt;br&gt;
        -&lt;em&gt;&lt;b&gt;Histograms&lt;/b&gt;&lt;/em&gt;: For visualizing the distribution of single variables.&lt;br&gt;
        -&lt;em&gt;&lt;b&gt;Heatmaps&lt;/b&gt;&lt;/em&gt;: To visualize correlations between variables.&lt;br&gt;
        -&lt;em&gt;&lt;b&gt;Box Plots&lt;/b&gt;&lt;/em&gt;: displays the distribution of a dataset, including the &lt;br&gt;
          median, quartiles and potential outliers.&lt;br&gt;
&lt;strong&gt;6.Correlation Analysis-&lt;/strong&gt;calculate correlation coefficients to understand the relationships between numerical variables e.g. Pearson, Spearman and then visualize correlations using matrices or heatmaps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.Feature Engineering-&lt;/strong&gt;EDA can lead to the selection or creation of relevant features for predictive modeling. By exploring relationships between features and the target variable, data scientists can identify the most informative variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8.Model Assumptions-&lt;/strong&gt; Understanding data distributions and relationships helps in selecting appropriate modeling techniques and verifying model assumptions. For instance, linear regression assumes a linear relationship between variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Methods of EDA&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1.Time Analysis-&lt;/strong&gt;EDA involves examining the temporal aspects of data, including trends, seasonality, and autocorrelation, through techniques like time series plots and autocorrelation functions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Univariate Analysis-&lt;/strong&gt; Focuses on a single variable at a time, summarizing its central tendencies, spread, and distribution using measures like mean, median, standard deviation, and visualizations such as histograms and box plots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Bivariate Analysis-&lt;/strong&gt;Explores the relationships between two variables. Scatter plots, correlation coefficients, and contingency tables are useful tools in this context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Multivariate Analysis-&lt;/strong&gt; Involves studying the relationships between multiple variables simultaneously. Techniques like principal component analysis (PCA) or clustering methods can be employed for dimensionality reduction and pattern discovery.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>ROADMAP TO BECOMING A DATA SCIENTIST</title>
      <dc:creator>Elishiba Muigo</dc:creator>
      <pubDate>Sat, 30 Sep 2023 01:12:14 +0000</pubDate>
      <link>https://dev.to/elimuigo/roadmap-to-becoming-a-data-scientist-4dph</link>
      <guid>https://dev.to/elimuigo/roadmap-to-becoming-a-data-scientist-4dph</guid>
      <description>&lt;p&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Learn basic fundamentals of python&lt;/strong&gt; (control structures, data types, syntax, functions, Object Oriented Programming and data structures).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Build a core of Statistics and statistical models:&lt;/strong&gt;(hypothesis testing, regression analysis, calculus, probability and linear algebra to help you in drawing insights and making informed decisions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Data collection/scraping&lt;/strong&gt;(learn to collect data from relevant sources from various sources including databases, web scraping using(scrapy, Beautiful soup) and APIs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Data cleaning:&lt;/strong&gt; Learn to clean data in order to get rid of anomalies this can be done using python libraries(numpy, pandas).Learn how to handle missing values and inconsistencies. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Learn the fundamentals of SQL&lt;/strong&gt;(Aggregation Functions, Joins, Nested queries,&lt;br&gt;
CREATE TABLE,GROUP BY, ALTER, INSERT, DELETE, DROP TABLE, ORDER BY, UPDATE).Gain proficiency in database management and working with large datasets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Data visualization:&lt;/strong&gt; (Visualize data through chart and bar graphs in order to understand trends, variations and drive meaningful insights from the data. Gain familiarity with tools like Tableau, Power BI, and python packages(matplotlib, Seaborn).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Become proficient in Machine Learning:&lt;/strong&gt; Be well versed with different machine learning models and when they are used based on the problem and data characteristics(Linear Regression, Naive Bayes, Reinforcement Learning, Random Forest, Decision Trees, Neural Networks).This helps in training models and achieve high accuracy and precision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Learn Git and version control for Augmented Analysis.&lt;/strong&gt;Helps in collaborating with others in doing projects and tracks the changes you make and save them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-Learn soft skills including communication&lt;/strong&gt;. Learn how to story tell about data to both technical and non-technical audiences. Be able to summarize the findings in a clear and understandable manner and provide recommendations and insights based on the insights.&lt;/p&gt;

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