<?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 Cynthia Kuzira on Medium]]></title>
        <description><![CDATA[Stories by Cynthia Kuzira on Medium]]></description>
        <link>https://medium.com/@cynthiakuzira?source=rss-d577262277b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-RkiHYEEsq6R207OehZbhQ.jpeg</url>
            <title>Stories by Cynthia Kuzira on Medium</title>
            <link>https://medium.com/@cynthiakuzira?source=rss-d577262277b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:37:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cynthiakuzira/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[Ensuring survey data quality]]></title>
            <link>https://cynthiakuzira.medium.com/ensuring-survey-data-quality-98515e70a88d?source=rss-d577262277b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/98515e70a88d</guid>
            <category><![CDATA[survey-design]]></category>
            <category><![CDATA[survey-data-collection]]></category>
            <category><![CDATA[survey-programming]]></category>
            <category><![CDATA[surveys]]></category>
            <dc:creator><![CDATA[Cynthia Kuzira]]></dc:creator>
            <pubDate>Fri, 11 Aug 2023 10:27:47 GMT</pubDate>
            <atom:updated>2023-08-11T12:01:53.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zJfwNFvmgkPchXEUJ5WVA.png" /><figcaption>Picture from canva</figcaption></figure><p><strong>Introduction</strong></p><p>Survey data is what you get after collecting data from a sample of respondents. Survey data quality is when the data you have collected is relevant to your use case i.e., it can be used to answer the survey questions that you have.</p><p>For this blog, we shall spend more time on ensuring survey data quality of primary data.</p><p>We shall break down the ways to ensure data quality into two categories. I.e., Survey design and questionnaire design and Enumerator training.</p><p><strong>Survey design and programming</strong></p><p>During the survey design, ensure that the questions included in the survey are helping you answer your research objectives. This can be done by using a participatory approach where you involve different stakeholders in the questionnaire design. For example;</p><p>· You can consult experts in the field in which you are trying to carry out the research.</p><p>· A literature review of previous questionnaires to find out which questions they used.</p><p>· Carry out a content-focused pilot study to ensure that you have covered the questions that you need to.</p><p><strong><em>The overall goal at this stage is to ensure that the data you are collecting is relevant and meets your research’s objectives.</em></strong></p><p><strong>Questionnaire programming.</strong></p><p>Questionnaire programming is when you program your survey into online survey platforms like ODK, SurveyCTO, etc.</p><p><strong>1.</strong> <strong>Use skip patterns</strong></p><p>Make sure to put the relevant skip patterns in the right place so that the respondents only answer questions that are relevant to them. For example, a question like Did you attend university? If the next question is, What course did you study? Then those that answered no to the previous question don’t have to answer the following question.</p><p><strong>2.</strong> <strong>Use of the constraint function.</strong></p><p>Make use of constraints, where you restrict the responses to the question to a specific requirement. For example, if a respondent is asked the number of people in their household, say they say 10, then the corresponding questions are how many are male and how many are female, you can include a constraint function to ensure that the number of males and females does not exceed the total household number. Another example could be when respondents are entering a phone number, ensuring that it is a ten-digit number and not incomplete, etc.</p><p>The constraint function helps to ensure data quality in such a way that you mitigate against completely wrong responses, or those that could be wrong, but the system can prompt the interviewer or respondent to crosscheck their answer.</p><p><strong>Enumerator training.</strong></p><p><strong><em>The purpose of enumerator training is to ensure that they fully understand the research objectives, have a good understanding of the research instruments, and can administer the questionnaire to respondents knowing that they are very important in the process or financial decision, so their data is essential.</em></strong></p><p>· During the training, dedicate enough time to the research objectives, goals, and relevance. This will help the enumerators to own it and later have the passion to provide the correct data.</p><p>· Also, have them trained on the questions in the questionnaire to ensure that all the enumerators have the same understanding of the questions. For example, a simple question such as household number could be understood differently; one person could think it is the household number, and the other, could think it is the number of people in the household. And they are both right. So during the enumerator training, make sure that all the enumerators have the same understanding of the questions based on what the research is looking for or interested in.</p><p>· Train them on the research protocols that they are to follow for that particular project, those that are universal for example, maintaining the confidentiality of the respondents, respecting the respondents, etc. If your research does not require you to interview minors, make sure the enumerators know that. Add all the other research protocols to follow for your research.</p><p>· Also, train the enumerators on the use of electronic devices, for example, tablets, that they will use. Ensure that they know how to turn them on, adjust the screen lighting, and upload the data to avoid data losses during the upload of the data.</p><p><strong>Conclusion</strong></p><p>There are a number of things that can be done to ensure survey data quality. By carefully designing the survey, training enumerators, and conducting high-frequency checks, researchers can help to ensure that their survey data is of high quality and that the results are reliable and accurate.</p><p>Please share your views on how to ensure survey data quality in the comments.</p><p>Thank you for reading!🤗</p><p>I hope you found this blog helpful😊</p><p>These resources were helpful in preparing this,</p><ul><li><a href="https://dimewiki.worldbank.org/Data_Quality_Assurance_Plan">Data Quality Assurance Plan</a></li><li><a href="https://www.povertyactionlab.org/resource/data-quality-checks">Data quality checks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98515e70a88d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysing Twitter Users’ Response to the Ebola Outbreak in Uganda]]></title>
            <link>https://cynthiakuzira.medium.com/analysing-twitter-users-response-to-the-ebola-outbreak-in-uganda-5f83d42e7413?source=rss-d577262277b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f83d42e7413</guid>
            <category><![CDATA[tweet-mining]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <dc:creator><![CDATA[Cynthia Kuzira]]></dc:creator>
            <pubDate>Fri, 30 Dec 2022 06:49:28 GMT</pubDate>
            <atom:updated>2022-12-30T06:55:12.900Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*noRk1yKX7MyLgmB204fv7g.png" /></figure><p><strong>Introduction</strong></p><p>Following the Ebola outbreak in Uganda, I thought it would be interesting to gain insights into what Twitter users had to say about it.</p><p>The tweets used in this analysis were mined between 23rd October and 31st October 2022 so if you tweeted about Ebola during that period, there is a good chance your tweet is part of this.😊</p><p>Ebola as defined by Google</p><p><em>An infectious and frequently fatal disease marked by fever and severe internal bleeding, spread through contact with infected body fluids by a filovirus ( Ebola virus ), whose normal host species is unknown.</em></p><p>Our analysis will try to answer the following questions.</p><ul><li>The most <strong><em>“retweeted”</em></strong> and <strong><em>“liked”</em></strong> tweet about the Ebola outbreak</li><li><strong><em>Most common </em></strong>words used by Twitter users to describe the Ebola Outbreak</li><li>The proportion of <strong><em>positive, negative, </em></strong>and<strong> <em>neutral</em></strong> tweets</li><li>The device most used by the Twitter users</li></ul><p>Let‘s dive into my analysis, I can’t wait to show you what‘s been discovered.</p><h3>Tweets Mining</h3><p>This was the hardest part of the project since it was my first time doing it. But with the help of online resources, I was able to do it. I found this article by <a href="https://medium.com/@terrah27">Tara Boyle </a>very helpful.</p><p>I used <a href="https://docs.tweepy.org/en/stable/">Tweepy</a> to mine the tweets and used the EbolaOutbreakUG hashtag to search for the specific tweets on Ebola since it was the most trending one during that period.</p><ul><li><strong>Information Returned:</strong> I specified that the API returns the following data for each tweet — Tweet ID, Tweet(text), Time Created, Location, Number of Retweets and Likes, and Number of Followers and Following and source.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyP6-1dMjgJwWpABrXZXKw.png" /><figcaption>Screenshot of data frame created in Jupyter notebook</figcaption></figure><h3>Tweets Processing</h3><p>To simplify this task, I created a function called <strong><em>“clean_tweets”</em></strong> which I later applied to the <em>“text” column </em>to generate the desired results. This <strong><em>function</em></strong> was used to remove punctuation, links, and stop words from the tweets in a single run. Also, I used a concept known as <strong><em>“Tokenization”</em></strong> in NLP. It is a method of splitting a sentence into smaller units called “tokens” to remove unnecessary elements. Another noteworthy technique is <strong><em>“Lemmatization”</em></strong>. This is a process of returning words to their “base” form.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/86fafc78fe1d8de10b9ff94d58556f75/href">https://medium.com/media/86fafc78fe1d8de10b9ff94d58556f75/href</a></iframe><h3>Project Insights</h3><p>From the dashboard, you can visualize different outcomes and get more insights. Please note that these <strong><em>insights</em></strong> are not <strong><em>representative</em></strong> of the entire Twitter community because I only mined a subset of tweets for that period.</p><h3>Sentiment Analysis</h3><p>For sentiment analysis, I used <a href="https://textblob.readthedocs.io/en/dev/quickstart.html#sentiment-analysis"><strong>TextBlob</strong></a>. TextBlob analyses sentences by giving each sentence a <strong>Subjectivity</strong> and <strong>Polarity </strong>score.</p><p>Based on the <strong>Polarity</strong> scores, one can define the tweets’ sentiment category. A Polarity score of &lt; 0 is <strong>Negative</strong>, 0 is <strong>Neutral</strong>, while &gt; 0 is <strong>Positive</strong>. I used the Pandas <em>“apply”</em> method on the “Polarity” column in my data frame to return the respective <strong><em>Sentiment</em></strong> category. The distribution of the Sentiment categories is as shown in the graph below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*jg4GD7bgSfdy5dK139cpcg.png" /><figcaption>Bar graph showing the sentiment category and number of tweets</figcaption></figure><p>I was a bit surprised by the proportion of the sentiment categories. Most of the tweets were neutral at 46.17%(2770) followed closely by positive at 43.37% (2602) and the least number was negative at 10.47%(628). This could be attributed to the fact that Ebola is not yet spread throughout the country although there are some cases reported in the capital city.</p><p><strong><em>Most “Retweeted” and “Liked” Tweet: </em></strong>For the period of 23 to 31st October 2022, the most “<strong><em>retweeted</em></strong>” tweet was<em> “# Ebola is real! Signs and symptoms can start from 2–21 days of contact with an # Ebolainfected person or dead body. Report to the nearest health facility or call @MinofHealthUG toll free line on 0800–100–066 immediately if you experience signs/symptoms of #EbolaOutbreakUG”</em> with 46<strong><em>,640 retweets</em></strong>. The most “liked” tweet was from a user who tweeted <em>“I shit you not. I met a nurse today who just spent the last 2 weeks off super sick w/ Covid. Mid 50â€™s. She has her vacation in 1 week. Asked if she is going anywhere â€¦. Yes, Kenya for 3 weeks w/a group of friends. ðŸ¤¦ðŸ¼â€â™€ï¸ #livingontheedge #EbolaOutbreakUG”</em>The tweet had 650 <strong><em>likes</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*vlMa2mEONlDd3vTJvaguqw.png" /><figcaption>Bar graph showing the top 10 retweeted tweets.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*lJ9MBzWROaGkd9lLjbHDOg.png" /><figcaption>Bar graph showing the top 10 liked tweets</figcaption></figure><p><strong>Most common words</strong></p><p>In this section, I will show you the most <strong>common</strong> words used by Twitter users while tweeting about Ebola. Using the <strong><em>WordCloud</em> </strong>library, you can generate a Word Cloud based on the frequency of words. Also, I used the <strong><em>Pyplot</em></strong> module in the <strong><em>Matplotlib </em></strong>library<strong><em> </em></strong>to display the image. The Word Cloud shows the words with a <em>higher frequency </em>in larger text sizes while the “<em>not so” </em>common words are in smaller text sizes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*6EFanxqyQX2t1KgE5-6Xlw.png" /><figcaption>Word cloud showing the most tweeted words.</figcaption></figure><h3>Conclusion</h3><p>Thank you for reading my article. You can check out my repository on GitHub showing how I did the tweet mining and analysis.<a href="https://github.com/CynthiaKuzira/Ebola/blob/main/tweet2.ipynb">https://github.com/CynthiaKuzira/Ebola/blob/main/tweet2.ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f83d42e7413" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to plot and interpret pairwise plots in python.]]></title>
            <link>https://cynthiakuzira.medium.com/how-to-plot-and-interpret-pairwise-plots-in-python-e4d9010a7f47?source=rss-d577262277b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4d9010a7f47</guid>
            <category><![CDATA[scatter-plots]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[pairwise-plots]]></category>
            <dc:creator><![CDATA[Cynthia Kuzira]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 09:11:25 GMT</pubDate>
            <atom:updated>2022-12-29T12:26:26.802Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1q4Nn9ERTevvm40Ka8ywkg.jpeg" /></figure><p><strong>What are Pairwise plots?</strong></p><p>Pairwise plots allow us to see both the distribution of a single variable and the relationship between two variables. They are a great method to identify follow-up analysis trends and help us select the best set of features to explain a relationship between two variables.</p><p>The pairwise plots by default plot only the numerical values, although later on, you can use the hue feature to plot categorical values, as we shall see in the blog.</p><p><strong>How to plot Pairwise plots in Python</strong></p><p>You will need to import the seaborn library. I am also using a real-life data set for marketing</p><p>First load the dataset</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bf3b130457dd78bf38c497c415433d2/href">https://medium.com/media/5bf3b130457dd78bf38c497c415433d2/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*Xw2wqVRL9Rxs7hC2ldePlg.png" /><figcaption>Image of data frame for the marketing dataset</figcaption></figure><p>To create a pairwise plot, we shall use this code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c861f01939be75c0c06d5d2e82956a3c/href">https://medium.com/media/c861f01939be75c0c06d5d2e82956a3c/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*E_nPX-KBijODq-ScutAthw.png" /><figcaption>pairwise plot output</figcaption></figure><h3>Interpretation</h3><p>The first row at the bottom represents sales on the y-axis, then the middle one represents social media, and the one at the top represents radio on the y-axis. The first column on the left represents radio on the x-axis, the middle one social media, and the one on the far right sales.</p><p>So the scatter plots help us to determine the relationship between the different variables, and the histograms on the main diagonal axis show us the distribution of the individual variable.</p><p>For example, the first scatter plot on the bottom left shows that there is a positive linear relationship between sales and radio</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*xaIkbilbTx6UJZSZ2M7Hjw.png" /><figcaption>Scatter plot of radio and sales</figcaption></figure><p>The next scatter plot in the middle shows that there is a linear relationship between social media and sales</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/163/1*e3GY4lRONwY2H_R6_Wiq5A.png" /><figcaption>scatter plot of social media and sales</figcaption></figure><p>The histogram on the bottom right shows the distribution of sales.</p><p>Adding the categorical variable TV, we use hue.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d78dfe9c2b9c3061dcf06cc3bf248dc6/href">https://medium.com/media/d78dfe9c2b9c3061dcf06cc3bf248dc6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*WFVZs2Ap1uoagkym4Id-nQ.png" /><figcaption>Pairwise plot with hue added to it</figcaption></figure><p><strong>Advantages</strong></p><p>It can be used to determine which features are useful for our classification.</p><p><strong>Limitations</strong></p><p>They can only be used when the variables to be plotted are few.</p><p>I hope you find this blog helpful😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4d9010a7f47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data cleaning in python using pandas]]></title>
            <link>https://cynthiakuzira.medium.com/data-cleaning-in-python-using-pandas-d39a33fa77e7?source=rss-d577262277b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d39a33fa77e7</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-cleaning-with-python]]></category>
            <dc:creator><![CDATA[Cynthia Kuzira]]></dc:creator>
            <pubDate>Sun, 24 Apr 2022 22:54:35 GMT</pubDate>
            <atom:updated>2022-04-24T23:43:57.079Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*1sdsZvPJpViVl1v3al-KeQ.jpeg" /></figure><p>Real-world data sets do not come clean and therefore we have to do data processing or cleaning so that the data is suitable for analysis. Data cleaning involves cleaning data gaps, correcting data errors, joining data sets, aggregating data, and creating new fields.</p><p>In this blog, we are going to discuss some simple data cleaning methods using pandas.</p><p>This is the data set we are going to use in this blog. It is a very simple data set of 18 rows named marks_data, but In the real world, we deal with very large datasets.</p><p>We have to first import the packages we are going to use.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d44ed2ace8214bb74d3d69d10a623d1/href">https://medium.com/media/0d44ed2ace8214bb74d3d69d10a623d1/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*5LYf0ofBoMkkxJ8Dm8qYwA.jpeg" /></figure><p><strong>Dealing with missing values.</strong></p><p>The way we deal with missing values depends on how much we understand our data. There are strategies for dealing with missing values which depend on the context. For example, is the data missing because it was not entered or unavailable? Pandas represents missing values with <strong>NaN</strong></p><p><strong>Filling in missing values with a value</strong>.</p><p>We are going to create a new data frame called cleaned_data where we shall store our cleaned data.</p><p>We have missing values(NaN) at indexes 8 and 16. we are going to fill in the NaN values with “unknown”. We shall use the <strong><em>fillna()</em></strong> function</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f642d5f9991fdbb8e6cbecb1bbf4b729/href">https://medium.com/media/f642d5f9991fdbb8e6cbecb1bbf4b729/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*IwG1ueNs3Dw4D9JgM84BRA.jpeg" /></figure><p>From the data frame above, we see that the NaN values at indexes 8 and 16 have been replaced with “unknown”.</p><p><strong>Dropping the rows with missing data using the dropna() function</strong></p><p>The other approach to dealing with missing values is to drop the rows with missing values. We are going to drop the NaN values at indexes 8 and 16 using the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd4a9427588bf0cdfc65c4fc4c7c9c14/href">https://medium.com/media/fd4a9427588bf0cdfc65c4fc4c7c9c14/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*dn0UjZ_i1Pso-SY4Thl-xw.jpeg" /></figure><p>From the picture of the data frame above, we see that indexes 8 and 16 have been dropped.</p><p><strong>Dealing with duplicate values.</strong></p><p>If you are keen enough, you would have noticed that Claire appears twice at indexes 12 and 14, and its not easy to spot duplicate values, even with such a small dataset, and even harder with very large datasets.</p><p>The code used to find duplicate values is <strong>DataFrame .duplicated()</strong></p><p>The usual strategy with dealing with duplicate values is to drop the duplicate values, because the extra one is not adding anything new.</p><p>We shall use the <strong><em>drop_duplicates()</em></strong> function. it finds the duplicates and drops them.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/676b15c00b7eae4cf5a3692e17d4f5b3/href">https://medium.com/media/676b15c00b7eae4cf5a3692e17d4f5b3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*I724G4emeLmzuM7Ts84bwQ.jpeg" /></figure><p>From our output, we see that index 14 has been dropped.</p><p><strong>Fixing inconsistent labels</strong></p><p>In our dataset, you realize that it has inconsistent labels. For example, we have Math and Mathematics. So if we were to run code to find the different subjects in the dataset, we would find five instead of four because it would consider Math and Mathematics. After all, the computer doesn&#39;t differentiate that they are two different subjects. but as a human being, you can tell that Math and mathematics are the same.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2606b945920d6862348f5168b436831b/href">https://medium.com/media/2606b945920d6862348f5168b436831b/href</a></iframe><p><strong>Line 2</strong> code gets us the list of the unique subjects in the dataset. <strong>Line 3</strong> gets us the sorted list of the subjects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*uh53NYR2HZ1ENBEbO1VF8A.jpeg" /></figure><p>We are going to use the <strong>update() </strong>command. <strong>Line 7 </strong>code updates the value from Mathematics to Math in column Subject at index 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*S7p-B_KbNhnTETNlJMi7jg.jpeg" /></figure><p>So we see that the subject at index 5 was changed from Mathematics to Math.</p><p><strong>Fixing letters within numbers</strong></p><p>If you are keen, you might have noticed that there are letters within the numbers, for example at index 3 and 17. So if you tried to sum, you would get an error.</p><p>So we shall use the update command we used above to fix that problem.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee09e8b550d1e0d253981b809bd7b108/href">https://medium.com/media/ee09e8b550d1e0d253981b809bd7b108/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*disz8ZH98QXMxvXwWS1skQ.jpeg" /></figure><p>We see that the output at index 3 has been updated from 7o to 70.</p><p>I hope you found this blog helpful, you can check out my repository on G<a href="https://github.com/CynthiaKuzira/personal-work/blob/Main/Marks%20data.ipynb">itHub</a> showing how I did the data cleaning. <a href="https://github.com/CynthiaKuzira/personal-work/blob/Main/Marks%20data.ipynb">https://github.com/CynthiaKuzira/personal-work/blob/Main/Marks%20data.ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d39a33fa77e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Determine Which Analytical Methodology To Use]]></title>
            <link>https://cynthiakuzira.medium.com/how-to-determine-which-analytical-methodology-to-use-110adf8f8e78?source=rss-d577262277b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/110adf8f8e78</guid>
            <category><![CDATA[predictive-analyses]]></category>
            <category><![CDATA[business-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Cynthia Kuzira]]></dc:creator>
            <pubDate>Wed, 27 Oct 2021 23:17:05 GMT</pubDate>
            <atom:updated>2021-10-27T23:24:57.684Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZijRPM8t9RfWTNBm0uSmfg.png" /></figure><p>We shall use the analytical methodology map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*qw-lf2tLYNgm3uB4u_HrOQ.jpeg" /></figure><p><em>Photo from udacity</em></p><p>The <strong>methodology map</strong> is a guide to determine the appropriate analytical techniques to solve a particular business question or problem.</p><p>It outlines two main scenarios for a business problem.</p><ol><li><strong>Data Analysis</strong><br>This refers to the more standard approaches of blending data and reporting on trends and statistics and helps answer business questions that involve understanding more about the data set. For example, On average, how many people order bread in my shop in any given week?</li><li><strong>Predictive Analysis</strong><br>Predictive analysis will help businesses predict future behavior based on existing data such as, Given the average bread order, how much bread can I expect to sell next week if I were to add a new brand?</li></ol><p>Now we shall first have to understand the business problem and the data to find out if we need to predict an outcome or carry out data analysis.<br>For many business problems, basic <strong>data</strong> <strong>analysis</strong> will be enough.</p><p>Let me start with the different forms of <strong>data analysis</strong>.</p><p><strong>Descriptive Analysis.</strong><br>This is the type of analysis that helps describe, show or summarise data points in a constructive way such that patterns might emerge that fulfill every condition of the data.</p><p>It provides simple summaries of a data sample. Some of the commonly used descriptive statistics are mean, mode, median, and standard deviation.</p><p>An example of a descriptive analysis problem is to calculate the average age of students in a class.</p><p><strong>Geospatial Analysis</strong><br>Geospatial Analysis is an approach to applying statistical analysis and other analytical techniques to data that has a geographical or spatial aspect.</p><p>This type of analysis uses location-based data to help drive conclusions. For example, Identifying customers by a geographic region or creating a trade area based upon customer locations.</p><p><strong>Segmentation Analysis.</strong><br>Segmentation is the process of grouping data together based on some type of shared characteristic.</p><p>The groups can be as simple as customers who have purchased different items to more complex segmentation techniques where you identify stores that are similarly based upon the demographics of their customers.</p><p><strong>Aggregation Analysis.</strong><br>This methodology simply means calculating a value across a group or dimension.</p><p>For example, you may want to aggregate sales data for a salesperson closed each month.</p><p><strong>Business Problems that require predicting an outcome</strong></p><p>For business problems that require predicting an outcome, we have to first consider if we are data-rich or data-poor.</p><p><strong>Data Poor Business Problems</strong></p><p>For data-poor business problems, we use <strong>A/B tests.</strong></p><p>A/B testing is a research analytical methodology that tests different versions of something at the same time and sees which version gets the best response from the players.</p><p>If there is insufficient usable data to solve the problem, then we need to set up an experiment to help us get the data we need.</p><p><strong>Data-Rich business Problems</strong></p><p>Supposing we have enough data to proceed with the analysis, our next decision is to look at the outcome we’re trying to predict and determine if it’s a numeric outcome or a non-numeric one.</p><p>The <strong>Target</strong> variable represents the outcome we are trying to predict. To select the right predictive model, we first determine whether the target variable is numeric or non-numeric.</p><p>The type of numeric or non-numeric target variable will then help us select which model is appropriate. Let&#39;s start with numeric variables.</p><p><strong>Numeric outcomes</strong> are those where an outcome is simply a number. It can be continuous or time-based</p><p>For <strong>continuous numeric outcomes,</strong> we use:</p><ul><li>Linear regression model</li><li>Decision Tree</li><li>Forest model</li><li>Boosted model</li></ul><p>For <strong>time-based numeric outcomes</strong>, we shall use</p><p>We use the <strong>ARIMA</strong> and <strong>ETS</strong> models. The ARIMA and ETS models are used for <strong>time</strong> <strong>series analysis.</strong></p><p><strong>Time series forecasting</strong> is a method for predicting future trends of data in which we analyze past data into estimates of future data.</p><p>This method is commonly used in business, as companies need to account for the uncertainty of the future, and being able to forecast data over time offers them a way to prepare for this.</p><p><strong>ARIMA</strong><br> We use this model when;</p><ol><li>The data is stationary</li><li>Does not have exponential smoothing counterparts.</li><li>There is autocorrelation in the data. ie the past data explains the present data well.</li></ol><p>For example. A salesman of tires wants to predict the number of tires he will sell next month, given that he has the data for the sales he had the previous month.</p><p><strong>ETS</strong><br>We use the <strong>ETS model</strong> when;</p><ol><li>The data is not stationary</li><li>There is exponential smoothing</li><li>There is a trend and or seasonality in<br> the data, as this model explicitly models these components.</li></ol><p>Examples of time series forecasting models in the real world.</p><ul><li>Predicting future company sales</li><li>Predicting stock market trends</li></ul><p><strong>Classification models</strong><br>Models predicting <strong>non-numeric outcomes</strong> are called <strong>classification models.</strong></p><p><strong>Non-numeric outcomes</strong> are those where we are trying to predict a class type or category outcome.<br>For example, whether a customer will buy a product or not. It can also be whether a customer will pay on time or not.</p><p>What we are trying to predict may be binary or nonbinary</p><p>For <strong>binary outcomes</strong>, we shall use</p><ul><li>Logistic regression</li><li>Decision tree</li></ul><p>For <strong>non-binary outcomes</strong>, we shall use</p><ul><li>Forest Model</li><li>Boosted Model</li></ul><p><strong>References </strong><em>https://www.udacity.com/course/problem-solving-with-advanced-analytics--ud976</em></p><p>I hope u find this helpful☺</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=110adf8f8e78" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>