<?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 Alexis Idlette-Wilson on Medium]]></title>
        <description><![CDATA[Stories by Alexis Idlette-Wilson on Medium]]></description>
        <link>https://medium.com/@alexisidlettewilson?source=rss-709c4a39c545------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PVt6GwLSjnTM4dNt_CRoAA.jpeg</url>
            <title>Stories by Alexis Idlette-Wilson on Medium</title>
            <link>https://medium.com/@alexisidlettewilson?source=rss-709c4a39c545------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:44:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexisidlettewilson/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[Real Life Refactoring with the R Magrttr]]></title>
            <link>https://medium.datadriveninvestor.com/real-life-refactoring-with-the-r-magrttr-ef131123ae82?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef131123ae82</guid>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Sat, 12 Jan 2019 22:48:39 GMT</pubDate>
            <atom:updated>2019-01-13T03:51:07.973Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*bZMckIwL1a6mAbh5" /></a></figure><h3>A Simple Example of Refactoring with the R Magrttr package</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Or2u1EjLHRmZMaFT" /><figcaption>Photo by <a href="https://unsplash.com/@lidyanada?utm_source=medium&amp;utm_medium=referral">Lidya Nada</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Confession time. I used to be a little bit of a tutorial junkie. If it said “Introduction to,” I was there for it. The problem with tutorials though is that they continually tell you what to do next. Of course one needs that at first (I assume) but the real learning occurs when you pick up your own project and try to apply the concepts from the tutorial without direction.</p><p>For this reason, I feel delighted when I find a real world situation that allows me to gingerly connect those dots I picked up from my most recent online class. Like most R programmers, I dutifully downloaded the <strong>magrittr </strong>package with the promise of syntactically efficient chains of code. I copied and pasted several dozen “<strong><em>%&gt;%</em></strong>” pipes before I actually conceived an original thought to utilize one outside of a pre-written exercise.</p><p>I found a small data set of wholesale client data that I thought was perfect to analyze with the <strong>factoextra </strong>package for cluster analysis. The data set was minimal; it listed the revenue from each wholesale customer in six different sectors: Fresh, Milk, Grocery, Frozen, Detergents_Paper and Delicassen. In this imaginary world, I am an international grocer. Nice.</p><p>To analyze the characteristics of the resulting clusters, I needed values that possessed some comparative value. The obvious solution was to calculate each sector’s proportion of revenue for each client. After pulling the data into a data.frame, I wrote the following code initially.</p><pre>data2 &lt;- mutate(data1,totalSpend =    (Fresh+Milk+Grocery+Frozen+Detergents_Paper+Delicassen),<br>  FreshSpend = (Fresh/totalSpend),<br>  MilkSpend = (Milk/totalSpend),<br>  GrocerySpend = (Grocery/totalSpend),<br>  FrozenSpend = (Frozen/totalSpend),<br>  DPSpend = (Detergents_Paper/totalSpend),<br>  DelicassenSpend = (Delicassen/totalSpend))<br># View(data2)<br>dataX &lt;- scale(data2[9:15])</pre><p>Yes, when I wrote these lines I knew I had committed the cardinal coding sin of repeating myself. In the name of progress, I did what came to me at that moment and then I repented. The above code uses the <em>mutate </em>function of the <strong>tidyverse </strong>package to add columns to the data set. I then scaled the data for analysis. Below see the resulting data table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*nWONFgknYq7oIaFTL9d1Kw.png" /></figure><p>A couple of days later, I was reading some technical article and came across the <em>prop.table</em> function. I had a Homer Simpson moment and proceeded to refactor my code. That’s when the brain cells way in the back woke up and told me to use a pipe. Well, you know what happened next. Ten lines of code became two.</p><pre>dataProp &lt;- prop.table(as.matrix(data1[3:8]), 1) %&gt;%</pre><pre>scale()</pre><p>I created a new table object named dataProp to hold the output of <em>prop.table</em>. The <em>prop.table</em> function creates a table wherein each cell corresponds to each original cell’s proportion of some value. With the “1” parameter added, <em>prop.table</em> calculates each cell’s proportion to the total of the row. In this case, it calculates the percentage of each customer’s spend attributable to each grocery category. A deep dive into the <em>prop.table</em> function can be found <a href="https://thomasleeper.com/Rcourse/Tutorials/tables.html">here</a>.</p><p>The <em>prop.table</em> was not happy with my data frame and gave me a very nasty error before I added the <em>as.matrix</em> function:</p><pre>Error in margin.table(x, margin) : &#39;x&#39; is not an array</pre><p>After using <em>as.matrix</em>, the line ran without an error and I got the same results as the first table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*cBMKE0k_A2QqBAcqjOZhsw.png" /></figure><p>Another confession. Originally, there was more code involved but I realized I didn’t need half of it. I figured I would share my little triumph with you anyway and discuss all the other bits another time. Anyone else have those moments when you surprise yourself by actually remembering something? That may just be an old folks’ thing.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef131123ae82" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/real-life-refactoring-with-the-r-magrttr-ef131123ae82">Real Life Refactoring with the R Magrttr</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Real Housewives of Cluster Analysis]]></title>
            <link>https://medium.com/business-data-quality-analyst/the-real-housewives-of-cluster-analysis-aaf5d33b1322?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaf5d33b1322</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Tue, 01 Jan 2019 14:31:00 GMT</pubDate>
            <atom:updated>2019-01-01T14:31:00.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*l541WHAUrZ7hmzK7ru1Ybg.jpeg" /><figcaption>Four cast members from Real Housewives. I did not take this picture.</figcaption></figure><p>If nice-nasty, “frenemy” pettiness feeds your need for dramatic indulgences, get your DVR set to record the newest flavor of the Housewives series. In the elite world of analysis, these ladies run the social scene. Get in line or prepare to be read like a CSV. Season one cast includes:</p><h4>AGNES</h4><p>Agnes sees herself as the queen bee in this analytics hive. She tends to classify people into different tiers, of course, considering herself the zenith of the hierarchy. As the leader of her social circle, she hosts elaborate dinner parties and employs a variety of methods for determining who belongs with who. She may judge based on how close people live near each other or how similarly people behave. In the end, Agnes finds a way to group everyone into appropriate clusters. Despite her snobby demeanor, people trust Agnes and her expertise when in need of analysis — even though they know their troubles will be converted into town gossip.</p><h4>DIANA</h4><p>Agnes and her younger sister Diana often clash because Diana has a very different perspective on society and class. Diana believes we are all one cosmic soul, experiencing life individually. When Diana plans the party, everyone receives an invitation. Once everyone arrives, Diana starts splitting people up into groups so that the conversation keeps flowing. Her flair for hosting makes everyone see Diana as the life of the party while Agnes gets cast as a motherlike character. What hostility could arise from this difference in sisterly perspectives?</p><h4>PAM</h4><p>Pam sheepishly attends soirees with an unenthusiastic vibe. Pam despises being social, but she shows her face at every event because that’s what ladies of Cluster do. Her meek demeanor belies her extreme views. She believes in walls and making sure people stay with their “own kind.” Pam recognizes several ladies as leaders of the respective cliques, let’s call these ladies “medoids” as they tend to be in the middle of their friend groups. To Pam, ladies should hang out with the medoid to who they are closest. Pam is an isolationist at heart. Rank and pecking order mean little to her but she still rubs other ladies the wrong way because of her introverted personality. Will Pam come out of her shell and make friends with one of the other ladies?</p><h4>CLARA</h4><p>Clara, Pam’s older sister, rivals Agnes this season and they often vie for the title of social queen. Clara throws the biggest galas and loves to show off her influence to Agnes and Diana. As a successful entrepreneur and aspiring politician, Clara loves to be in charge and comes off as a real bossy. Clara especially bosses her little sister Pam, who she gets to do a lot of her campaigning work. She pulls in Pam to help with identifying social influencers, similar to Pam’s clique medoids, with the goal of getting her campaign message out to the people. Clara splits her targeted constituency into several smaller groups for which Pam selects detects leaders who can serve Clara’s agenda. Clara and Pam often clash with Agnes and Diana to stir up real drama.</p><h4>FANNY</h4><p>With all the gang-like behavior, Fanny swoops into the season like a breath of fresh air. Fanny doesn’t believe everyone needs to stay with their own little social circle and she stirs up drama by bringing individuals from one social coterie into another. Fanny sees herself as the peacemaker who just wants everyone to get along but her constant butting into friend groups tends to create more friction than harmony. Fanny figures the drama is worth it. Why split everyone into separate groups when a fuzzier perspective creates fewer boundaries between people?</p><p>Clusters and hierarchies are at stake when big data meets small data and methodology clashes. Whose silhouette metrics will be below zero and who will stand out as the leader of the ladies? Live tweet me your thoughts this season @DataScienceHumor #TakingABreak #BeingSilly .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaf5d33b1322" width="1" height="1" alt=""><hr><p><a href="https://medium.com/business-data-quality-analyst/the-real-housewives-of-cluster-analysis-aaf5d33b1322">The Real Housewives of Cluster Analysis</a> was originally published in <a href="https://medium.com/business-data-quality-analyst">Data Viz for Fun</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Project Managers Need Not Fear the AI Boogeyman]]></title>
            <link>https://medium.datadriveninvestor.com/why-project-managers-need-not-fear-the-ai-boogeyman-a3c2699d3d4b?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3c2699d3d4b</guid>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[project-manager]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[analytics-training]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Sat, 15 Dec 2018 01:03:12 GMT</pubDate>
            <atom:updated>2018-12-15T13:39:08.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/P12O"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tekHoc9P9eVmsTCN" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OH63Okbzyyv0Zt5m" /><figcaption>Photo by <a href="https://unsplash.com/@franciscomorales?utm_source=medium&amp;utm_medium=referral">Jose Francisco Morales</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recently while drinking Donut Shop blend coffee and perusing Medium, I came across this article: <a href="https://medium.com/datadriveninvestor/thanks-ai-now-16-5-million-project-managers-will-be-unemployed-inside-of-48-months-fd7ed010a8ae"><strong>Thanks AI. Now 16.5 Million Project Managers Will Be Unemployed Inside of 48 months.</strong></a> The topic grabbed my attention because I had made a similarly tongue-and-cheek <a href="https://www.linkedin.com/feed/update/urn:li:activity:6476070495665086464/?commentUrn=urn%3Ali%3Acomment%3A(activity%3A6476064344823205888%2C6476070393806413824)">comment on LinkedIn</a> about how a newer Microsoft machine learning product that automated model selection and parameter tuning would put data scientists out of a job. (Um, just kidding Microsoft…)</p><p>Before you say we’re crazy, <a href="http://analytics-magazine.org/survey-potential-benefits-of-artificial-intelligence-outweigh-citizen-concerns/">Accenture published a survey</a> this past October indicating 42% of the over 6,000 respondents believe artificial intelligence took jobs away from people.</p><p>The project management article suggested that company leadership would rely on artificial intelligence related to project execution. I interpreted the discussion to mean leadership would eventually plug into an algorithm and facilitate projects decisions, eventually phasing out traditional project managers.</p><p>The author isn’t alone in his sentiment. The literature agrees that smarter applications and algorithms will eliminate the manual administrative tasks of project management. A <a href="https://www.clarizen.com/ai-bots-project-management/">2017 Clarizen article</a> adds: “<em>The way AI will use data in a project management context is by combining feedback and results from every available source to give algorithmic and precise insight into what actions should be taken next.</em>”</p><h4>Prescriptive Analytics in Your PM Toolkit</h4><p>An exploration of data-driven technologies and economic impact creeps far beyond the scope of this article but after reading the initial post, my immediate reaction was to leave a comment saying project managers need to level up on prescriptive analytics. It is the branch of analytics that tells us what to do — “<em>what actions should be taken next</em>” as mentioned by Clarizen.</p><p>A prescriptive analytics solution would be the type of technology to fulfill the author’s scenario of putting project managers in the unemployment line. Luckily for project managers and everybody else, prescriptive analytics falls at the end of most analytics maturity models. Many organizations just aren’t there yet.</p><h4>Humans Still Win</h4><p>In a <a href="https://www.pwc.com/us/en/services/consulting/analytics/big-decision-survey.html">2016 survey</a> of over 2,000 decision makers conducted by consulting firm PWC, highly <strong>“data-driven”</strong> decision-makers reported leveraging prescriptive analytics about 30% of the time when making decisions about product development. For other types of decisions, the number was even lower and less “data-driven” decision makers used prescriptive analytics even less often. These same respondents also indicated that for eight of nine decision-making categories <strong>relied more heavily on human judgment than statistics</strong>.</p><p>Additionally, analytics projects notoriously require strong project managers, meaning the “artificial intelligence” solutions will require project managers for its roll-outs. This <a href="https://www.toptal.com/project-managers/technical/ai-in-project-management">TopTal article</a> details key knowledge for Project Managers implementing data science projects.</p><p>Somebody has to nurture the data through cleaning, exploratory analysis, perhaps diagnostic solutions, and predictive models up until prescriptive models can be developed. That management would probably be done by product managers, depending on the software development life cycle (SDLC) methodology. In other organizations, project managers could easily wind up taking a product from implementation to steady state in this manner.</p><h4>Project Managers Will Own AI Solutions</h4><p>The author was not wrong in his acknowledgment of project management AI products. I argue such products will ultimately be leveraged by project managers as opposed to replacing them.</p><ul><li>Machine learning algorithms can help inform <a href="https://blog.taskque.com/introducing-ai-powered-machine-project-management">project manager projections</a> instead of replacing the project manager totally. Project managers specifically stand to increase their perceived value by mastering the interpretation risk management solutions.</li><li>Project managers in the construction space <a href="https://esub.com/applications-artificial-intelligence-construction-management/">leverage drone and sensor technology</a> to monitor job site activity. Highly unlikely a finance executive will be outside deploying drones and analyzing the analytics output (nothing against finance executives).</li><li>Even with the myriad options for <a href="https://www.softwaresuggest.com/blog/transform-automated-project-management-software-market/">automated Project Management software</a>, project managers ultimately configure and administer these tools. Project managers establish best practice for the business rules that feed these tools.</li></ul><p>In the data science solution space, adoption doesn’t occur at nearly the same rate as development. Experts in operations research agree that technology-driven projects tend to fail because of human factors including incomplete requirements (the solution doesn’t meet the need) and low user adoption because solutions may be overly complex. <strong>In these areas,</strong> <strong>project managers and potentially business analysts still have critical roles to play</strong>.</p><p>Thus, be easy Project Managers. Artificial intelligence hasn’t come to eat your lunch quite yet.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3c2699d3d4b" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/why-project-managers-need-not-fear-the-ai-boogeyman-a3c2699d3d4b">Why Project Managers Need Not Fear the AI Boogeyman</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Exercise with Cluster Analysis Using the factoextra R Package]]></title>
            <link>https://medium.datadriveninvestor.com/a-simple-exercise-with-cluster-analysis-using-the-factoextra-r-package-7fde8433072f?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fde8433072f</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[r]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 03:24:56 GMT</pubDate>
            <atom:updated>2018-12-10T11:03:37.768Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/181206BYellow"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Dh8ezBs0Vg2CnPjH" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TB1AmZKaR7q5fBYI" /><figcaption>Photo by <a href="https://unsplash.com/@creativegangsters?utm_source=medium&amp;utm_medium=referral">Allie Smith</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re not shopping with local establishments this season, here’s your cue to feel guilty. Purchasing your litany of needs from the nearest “one stop shop” may be slightly more convenient but the economic vigor of your region depends small businesses. We even created Small Business Saturday to counteract the big-box propaganda of Black Friday and steer us towards the doors of our local mom-and-pops.</p><p>“Small” firms make up 99% of all businesses in the United States (US)and 48% of all employment. Chances are that if you engage in the new gig-economy, you’re in that count as well. Small businesses are kind of a big deal.</p><p>Every year the US Small Business Administration (SBA) publishes an <a href="https://www.sba.gov/advocacy/2018-small-business-profiles-states-and-territories">annual snapshot of small business activity</a> in each state. Reading one of these profiles, you can get a sense of how small businesses fare in your local community. The PDF versions provide more details than the data set I use here and they are actually a good read.</p><p>Always on the lookout for a little analysis fun time, I downloaded the state profiles so I could make some visuals related to the status of small businesses in each state. You can <a href="https://www.sba.gov/sites/default/files/advocacy/Small-Business-Rankings-All-States-2018.xlsx">download the data</a> from the SBA website. I used this data to play around with the <strong>factoextra </strong>package in R.</p><p>I’ve been on a clustering kick lately; the <strong>factoextra </strong>package provides many functions for computing and visualizing clusters. I selected this data set because the features mimic the features of the USArrests data set in R. The website DataNovia.com offers several <a href="https://www.datanovia.com/en/blog/types-of-clustering-methods-overview-and-quick-start-r-code/">clustering tutorials</a> using USArrests.</p><p>My playground is RStudio but I cleaned this data up in Excel to get started. I’m not anti-GUI and for a data set this size, I moved to the analysis stage quickly with just a few clicks in the app. The data set consisted of numeric values only but included a rank column for each state which I removed. I did shorten the column names in R.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NZSSQhgVJIUklgTeJGT6mg.png" /><figcaption>R script loading data and changing names</figcaption></figure><p>Several of the features contained asterisks with the explanation that they did not want to expose a particular business with the result. I decided to replace the asterisk values with the median values for each column. I earned a few gray-hairs getting this done as some of the asterisks were actually an asterisks padded with spaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJlQLx1K4WkF0QVefLYvsQ.png" /><figcaption>R script replacing asterisks</figcaption></figure><p>I prepped the data by assigning rownames. Additionally, several of the features came over as character data types so I converted them to numeric. Lastly, I standardized the data using the scale function with default parameters. AnalyticsVidya <a href="https://www.analyticsvidhya.com/blog/2013/11/getting-clustering-right/">recommends removing outliers</a> before running a cluster analysis. I chose not to do this since I wanted all 50 states to appear in the visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3sIgEiG_TvDrKQvQHEJbGg.png" /><figcaption>R script converting data types</figcaption></figure><p>Initially, I ran a clustering tendency algorithm on the data. Clustering tendency refers to the likelihood of any real clusters existing in a data set. Clustering tendency matters because a clustering algorithm will find clusters no matter what — even from totally random data.</p><p>Clustering tendency gives us an idea of how much weight we should give to resulting clusters. It actually tells us whether we should bother doing the analysis at all. For reference, the statistic I interpreted is one of <a href="http://www.mayaackerman.info/pub/clusterability2017.pdf">several potential measures of “clusterability”</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6_CXVYVK3dH8buVBwaacQ.png" /><figcaption>R script for clustering tendency</figcaption></figure><p>The <strong>get_clust_tendency</strong> function provides a Hopkins Statistic which can be used to assess clustering tendency. My result was 0.38. A score of 0.50 of higher indicates the data is uniformly distributed (no true clusters). A score close to zero means the data is highly “clusterable.” My result lies on the less “clusterable” end of the spectrum but I proceeded so I could work with the parameters of the package.</p><p>I reviewed the three options supported for determining the ideal number of clusters. The “<strong>wss</strong>” option, also known as “elbow,” provided little clarity from the visual itself. The ideal cluster supposedly lies at the point where the decrease in y-axis value tapers off. That didn’t appear to happen in my chart. I changed the default <strong>k.max</strong> parameter to 30 to see if I could get a better-looking elbow but I didn’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLm8ZEg_wKJwcCWvovXa-Q.png" /></figure><p>Based on my never-bending elbow, I decided to look at some clusters between nine and fifteen even though the groupings could be somewhat spurious (but they’re so pretty).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rG8RapDTfoUtQ5nLZXrr4Q.png" /><figcaption>R script visualizing clusters of different sizes</figcaption></figure><p>Nine told a more interesting story whereas 15 created more expected connections between the state groups. My eyes immediately went to Florida since that’s where I live. With nine groups, we find Florida in the same group with several pacific west states. With 15, more states are isolated as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5DStdv0BcAPyAcBPVhRCw.png" /><figcaption>State profiles in 12 clusters</figcaption></figure><p>With 12, Florida and Utah are still grouped making me curious about what economic conditions they have in common. What also jumped out was the grouping of Delaware with Missouri and Nebraska. Implicitly I had assumed states in proximity would have similar economic conditions thus these observations stood out.</p><p>The other two cluster estimations suggested clusters of two and one (boring). I assume this make sense considering the higher clustering tendency statistic. I’ve included the visual of two clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1lV02gNjGdXOgqgi1fLTA.png" /></figure><p>At first glance, the states in the bottom left quadrant appear to have similar climates. The members of the upper left quadrant don’t fit in though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9a5gF0LuyN90Fwi4YXiYQ.png" /></figure><p>I looked at the raw data of the states in opposing positions in the two-cluster chart, District of Columbia and Tennessee. Notable differences occur in the Average Number of Employees per Small Business (3.3 for DC versus 1.8 for Tennessee) and Percent of Export Value from Small Business (0.80 for DC versus 0.16 for Tennessee). Tennessee also has more mining Veteran-owned businesses and mining employment.</p><p>Unfortunately, the most influential dimensions only accounted for 36.1% of the variation in the data. Printing a summary of principle component analysis reveals that the percentage of employees that work for small businesses wielded the most weight in principal component one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAN87pvxH6Sxli7Zcp3A9Q.png" /><figcaption>R script summarizing principle component analysis</figcaption></figure><p>A few features tied for second place including both export-related variables, the two of which probably correlate. I suspect the percent of employees employed by small business and the average number of employees per small business are also correlated (I know; just run a correlation analysis…not this time.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*beSvcZIKrYNlHaNYs1PuZQ.png" /><figcaption>R script with principal component loadings</figcaption></figure><p>I enjoyed making visuals with this package set but only envision a couple practical applications for this data set in real life. Assuming this analysis could identify states experiencing similar economic conditions for small businesses, one could add features related to federal legislation to determine if any relationships exists between specific policy and the small business outcomes. Investment seems like another application. If one experienced pleasing returns on government bonds from one state, one could anticipate similar results from states with similar economic environments.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fde8433072f" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/a-simple-exercise-with-cluster-analysis-using-the-factoextra-r-package-7fde8433072f">A Simple Exercise with Cluster Analysis Using the factoextra R Package</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Used a Cluster Analysis to Pick My Lunch. Here’s What I Ate.]]></title>
            <link>https://medium.com/business-data-quality-analyst/i-used-a-cluster-analysis-to-pick-my-lunch-heres-what-i-ate-9dd14da37bda?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dd14da37bda</guid>
            <category><![CDATA[r]]></category>
            <category><![CDATA[cluster-analysis]]></category>
            <category><![CDATA[ggbiplot]]></category>
            <category><![CDATA[ggplot2]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Sat, 01 Dec 2018 14:31:01 GMT</pubDate>
            <atom:updated>2018-12-02T01:13:46.389Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BzpI3TEzOCsV3kmu" /><figcaption>Photo by <a href="https://unsplash.com/@element5digital?utm_source=medium&amp;utm_medium=referral">Element5 Digital</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>My mouth began to salivate as I navigated the colorful Planet Smoothie website to finalize my lunch order. For the past hour my mind fixated on the Matcha Libre, a tangy sweet concoction of passionfruit, matcha tea and frozen yogurt just indulgent enough to enliven the lull of a slow weekday afternoon. After a weekend of engrossing myself in health-conscious reading, I dared to leave my comfort zone for a smoothie that contained the celebrated kale leaf: a Lean Green Extreme.</p><p>I dutifully scoured the nutrition information and made a sour face as I found the sugar content: 55 grams of sugar in a medium Lean Green Extreme. Honestly, I lacked a true sense of whether that was good or bad but 55 sounded like a major sugar rush. My favorite Matcha Libre only contained 38 grams of sugar. Matcha Libre won that round.</p><p>For an inspired moment I couldn’t help but notice the tidy little table holding all these numeric data points would make for an amusing analysis project of some kind. I wondered if there was some instance of a function that could effectively tell me which smoothies were most similar to Matcha Libre. I classified this as a clustering problem wherein I wanted to see which smoothies would be grouped with Matcha Libre.</p><h4><strong>Scraping the Nutrition Data from the PDF</strong></h4><p>The Planet Smoothie nutrition information resided in a PDF document accessible online. I aimed to complete this exercise in R. To get the data from the PDF, I used the <strong>tabulizer</strong> package.</p><p>To use <strong>tabulizer </strong>I also had to install the <strong>tabulizerjars </strong>package and follow a subset of <a href="https://cran.r-project.org/web/packages/tabulizer/readme/README.html#installing-java-on-windows-with-chocolatey">this tutorial</a> to make sure the Java references in R and my PC were aligned. I already had the Java SDK installed so without installing Chocolatey as the tutorial instructs, I only followed steps #1 and #4 under the <em>Installing Java on Windows with Chocolatey </em>section.</p><p>Using the <strong>tabulizer </strong>, I generated two CSV files. By default the <strong>extract_tables </strong>function created one file per page and the smoothies only appeared on the first two pages of the PDF. I admit; I peeked at them inExcel to make sure they looked right. I have yet to be converted into a fan of visualizing tabular data sets in R.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifoadykC-UlNdMsPwLc1oA.png" /><figcaption>R script of using tabulizer package</figcaption></figure><h4>Preparing the Smoothie Nutrition Data</h4><p>The first two rows of each file did not contain any data. I read the files back into R, removing the first two rows and created a data frame. I reestablished the column names then combined the two pages into a single data frame.</p><p>I didn’t think comparing the same smoothies of different sizes would be useful, so I limited the data set to 16-ounce drinks. To achieve the filtering quickly, I loaded the <strong>stringr</strong> library and used the <strong>str_detect</strong> function to filter down to the “16oz” options only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wXm6mXNe-V6e0cm2BUxFw.png" /><figcaption>R script transforming data</figcaption></figure><h4>Spinning Up Some New Features</h4><p>Next, I created seven features to include in the analysis of the smoothies. They were all simple proportions based on calories or weight.</p><ul><li>SatFatPercent: The proportion of fat that is saturated fat</li><li>CalFatPercent: The proportion of smoothie calories that come from fat</li><li>NetCarbs: Grams of sugar minus grams of protein</li><li>CaloriesPerGram: The number of calories per gram of smoothie</li><li>FiberPerGram: Grams of fiber per gram of smoothie</li><li>CarbsPerGram: Grams of carbohydrates per gram of smoothie</li><li>ProteinPerGram: Grams of protein per gram of smoothie</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Jw6l7Ooh0P1FBaprxhG6Q.png" /><figcaption>R script creating new features</figcaption></figure><h4><strong>Transforming the Data Set</strong></h4><p>I whispered “division by zero” lightly under my breath as I realized that my SatFatPercent feature had some NaN values. I used the <strong>is.nan</strong> function to replace them. At this point, the data set shrank to 29 observations with 20 variables. Cluster analysis <a href="https://medium.com/@alexisidlettewilson/sample-size-for-cluster-analysis-72260a40e41d">requires no specific sample size</a>, so I felt good to go.</p><p>For cluster analysis, scale matters. The calorie features and some of the nutrients are not listed in grams like the other features so I normalized all the variables before I ran the cluster analysis. I attempted to use the <strong>scale</strong> function for this task after removing the first column containing the smoothie names. This failed miserably.</p><p>After looking at the structure of my data set, I realized my new features were formatted as characters and could not be scaled. I resolved this by removing the features and recreating them with <strong>as.numeric</strong> specified. I then ran the <strong>scale</strong> function on the numeric features. It succeeded!</p><p>There was still a snafu. The TransFatGrams column all returned as NaN. I reviewed the data set and found for all these smoothies, the TransFatGrams equaled zero. I removed this feature completely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DeA2S5NeFd25G70__fJGaA.png" /><figcaption>R script normalizing features</figcaption></figure><h4><strong>Clustering My Smoothies</strong></h4><p>At least five <a href="https://www.datanovia.com/en/blog/types-of-clustering-methods-overview-and-quick-start-r-code/">different clustering methods</a> exist and I stuck with the partitioning method, of which K-means will be familiar to most people. The goal of K-means clustering is to minimize the distance between the points within each cluster such that when the variation of all clusters gets added together, the total variation is the smallest it can possibly be.</p><p>I utilized R’s built in <strong>kmeans</strong> function to run the analysis with four initial clusters and 15 random “starts” referring to the random group labeling that initiates the groupings for traditional centroid-based k-means clustering. Because the first step involves random group assignment, the results of a k-means clustering analysis can differ depending on the initial groupings.</p><p>The algorithm outputs an R <strong>kmeans object</strong> which provides several components of which the “cluster” component holds the meaty goodness of the analysis.</p><p>I used the base plot function to view the output and saw my Matcha Libre smoothie landed in group 2 with most of the other smoothies. The number of observations in my smoothie group was so large that I decided to try five and six clusters as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZT_EohCmvHhAxY9_npOakw.png" /><figcaption>R script running kmeans function</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDP3rAeI5E_R9DOqv7FCOQ.png" /><figcaption>Plotting kmeans cluster with R base plot</figcaption></figure><p>Underwhelmed with the plotting visual, I decided to load the <strong>cluster</strong> library so I could try the <strong>clusplot</strong> (try saying that ten times fast) function to play around with a little bit. The default parameters generated ellipses to visually capture my clusters. I applied the RColorBrewer function <strong>brewer.pal </strong>to generate more legible ellipse colors.</p><p>I populated the <strong>clusplot </strong>using <strong>pam, </strong>Partitioning Around Medoids, as opposed to centroids. They only differ in that “medoid” represents the absolute value of the distance between points in a cluster while “centroid” represents the squared distance. Additionally instead of calculating random medoids, <strong>pam</strong> uses an observation as the initial medoid. My results from clusplot looked quite nicer but I stumbled into another option, <strong>ggbiplot</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvorDu9hO_wxOa8B3Xwt3A.png" /><figcaption>R script running clusplot function</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RchSVKbdzM7aKtjfJ-mkVQ.png" /><figcaption>image of clusplot output</figcaption></figure><p>The <strong>ggbiplot </strong>functionality allowed me to more easily add the component information to my visualization as shown in the screen shot. I not only have my clusters but can also tell which features best differentiate my smoothies. I referenced this <a href="https://www.datacamp.com/community/tutorials/pca-analysis-r">DataCamp tutorial</a> to work with this package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voq00ccuZdCwm6MmxNA3wQ.png" /><figcaption>R script running ggbiplot function</figcaption></figure><h4><strong>Selecting My Smoothie Line-Up</strong></h4><p>With eight clusters, my Matcha Libre smoothie only grouped with one other smoothie: Pineapple Tropi-Kale Twist. To my delight, that option contained kale — the secret ingredient that sparked my curiosity in the first place.</p><p>With fewer than eight clusters my favorite smoothie got lumped in with quite a few others including 2-Piece Bikini and Captain Kid. According to my plot, the most factors driving over 65% of the variation between smoothies included net carbohydrates, grams of sugar and the percentage of total fat that was saturated fat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*MgcB1zvffadG2c6KI1dQjg.png" /><figcaption>image of ggbiplot output</figcaption></figure><p>Several days later on an unusually chilly Florida afternoon, I courageously entered the smoothie establishment ready to plunge into a new flavor experience. Content, I slowly sipped the fruits of my labor sprawled out in the front seat of my sedan. Which did I choose? The closest match: Tropi-Kale Twist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dd14da37bda" width="1" height="1" alt=""><hr><p><a href="https://medium.com/business-data-quality-analyst/i-used-a-cluster-analysis-to-pick-my-lunch-heres-what-i-ate-9dd14da37bda">I Used a Cluster Analysis to Pick My Lunch. Here’s What I Ate.</a> was originally published in <a href="https://medium.com/business-data-quality-analyst">Data Viz for Fun</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practice This Skill to Grow Your Data Analyst Career]]></title>
            <link>https://medium.datadriveninvestor.com/practice-this-skill-to-grow-your-data-analyst-career-20b452217d0c?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/20b452217d0c</guid>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[skills-development]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[business-analysis]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Tue, 20 Nov 2018 11:16:02 GMT</pubDate>
            <atom:updated>2018-11-20T14:06:21.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/Split11-20"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Zt_UCwG7v5oQtgGe" /></a></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-SweB98qX8mA49Jz" /><figcaption>Photo by <a href="https://unsplash.com/@gallarotti?utm_source=medium&amp;utm_medium=referral">Francesco Gallarotti</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a professional data analyst, you know your organization’s business inside and out. You understand the database architecture. You relate to your stakeholders and you meet their expectations. Your role probably exists in a fast-paced, responsive capacity. Although satisfying, the operational context alone can’t prepare you to fulfill your career aspirations.</p><p>Roughly 7% of knowledge workers titled “Data Analyst” move straight into data management roles. About 87% move into senior analyst roles before seeking out positions as managers. Managerial data positions require leadership, planning and more specifically, strategy. Thus, data analysts must expand their perspective from operational efficiency and build the skill of long-term, strategic thinking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*tL86D6297cBg4wFV9FLxpA.png" /><figcaption>PayScale.com Common Career Paths</figcaption></figure><p>Only 17% of open data analyst positions even require knowledge of strategy, compared to more than 65% of managerial data positions.** That hypothetically leaves 83% of data analysts unaided to figure how to nurture this vital skill. To begin thinking strategically, you must first grasp the value of strategy.</p><p>Strategy is the skillful use of a stratagem, defined as a scheme for surprising or deceiving an enemy. In this context, think of the enemy as your organization’s threats. Threats, as defined by a traditional SWOT (strengths, weaknesses, opportunities, and threats) analysis, include any person, place or thing that could do damage to your organization. Initially, competitors come to mind but threats can also be internal. Poor data governance, inconsistent processes and failure to innovate can all threaten an organization.</p><p>To realize strategy then, you must then obtain some awareness of your organization’s threats. Business analysts turn to PESTEL analysis to get a comprehensive view of the relative landscape. PESTEL stands for the elements of that theoretical landscape: political, environmental, social, technological, economic and legal. Focus on one or no more than two of these aspects. GDPR represents technological and legal conditions. Federal administration changes represent political conditions, especially if your organization contracts with the government.</p><p>After your mini-PESTEL analysis, you can then seek opportunities to flex your strategic muscles within your own department or business unit. Consider these specific ideas to practice thinking strategically:</p><h4><strong>Compare your organization’s current state to a “maturity model”</strong></h4><p>A dozen or more models applicable to data exist including data governance, analytics, and machine learning maturity models. Write a quick synopsis and discuss with your direct manager, ideally along with some ideas for moving your organization forward in the model. For example, INFORMS (Institute for Operations Research and the Management Sciences) publishes a perhaps oversimplified <a href="https://analyticsmaturity.informs.org/AMMUserGuide.php#page8">Analytics Maturity Model</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*zmfLblyqagVg6SbX.jpg" /></figure><p>On the other end of the spectrum, consider a detailed model like the Strategic Use of Data Rubric published by Harvard University’s <a href="https://sdp.cepr.harvard.edu/">Strategic Data Project</a>. The rubric focuses on educational policy but could easily be adapted to apply to a variety of industries. This model provides very specific milestones you can borrow as your own language when drafting proposals for discussion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kOlt4QZzTrYy1TZ20_XN-A.png" /></figure><h4><strong>Analyze some different data</strong></h4><p>You currently create and manage dashboards based on stakeholder requests. You can also take the initiative to ask questions on your own and do analysis work that interests you.</p><ul><li>Mine an underutilized data source and see if you find any noteworthy results.</li><li>Challenge your organization’s implicit strategic assumptions; determine if relationships occur between seemingly unrelated products or workflows.</li></ul><p>Even if your research fails to find anything earth-shattering, you will be demonstrating your capacity for more strategic assignments.</p><h4><strong>Assess existing business processes and identify ways you can improve</strong></h4><p>This activity applies to any position but this case, you will focuses on data-related processes. This could include ways stakeholders access data. You may point out tribal knowledge about different data sources and the need for documentation procedure. Does your establishment have any data sources that are misaligned with other data? Do departments communicate what data they possess? No organization is perfect. Document your observations along with ideas for resolution.</p><p>Your career growth lies in your own hands. Looking at your work now with a strategic lens positions you for the senior leadership roles to come. If you doubt your role has any strategic capacity currently, ask your direct manager for more transparency in how your role affects the department’s strategic goals.</p><p>** Based on analysis of Indeed.com jobs posted within the last 15 days.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20b452217d0c" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/practice-this-skill-to-grow-your-data-analyst-career-20b452217d0c">Practice This Skill to Grow Your Data Analyst Career</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sample Size for Cluster Analysis]]></title>
            <link>https://medium.com/business-data-quality-analyst/sample-size-for-cluster-analysis-72260a40e41d?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/72260a40e41d</guid>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[cluster-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analyst]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Wed, 14 Nov 2018 01:47:34 GMT</pubDate>
            <atom:updated>2022-01-17T14:26:45.447Z</atom:updated>
            <content:encoded><![CDATA[<p>What a cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A3z4_mSsAyCle27l" /><figcaption>Photo by <a href="https://unsplash.com/@phildesforges?utm_source=medium&amp;utm_medium=referral">Phil Desforges</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Classical statistics prioritizes sample size as a major consideration when choosing which methodology to employ and statistics to calculate. Contrastingly, sample size often becomes the last thing considered when walking through a cluster analysis project. Data sets may be slowly shifting towards “big” data but academia continues to prove that medium and small data provide valid results as well.</p><p>Analysts and statisticians have some basic guides to follow with regard to sample size for most analyses. In his 2013 article “<a href="https://pdfs.semanticscholar.org/fa7a/1c2e306b2aa2a4e9f8b15de7075246e1e0ba.pdf">Heuristics for Sample Size Determination in Multivariate Statistical Techniques</a>”, Kamran Siddiqui offers a comprehensive summary of sample size advice for seven different statistical techniques, including cluster analysis.</p><p>Cluster analysis, an unsupervised machine learning technique, supports critical business problems like market segmentation and pattern recognition. Surprisingly though, Siddiqui and other data science academics agree that no sample size guidelines exist for cluster analysis. Run with two observations or two thousand, the analyst is doing it the right way!</p><p>So if there are no best practices for sample size within a cluster analysis, how does an analyst decide how much data to include? The obvious answer may be to run everything; population data reigns supreme. Of course, that analyst may get a friendly visit from his local database administrator after querying the entire database.</p><p>Some opinions do exist in the literature to guide an analyst if and when a sample must be selected.</p><h3>1. Consider feature-to-observation ratio</h3><p>In her 2002 analysis of cluster methodology, Sara Dolnicar suggests analyzing a feature-to-observation ratio to validate the choice of sample size. Dolnicar et al. also <a href="https://journals.sagepub.com/doi/full/10.1177/0047287513496475">published a study in 2013 </a>recommending a sample size between 60*k and 70*k, where k equals the number of features. Dolnicar references an even older study suggesting a sample size guideline of 2^k observations, where k equals the number of features.</p><p>This particular technique also seems like a potential strategy to manage feature “creep.” If 2^k observations far surpasses the observation count, the analyst may also consider reducing the initial feature set in lieu of increasing sample size.</p><h3>2. Utilize a stratified sampling technique</h3><p>Another consideration for sample size is the proportion of observation types in the data. By ensuring that the analysis data set represents a balanced cross-section of the overall population, one stands a better chance of generating well formed clusters. No single attribute or entity should be over-represented if possible.</p><p>How does this affect sample size? If some particular class of entity, say “Retail”, makes up 50% of the population data but 95% of your initial chosen data set, one may then choose to reduce the sample size such that the mix becomes 50% retail. Similarly, one may add additional observations from other categories. A <a href="https://www.ncbi.nlm.nih.gov/pubmed/26782067">1987 study</a> concluded larger sample sizes yielded better quality clusters when scientists input balanced proportions of observations.</p><h3>3. Repeat the analysis with different sample sizes</h3><p>With regard to item #2, an analyst may also observe varying levels of cluster density dependent upon the sample size studied. A <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4939904/">2015 study</a> published in the Journal of the Society of Prevention Research actually took this approach to observe how discretely clusters formed based on the sample size. The researchers found cluster quality varied within each of the three clustering methods utilized based on the sample size.</p><p>Discussion about cluster analysis typically bypasses the examination of sample size. Research have proven that sample size can be a powerful tuning parameter despite its lack of attention. These studies suggest optimized sample size improves cluster formation meaning it can propel an analysis from inconclusive to informative.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72260a40e41d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/business-data-quality-analyst/sample-size-for-cluster-analysis-72260a40e41d">Sample Size for Cluster Analysis</a> was originally published in <a href="https://medium.com/business-data-quality-analyst">Data Viz for Fun</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Four Rules for a Recovering Serial Starter]]></title>
            <link>https://medium.datadriveninvestor.com/four-rules-for-a-recovering-serial-starter-48e6b6104fde?source=rss-709c4a39c545------2</link>
            <guid isPermaLink="false">https://medium.com/p/48e6b6104fde</guid>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[procrastination]]></category>
            <category><![CDATA[starting-a-business]]></category>
            <dc:creator><![CDATA[Alexis Idlette-Wilson]]></dc:creator>
            <pubDate>Sun, 11 Nov 2018 23:58:04 GMT</pubDate>
            <atom:updated>2018-11-12T00:13:10.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*76rk1IK6zxu-mvMV" /><figcaption>“silhouette photo of palm trees during golden hour” by <a href="https://unsplash.com/@mgolsen?utm_source=medium&amp;utm_medium=referral">Michael Olsen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This project felt a lot more exciting when I was pinning images to my Pinterest board.</p><p>Is there a career for people who love planning and pontificating but only executing up until the point where a project requires actual work? I’ll take that gig all day.</p><p>As a serial starter, I’ve uttered these and similar thoughts too many times to track. As great as it feels to be an “ideas person”, the compulsion to jump to the next intriguing subject matter can be exhausting. At times, the frustration associated with my perceived indecisiveness eroded my self-esteem and left me immobilized by anxiety.</p><p>In the spirit of Dr. Phil, there came a point when I had to admit “that ain’t working for me.” As a serial starter, I pivoted between business, career and hobby ideas so frequently that I began doubting my own judgement. To regain trust in my decisions and my “gut”, I realized I had to make a transition.</p><p>I now follow a few simple rules to evade the familiar lure of unknown challenges. Using these guidelines, I thoughtfully consider new endeavors without sacrificing so much time and energy for whims that don’t fit my life or my goals.</p><h3>1. I do the thing I’m thinking of with no infrastructure involved.</h3><p>I recall hearing a poignant piece of advice related to eCommerce business, which I happened to be engaging in at the time. “Before you try to sell 100, sell one.” Although I never followed that advice, the words stuck with me because they made so much sense. If I feel motivated enough to create a business around some activity, I should be passionate enough to convince one person to buy from me.</p><p>What that equates to in the short term is not setting up the complete vision (the legal entity, the website, the business plan) but instead, learning about the product or service and getting one person to buy it or try it for me. I save myself quite a bit of disenchantment by actually requiring action instead of getting caught up in pretty WordPress templates.</p><p>Sometimes when an idea seems so good in my mind, I want to jump in head first. I slow myself down by asking “what would I need to do to convince my neighbor to buy this?”</p><h3>2. I keep my mouth shut.</h3><p>Some months ago, I listened to a fantastic podcast during which a guest noted that talking about a task induces a very similar biological reaction as completing that task. This concept means that when I start telling friends and family about my latest intended venture, I unintentionally degrade my original level of excitement.</p><p>Suddenly, that epic summer camp business plan I wrote out feels much less compelling than when I originally devised it. So I keep my ideas to myself until after I complete some portion of rule one. Typically, my enthusiasm dies down before start trying to convince my parents to invest.</p><p>I recognize many will disagree and suggest I must put what I want out into the universe by telling others and allowing them to hold me accountable. Maybe that works for some people. As a serial starter, I must accept sharing just doesn’t work for me.</p><h3>3. When I feel motivated, I set myself up for times when I will be unmotivated.</h3><p>When the motivation wave hits, I ride it. I may stay up all night writing, coding, reading, learning. I accomplish as much as time will allow because I know anxiousness and apprehension lurk around the corner.</p><p>When the enthusiasm starts to wane, I drag myself through this phase working on smaller tasks like editing, tweaking and polishing the work I churned out during my motivated phase. I usually stay inspired during this phase until I see myself getting closer to a finish line — where the rush of creating something new fills me up again.</p><h3>4. One good idea originates from 100 bad ones so I choose to keep imagining.</h3><p>I know with certainty there are a handful of people sick of hearing my ideas. These people are too kind to say “whatever girl” when I start talking about my most recent project. (Thanks by the way.) No one wants to be the flaky friend known for being all talk and no action. Sometimes I feel like a fake.</p><p>In those moments, I aim to revise my perspective of my inherit gift. I encourage others. Occasionally, when a friend needs encouragement, I pride myself on being her biggest cheerleader. I possess optimism and creativity. Optimism and great ideas no longer meet my requirements.</p><p>I now also require evidence. I recognize narrow scope just isn’t my thing. I am a zealot; I always have something cooking. To stay off the serial starter hamster wheel though, I commit to challenging that creative energy with actual progress.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e6b6104fde" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/four-rules-for-a-recovering-serial-starter-48e6b6104fde">Four Rules for a Recovering Serial Starter</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>