Posts

Supervised vs. Unsupervised Learning

Image
  This week I have decided to take an in depth look at the two main types of machine learning, supervised and unsupervised.  While this is a topic that was covered in my recent data science course, I found myself particularly curious about it and wanted to dig in a bit deeper.  There are a few particular angles from which I would like to approach this subject, so I will lay out my plans here.  First and most importantly, I will provide a satisfactory definition for each of these two terms.  I will then examine the key differences between the two types of machine learning.   Finally, I will examine several different examples and use cases for both of these.  To provide a bit of context for the conversation, machine learning, both supervised and unsupervised, is essentially the use of an algorithm to detect certain patterns within a data set.  While it might sound like there isn't much leeway within that category for significant differences bet...

Iris Classification

Image
  In 1936, Ronald Fisher published his paper  The use of multiple measurements in taxonomic problems , the basis of which was a small data set containing some attributes of iris flowers.  The data set is very straightforward, and describes 150 flowers with four measurements each:  sepal length, sepal width, petal length, and petal width.  Additionally, it lists the species of each iris, of which there were three different types equally represented in the data.  These species are Iris setosa, Iris virginica, and Iris versicolor.  Despite the simple nature of this data set, it would go on to become one of the most commonly used within machine learning, and it remains a standard test case for classification techniques to this day.  It is also the data set that I have decided to examine for my most recent project.  Now to explain a bit about this project.  The primary impetus for it was very basic:  I have worked almost exclusively...

A/B Testing and Statistical Significance

Image
As a future data scientist currently looking for opportunities on places like LinkedIn, I read a large number job postings related to the field.  Occasionally something I see in these job posts will be a surprise to me, and this is one of those cases.  The surprise in question here was the massive amount of job postings that specifically require or recommend knowledge of A/B testing.  During my highly anecdotal and biased research into the subject while looking for job listings, this topic seemed to pop up more frequently than any other technical skill.  While I was initially surprised to see it, after giving it some thought I came to see that this topic is highly relevant and perhaps even under-appreciated by the average data scientist hopeful.  I would like to use this space to give an overview on A/B testing, clarify where it came from and why it continues to be relevant, and discuss the more technical aspects of it (especially with regard to statistical sign...

Revisiting Regression

 After discussing classification algorithms in last week's blog post, I felt that it would only be fair to also dedicate a post to explaining regression in greater detail.  Although my last two projects dealt with this type of problem, I never got around to discussing the particulars of regression.  So in this post, I will explain the primary uses for regression as well as describe a few specific methods.   The primary difference between classification and regression problems is the output they seek to calculate.  As discussed in my previous blog post, classification problems generally seek to reach a discrete output, or in other words one of a few distinct values.  The example used last time dealt with the iris dataset that I'm currently working on.  Here, several plant measurements are taken as inputs which are then used to determine which of the three species is most likely to be the output.  This is known as classification because the pre...

Clarifying Classification

This week I have decided to take an in depth look at classification problems in data science.  Since most of my recent projects have dealt with regression, it seems prudent to thoroughly examine this other equally important aspect of data science.  I will give a brief overview of classification, explain a few important algorithms, and walk through my decision-making process when choosing a topic for my next project.  Finally, I will give a brief outline of my plan for this new undertaking.   Between classification and regression, the former strikes me as a much simpler concept to wrap my head around.  An example of regression would be using historic data to predict future prices of something like a house.  Various inputs are taken into account and weighed based on the strength of their relationship to the output, which can then be used to estimate future data points.  Classification is very similar in that it also weighs inputs in this manner, but...

A Brief Look at Plotly

Image
Recently, I worked on a project where one of the main goals was to create a series of highly interactive graphs in Python.  Since matplotlib, which is my usual go-to for graphing, has limited capabilities in this regard, I decided that I would need to try a different library in order to get the results that I wanted.  The solution I ended up using was the Plotly graphing library.  I was so impressed with my results and the capabilities of Plotly that I’ve decided this blog post will be dedicated to explaining a bit about the library and looking at some of its more interesting features.   First, I’ll give a broad overview of Plotly and how it is structured.  Like many other Python modules, the main purpose of Plotly is to create, manipulate, and render graphical figures such as charts, plots, diagrams and even maps.  These figures are rendered using the Plotly.js JavaScript library and can be represented in Python as either dictionaries or as instances ...

Getting Started on Your Data Science Project

Image
Today I’m going to be writing a quick guide on how to get started on your first data science project.  I will be assuming the reader has very little experience in data science and giving an overview of the entire project process from start to finish, with particular attention paid to the early stages.   The first and second steps to follow, choosing a topic and dataset, can be done in either order depending on your preference.  In some cases one might be better suited than the other.  For example, choosing a topic first doesn’t do much good if there is no data available or it can’t be easily gathered.  Likewise, a dataset by itself isn’t very helpful if you aren’t able to think of any interesting topics to explore with it.     Choosing a Topic My personal preference when getting started on a project is to choose a topic first and then look for a dataset that is applicable.  For example, on my most recent project I decided on a topic rela...