<?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 Dirk Van Curan on Medium]]></title>
        <description><![CDATA[Stories by Dirk Van Curan on Medium]]></description>
        <link>https://medium.com/@dirkvancuran?source=rss-dd3e25d12018------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*m9WYpUI5D60tVKvO3ysk9g.jpeg</url>
            <title>Stories by Dirk Van Curan on Medium</title>
            <link>https://medium.com/@dirkvancuran?source=rss-dd3e25d12018------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:29:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dirkvancuran/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[Radar Plots, Scanning the Data Landscape]]></title>
            <link>https://medium.com/swlh/radar-plots-scanning-the-data-landscape-312aa4eda4f4?source=rss-dd3e25d12018------2</link>
            <guid isPermaLink="false">https://medium.com/p/312aa4eda4f4</guid>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dirk Van Curan]]></dc:creator>
            <pubDate>Fri, 21 Feb 2020 19:19:55 GMT</pubDate>
            <atom:updated>2020-02-21T19:20:51.729Z</atom:updated>
            <content:encoded><![CDATA[<p>The world of sports is littered with data, analysis, stats, and pundits who regurgitate every possible interpretation of this information, yes even including the punditry of other pundit’s remarks. How meta. In this scope of paralysis by over analysis one could get lost in what is important versus just noise to further explain the game they love. As an avid soccer fan, I often find myself looking at visualizations which represents mass amounts of data, unfortunately none of which seems to help answer the question I was asking. One of the most challenging is trying to decipher just how good a player is, was, or can be based on base statistics taken. Why are some players seen as the world’s best? Are they really that much better than another player at the same position? What if they play different positions, how do I even compare? As you can see the rabbit hole is deep and you can find yourself lost quite quickly, in my case lost in an argument with a moderately inebriated Parisian over why the French Men’s National Team success built on more players than just some prolific goal scoring talents playing in the top leagues in Europe. At the time I decided to bury the hatchet, buy the man a beer and move on. I didn’t have a concise way to show why players that don’t fill the stat sheet can be so important, or why good players on bad teams are still good, or how even some players that seem good could actually be toxic in a team. Upon learning about the world of more in depth soccer analytics from companies like StatsBomb, Opta, Driblab, etc. I saw there was a better, more precise way to view the beautiful game.</p><p>The visualization I found the most fascinating was a radar chart. This visual tool is extremely powerful when deployed in the correct manner. We will explore the benefits and drawbacks of this later but in the meantime let’s explore how it works.</p><p>The code and subsequent documentation on this type of visualization is extensive and at the risk of boring, the key point is to understand the multiple variables can be plotted on this chart through each individual spike, with varying ranges(if desired), to represent either comparisons for individual points across those variables or as a comparison for different data relevant to that data. Below we can see some examples of how one could use the radar chart to show how they work with multiple factors on the same experiment over multiple experiments or more simply, below that, a budget showing allocated money versus actual spent. I would attest this type of visual is excellent in showing comparison over two subjects being examined in the same capacity. This becomes increasingly helpful to solve our soccer scenarios we discussed before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*wISs6Q7AgifY4P8e" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*gtFt-D9UudSwdt36" /></figure><p>Here is the ideal example of how a team could easily use some more abstract interpretations of data to evaluate an individual players performance on a season or to look at two different players in those categories to make inferences for a number of reasons for their team. In the first example we see some aggregated stats and baseline stats to help us understand the performance of the new darling of the Premier League, Teemu Pukki. Taking this directly from StatsBomb we see they have provided some base stats in shots, touches in the box, successful dribbles, etc., tangible data, to help us see how important, but often less evaluated stats can give clues to production and predictions for future performances. Also this can help explain anomalies in the data such as a bad run of luck (form for those who watch the sport) as he may be doing all the right things in terms of the production but the end product isn’t there. The expected targets (denoted by beginning with x) help aggregate larger amounts of data to back up the run of form point of what should be expected in terms of goals or assists using the data represented through some of the other points. Let’s be clear that this visual does not use the other variables directly to construct the expected targets, it is a proprietary algorithm with much more data, generally, but helps to plot close to one another to give a quick snapshot of a player’s performance at their position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*itZgTnR1taOGFjgD" /></figure><p>The second and arguably more powerful example is using the radar plot to compare players for a variety of reasons. Below you can see in short the recent purchase of Manchester City, Rodri, being compared to his mentor, from which he will eventually take the mantle, Fernandinho. Now here the metrics are completely different but, for players at this CDM (center defensive midfield) position they are a little more directed to what contributions are important from this role in a Pep Guardiola system. Fernandinho is in the twilight years of his career but contributes in some key ways, not things that show up in the stat sheet, but that contribute to Man City reaching for a three-peat in league title this year. Rodri, the 23 year old Madrilenian, was just purchase for a club record fee of around $80 million. Man City clearly did their research in why they believe he is worth that price. When comparing using our radar plot we can see some for the strengths found in the old guardsman of City, Rodri possess and even excels in contrast to his predecessor. Now, I cannot speak for City but, with my knowledge of the game, the Diego Simeone system Rodri came from, and style of play or formation these players have been in during the sample set leads me to believe that the glaring misses or differences these two players have in advanced statistics can be attributed to pieces other than the individual performance over the span of the data. Just for quick reference, I happen to know that Rodri was not deployed as a creator for Atletico last season, his teammate Antione Greizmann, played deeper and as more of the attacking creative force in the side, this would directly impact how many through balls Rodri played showing his lack of statistical output in that realm. Not his ability on display, merely how he was utilized within that system.</p><p>Some other quick ways teams could use this comparison is to put complimentary players into their squad to help cover some deficiencies of one player or amplify strengths of another. Out of the box thinking could imply that players who have certain attributes could be moved positionally depending on a system to better fit the mold of a team structure, think a central midfielder being pushed wide to help utilize pace or crossing ability. With data, the possibilities are endless and the radar plot is a great way to get that snapshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/0*nnTH8OAj0cfNXOpG" /></figure><p>Radar charts can be extremely powerful tools when used to show outliers, commonality, or comparison over several variables. Several drawback to this method is in the potential varying scales of the variables, comparing many different objects at the same time, or for representing any variable over time with multiple instances.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=312aa4eda4f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/radar-plots-scanning-the-data-landscape-312aa4eda4f4">Radar Plots, Scanning the Data Landscape</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hertz Guide to Visualizations: How to Generate Radar Plots]]></title>
            <link>https://medium.com/swlh/the-hertz-guide-to-visualizations-how-to-generate-radar-plots-ba24a2ab2e96?source=rss-dd3e25d12018------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba24a2ab2e96</guid>
            <dc:creator><![CDATA[Dirk Van Curan]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 16:25:07 GMT</pubDate>
            <atom:updated>2020-02-18T21:06:44.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*iS_2PS1LXxrj089twFVbeA.png" /><figcaption>Credit to StatsBomb</figcaption></figure><p>There comes a time in every person’s life where they must make a crucial decision, one that will determine not only future decisions but become engrained in the very fabric of their being. One must ponder the endless outcomes, predict unforeseen scenarios, and weigh the fate of this vital decision. There is no right or wrong, only a deep moment of self realization where you must choose how you identify; Warrior, Rogue, or Sorcerer.</p><p>Okay, so for some this may be a bit trivial, but for those avid gaming enthusiasts the choice of character in your first game becomes a bit of an identity you carry for the rest of your gaming life. In the early years these were your choices in the original Diablo, part of what is now a major franchise in the Blizzard universe. What made this different than other games (at least for myself, as it was the first more adult game I got my hands on) was you had the opportunity to decide what style of play suited you. Did you like the idea of being a brute force Warrior with great melee skills, a Rouge with deadly displays of archery, or a Sorcerer who conjured spells to inflict damage upon their opposition? Without much further thought countless games have reproduced, expanded upon, and improved this dynamic in games. Increasing peoples personal preference and style to improve their gaming experience only continues to get more advanced with every game launch. What I never realized until later was how this whole notion was working under the hood. Yes, it is pretty clear even to the outside observer that each character has a package of skills that varies them from one another. However, this determination and customization, as it has gotten more complex, has allowed players to blend further the abilities they enjoy to use most and tracking all of this information and having systems in place to let players build characteristics they like can be hard to see the comparisons between these classes. Luckily for you, radar plots do just this trick and have become a popular way in many fields to compare data over several factors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*ydfewauBFJ-nbJ9C.png" /></figure><p>Now over the years my tastes have changed and though I still love the wonderful world of RPGs my game of choice is the ever popular FIFA, a behemoth of a franchise. Just like my decision at a young age to be a Sorcerer and rely on my magic skills to win, I now choose players in my FIFA squad that show a high level of skills on the ball and ability to pass (and pace, always and forever pacy players for those who know the game well). Though different they are tracked the same way and I will show how radar plots can help map out key differences when evaluating these players.</p><p>I started with the FIFA 19 player dataset, released by the company and open for use, as a starting point. The first step was to write a code that converts a SQL database returns a pandas data frame and then converts it to a CSV file that contained the factors we want to evaluate between players. There were two ways to accomplish this task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_t5l-MnVakgMNScCgh--A.png" /><figcaption>Pandas data frame builder selecting 6 attributes of selected players.</figcaption></figure><p>Above we take the six attributes we are the most interested in, organized by the top performers in the `key_value` we specify and return a pandas data frame that has the top 20 players for said value. Another way we could do this if we wanted to just get a data frame directly to a CSV we could execute the code below and alter our SQL query to reflect what we would like to view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*Aq_vMOUzokvuGwDywpmziw.png" /></figure><p>This way will be the most efficient in getting directly into the query using the ability to create an engine through the `sqlalchemy` library and getting a CSV in the file location for executing your plots. Next we are going to take a trip to R as it proved to be the more robust and easier way to create radar plots.</p><p>The two key libraries we require will be `ggplot2` and `ggradar` for any plotting and development of radar plots. The `scales` library may also be useful but we did not use it in this scenario as all our data was already on a scale out of 100.</p><p>Once you have this info the next steps are quite simple using RStudio.</p><ol><li>Import libraries and load our CSV file and name it for plotting purposes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*XC_MIf_t1dvoIHpcX9JMHA.png" /></figure><p>2. Process our data. Here we need use ‘mutate_at’ to make transformation on all our variables at once. We also drop the ‘Player Name’ column(variable) as it is for identification and not plotting purposes. The last part, honestly the most frustrating aspect of using `ggplot`, was converting our perfectly scaled integers into floats, specifically a percentage. I attempted many other ways including scaling (did not scale the data correctly for this purpose) and this was the best way I found in getting our data into properly scaled floats, being they were all out of 100. By dividing each function of x by 100 we get the desired result. We also only want to take a max of 3 records, any more and the plot can get messy and hard to interpret. Here we take just the last 3 to get a bit more variety in abilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fXnIfQL8Y4d3Kmlz9KzLUQ.png" /></figure><p>3. The last step we have is to just plot the data and save it as an image file for future use. Plugging in our radar data into the `ggradar` function now plots our data on a radar plot while the `ggsave` function saves our plot as a separate PNG file that can be exported and used individually without having to run any code to replicate it each time. This becomes very useful for presentations where you just need to iterate over several different sets of data and save just the images for display quickly and easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*B7iVZhHmTE8hfOa95_aLtg.png" /></figure><p>And now we see the saved PNG file that can be saved to your project folder for easy access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLP1jWg7YNZngveOjU2O5w.png" /></figure><p>There you have it, a quick and easy way to plot several players and compare their attributes on a very easy to read radar plot. There are many more features for visuals, labels, and format that can be played with and I encourage you to do that. These can help in the workplace make key decisions for sussing out nuanced differences between several comparable points, helpful when trying to show off to your boss. At the very least now you can throw together a quick radar plot to impress people by showing intricate differences of your new character skills in the latest version of Diablo, Fallout, FIFA, or whatever your favorite game is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba24a2ab2e96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-hertz-guide-to-visualizations-how-to-generate-radar-plots-ba24a2ab2e96">The Hertz Guide to Visualizations: How to Generate Radar Plots</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Over Easy Eggs, Siberian Trains, and My Leap of Faith: How I Found my way to Data Science]]></title>
            <link>https://medium.com/@dirkvancuran/over-easy-eggs-siberian-trains-and-my-leap-of-faith-how-i-found-my-way-to-data-science-b2dae8de577c?source=rss-dd3e25d12018------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2dae8de577c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[soccer]]></category>
            <dc:creator><![CDATA[Dirk Van Curan]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 03:30:47 GMT</pubDate>
            <atom:updated>2019-08-30T16:11:24.041Z</atom:updated>
            <content:encoded><![CDATA[<h3>Over Easy Eggs, Siberian Trains, and My Leap of Faith: How I Found My Way to Data Science</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPhTs5CQqjh_1QyXixgsew.jpeg" /></figure><p>The sound of eggs sizzling on the eighteen burner stove, tomato bisque to its left, lacking salt but pungent in the ripe summer tomatoes, a typical morning as a chef in the Vail Valley has begun. I give directions in broken Spanish to, Maria and Isabella, who over the years have become my pseudo adopted kitchen mothers, to begin the sauce for the beef stroganoff, throwing in some quintessential kitchen humor to keep the mood light. Order sheets fill the wall and the only option is to slug down that fourth cup of coffee, sharpen our knives, and plug away at each individual item on what seems to be the endless list on the sheets before us. I love the pace, the chaos, the creativity of a kitchen, but often wonder if all the time taken by the dedicated staff is slightly in vane. Their effort ever appreciated but there is a sneaking feeling that somewhere in that mess of sheets, orders, customer reviews, food deliveries, labor budgets, menu designs, and events is a magic number that equates to the perfect business model. Profits, excellent work environment and hours, creative drive, and happy workers and owners all around, does that reality exist? Lurking like a shadow is the midst of the kitchen pandemonium, there were signals and patterns that hinted at my data driven future, through nothing more than understanding and being cautiously selective in how to run the business.</p><p>Chaos has many faces. I thrive in chaos, the hustle and bustle of a kitchen, stoves blazing, knives flashing ; or in the quiet study of players flying around a pitch at high speed, angles between them constantly changing, a ball the only tether between them all with the single goal of, well, a goal. Both ironically require a calm and collected head to make sure a consistent and effective end product is produced, be it a perfectly plated dish or a well executed play. The ability to step back and see the larger picture amid the chaos helps create that sense of calm, building up the mental picture while blocking out the unnecessary information, noise, or distractions that ultimately complicate and derail the greater goal. Naturally this took me to my next greatest adventure in life.</p><p>Coaching soccer may be where my skills most naturally flourish. I understand the game. Players, whether they know it or not, show me everything they have in mere moments of me watching them play, and not just their current ability but what they could be. Skills obviously can be learned, no arguing that point, but the moment a lanky fifteen year old takes an ever so silky touch to evade an attacker and notch a perfectly placed pass to his teammate, I know there is more this kid has to offer. I get it, six inches taller than all his peers, physically gifted, and loves to win a header; the modern day Rio Ferdinand ready to stifle opposing forwards, be a play wrecker. His role is to keep your team in the game long enough for the statistical improbability of a goal being scored by one of his teammates. It points to a fundamental misunderstanding of the team, players in the wrong positions because they fit an archaic model that doesn’t value the underlying skill involved. I see value, I get it and coaches across the US should too. Physicality and athleticism are wasted by not using the data and analysis surrounding the sport that suggests how those attributes can be expressed at their full potential. Now I wish I could say I knew why I could know that our talented fifteen year old center back may be better served as an attacking midfielder, a striker or even an inverted winger, cutting into the middle on his strong foot and devastating defenses, all I can say is was the shadow of my passion lurked behind me once again and until a certain book came into my life I would not know the love for the field I was to learn about existed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kXivKdbfiRXiR685-gEhUg.jpeg" /></figure><p>The train clattered along the Siberian tracks, the subtle bounce now familiar, even comforting, as I lounged in my bottom bunk, brandy in hand, on the Trans-Mongolian railway for the fifty-sixth hour. I was on the final pages of what had become the third consecutive book exploring the world of soccer from every possible angle imaginable. Little known to me at the time, but it was there, several hundred miles beyond Krasnoyarsk barreling through the summerkist tundra of the Siberian wilderness, a career in data science was what the culmination of my life experience, dissatisfaction with previous jobs, and passion had all been leading me towards. The tipping point was in fact that book, Soccermatics by David Sumpter, “mathematical adventures into the beautiful game,”. Ever been curious about how ant colonies can explain the way the Dutch national team dominated the European stage for nearly a decade? Sumpter has your answers. The love for the game coupled with an entirely new brand of thinking about the sport, data centric concepts that help teams, coaches, players, and owners make decisions on every level of the game immediately resonated with the way I had been analyzing things for years. Compound this with the fact that I was in the host nation for the 2018 World Cup witnessing some of the most talented players of this generation in action and I was hooked. How could I do more, learn more, become whatever it was that landed jobs at StatDNA which was purchased, under shrouds of secrecy, by Arsenal Football Club as Sumpter alludes to in his book? Honestly, I had no clue. I certainly was not a mathematics PhD with a rich history in doing such studies, nor did I have time to accomplish that, I needed to find my way into that world, and quick. All I could surmise from the book was StatDNA used complex data sets, algorithms, and models to help make on and off the field business decisions for Arsenal, that’s where my research started. After many late nights of research and a few too many soccer highlight videos I solved my question, data science.</p><p>I had inadvertently stumbled across a field that not only energized and intrigued me, but a field that was growing exponentially. This new path took all the analytical puzzles, beautiful visualizations, and data collection I’d studied and allowed me to use them within all the things I already had a love for in my life. Fast forward to week two of my bootcamp at Flatirons School for Data Science, I still love it. It’s hard, very hard, but more rewarding than many of the things I have been paid for in my life. Beyond the knowledge, skills, and career that I will gain from this leap of faith, the way of thinking helps reconcile nearly twenty years of jobs, hobbies, and just plain weird questions I have posed out of curiosity. Is there a common variable that all our most profitable catering clients share ? Can you develop an algorithm that helps build a youth soccer team based on a series of statistical inputs? Can you create a stunning visualization demonstrating the formational changes in soccer over the last 140 years? The answer is yes and I fully intend to discover each.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2dae8de577c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>