<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/the-real-prerequisite-for-machine-learning-isnt-math-its-data-analysis/"></div></div><div><a data-url="http://www.r-bloggers.com/the-real-prerequisite-for-machine-learning-isnt-math-its-data-analysis/" data-counturl="http://www.r-bloggers.com/the-real-prerequisite-for-machine-learning-isnt-math-its-data-analysis/" data-count="horizontal" data-text="The real prerequisite for machine learning isn’t math, it’s data analysis" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.sharpsightlabs.com/machine-learning-prerequisite-isnt-math/"> r-bloggers – SHARP SIGHT LABS</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>When beginners <a href="http://www.sharpsightlabs.com/quick-introduction-machine-learning-r-caret/">get started with machine learning</a>, the inevitable question is “what are the prerequisites? What do I need to know to get started?”</p>
<p>And once they start researching, beginners frequently find well-intentioned but disheartening advice, like the following:</p>
<blockquote><p><i>You need to master math. You need all of the following:<br>
– Calculus<br>
– Differential equations<br>
– Mathematical statistics<br>
– Optimization<br>
– Algorithm analysis<br>
– and<br>
– and<br>
– and ……..<br>
</i></p>
</blockquote>
<p>A list like this is enough to intimidate anyone but a person with an advanced math degree. </p>
<p>It’s unfortunate, because I think a lot of beginners lose heart and are scared away by this advice.</p>
<p>If you’re intimidated by the math, I have some good news for you: in order to get started building machine learning models (as opposed to doing machine learning <i>theory</i>), you need less math background than you think (and almost certainly less math than you’ve been told that you need). If you’re interested in being a machine learning <i>practitioner</i>, you don’t need a lot of advanced mathematics to get started.</p>
<p>But you’re not entirely off the hook. </p>
<p>There are still prerequisites. In fact, even if you can get by without having a masterful understanding of calculus and linear algebra, there are <i>other prerequisites</i> that you absolutely need to know (thankfully, the real prerequisites are much easier to master).</p>
<h2>Math is not the primary prerequisite for machine learning</h2>
<p>If you’re a beginner and your goal is to work in industry or business, math is not the primary prerequisite for machine learning. That probably stands in opposition to what you’ve heard in the past, so let me explain.</p>
<p>Most advice on machine learning is from people who learned data science in an academic environment. </p>
<p>Before I go on, I want to emphasize that this is not a jab. Using the term “academic” is not meant to be an insult. People who work in academia frequently build the tools that people in industry use. And through research, they also push the field forward. I admire these people.</p>
<p>However, there are different incentives in an academic environment. Those incentives shape the mindset and work of people in academia differently than the incentives of people who work in industry. Moreover, the incentives shape the training of people entering academia: students in an academic environment are trained to be productive largely as scholars and researchers.</p>
<p>In an academic environment, individuals are rewarded (largely) for producing novel research, and in the context of ML, that truly does require a deep understanding of the mathematics that underlies machine learning and statistics.</p>
<p>In industry though, in most cases, the primary rewards aren’t for innovation and novelty. In industry, you’re rewarded for creating business value. In most cases, particularly at entry levels, this means applying existing, “off the shelf” tools. The critical fact here, is that existing tools almost all take care of the math for you.</p>
<h3>“Off the shelf” tools take care of the math for you</h3>
<p>Almost all of the common machine learning libraries and tools take care of the hard math for you. This includes R’s caret package as well as Python’s scikit-learn. This means that it’s not absolutely necessary to know linear algebra and calculus to get them to work.</p>
<p>There’s a good quote about this by Andrew Gelman in his <a href="http://amzn.com/dp/052168689X">highly regarded book on regression</a>:</p>
<blockquote><p>“Most books define regression in terms of matrix operations. We avoid much of this matrix algebra for the simple reason that it is now done automatically by computers …. [the computations] are important but can be done out of sight of the user.” </p>
</blockquote>
<p>Keep in mind that Gelman is a very well regarded statistician. He’s a <a href="http://www.stat.columbia.edu/~gelman/">statistics professor at Columbia University</a> (an Ivy League university) and he’s written several best-in-class books on topics like regression and Bayesian statistics. And while this quote deals specifically with regression, the same principle applies to machine learning, broadly speaking.</p>
<p>This point must be emphasized: modern statistical and machine learning software takes care of much of the mathematics for you.</p>
<p>This means that it’s possible for you to build a good predictive model without almost any knowledge of calculus or linear algebra. If you’re still not convinced of this, then take a careful look at <a href="http://amzn.com/dp/B00DM0VX60"><i>An Introduction to Statistical Learning</i></a> or <a href="http://amzn.com/dp/B00K15TZU0"><i>Applied Predictive Modeling</i></a>. These are two excellent books on machine learning (AKA, statistical learning; AKA, model building). There’s almost no calculus or linear algebra in either of them.</p>
<p>This is great news for a beginning data scientist who wants to get started with machine learning. You can call an R function from caret or a function from Python’s scikit-learn and it will take care of all of the mathematics for you. Knowing how all that mathematics works “under the hood” is neither necessary nor sufficient for building predictive models as a beginner.</p>
<p>To be clear, I’m not suggesting that these tools do all the work for you. You still need to be well-practiced at <i>applying them</i>. You need to have a solid understanding of the heuristics, best practices, and rules of thumb associated with making them work well. Again though, much of the knowledge required to make these tools perform well does not require matrix algebra and calculus.</p>
<h3>Most data scientists don’t do much math</h3>
<p>I think many beginners have an inaccurate image in their minds of what data scientists actually do. They imagine that data scientists spend their days pensively standing at a whiteboard, scribbling math equations between sips of coffee.</p>
<p><img sizes="(max-width: 600px) 100vw, 600px" srcset="http://i1.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_blackboard-600x343.jpg?resize=456%2C261 600w, http://www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_blackboard-768x439.jpg 768w, http://www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_blackboard-1024x585.jpg 1024w" alt="2016-05-07_data-analysis-is-the-prerequisite_blackboard" class="wp-image-2578" src="http://i1.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_blackboard-600x343.jpg?resize=456%2C261" data-recalc-dims="1"></p>
<p>That’s just not accurate.</p>
<p>So how much math does a data scientist actually <i>do</i>?</p>
<p>If we’re talking about entry level data scientists to intermediate level data scientists, I’d estimate that they spend less than 5% of their time actually doing mathematics. And quite frankly, 5% is probably a bit generous.</p>
<p>Even if we talk about machine learning only, you’ll still only spend less than 5% of your time doing math. (And quite frankly, most entry-level data scientists won’t spend much of their time on ML.) When you build a model, you will spend very, very little time doing any math.</p>
<p>The reality is that in industry, data scientists just don’t do much higher level math.</p>
<p><img sizes="(max-width: 600px) 100vw, 600px" srcset="http://i0.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_what-a-data-scientist-is-600x399.png?resize=456%2C303 600w, http://www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_what-a-data-scientist-is.png 654w" alt="2016-05-07_data-analysis-is-the-prerequisite_what-a-data-scientist-is" class="wp-image-2580" src="http://i0.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_what-a-data-scientist-is-600x399.png?resize=456%2C303" data-recalc-dims="1"></p>
<p>But most data scientists <i>do</i> spend a huge amount of their time getting data, cleaning data, and exploring data. This applies both to data science generally, and machine learning specifically; and it particularly applies to beginners.</p>
<p>If you want to get started with machine learning, the real prerequisite skill that you need to learn is <i>data analysis</i>. </p>
<h2>The main prerequisite for machine learning is data analysis</h2>
<p>For beginning practitioners (i.e., hackers, coders, software engineers, and people working as data scientists in business and industry) you don’t need to know that much calculus, linear algebra, or other college-level math to get things done.</p>
<p>But you absolutely <i>need</i> to to know <b>data analysis</b>. </p>
<p><a href="http://www.sharpsightlabs.com/start-with-data-visualization-manipulation/">Data analysis is the first skill you need</a> in order to get things done. </p>
<p>It’s the real prerequisite for getting started with machine learning as a practitioner.</p>
<p>(Note that as this post continues, I’m going to use the term “data analysis” as a shorthand for “getting data, cleaning data, aggregating data, exploring data, and visualizing data.”)</p>
<p> This is particularly true for beginners. Although at high levels there are some data scientists who need deep mathematical skill, at a beginning level – I repeat – you do not need to know calculus and linear algebra in order to build a model that makes accurate predictions.</p>
<p>But it will be nearly impossible to build a model if you don’t have <a target="_blank" href="http://www.sharpsightlabs.com/data-analysis-example-r-supercars-part2/">solid skills with data analysis</a>. </p>
<p>Even if you use “off the shelf” tools like R’s caret and Python’s scikit-learn – tools that do much of the hard math for you – you won’t be able to make these tools work without a solid understanding of exploratory data analysis and data visualization. In order to properly apply tools like caret and scikit-learn, you’ll need to be able to gather, prepare, and explore your data. You a need solid understanding of data analysis.</p>
<h2>80% of your work will be data preparation, EDA, and visualization</h2>
<p>It’s common knowledge among data scientists that “<a href="http://blog.revolutionanalytics.com/2014/08/data-cleaning-is-a-critical-part-of-the-data-science-process.html">80% of your work will be data preparation</a>.” This is true, although I want to clarify what this means. When people say that “80% of your work will be data preparation” that’s sort of a shorthand way of saying “80% of your work will be getting data (from databases, spreadsheets, flat-files), performing exploratory data analysis, reshaping data, <a href="http://www.sharpsightlabs.com/data-visualizations-are-tools-and-what-youre-building/">visualizing data to find insights</a>, and using EDA.” </p>
<p>While this figure is about data science in general, it also applies to machine learning specifically: when you’re building machine learning models, 80% of your time will be spent getting data, exploring it, cleaning it, and analyzing results (using data visualization).</p>
<p><img sizes="(max-width: 600px) 100vw, 600px" srcset="http://i2.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_how-we-use-dataAnalysis-600x186.png?resize=456%2C141 600w, http://www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_how-we-use-dataAnalysis.png 623w" alt="2016-05-07_data-analysis-is-the-prerequisite_how-we-use-dataAnalysis" class="wp-image-2579" src="http://i2.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-07_data-analysis-is-the-prerequisite_how-we-use-dataAnalysis-600x186.png?resize=456%2C141" data-recalc-dims="1"></p>
<p> To be a little more blunt about it, if you don’t know calculus and linear algebra, you can still build useful models, but if you aren’t really proficient with data analysis, you’re screwed.</p>
<h3>For beginning practitioners, data hacking beats math</h3>
<p>This isn’t just a glib statement. Many, if not most of the best data scientists and model-builders I know at several Fortune 500 companies aren’t particularly masterful at calculus, linear algebra or advanced math. But they are exceptional at data analysis.</p>
<p>Here’s a personal example: one of the best predictive modelers I’ve worked with knows very little advanced math. </p>
<p>To be clear, she has a PhD, but her PhD is in Social Psychology. She didn’t receive training in any serious math. Based on working with her and talking with her for several years, I’m confident that her knowledge of calculus and linear algebra was very, very limited.</p>
<p>But, she definitely knew her way around a dataset. She knew how to explore and prepare a dataset to make machine learning algorithms work <i>in a practical setting</i>.</p>
<p>To be fair, any person with a PhD in machine learning would have smoked her when it came to explaining the underlying mathematics. She would have withered under questioning about the deep mathematical underpinnings of k-means or support vector machines. But, those things weren’t her strengths. She was a true practitioner, and she was paid quite handsomely, because she made accurate predictions. No one gave a damn about her math chops. She got results, and clients paid.</p>
<p>I want to emphasize that this particular friend isn’t a unicorn. I know dozens of people like this (she’s just a good example). Moreover, these practitioners aren’t employed at a “low end” companies. They all work at places like Apple and other top-tier Fortune 500 companies; companies that are crushing their goals and generating huge profits. These people are solid employees at excellent companies.</p>
<h2>Math is important, but not for entry level practitioners</h2>
<p>Even as I write this, I’m imagining the hate-mail and condemnations from the people who would insist that you that you <i>need lots of math</i>. </p>
<p>So before I overstate my case, and potentially alienate a large group of people that I respect and admire, let me be clear: math is important. And in particular, there are some circumstances where math is very important.</p>
<p>First of all, math is particularly important if you’re doing machine learning research in an academic setting. </p>
<p>Second, in industry, math is also important for a small subset of more advanced data scientists. There are people in industry at high levels who are also using advanced math on a regular basis. In particular, there are people at companies like Google and Facebook who are pushing the boundaries of machine learning – people working on bleeding edge tools. These people almost certainly employ calculus, linear algebra, and more advanced math routinely in their work.</p>
<p>But in this article, I’m not talking about senior level data scientists working on cutting edge tools. And I’m not talking about academic work (as much as I admire academics and theorists for developing the techniques that we use on a daily basis).</p>
<p>I’m talking about entry level data scientists. I’m talking about people who are just getting started and trying to find a path at the very beginning stages.</p>
<h3>Beginners do need some math for machine learning</h3>
<p>I’ll also clarify and say that even for the beginners that I’m addressing in this article, you do need <i>some</i> math.</p>
<p>I’ll write my full advice in another blog post, but I’ll briefly summarize it here: to get started learning practical machine learning, an entry level data scientist needs to have basic comfort working with numbers, calculating percentages, etc. You need at least as much math skill as a college freshman at a good university. You’ll also need knowledge of basic statistics … about as much knowledge as you’d get in a basic “Introduction to Statistics” course. That is, you need to understand concepts like mean, standard deviation, variance, and other things you’d learn in an intro stats class.</p>
<p>However, when people tell you that you absolutely need to know calculus, differential equations, optimization theory, linear algebra, <i>and more</i> just to get started building machine learning models, this is flat out wrong.</p>
<h2>Your first milestone: master data analysis</h2>
<p>What does this mean for you, the beginning data scientist?</p>
<p>The take-away here is that for beginning data scientists and ML <i>practitioners</i>, data expertise beats math expertise. You’ll get much farther if you really know your way around a dataset, than if you know calculus and college-level math.</p>
<p>So if your goal is to get a job in business or industry, your first milestone is mastering data analysis.</p>
<p>It’s not mastering calculus. </p>
<p>It’s not being able to write proofs or grind through math problems.</p>
<p>It’s data analysis. </p>
<p>You need to master how to gather data, explore it, and prepare it. This means that you need to master data visualization and data wrangling (including aggregation). Then you need to be able to use data visualization and data wrangling together to be able to perform exploratory data analysis.</p>
<p>If you’re working in R, then I recommend that you learn the following:<br>
– ggplot2 for data visualization, including <a href="http://www.sharpsightlabs.com/how-to-create-a-scatterplot-in-r/">basic visualizations like scatterplots</a>, histograms, bar charts<br>
– <a href="http://www.sharpsightlabs.com/dplyr-intro-data-manipulation-with-r/">dplyr for aggregating and reshaping a dataset</a><br>
– Learn how to use <a href="http://www.sharpsightlabs.com/data-analysis-example-r-supercars-part2/">ggplot and dplyr together for exploratory data analysis</a></p>
<p>If you’re working in Python, learn the following:<br>
– Base python<br>
– Pandas, for aggregating and reshaping your data<br>
– Matplotlib for data visualization. In particular, learn pyplot for basic visualizations, and use <a href="https://stanford.edu/~mwaskom/software/seaborn/">Seaborn for more advanced statistical graphics</a><br>
– Learn to use Pandas and data visualizations together for exploratory data analysis.</p>
<p>If you’re a beginner, and you want to get started with machine learning, you can get by without knowing calculus and linear algebra, but you absolutely can’t get by without data analysis. </p>
<p>If you master data analysis, you’ll be well prepared to start building machine learning models that work.</p>
<p>The post <a target="_blank" rel="nofollow" href="http://www.sharpsightlabs.com/machine-learning-prerequisite-isnt-math/">The real prerequisite for machine learning isn’t math, it’s data analysis</a> appeared first on <a target="_blank" rel="nofollow" href="http://www.sharpsightlabs.com/">SHARP SIGHT LABS</a>.</p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/the-real-prerequisite-for-machine-learning-isnt-math-its-data-analysis/"></div></div><div><a data-url="http://www.r-bloggers.com/the-real-prerequisite-for-machine-learning-isnt-math-its-data-analysis/" data-counturl="http://www.r-bloggers.com/the-real-prerequisite-for-machine-learning-isnt-math-its-data-analysis/" data-count="vertical" data-text="The real prerequisite for machine learning isn’t math, it’s data analysis" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.sharpsightlabs.com/machine-learning-prerequisite-isnt-math/"> r-bloggers – SHARP SIGHT LABS</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/rrN7FtfdkN8"></a></div>