<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/whats-the-difference-between-machine-learning-statistics-and-data-mining/"></div></div><div><a data-url="http://www.r-bloggers.com/whats-the-difference-between-machine-learning-statistics-and-data-mining/" data-counturl="http://www.r-bloggers.com/whats-the-difference-between-machine-learning-statistics-and-data-mining/" data-count="horizontal" data-text="What’s the difference between machine learning, statistics, and data mining?" 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/difference-machine-learning-statistics-data-mining/"> 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>Over the last few blog posts, I’ve discussed some of the basics of what machine learning is and why it’s important: </p>
<p>– <a target="_blank" href="http://www.sharpsightlabs.com/machine-learning-google-rethink/">Why machine learning will reshape software engineering</a><br>
– <a target="_blank" href="http://www.sharpsightlabs.com/one-concept-machine-learning/">What is the core task of machine learning</a><br>
– <a target="_blank" href="http://www.sharpsightlabs.com/quick-introduction-machine-learning-r-caret/">How to get started in machine learning in R</a></p>
<p>Throughout those posts, I’ve been using the following definition of machine learning: creating computational systems that learn from data in order to make predictions and inferences.</p>
<p>However, machine learning isn’t the only subject in which we use data for prediction and inference. Anyone who’s taken an introductory statistics class has heard a similar definition about <i>statistics</i> itself. And if you talk to someone who works in <i>data-mining</i>, you’ll hear the same thing: data mining is about using data to make predictions and draw conclusions from data.</p>
<p>This raises the question: <b>what is the difference between machine learning, statistics, and data mining?</b></p>
<p>The long answer has a bit of nuance (which we’ll discuss soon), but the short answer answer is very simple: machine learning, statistical learning, and data mining are <i>almost exactly the same</i>. </p>
<p> </p>
<h2>An expert opinion: there is no difference</h2>
<p>Larry Wasserman wrote a blog post about this a few years ago. If you’re not familiar with him, <a target="_blank" href="http://www.stat.cmu.edu/~larry/">Wasserman is a professor in both the Department of Statistics and in the Machine Learning Department</a> at Carnegie Mellon, one of the premier universities for stats and ML. Moreover, I’ll point out that Carnegie Mellon is one of the few universities that has a department devoted exclusively to machine learning. Given that Wasserman is officially a professor in ML <i>and</i> statistics at one of the best technical universities in the world, I’d say that he’s uniquely positioned to answer this question.</p>
<p>(As an aside: Wasserman also wrote the confidently titled book, <i><a target="_blank" href="http://www.sharpsightlabs.com/difference-machine-learning-statistics-data-mining/amzn.com/0387402721">All of Statistics</a></i>. It’s not for a beginner, but for those of you with at least an intermediate background in math, <i>All of Statistics</i> will be excellent preparation for ML.)</p>
<p>According to Wasserman, what’s the difference?</p>
<blockquote><p>“The short answer is: None. They are … concerned with the same question: how do we learn from data?”</p>
</blockquote>
<p>To be clear, Wasserman was specifically addressing the difference between “machine learning” and “statistics” (he didn’t mention data mining). However, I’ll add that his answer applies equally well to “data mining”.</p>
<p>So to echo what Wasserman wrote, and re-state the point: machine learning, statistics, and data mining are mostly the same.</p>
<p>Having said that, Wasserman notes that if you look at some of the details, there is a “more nuanced” answer that reveals minor differences.</p>
<p>With that in mind, let’s review the major similarities as well as the differences, both to prove the point that they really are extremely similar, and also to give you the more nuanced view.</p>
<p> </p>
<h2>The core similarities between ML, stats, and data mining</h2>
<p>First, let’s examine the what makes machine learning, statistics, and data mining fundamentally similar.</p>
<h3>Nearly identical subject-matter and toolkits</h3>
<p>The primary reason that these three subjects are effectively the same is that they cover almost exactly the same material and use almost exactly the same techniques.</p>
<p>Let me give you an example. If you examine the table of contents of <i><a href="http://www.r-bloggers.com/whats-the-difference-between-machine-learning-statistics-and-data-mining/amzn.com/B00DM0VX60">An Introduction to Statistical Learning</a></i>, you’ll find chapters on regression, classification, resampling, and non-linear methods. If you examine the contents a bit more closely, you’ll see sections concerning linear regression, logistic regression, the bias-variance tradeoff, neural networks, and support vector machines.</p>
<p>Now take a look a the <a href="https://www.coursera.org/learn/machine-learning">syllabus for Andrew Ng’s machine learning course on Coursera</a>, and you’ll see all of the topics I just listed. The material covered in Ng’s machine learning course is almost exactly the same as the material covered in ISL; said differently, the material covered by the “statistical learning” experts is the same as that covered by the “machine learning” experts. With only minor exceptions, the material is exactly the same.</p>
<p>If you perform the same exercise and look at the table of contents for the book <i><a target="_blank" href="http://www.sharpsightlabs.com/difference-machine-learning-statistics-data-mining/amzn.com/B004H1TB1W">Data Mining</a></i> by Witten, Frank, and Hall, you’ll find <i>almost exactly the same material</i>. Again: regression, classification, neural networks, etc. </p>
<p>So to summarize, the material covered in machine learning, statistics (and statistical learning in particular), and data mining are so similar that they’re <i>nearly identical</i>.</p>
<h3>The three cultures: why there are three identical subjects with different names</h3>
<p>So what gives? They’re nearly identical! Why are there three different subjects that cover the exact same material (much to the confusion of data science newbies)?</p>
<p>The best answer here is that even though they use the same methods, they evolved as different cultures, so they have different histories, nomenclature, notation, and philosophical perspectives.</p>
<p>Let me give you an analogy: “machine learning” and “statistics” are like identical twins (triplets, if you want to include “data mining” in the analogy). They are quite nearly identical. And in fact, at a deep level, <i>they are identical</i>: they “share the same DNA” as it were. </p>
<p>However, even though identical twins are identical in some sense, they might still dress differently and hang out with different people. </p>
<p>To relate this to the topic of ML, statistics, and data mining, what I mean by “dressed differently” is that they use different words and terms, and have different notation. Much like human twins that have different groups of friends, people in ML, stats, and data mining also have different and separate social groups: they exist in different academic departments (in most universities), typically publish in different journals, and have different conferences and events.</p>
<p> </p>
<h2>The core <i>differences</i> between ML, stats, and data mining</h2>
<p>Let’s examine these differences a little more closely.</p>
<h3>They emphasize different things</h3>
<p>Perhaps the biggest difference between these three fields is their <i>emphasis</i>. Although they use almost the exact same methods, they tend to emphasize different things. A different way of saying this, is that although they use almost exactly the same methods, tools, and techniques, these three fields have philosophical differences concerning how and when those methods should be applied.</p>
<p>In his blog post, Wasserman mentioned these different emphases, noting that “<a href="https://normaldeviate.wordpress.com/2012/06/12/statistics-versus-machine-learning-5-2/">statistics emphasizes formal statistical inference (confidence intervals, hypothesis tests, optimal estimators) in low dimensional problems</a>.” (To be clear, in this quote, Wasserman seems to be talking about statistics broadly, and not statistical learning in particular.) </p>
<p>Wasserman went on to note that machine learning is more focused on making accurate predictions – a sentiment <a target="_blank" href="http://andrewgelman.com/2008/12/03/machine_learnin/">echoed by Professor Andrew Gelman of Columbia University</a>. Because of this purported emphasis on prediction above all, some people <a target="_blank" href="http://blog.revolutionanalytics.com/2009/09/the-difference-between-statistics-and-machine-learning.html">characterize ML as being less “strict” about testing assumptions</a>; that in ML, making good predictions trumps more formal considerations like testing assumptions, etc.</p>
<h3>Machine learning is focused on software and systems</h3>
<p>Actually, I’ll go a step further and state that machine learning isn’t just more focused on making predictions, but is more focused on building <i>software systems</i> that make predictions. That is, among ML practitioners (as opposed to statisticians), there is a much stronger emphasis on software engineering. This makes sense considering the historical growth of machine learning as a sub-discipline of computer science; historically, machine learning developed because computer scientists needed a way to create computer programs that learn from data.</p>
<p>This greater emphasis on systems (i.e., computer programs that learn from data) leads some people to argue that ML is more of an “engineering discipline” whereas statistics is more of a “mathematical” discipline. Again though, I’ll repeat my caveat that these are very broad generalizations. </p>
<h3>The purpose of data mining is finding patterns in databases</h3>
<p>How about data mining?</p>
<p>As I already noted, the tools that data miners use are almost exactly the same as the tools used by statisticians and machine learning experts. The major difference is how and why these tools are used. So how do data miners apply these techniques, and to what end?</p>
<p>Here’s its quite helpful to look at the name “data mining.”</p>
<p>As the name implies, “data mining” is akin to mining. In a mining operation – for example a gold mining operation – large piles of dirt and material are extracted from the mine and then the miners sift through the dirt to find nuggets of gold. Here you can think of a data warehouse as the mine: it contains mostly useless data. This useless data is like the “dirt and rubble” in a mine. Then after being extracted from the database, this “useless” data needs to be “mined” for <i><b>valuable insight</b></i>.</p>
<p>Sometimes, finding these insights requires simple exploratory data analysis. Sometimes it requires more formal statistical techniques like hypothesis testing. And sometimes it requires building models – basically the same types of models used in machine learning and statistical learning.</p>
<p>So again, we find that the tools are almost identical, but the purpose is slightly different: finding valuable insights in large databases.</p>
<p>To summarize: that although ML, stats, and data mining use the same methods, they have slightly different philosophies about how, when, and why to apply those methods.</p>
<h3>They use different words and terminology</h3>
<p>Not only do they have slightly different emphases and purposes, they also use different terminology.</p>
<p>Professor Rob Tibshirani – one of the authors of the excellent book <i><a target="_blank" href="http://www.sharpsightlabs.com/difference-machine-learning-statistics-data-mining/amzn.com/B00DM0VX60">An Introduction to Statistical Learning</a></i> – created a glossary comparing <a target="_blank" href="http://statweb.stanford.edu/~tibs/stat315a/glossary.pdf">several major terms in machine learning vs statistics</a>. </p>
<p><img sizes="(max-width: 600px) 100vw, 600px" srcset="http://i2.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-03_difference-between-machine-learning-and-statistics-1-600x342.png?resize=456%2C260 600w, http://www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-03_difference-between-machine-learning-and-statistics-1.png 609w" alt="2016-05-03_difference-between-machine-learning-and-statistics" class="wp-image-2552" src="http://i2.wp.com/www.sharpsightlabs.com/wp-content/uploads/2016/05/2016-05-03_difference-between-machine-learning-and-statistics-1-600x342.png?resize=456%2C260" data-recalc-dims="1"></p>
<p>While a few of these comparisons are a bit tongue-in-cheek, the list is instructive. Most specifically, the chart drives home the point I’ve been making in this post: machine learning and statistics are quite nearly identical. They are so similar that they discuss almost all of the same topics, methods, and concepts, but just have different names for many of them.</p>
<p>Having said that, I want to add that frequently these terms are <i>used interchangeably</i> by people in stats and machine learning (as well as data mining).</p>
<p>For example, if you examine Andrew Ng’s machine learning course, you’ll find that he frequently uses the term “parameter” instead of “weight”. Although most people would consider Ng a member of the “machine learning culture”, but he readily uses the terms attributed to the “statistical learning culture.” So, it appears that even though there are slight cultural differences, even those differences are insubstantial; members of the “different cultures”, basically use terminology interchangeably.</p>
<h3>ML, stats, and data mining tend to favor different tools</h3>
<p>Next, let’s talk about tools. There are some very rough generalizations we can make about tool choices between statisticians, data miners, and machine learning practitioners (but as I’ve pointed out several times, these are sort of hasty generalizations).</p>
<p>In the machine learning camp, you’re more likely to see Python and Matlab. If you do a quick review of the major courses and texts on machine learning, many of them use one of these two languages. For example, Andrew Ng’s course teaches ML labs in Matlab, as do several other excellent books by authors such as <a href="http://www.amazon.com/Bayesian-Reasoning-Machine-Learning-Barber/dp/0521518148">Barber</a> or <a target="_blank" href="https://www.cs.ubc.ca/~murphyk/MLbook/">Murphy</a>.</p>
<p>Outside of academia, and particularly in San Francisco/Silicon Valley, you’ll often see Python as a primary ML tool of choice. </p>
<p>On the statistics side, you’re much more likely to see R. You’re very likely to see R used as the primary programming language for probability and statistics classes at colleges and universities. Also, several of the best books on probability, statistics, Bayesian statistics, and statistical learning use R for their exercises and labs.</p>
<p>I’ll repeat though that these are very hasty generalizations. You’ll see statisticians using Matlab, and you’ll certainly see machine learning practitioners using R. Moreover, as ML, stats, and data mining practitioners begin to cooperate and these fields begin to converge, you’re seeing people learn <i>several</i> tools. Many of the best people in stats and ML know python <i>and</i> R, as well as other tools.</p>
<p>And of course, the list certainly isn’t limited to Python, R, and Matlab. In both academia and industry, you’ll find statisticians, ML experts, and data miners using a broad array of other technologies like SAS, SPSS, c++, Java and others. </p>
<p>So while I’ll suggest that Python and Matlab are more popular among the ML crowd and that R is more popular among statisticians, again, this is really just a quick-and-dirty generalization. </p>
<h3>ML and data mining typically work on “bigger” data than statistics</h3>
<p>Finally, let’s talk briefly about the size and scale of the problems these different groups work on.</p>
<p>The general consensus among several of the prominent professors mentioned above is that machine learning tends to emphasize “larger scale” problems than statistics.</p>
<p>Wasserman noted in his blog post that in contrast to statistics, machine learning emphasizes “high dimension” prediction problems (which presumably means that machine learning emphasizes problems with a larger number of predictor variables).</p>
<p>Andrew Gelman – who is also a very well respected professor of statistics – similarly implies that statistics emphasizes smaller scale problems: “My impression is that <a target="_blank" href="http://andrewgelman.com/2008/12/03/machine_learnin/">computer scientists work on more complicated problems and bigger datasets, in general, than statisticians do</a>.”</p>
<p>And finally, data mining also emphasizes large scale data. While I won’t offer any quotes here, I can say from personal experience that people who identify as “data miners” commonly work with databases that have millions, even hundreds of millions or billions of observations (although, it’s quite common to subset these large datasets down, to take samples, etc).</p>
<p> </p>
<h2>Again: there are far more similarities than differences</h2>
<p>It should seem clear by now that machine learning, statistics, and data mining are all fundamentally similar. And to the extent that they have differences, those differences are – in the words of Revolution Analytics’ David Smith – <a href="http://blog.revolutionanalytics.com/2009/09/the-difference-between-statistics-and-machine-learning.html">more superficial than substantive</a>.</p>
<p>Moreover, even though there are differences – particularly philosophical differences – you need to realize that these fields are <i><a href="https://normaldeviate.wordpress.com/2012/06/12/statistics-versus-machine-learning-5-2/">beginning to converge</a></i>. As Wasserman noted in his blog article, it’s clear that members of these communities are beginning to communicate with one another, and the lines between these fields are becoming increasingly blurred. So even if we can identify some differences, those differences may become much less pronounced over time.</p>
<p>What this means for you, if you’re getting started with data science, is that you can safely treat machine learning, statistics, and data mining as “the same.” Learn the “surface level” differences so you can communicate with people from the “different cultures,” but ultimately, treat machine learning, statistics, and data mining each as subjects that you can learn from as you work to master data science.</p>
<p>The post <a target="_blank" rel="nofollow" href="http://www.sharpsightlabs.com/difference-machine-learning-statistics-data-mining/">What’s the difference between machine learning, statistics, and data mining?</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/whats-the-difference-between-machine-learning-statistics-and-data-mining/"></div></div><div><a data-url="http://www.r-bloggers.com/whats-the-difference-between-machine-learning-statistics-and-data-mining/" data-counturl="http://www.r-bloggers.com/whats-the-difference-between-machine-learning-statistics-and-data-mining/" data-count="vertical" data-text="What’s the difference between machine learning, statistics, and data mining?" 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/difference-machine-learning-statistics-data-mining/"> 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/UGtw16rwhcc"></a></div>