<?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 Rachel Adams on Medium]]></title>
        <description><![CDATA[Stories by Rachel Adams on Medium]]></description>
        <link>https://medium.com/@rja45?source=rss-afde24fec33a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Rachel Adams on Medium</title>
            <link>https://medium.com/@rja45?source=rss-afde24fec33a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:06:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rja45/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[As a data scientist I want to write an interesting and informative article about user stories so…]]></title>
            <link>https://rja45.medium.com/as-a-data-scientist-i-want-to-write-an-interesting-and-informative-article-about-user-stories-so-e402f0cc847c?source=rss-afde24fec33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e402f0cc847c</guid>
            <category><![CDATA[writing-user-stories]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[top-tips]]></category>
            <dc:creator><![CDATA[Rachel Adams]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 17:48:30 GMT</pubDate>
            <atom:updated>2022-01-09T17:49:24.218Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>As a</strong> data scientist I want to write an interesting and informative article about user stories so that I can provide top tips for writing effective user stories.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*qOMbxG4uMXGiPl_2PEp-nw.png" /><figcaption>Book and coffee</figcaption></figure><p>I am working as part of a data team that is moving towards agile working. Here are my thoughts on writing effective user stories and why they’re needed.</p><p>Agile working is becoming more popular in data teams due to its success in other business areas such as software development. This success is commonly attributed to the team focus and suitability to fast paced environments. There are four core values that Agile work is based on¹:</p><ul><li>individuals and interactions over processes and tools</li><li>working software over comprehensive documentation</li><li>customer collaboration over contract negotiation</li><li>responding to change over following a plan</li></ul><p>Scrum is a common implementation of the Agile philosophy and user stories are common in data teams using Scrum² for describing business problems as their properties are more suited than other formats e.g. MoSoCoW³</p><p>Now that we know why user stories are used, what is the format of a user story?</p><p><strong>As a </strong>user, <strong>I want to</strong> … <strong>so that</strong> …</p><p>Some examples of user stories for different users:</p><ol><li><strong><em>As a</em></strong><em> medium writer, </em><strong><em>I want to</em></strong><em> be set-up to earn money from articles </em><strong><em>so that</em></strong><em> I generate an income from my writing.</em></li><li><strong><em>As a</em></strong><em> recent graduate, </em><strong><em>I want to</em></strong><em> demonstrate my knowledge of data in business on medium </em><strong><em>so that </em></strong><em>potential employers can see why I’m a good candidate.</em></li><li><strong><em>As an </em></strong><em>associate data scientist,</em><strong><em> I want to</em></strong><em> present how I plotted longitude and latitude values of English local authority areas</em><strong><em> so that</em></strong><em> others know how to deal with the same problem.</em></li></ol><p>Good user stories have the following properties from the INVEST strategy³:</p><ul><li>I - independent</li><li>N - negotiable</li><li>V - valuable</li><li>E - estimable</li><li>S - small (most implementations say 3–4 days of work as maximum)</li><li>T - testable</li></ul><p>Let’s take the first story and see how well it fits INVEST.</p><p><strong><em>As a</em></strong><em> medium writer, </em><strong><em>I want to</em></strong><em> be set-up to earn money from articles </em><strong><em>so that</em></strong><em> I generate an income from my writing.</em></p><ul><li>Independent — yes, earning money from medium is independent of earning money from other sources.</li><li>Negotiable — yes, medium is not the only place a writer can publish blogs and earn money. Also income has no amount next to it which could be discussed further.</li><li>Valuable — yes, how can extra income be a bad thing? Although without quantities specified, expectations may be unrealistic.</li><li>Estimable — setting up payment is quick process. A separate question is actually making money from stories written: there are lots of articles on medium about how others have generated an income from writing blogs⁵ as well as tips from medium themselves⁶. This is less easy to estimate which is why the story does not focus on this.</li><li>Small — it depends on the writer, there are criteria⁷ to be eligible for payment including having a published story and 100 followers. If the medium writer has both these things then yes, it’s small, if not, it’s a bigger task that needs breaking down. I will discuss breaking down user stories in a future article.</li><li>Testable — yes, you’ve received confirmation after setting up your account.</li></ul><p>Now let’s take a look at how well the second story fits INVEST criteria:</p><p><strong><em>As a</em></strong><em> recent graduate, </em><strong><em>I want to</em></strong><em> demonstrate my knowledge of data in business on medium </em><strong><em>so that </em></strong><em>potential employers can see why I’m a good candidate.</em></p><ul><li>Independent — demonstrating data in business knowledge does not depend on making money from articles</li><li>Negotiable — yes, medium is not the only way of demonstrating knowledge: github⁸ or a personalised website are two other ways.</li><li>Valuable — yes, exposure of data skills is difficult for recent graduates to express purely from their degree.</li><li>Estimable — yes, someone who’s just finished a degree will have developed time management skills and a deep understanding of how they work so will know how long it might take them to write a blog post.</li><li>Small — it depends on how much knowledge and how much detail the user wishes to disseminate. If it’s a blog post before applying for jobs then its small. If it’s several posts including a couple of projects then it needs breaking down further.</li><li>Testable — yes, the user has links to send to potential employers of articles they’ve written.</li></ul><p>How well do you think the third user story fulfils the INVEST criteria? Please comment below!</p><h4>Top Tips for writing effective user stories:</h4><ul><li>Use all of the phrases <strong><em>As a</em></strong><em> user, </em><strong><em>I want to</em></strong><em> … </em><strong><em>so that</em></strong><em> …</em> when writing a user story, combined these small phrases are very powerful. A common mistake is to exclude <strong>so that …</strong>, if there’s no value in doing something — don’t!</li><li>Estimating accurately comes with practice, just because your estimates for your first stories are wrong doesn’t mean the story isn’t estimable, you just haven’t worked out how to estimate yet.</li><li>Always check the INVEST criteria are satisfied before starting work on the story.</li><li>If your story isn’t small, break it down into further stories.</li></ul><p>I hope you now have a good idea of what a user story is and how to write one effectively. Please comment below if you have any questions.</p><h4>References</h4><ol><li><a href="https://searchcio.techtarget.com/definition/Agile-Manifesto">https://searchcio.techtarget.com/definition/Agile-Manifesto</a> By Mark K. Pratt, viewed 9th Jan 2022</li><li><a href="https://www.scrum.org/resources/what-is-scrum">https://www.scrum.org/resources/what-is-scrum</a> viewed 9th Jan 2022</li><li><a href="https://miro.com/templates/moscow-matrix/">https://miro.com/templates/moscow-matrix/</a> viewed 9th Jan 2022</li><li><a href="https://agileforall.com/new-to-agile-invest-in-good-user-stories/">https://agileforall.com/new-to-agile-invest-in-good-user-stories/</a> By Bob Hartman, viewed 9th Jan 2022</li><li><a href="https://towardsdatascience.com/how-i-used-data-science-to-create-five-consistent-streams-of-income-74f48bb6cb98">https://towardsdatascience.com/how-i-used-data-science-to-create-five-consistent-streams-of-income-74f48bb6cb98</a> By Terence Shin, viewed 9th Jan 2022</li><li><a href="https://help.medium.com/hc/en-us/articles/360036691193">https://help.medium.com/hc/en-us/articles/360036691193</a> viewed 9th Jan 2022</li><li><a href="https://medium.com/earn">https://medium.com/earn</a> viewed 9th Jan 2022</li><li><a href="https://github.com/">https://github.com/</a> viewed 9th Jan 2022</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e402f0cc847c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I learnt from my first Kaggle competition]]></title>
            <link>https://rja45.medium.com/what-i-learnt-from-my-first-kaggle-competition-2c11086c86c3?source=rss-afde24fec33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c11086c86c3</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[videogames]]></category>
            <category><![CDATA[competition]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Rachel Adams]]></dc:creator>
            <pubDate>Fri, 02 Jul 2021 13:53:50 GMT</pubDate>
            <atom:updated>2021-07-02T13:53:50.884Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*HA7FQl22WX5jfpmbCrSGug.jpeg" /></figure><p>As part of the Datern summer internship programme 2021, I took part in my first Kaggle competition. This was a closed competition for our cohort aiming to predict global video game sales.</p><p>There are several things I’ve learnt about Kaggle and how I prefer to use it:</p><ul><li>Using Jupyter notebooks in Kaggle makes it really easy to manage the code and it makes importing the data and standard modules easier as there is default code for this in blank workbooks!</li><li>The inbuilt version control is really useful and allowed me to structure my thought process by giving titles when I save after every code block or two, although I did find I prefer the quick save option rather than the default save and run all code. Partly because I had just run everything and this used extra computer resource, but also I received errors when saving if there were errors in the code I was still looking in to.</li><li>There is no reason not to submit your first output as the allowed 20 submissions a day gives a great opportunity to test the model and compare the metrics to one you have calculated.</li><li>The training and test data is already given split, with the test data not having the variable being predicted. For a supervised learning problem, this is different to having one data set which you split into training and test so the test data has actuals. This means the predictions can be compared to calculate quantities such as mean square error (MSE) and the residuals. As far as I can see at the moment, the best way to check your model as you go along is to split the given training data set into a second train and test data set, check the assumptions and errors are within an allowable limit and then retrain the model with the original training data set and see what numbers Kaggle gives e.g. MSE depending on the competition.</li><li>The difference between public and private leaderboard is the data the model is tested on. The public leaderboard is calculated on a fixed combination of test and training data, but the private leaderboard the final results are calculated on is a different combination of the data. This is to ensure robustness of models and to encourage competitors to avoid overfitting.</li></ul><p>As this was my first project predicting a continuous variable, having only attempted a classification problem before, I decided to use linear regression due to its simplicity to implement. Checking there exists a linear relationship and there was no collinearity between the variables gave me a good understanding of the 13 variables on the data set.</p><p>When exploring the data, the main thing that stood out to me was there was lots of missing data. Due to initially being unsure how to approach this I only used column with at least 90% of data for my initial model. Obviously I need to remove the ID number and name of video game as these are identifiers which exist for every model.</p><p>Following some research, see references below, I decided the best thing to do would be to impute values for the missing data rather than simply ignore them. From the scikit learn python package, I tried simple impute, iteration and KNNto transform the data. Initially, using a trial and error approach simple impute was the most accurate according to the public leaderboard. Once further columns were added, detailed below, the KNN with a k value of 15 gave better results. To investigate this further I would have liked to do a plot of MSE against k value if I had split the training data to be able to calculate such measures.</p><p>Another aspect of the data I had to learn new ways of working with was the categorical variables. Some of the variables had over 100 values so I was hesitant to use them, but using a simple label encoder, this was able to handle all of these values.</p><p>Once I had a working model, I decided to try and improve this by seeing if the other columns were good predictors. There were some columns which were related e.g. a user rating and the number of ratings, similarly for critics. Due to the relationship between these, I decided to only use one to avoid introducing bias in to my model. I also decided not use developer since there were 1000s who only produce 1 or 2 games so it is unlikely a new game would bear any relation to the previous developers.</p><p>Having built the model, the tests for the final assumptions: autocorrelation and homoscedasticity, in fact suggested this linear regression is not the best model to use as the assumptions are violated. A future project would be to investigate other potential models that may suit the data better.</p><p>In summary I have learnt a lot from my first Kaggle competition, shown by the length of this article, as well as enjoying the problem solving nature and competing against myself to improve the accuracy of my model.</p><p><em>References:</em></p><ul><li><a href="https://towardsdatascience.com/how-to-handle-missing-data-8646b18db0d4">How to Handle Missing Data</a></li><li><a href="https://scikit-learn.org/stable/modules/impute.html">6.4. Imputation of missing values</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c11086c86c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are the patterns in online sales of special occasion gifts?]]></title>
            <link>https://rja45.medium.com/what-are-the-patterns-in-online-sales-of-special-occasion-gifts-959a0e1f4b3b?source=rss-afde24fec33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/959a0e1f4b3b</guid>
            <category><![CDATA[online-shopping]]></category>
            <category><![CDATA[patterns]]></category>
            <category><![CDATA[gifts]]></category>
            <dc:creator><![CDATA[Rachel Adams]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 11:11:07 GMT</pubDate>
            <atom:updated>2021-06-30T11:11:07.355Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*kGudZRBbYGXMDiKiDspqgg.jpeg" /></figure><p>Patterns can be found everywhere. I looked at the sales records of a worldwide UK based company spanning just over 12 months around 2011 to see what patterns I could identify. Selling unique all occasion gifts, mostly to wholesalers, the records include over 22,000 completed orders, over 4000 registered customers and just under 4000 cancelled orders.</p><p>The first pattern, as you might expect for a UK based company, is that the vast majority of their orders are from the UK. In fact over 90% have UK delivery addresses. Similarly the number of cancelled orders is consistent only varying between 1.2% and 2.1% of total orders monthly.</p><p>Next I looked at the number of orders and the value of the order totals. In the figure below we see the general trend is the number of orders and the monthly order total is increasing. December 2011 is lower due to the fact the records only include the first 9 days so if this was scaled for 31 days the general trend would still fit. Investigating further we see that sales fall falling December. More information would be needed such as did the company change their marketing strategy, staffing levels or any other aspect to increase revenue as well as other years of data to confirm, but the below and my analysis suggests sales increase in the the run up to Christmas (shown in increased sales in December).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*hu16xmFFrSvqv5zXTp5PPg.jpeg" /><figcaption>Order Totals over Time</figcaption></figure><p>For the registered customers, there is a huge range of how often repeat orders will are, whether it is for the same or different products. The common theme is that a large number of low value orders with a small number of high value orders for customers with 100’s of 1000’s of purchases. For one-time customers these are normally low value orders, only a couple of customers have only one off high total order value orders. This summarises the patterns seen in the huge variety of customer orders.</p><p>There are several limitations of the conclusions of my analysis some of which have been mentioned above. The data spanning just over 12 months is 10 years old and online sales have changed a lot, including recently due to the pandemic. Only total sales are shown, not the profit so I am unable to draw conclusions about how well the business is performing or break down areas. For example there may be higher costs to the company for selling outside of the UK. Not all customers are registered, this may be as they are placing one order which may mean the analysis of customer orders is biased.</p><p>In summary for this company the patterns are: orders are primarily UK based, number of orders are increasing and in particular they increase in the run up to Christmas and repeat customers normally purchase several low value orders with a small number of high value ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=959a0e1f4b3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting area of destruction left by forest fires in Montesinho Natural Park]]></title>
            <link>https://rja45.medium.com/predicting-area-of-destruction-left-by-forest-fires-in-montesinho-natural-park-cb78a43317ea?source=rss-afde24fec33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb78a43317ea</guid>
            <category><![CDATA[portugal]]></category>
            <category><![CDATA[natural-beauty]]></category>
            <category><![CDATA[forest-fires]]></category>
            <dc:creator><![CDATA[Rachel Adams]]></dc:creator>
            <pubDate>Fri, 11 Dec 2020 16:03:28 GMT</pubDate>
            <atom:updated>2020-12-12T16:00:07.185Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*8odPuubLyaODXoJZ" /><figcaption>Creator: Lenny Acompanado <a href="https://images.unsplash.com/photo-1549195091-03e352e13fb8?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NTZ8fGZpcmV8ZW58MHx8MHw%3D&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60">https://images.unsplash.com/photo-1549195091-03e352e13fb8?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NTZ8fGZpcmV8ZW58MHx8MHw%3D&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=500&amp;q=60</a></figcaption></figure><p>Montesinho Natural Park is one of the largest parks in Portugal, home to a wide variety of flora and fauna including vast oak forests and around 240 species of vertebrates as well as community villages. In any large area of forest, fires are always a risk and periodically occur naturally which allows nutrients back in the soil for new plants and animals to develop. However, they also destroy the existing landscape, sometimes covering acres and resulting in loss of human life. We will look to predict the area burned by forest fires in Montesinho Park.</p><p>Our <a href="https://archive.ics.uci.edu/ml/datasets/Forest+Fires">data</a> was made available for public use in 2008 (<a href="http://1.	[Cortez and Morais, 2007] P. Cortez and A. Morais. A Data Mining Approach to Predict Forest Fires using Meteorological Data. In J. Neves, M. F. Santos and J. Machado Eds., New Trends in Artificial Intelligence, Proceedings of the 13th EPIA 2007 - Portuguese Conference on Artificial Intelligence, December, Guimarães, Portugal, pp. 512-523, 2007. APPIA, ISBN-13 978-989-95618-0-9. Available at: UCI Machine Learning Repository: Forest Fires Data Set">1</a>) and contains 517 observations about the fires. The location of the fire is shown in the data using spatial coordinates, X from 1 to 9 and Y from 2 to 9.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*q22lQe93LUzEN4hvO713gw.png" /></figure><p>The above shows that the fires are uniformly spread across the East- West direction, but more concentrated in areas 4,5 and 6 in North South direction.</p><p>We also know the days and months of the fires:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*mTP3nX7Vc6ZWHRQXM_rFdA.png" /></figure><p>This shows fires are more likely in August and September, but there is no specific day more likely. August and September are towards the end of summer suggesting the season is a factor in if a fire occurs. We include predictors such as temperature and relative humidity in our model to try and account for the weather in all seasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*iGBuuw1iuDBcUmqOvi-CjA.png" /><figcaption>The plot above shows most of the fires had a small area of forest burnt with some very large outliers.</figcaption></figure><p>The other predictor variables we have available are the following forest fires weather (FWI) indexes Fine Fuel Moisture Code (FFMC), Duff Moisture Code (DMC), Drought Code (DC) and Initial Spread Index (ISI).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*iczl6Z0zgp6Grwf7z2M83g.png" /></figure><p>The above plots do not show any strong correlation between the area burned and the index.</p><p>The other predictor variables we have are temperature, relative humidity, wind speed and outside rain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*astc0vW_cwOqN0Jf9Zzjqw.png" /></figure><p>We see there is some negative correlation between temperature and relative humidity, but weak or no correlation between rain and area and the other variables.</p><p>Our data satisfies all the assumptions needed to use a linear regression model so that is what we will do. Using a linear regression model gives and r2 score of 0.14% and a mean absolute error of 26. This suggests the model is a bad model, but with a low error. This model is limited in its predication as most of the areas burned are small so the differences in predicted and test values may be smaller than a computer can compute. A logarithmic model may be more appropriate considering the large number of small areas and small number of larger areas.</p><p>There are lots of questions that could be explored further such as does the location in the world have an affect the area burned or does a similar model apply in other geographical locations for example in Australia? Does the area burned correspond to destruction in the area or are there long-term benefits such as new plants and animals? All these questions and their answers could be used by those managing national parks including Montesinho to see how they can best manage forest fires for the long-term survival of flora and fauna in these areas of natural beauty.</p><p>1. [Cortez and Morais, 2007] P. Cortez and A. Morais. A Data Mining Approach to Predict Forest Fires using Meteorological Data. In J. Neves, M. F. Santos and J. Machado Eds., New Trends in Artificial Intelligence, Proceedings of the 13th EPIA 2007 — Portuguese Conference on Artificial Intelligence, December, Guimarães, Portugal, pp. 512–523, 2007. APPIA, ISBN-13 978–989–95618–0–9. Available at: <a href="https://archive.ics.uci.edu/ml/datasets/Forest+Fires">UCI Machine Learning Repository: Forest Fires Data Set</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb78a43317ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>