<?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 Diana Auma on Medium]]></title>
        <description><![CDATA[Stories by Diana Auma on Medium]]></description>
        <link>https://medium.com/@dianaauma2?source=rss-464f91d67e02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*S0JJbjhN5fihcgWz-RuiWw.jpeg</url>
            <title>Stories by Diana Auma on Medium</title>
            <link>https://medium.com/@dianaauma2?source=rss-464f91d67e02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:36:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dianaauma2/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[Data Wrangling and Cleaning: A Comprehensive Guide]]></title>
            <link>https://medium.com/@dianaauma2/data-wrangling-and-cleaning-a-comprehensive-guide-1f97496499cf?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f97496499cf</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Sun, 04 Jun 2023 14:43:29 GMT</pubDate>
            <atom:updated>2023-06-04T14:43:29.701Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mxmQrRCu6XViAC7h" /><figcaption>Photo by <a href="https://unsplash.com/@claybanks?utm_source=medium&amp;utm_medium=referral">Clay Banks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data wrangling and cleaning are critical steps in the data analysis process. Before you can gain meaningful insights from your data, it is crucial to ensure its quality, consistency, and reliability. In this article, we will explore the concepts of data wrangling and cleaning, and demonstrate how to perform these tasks using the R programming language.</p><p><strong>What is Data Wrangling?</strong></p><p>Data wrangling, also known as data munging, is the process of transforming and reshaping raw data into a structured format that is suitable for analysis. This includes tasks such as data cleaning, data transformation, data merging, and handling missing values. Data wrangling aims to make data more manageable, consistent, and ready for analysis.</p><p><strong>Importing Data into R</strong></p><p>To begin the data wrangling process, we first need to import our data into R. R provides several functions for importing data from various file formats, such as CSV, Excel, or databases. Let’s consider an example where we have a dataset stored in a CSV file:</p><pre># Load the required package<br>library(readr)<br><br># Read the CSV file<br>data &lt;- read_csv(&quot;path_to_file.csv&quot;)</pre><p><strong>Data Cleaning</strong></p><p>Data cleaning involves identifying and resolving issues with the quality and consistency of the data. Common data cleaning tasks include removing duplicates, handling missing values, correcting data types, and dealing with outliers. Let’s go through some examples of how we can clean our data using R.</p><p><strong>Removing Duplicates</strong></p><pre># Remove duplicate rows based on all columns<br>data_cleaned &lt;- distinct(data)</pre><p><strong>Handling Missing Values</strong></p><pre># Check for missing values<br>missing_values &lt;- sum(is.na(data))<br><br># Remove rows with missing values<br>data_cleaned &lt;- na.omit(data)<br><br># Fill missing values with the mean<br>data_cleaned$column_name &lt;- ifelse(is.na(data_cleaned$column_name), mean(data_cleaned$column_name, na.rm = TRUE), data_cleaned$column_name)</pre><p><strong>Correcting Data Types</strong></p><pre># Convert a column to numeric<br>data$column_name &lt;- as.numeric(data$column_name)<br><br># Convert a column to date<br>data$column_name &lt;- as.Date(data$column_name, format = &quot;yyyy-mm-dd&quot;)</pre><p><strong>Handling Outliers</strong></p><pre># Identify outliers using z-scores<br>z_scores &lt;- scale(data$column_name)<br>outliers &lt;- data[abs(z_scores) &gt; 3, ]<br><br># Remove outliers<br>data_cleaned &lt;- data[abs(z_scores) &lt;= 3, ]</pre><p><strong>Data Transformation</strong></p><p>Data transformation involves modifying the structure or content of the data to make it more suitable for analysis. This can include creating new variables, aggregating data, or reshaping data. Let’s look at some common data transformation tasks using R.</p><p><strong>Creating New Variables</strong></p><pre># Create a new variable based on existing variables<br>data$new_variable &lt;- data$variable1 + data$variable2</pre><p><strong>Aggregating Data</strong></p><pre># Calculate the mean by a grouping variable<br>library(dplyr)<br>data_aggregated &lt;- data %&gt;%<br>  group_by(grouping_variable) %&gt;%<br>  summarise(mean_variable = mean(variable))</pre><p><strong>Reshaping Data</strong></p><pre># Reshape data from wide to long format<br>library(tidyr)<br>data_long &lt;- pivot_longer(data, cols = starts_with(&quot;variable&quot;), names_to = &quot;variable_name&quot;, values_to = &quot;value&quot;)</pre><p><strong>Conclusion</strong></p><p>Data wrangling and cleaning are vital steps in the data analysis process. In this article, we explored the concepts of data wrangling and cleaning, and demonstrated how to perform these tasks using R. By applying data wrangling techniques, we can ensure that our data is accurate, consistent, and ready for analysis. Remember to adapt these techniques based on the specific requirements and characteristics of your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f97496499cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Tools for Data Analysts]]></title>
            <link>https://medium.com/@dianaauma2/essential-tools-for-data-analysts-5cf6d78879ed?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cf6d78879ed</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Sun, 04 Jun 2023 14:18:05 GMT</pubDate>
            <atom:updated>2023-06-04T14:18:05.287Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CHg0FUH7dMbVcCBu" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a data analyst, having the right set of tools can significantly enhance your productivity and enable you to uncover valuable insights from data. With the increasing availability of data analysis tools in the market, it can be overwhelming to choose the right ones for your needs. In this article, we will explore some essential tools that every data analyst should consider incorporating into their toolkit.</p><p><strong>Programming Languages</strong><br>Python and R are two popular programming languages widely used in data analysis. Python offers a versatile ecosystem of libraries like Pandas and NumPy, while R has its strength in statistical analysis and visualization with packages like ggplot2. Both languages provide extensive support for data manipulation, exploration, and modeling.</p><p><strong>Data Visualization Tools</strong><br>Data visualization is crucial for effectively communicating insights. Tools like Tableau, Power BI, and Plotly offer intuitive interfaces and a wide range of charting options to create visually appealing and interactive visualizations. These tools allow you to present complex data in a more understandable and compelling manner.</p><p><strong>SQL</strong><br>Structured Query Language (SQL) is a must-have tool for data analysts working with relational databases. SQL enables you to extract, manipulate, and analyze data stored in databases efficiently. Understanding SQL queries and being comfortable working with databases are essential skills for any data analyst.</p><p><strong>Excel</strong><br>While Excel may seem like a basic tool, it remains a powerful and widely used tool in data analysis. Excel offers functionalities for data cleaning, basic statistical analysis, and creating simple visualizations. Its familiarity and ease of use make it a convenient tool for quick analysis and ad-hoc tasks.</p><p><strong>Data Wrangling and Cleaning Tools</strong><br>Data cleaning and preparation are often time-consuming tasks. Tools like OpenRefine and Trifacta Wrangler automate data cleaning processes, allowing you to handle large datasets efficiently. These tools provide features for data standardization, transformation, and outlier detection, reducing the manual effort required for data cleaning.</p><p><strong>Statistical Analysis Tools</strong><br>For in-depth statistical analysis, tools like SPSS, SAS, and Stata are commonly used. These tools offer advanced statistical functionalities and modeling techniques. They are particularly useful for complex statistical analysis and hypothesis testing.</p><p><strong>Version Control</strong><br>Version control systems like Git provide a structured way to manage code and collaborate with other data analysts. Using Git, you can track changes, manage different versions of your analysis scripts, and collaborate seamlessly with your team.</p><p><strong>Jupyter Notebooks</strong><br>Jupyter Notebooks are interactive coding environments that allow you to combine code, visualizations, and explanatory text in a single document. They are widely used in data analysis workflows as they promote reproducibility and facilitate sharing and documenting data analysis processes.</p><p>Remember, the choice of tools depends on your specific needs and the nature of your data analysis tasks. It’s essential to continuously explore and evaluate new tools to stay updated with the latest advancements in the field. By building a strong arsenal of tools, you can streamline your data analysis workflow and unlock deeper insights from your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cf6d78879ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating React Portfolio Website]]></title>
            <link>https://medium.com/@dianaauma2/creating-react-portfolio-website-8a8a96989693?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a8a96989693</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Tue, 02 Aug 2022 14:39:55 GMT</pubDate>
            <atom:updated>2022-08-02T14:39:55.983Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Portfolio pic" src="https://cdn-images-1.medium.com/max/1024/0*myGhYC-DSb4uTAjJ" /></figure><p>Project Idea</p><p>Creating a portfolio website is the first step in seeking employment, therefore you have to know how to create a portfolio that stands out. A portfolio should be able to briefly describe you to the employer. That means you have to give priority to the most important details about you so that they don’t go unnoticed. It is advisable to have a simple website that is straight to the point and able to impress the employer at first sight.</p><p>Implementation</p><p>Having this idea in mind, I came up with a simple portfolio website that includes react. React is one of the best and most famous libraries in JavaScript that helps a user come up with very interactive web pages. See <a href="https://phasetwoportfolio.herokuapp.com/">https://phasetwoportfolio.herokuapp.com/</a>.</p><p>Walk Through My Application</p><p>The first and most vital part of every page is user navigation. When a user logs into your website all they want to do is move around easily from one page to another. This means you will want to have a working navigation bar or sidebar. Being a portfolio website, you want to have the most vital information on your navigation or sidebar so that you make sure the user, in this case, the employer gets the most important information that they intend to share without having them struggle. You will put all the sections linked to the navigation bar some of your well-featured projects and your well-organized profiles like GitHub and linked in.</p><p>To do this in react you assign a name to your components then use the Link component to link all the pages to the navigation bar as shown below, you can also add an on-click function.</p><pre>name=&#39;contact’</pre><pre>&lt;Link onClick={handleClick} to=&#39;home&#39; smooth={true} duration={500} &gt;Home&lt;/Link&gt;</pre><p>On the home page describe yourself more, the employer will be attracted by how you display your image in a summarized way. You can even add your picture and great achievements on the home page, like add a button to navigate to your best projects before the user sees anything else they will notice what you can do.</p><p>Next, is the about page, present your correct image on the about page. Talk about what you prefer and what the client should expect when they hire you. Say the kind of conditions you prefer working in, make the client get the good side of you, and get to know how you manage or handle your imperfections as well.</p><p>Add your skills to your portfolio, and if possible state your level of experience, it is good if the employer is able to rate your ability to handle tasks using your level of experience. You can create lists and flex them into a container using jsx. Display your skills in an organized way making them easy to read and understand.</p><p>Another vital part of your website is the contact form. For you to be able to get messages from your clients leave a contact form that will enable them to reach out to you. So, make sure that your form is working fine and can enable you to receive messages. To do this you can use form js in a react app or just create an account on the getform.io and receive a URL that will enable you to receive messages from your clients. Add this URL to the form element using an action like this,</p><pre>&lt;form method=&#39;POST&#39; action=&quot;https://getform.io/f/b11d39d2-33b2-10e43ecd3e38….&quot;&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a8a96989693" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Algorithms]]></title>
            <link>https://medium.com/@dianaauma2/machine-learning-algorithms-2c2dd8de7156?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c2dd8de7156</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 20:00:19 GMT</pubDate>
            <atom:updated>2022-04-18T20:00:19.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="computer and flower" src="https://cdn-images-1.medium.com/max/1024/0*byGYkoH6ElzWjgw7" /><figcaption>Photo by <a href="https://unsplash.com/@nicklbaert?utm_source=medium&amp;utm_medium=referral">Niclas Illg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Machine learning is an application of artificial intelligent that provides a system the ability to learn automatically and improve from experience without being explicitly programed. Machine learning algorithm is a procedure to solve machine learning problems. Machine learning algorithms are not types of machine learning, they are just methods used in solving problems.</p><p>First of all, you should understand what machine leaning really is before diving into machine learning algorithms.</p><h4>Where Machine Learning is Applied</h4><p>Machine learning is being used more than you can imagine in almost all the platforms today. To mention a few of them is, google, YouTube, Facebook, among others.</p><p>When finding information about anything the first place to rush is usually google. What google does is that, it collects all the relevant information about your search and gives it to you. If there was no google today, it would be so hard to do any research assignments to say. You also notice that when you start typing in google, it suggests some titles according to your previous searches. Google is able to read your search history, and recommend some of your frequent searches according to what you just started typing, saving your time. It does that using machine learning algorithms that we are just about to look at.</p><p>Facial recognition for Facebook and Instagram uses machine learning to recognize familiar faces. When you want to tag someone in a photo you just posted to recognize them, Facebook is likely to do facial recognition for you and tag that person for saving your time. Amazon uses the recommendation system powered by machine learning to recommend goods to customers according to what they are buying. If you buy an item it is likely to recommend another item that is used in the company of the product you just bought. For example, let’s say you buy a baby product, it is likely to recommend other baby products in store. Price prediction according to demand is also used in amazon, you notice as demand goes up the price also goes up.</p><p>Talk of gaming, a lot of people play computer games on daily basis without noticing the power of machine learning. Gesture control gaming is a great feature in games. In FIFA you game opponent tends to adopt based on the kind of strategy you follow, your opponent gets stronger as you progress in the game. The game also gets difficult the more you familiarize with it, making it very interesting.</p><p>Customer segmentation is one very important thing for ecommerce platforms. They use machine learning to differentiate between customers, what they buy, how frequent they buy, and their preferences. This helps them to serve customers to their satisfaction and retain them.</p><p>You can never identify all machine learning uses, but lastly, the uber application uses machine learning to recommend the next places you are likely to go to basing on the previous places you visited. They use a lot of factors like distance, route, traffic, even time, to predict your next destination. When you use Uber to work, let’s say today morning, it is likely to suggest the same or nearest destination along the same route when you log into your app next time.</p><h4>Types of Machine Learning</h4><p>Machine learning is made up of three types, namely, supervised, unsupervised, and, reinforcement learning.</p><p><strong>Supervised learning</strong></p><p>As the name suggests you have to supervise your machine as it learns to perform on its own, it also requires labeled data. For example if you provide your machine with a dataset that contains a similar type of objects, you have to provide another dataset that explains what these objects mean. When you provide another dataset that contains similar items, the model will be able to identify them correctly. It is mostly used to filter spam emails from your account.</p><p><strong>Unsupervised learning</strong></p><p>Here the data used is unlabeled. When fed into the system, the model analyzes the data to figure out some patterns in it. It the manages to categories the images according to similarities in patterns. This kind of model is mostly used by ecommerce shops to figure out the product that is most suited for their customers.</p><p><strong>Reinforcement</strong></p><p>In reinforcement learning there is no training the model, it learns on its own by not repeating past mistakes and experiences. After failing to predict correctly, we give the model feedback, next time it will predict trying to avoid the mistakes it made earlier.</p><p>After getting to understand what machine learning is all about, how it is used, and, various types of machine learning, let us now look at some of the common algorithms used in machine learning. Algorithms are classified under the following methods; classification, regression, clustering.</p><p><strong>Classification</strong></p><p>Classification method is used when the output we are looking for is a yes or no type. For example if an ecommerce shop wants to predict if the customer will buy again or not, a classification algorithm is used. Algorithms that fall under classification include; Decision Trees, Naïve Bayes, Random Forest, Logistic regression, K-Nearest Neighbor(KNN), among others.</p><p><strong>Regression</strong></p><p>Regression method is used when the data being used is numerical in nature. If the online shop wants to predict the price of the commodity based on demand, regression is the best to use. Linear regression is an algorithm associated with regression method, multiple and polynomial linear regression are examples of linear regression. Other algorithms under regression are, neural networks, Decision Trees, and Random Forest.</p><p><strong>Clustering</strong></p><p>This is used mostly for recommendation systems, such as flip cart, amazon, etc. It is also used in such engines, to study you previous searches, figure out your preferences, and provide you the best search results. Some of the algorithms associated with this method are, k-means, Hierarchical, mean shift, and density based.</p><h4>Three Common Algorithms</h4><p><strong>Naïve Bayes</strong></p><p>This algorithm uses Bayes theorem and conditional probabilities, probability of an event occurring given another even has already occurred. This algorithm is usually used commonly for filtering spam emails in your email account. If you receive an email, the model goes through your spam emails and decides whether to classify it as spam email or not.</p><p><strong>Linear regression</strong></p><p>This algorithm is used to establish linear relationship between two variables, one being dependent and the other independent. For example, determining the price of a certain product based on weight, price will the dependent variable, and weight the independent variable. This model predicts according to the best line of fit.</p><p><strong>K-Means</strong></p><p>This is type of unsupervised algorithm that solves clustering problems. K means is mostly used in customer segmentation, image segmentation, image comparison, and document clustering to help get meaningful information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c2dd8de7156" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steps to Master Web 3.0]]></title>
            <link>https://medium.com/@dianaauma2/steps-to-master-web-3-0-7c2398aa2767?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c2398aa2767</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 13:33:55 GMT</pubDate>
            <atom:updated>2022-04-17T13:33:55.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Computer with flowers" src="https://cdn-images-1.medium.com/max/1024/0*T86ENGI2gEGb9VdX" /><figcaption>Photo by <a href="https://unsplash.com/@firmbee?utm_source=medium&amp;utm_medium=referral">Firmbee.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The future of the web is here, web 3.0 has the ability to change the internet for the best. We both agree that starting with any new technologies can be a bit overwhelming, because there are less resources to begin with. Well this article gets you started, it is meant to take you through various steps of mastering web 3.0. It should take you from scratch to complete mastery. By following this steps, you will be able to understand the skills you need to become a web 3.0 developer. We will cover all the essential buildings of blockchain all the way to most modern web 3.0 technologies. This article doesn’t teach you the skills, it tells you what to master when studying on your own.</p><h4>What Is Web 3.0?</h4><p>Before we look at the steps to master web 3.0, we need to be familiar with what web 3.0 is all about, and what role it is likely to play in advancing web technologies. To understand what web 3.0 is, we need to know what web 1.0 and web 2.0 is all about. Web 1.0 refers to the web that existed between the years 1991 and 2004. Which was the first generation of the internet made up of static pages. The web was just like one big website with hyperlinks to different sites. It was a read only web with no interactions, since, you could only consume data from the internet but you can’t add or share anything. You can’t comment or authenticate anything it was just a one way communication tool.</p><p>In 2004, web 2.0 was born and is still in use and improving every day. The boring static pages of web 1.0 were replaced with a lot more interactive applications of web 2.0. Social connectivity and user generated content was among the main changes in web 2.0. Today users not only consume information from the internet, but also, send a lot of information through various websites. A good example is that, with web 2.0 we can have social media dialogue. Today we watch a lot of YouTube videos, Tiktok is another good platform. We can post and like on Facebook and twitter as well. We can search on google, send google emails and have meetings on google through emails as well.</p><p>The only problem with web 2.0 is that, all these platforms are owned by centralized companies like Meta ,Microsoft, Apple, Google , and so on, which are collecting our data ,so that ,they can offer better services. This will make us spend more time on their websites, so that, they can make more money. However, this denies us privacy, because our data is controlled by the owners of these corporations. This is where web 3.0 comes in.</p><p>Web 3.0 is the third and latest phase of the internet, it is built on interlinked computer networks that talk to each other without middle men. In a decentralized web, no person or company owns any data or information about anyone or anything. Everything is completely visible and connected to the public, data is shared and not owned. In a centralized internet, it is easy to hack the server making web 3.0 more powerful. You cannot hack a decentralized internet that relies on a network built by community users. Their interconnected computers host the internet rather than depending on centralized high powered individuals.</p><h4>Step 1: Web 2.0 Foundation</h4><p>To begin in web 3.0 you will need to have a good background of web development. Blockchain is built on web technologies, this means, you can’t learn web 3.0 if you don’t have a good understanding of web 2.0. When building blockchain you will have to create web applications, which will communicate with the smart contracts. All web 2.0 skills will be needed, since, web 3.0 is just connecting decentralized applications to your normal web applications.</p><h4>Step 2: Understand Blockchain</h4><p>Once you are familiar with web 2.0 skills, you have to understand blockchain, what it is, how it works and how to use it. Blockchain is a network of computers connected in some way to collectively run what is called blockchain client. It is a chain of blocks that are linked together using cryptography, each block contains a cryptographic hash of the previous block, a timestamp and transaction data.</p><p>To master blockchain we need to understand the foundation of a blockchain and how it’s technologies works. Learn how to interact with blockchain and understand the tools on Ethereum blockchain. Learn how to connect a web application to the blockchain. Understand how to create smart contracts and decentralized applications. How to deploy and test Ethereum networks. There are various blockchains but Ethereum is recommended because it has a lot of support from its developer team.</p><h4>Step 3: Learn Smart Contracts</h4><p>A smart contract is a software stored on a blockchain based platform, which automatically executes an agreement. It is the means, to program a blockchain to perform specific instructions. In simple terms a smart contract is a program stored on a blockchain that runs when the specified conditions are met. They are used to automate an agreement execution so that all individuals are sure of the outcome without any middlemen. They are fair and efficient to both sides of the agreement.</p><p>Smart contracts enable you to exchange anything of value without the interference of any middle man. The self-execution feature of smart contracts makes it very vital. Smart contracts cannot be possible in web 2.0, because, the code can be easily manipulated. Once you deploy smart contracts, they become immutable, this is what makes smart contracts, self-verifying, self-executing and tamper-resistant.</p><p>This means that smart contracts code cannot be changed. Smart contracts could be used for; banking, insurance, copyright, etc. Smart contracts are robust, they can create anything, including; NFTs, crypto currency, and handling the backend side of the decentralized applications. You can also learn about the life cycle, and how to interact with smart contracts using web3.js.</p><h4>Step4: Learn Solidity Programming</h4><p>Solidity is a new programming language, made of the most common web development languages. The creators of solidity used JavaScript, java, rust and C++ among other programming languages. This makes learning solidity much possible if you already have web 2.0 skills including all the programming languages used. You are not going to learn a whole language from complete beginner level.</p><p>Why learn solidity if you already know programming? You notice that knowing how to write smart contracts is very important in blockchain applications. Solidity is the best programming language to use when writing smart contracts. Solidity doesn’t restrict you to the Ethereum blockchain only, but, it works well with other blockchains too. Though it is the best in writing Ethereum blockchain applications.</p><h4>Step 5: Compiling, Testing and Deploying Smart Contracts</h4><p>This is the most important part when working with smart contracts, it calls for a lot of attention, because, once you deploy a smart contract it becomes immutable. This means that no one can change the code not even the owner of the application. Therefore, it is important to test them before deploying. The common testing libraries for smart contracts include; mocha, chai, and ganache. After testing you deploy using the following libraries; hardhat, infura, or truffle. Once you deploy your smart contracts create a frontend user interface for the user</p><h4>Step 6: Understand Decentralized Applications</h4><p>These are just applications that run on a blockchain in simple terms. They are free from control and interference of a single authority. They keep users data out of control by the organizations that run these applications. A decentralized application can cover various cases, such as, social apps where no big company can manipulate user’s data, for example, ecommerce payments and banking policies. In a decentralized social media application, if one posts anything on the blockchain, no one can delete it, even the owner and creator of this application. That is the power behind web 3.0.</p><p>Decentralized applications can be mobile or just web apps. The web app is usually just like normal regular web applications made up of html, CSS, and JavaScript. Building decentralized web applications (dApps), calls for additional features, like, integration with the blockchain and the wallet among others. For this, we use a JavaScript library called web3.js which is easy to use. Connecting to smart contracts can also work, but, it is a bit more time consuming and calls for a lot of work to be done.</p><h4>Step 7: Learn a Crypto Wallet</h4><p>Blockchain wallets help people exchange money much quickly, transactions are incredibly secure. A wallet is used to interact with a blockchain. It is just like sending or receiving money through PayPal or any other payment scheme, but, using crypto currency instead. The best crypto wallet to begin exploring is metamask, and then move ahead to understand other wallets. Metamask allows users to access their Ethereum wallet through a browser extension or mobile application, which can be used to interact with decentralized applications.</p><h4>Step 8: Learn Web3.js and Ethers.js</h4><p>The choices that are popular in implementing the Ethereum API are web3.js and ethers.js. Web3.js is a collection of libraries that allow Ethereum node using http, web sockets and all other communication protocols. On the other hand ethers.js is a JavaScript library that connects the JavaScript frontend to smart contracts. It acts as an alternative to web3.js.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c2398aa2767" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The mathematics behind machine learning]]></title>
            <link>https://medium.com/@dianaauma2/the-mathematics-behind-machine-learning-70b297b857d?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/70b297b857d</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Sat, 16 Apr 2022 07:14:58 GMT</pubDate>
            <atom:updated>2022-04-16T07:14:58.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A calculator and mathematics page book." src="https://cdn-images-1.medium.com/max/1024/0*1frykCUQGZ6EmCIQ" /><figcaption>Photo by <a href="https://unsplash.com/@_purianoushka?utm_source=medium&amp;utm_medium=referral">Anoushka P</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Machine learning is creating an algorithm that can learn from data and make a prediction. The prediction could be anything. Let’s talk about picture recognition, prediction of the next price in a certain market or region, a combination of symptoms that can identify a certain disease, just anything. All this problems, will require building a machine learning model. That is where the mathematics comes in. This article will help you understand that, the key behind machine learning is mathematics.</p><p>Machine learning is built on mathematics prerequisites. Sometimes it may feel overwhelming to learn mathematics before giving machine learning a try. However, if you were to look at it with the interest of understanding how this models are build, this would make machine learning a lot more fun.</p><p>You can be a machine learning engineer, using a lot of functions, but, still don’t understand the mathematics behind these functions. That doesn’t seem fun, right? You need to understand why some things work the way they do. Why one model happens to be better than the other. That’s why, in machine learning you should spent more time on mathematics, and less time in programming.</p><p>The mathematics that makes up machine learning is; statistics, probability, linear algebra and calculus. Statistics is the core of everything. Calculus tells you how to learn and optimize your model. Linear algebra makes these algorithms run on massive datasets, and, probability tells you the likelihood of an event occurring.</p><h3>Linear Algebra</h3><p>To begin with, linear algebra is what helps computers interpret the data. When you see an image or a video, the computer sees a two or three dimensional matrix. Every bit of input that goes into a computer is stored as a matrix. This is where linear algebra come in. It contains manipulation of matrices, which computers are very good at. That is why you need to learn linear algebra, since, it helps in processing input that comes into the computer.</p><p>When you add a dataset in a computer it may contain images, sounds, or numbers. Whatever you are working with is a collection of raw data which needs to be processed, to create useful features from the data. In order to do that, you might have to transform, combine or break down the data in some way, to create new data that is a product of the original data. This requires linear algebra.</p><p>A good example is when you are building a multivariate regression, where, you use multiple variables. The branch of mathematics concerned with multivariate spaces and linear transformation between them is called linear algebra. It gives us a set of operations that we can perform on a group of numbers known as matrices.</p><h3>Statistics</h3><p>Statistics acts as a collection of techniques that extract useful information from the data. It is a tool for creating an understanding from a set of numbers. You will need to perform some sort of descriptive statistics on the data, maybe visualization, some data mining and exploration, in order to obtain some useful information for you to decide what next. That is, to determine the next step of machine learning process. So that you can predict from unseen data what the likely outcome will be. We might need to change the data a little bit, this is statistics too.</p><p>Statistical inference is the process of making a prediction about a large population of data based on a small sample. Sampling is a technique used in statistics to split data, train a small section, and, use the remaining data to evaluate the performance of the model. In summarizing and studying relationship between two variables in a dataset, an inference technique called linear regression is used. Linear regression technique is based on an equation, y = mx + b, where y is the dependent variable, x is the independent variable, m is the slope and b is the intercept.</p><h3>Calculus</h3><p>When coming up with the correct linear regression equation to determine the line of best fit, we use an error function to minimize the errors. The most likely error function to use in this case is the least squares method. This is where calculus comes in, calculus is the study of change. It will help you optimize error minimization, making the model you have created the best version of what it is. It uses an optimization technique called gradient descent, which helps you discover the minimum value iteratively.</p><p>It will use the error of the given data to compute the gradient of the unknown variable, use the gradient to update your two variables, then it moves to the next data point, and, repeats the process over and over again. Calculus helps you find the direction of change, in what direction to change unknown variables in our function. So that, it’s prediction is more optimal and has a small error.</p><h3>Probability</h3><p>Probability technique known as logistic regression is the best explanation to understand the use of probability in machine learning. It is used when the data is categorical, this means it is represented in different categories and classes. Here, instead of predicting a value, it predicts the probability of occurrence, using an s shaped curve from the sigmoid function.</p><h3>Conclusion</h3><p>In conclusion, calculus tells you how to optimize, while, linear regression makes executing massive algorithms possible on big datasets. Statistics gives us information about the data, helps us know which machine learning models to fit and helps in fitting the models. Probability on the other hand tells us what is likely to occur.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70b297b857d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Perform Multivariate Time series Forecasting on Covid-19]]></title>
            <link>https://medium.com/@dianaauma2/how-to-perform-multivariate-time-series-forecasting-on-covid-19-99c3eecafca8?source=rss-464f91d67e02------2</link>
            <guid isPermaLink="false">https://medium.com/p/99c3eecafca8</guid>
            <dc:creator><![CDATA[Diana Auma]]></dc:creator>
            <pubDate>Thu, 14 Apr 2022 09:18:10 GMT</pubDate>
            <atom:updated>2022-04-14T09:21:32.000Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Image of covid-19 virus" src="https://cdn-images-1.medium.com/max/1024/0*MxlFyvcEEHrUHeHi" /><figcaption>Photo by <a href="https://unsplash.com/@cdc?utm_source=medium&amp;utm_medium=referral">CDC</a> on Unsplash</figcaption></figure><p>Time series is a collection of observations recorded sequentially over time. For example; change in stock markets over time, change in weather over a certain period of time, spread of disease over time.</p><p>Time series broadcasting, the process of analyzing time series data using statistical methods, models data to make well-informed predictions, and draw useful insights that help to instruct rational decisions. This is where future events are projected being informed by past trends. The learning is premised on the belief that future development will be akin to past trends.</p><p>Time series analysis can help refine, refocus, and inform business models, and rockets profits altogether. . However, many companies are yet to exploit this niche, this is partly because of inability of most of corporate institutions to incorporate time series analysis in their operations. In this article, we are going to break down a particular case of multivariate time series of covid-19 data.</p><p>We have regular, and irregular time series. Regular time series is where data is collected at regular intervals, for instance, daily confirmed cases of covid-19 infections, and deaths. Irregular time series, on the other hand does not follow this regular pattern.</p><p>Univariate time series is where one variable is changing over time. In our case, we will deal with multivariate, where, two or more variables keep changing over time at same intervals. A multivariate time series can be decomposed into various time series.</p><p>When doing time series analysis, we use both parametric, and non-parametric methods to learn from the data. In parametric techniques we use autoregressive or moving average model, where, we estimate the parameters of the model that describes the stochastic process. For non-parametric techniques, we estimate the covariance of the process assuming that the process has a particular structure such as neural networks.</p><p>Time Series Forecasting</p><p>Time series forecasting can only be used when we have a regular time interval where time is very important. Unlike most machine learning regulation models, time series involves forecasting over a period of time, say daily, weekly, monthly, quarterly, yearly.</p><p>To perform time series forecasting, we have to define the problem, prepare the data for example, check if the time interval on dates is regular, and make sure the data has no breaks. Mostly in machine learning when creating models sequencing doesn’t matter but in time series sequencing is the key. We analyze the data to check for trends or sequences in the data. The next step is to model the data, and monitor how the model is behaving. We pattern out things from the previous data, for example it could be quarterly or monthly. After we understand the pattern we forecast on the future based on the pattern.</p><p>We believe that the future is somehow similar to the past. So, when we do a forecasting, the company should be manufacturing according to past events. However during the lockdown period in the year 2020, there was an abrupt change. Here your future is completely different from the past events that took place. It was not expected, so, what happened was that there was a lot of inconsistency in manufacturing. Talking of a certain car company that happened to manufacture excess cars had to sell them at a throw away prices, dumped some, and even sold some at a very higher discount. They did this to just get rid of excess stock and may be, get some cash spend on manufacturing them. In this case the model failed and became useless.</p><p>This is where time series multivariate forecasting comes in. Since, we have had covid-19 spreading over time, we can create a time series model that can forecast the future events of covid-19 from the data that we have collected before. We can predict the next wave of covid-19 by looking at the past waves that happened. We just hope this could help our medical field, the government or even civilians to take precaution and plan better to reduce faculties. We can also reduce cases in future if we happen to have the forth wave, which from the look of things, we have managed to control the spread of the disease.</p><p>I downloaded some global covid-19 dataset from kaggle. The dataset has cases all over the world, countries, latitudes, longitudes, provinces, cases reported, recovered cases and deaths. If we have more confirmed cases we might have more recovered cases or more deaths instead. The variables are linked up, making this a multivariate time series, where we have linked everything and trying to predict that they can affect one another.</p><p>In time series the kind of models that we are likely to build include; naïve method, Autoregressive Integrated Moving Average (ARIMA) and its variations, Exponential Smoothing and its variations And Multi-layer perception regression model similar to KNN.</p><p>Model Validation and Forecasting</p><p>We have to train and test our model, so, we do a random split, then work on classification and regression. However, when doing time series it has to be sequential and should not be broken down. We therefore use walking forward validation or multi-step ahead prediction techniques.</p><p>Guidelines of Time Series Analysis and Forecasting</p><p>· Data pre-processing techniques which include:</p><p>1. Change date format, should be date type and not string type</p><p>2. Check missing values</p><p>3. Ensure uniformity of the time series</p><p>4. Filter, group or join the data</p><p>5. Data visualization</p><p>6. Check outliers and abrupt changes</p><p>7. Perform a seasonal decompose</p><p>8. Check seasonality of time series</p><p>9. Auto-correlation analysis</p><p>10. Correlation study between variables</p><p>· Model building: we then build a model after completely understanding the insights in the data and test the model using parametric and non-parametric methods.</p><p>· Model validation: To test the performance of the model we will validate it using walk-forward validation and multi-step ahead predictions.</p><p>After following all the guidelines to prepare your data for time series forecasting models, we are going to build several models to forecast confirmed and death cases. The figure below shows the forecast of different models that we managed to fit. To forecast confirmed cases. They include the linear regression, polynomial regression, support vector machine regressor, Holt’s linear, Holt’s winter model, auto regressive model (AR), moving average model (MA), ARIMA model, SARIMA model, and facebook&#39;s prophet model. The code and output bellow gives us the summary of the forecast of all the models that were fitted. <a href="https://www.kaggle.com/code/neelkudu28/covid-19-visualizations-predictions-forecasting">https://www.kaggle.com/code/neelkudu28/covid-19-visualizations-predictions-forecasting</a> ,this notebook on kaggle explains the whole timeseries forecasting.</p><p>Conclusion</p><p>After fitting the model we will assess the performance of the model by comparing the predictions to actual true data. From our data we notice that death and confirmed cases are going down. This implies that we are not likely to experience another wave of covid-19 again. This could help so many fields, including the research and medical field to reduce resources spend in production of required items to use on research and treatment. It can also help businesses resume to normal operations as it was before the pandemic. For example, we won’t have a company manufacturing less or too much of what is required, because, they are likely to go back to what they had in the past. The government will not have to spend a lot of money putting in place covid-19 measures to take care of the future.</p><p>However, no one could be so certain about various model predictions. We will just have to ration the amount of money spend on controlling the disease, but, also set aside some resources in case of an emergency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99c3eecafca8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>