DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Foundations for Machine Learning and Data Science for Developers

Foundations for Machine Learning and Data Science for Developers

Do you want to learn the fundamentals of data science and machine learning? Check out this brief overview and tutorial.

Ajit Jaokar user avatar by
Ajit Jaokar
·
Dec. 21, 16 · Tutorial
Like (23)
Save
Tweet
Share
11.51K Views

Join the DZone community and get the full member experience.

Join For Free

This tutorial introduces machine learning and data science concepts for developers. On the web, we already have many excellent resources for learning data science, however, the sheer amount of material can, in itself, be daunting. This is based on my insights from the Enterprise AI course and also the Data Science for IoT course which I teach at Oxford University.

This tutorial draws on the content on the web and adds three new elements:

  1. We explain concepts simply but in context. Many tutorials explain one specific aspect but do not show how it fits into the wider picture.
  2. We approach maths and stats from the perspective/lens of linear regression. This approach has an advantage because linear regression is familiar to many from their high school days.
  3. Less is more – we discuss a small number of examples. You can always find more examples of an algorithm type on the web. Future versions of this tutorial will expand on maths and science in context of programming.

I also address a broader question: Which maths and stats techniques do you need for data science? 

A knowledge of algorithms (maths and stats) is the main differentiator between traditional programming and analytics-based programming.

Having said that, it helps to start with programming and approach the maths (initially) through APIs and libraries. I find that this technique works better because more people are familiar with programming than with maths. 

Here is a list of maths and stats techniques useful for data scientists:

  • Linear Algebra (e.g. vector algebra, matrices, transformations, eigenvalues)
  • Probability Theory
  • Optimization techniques (eg. gradient descent)
  • Descriptive Statistics (eg. means, modes, standard deviations, variances, distributions)

Techniques used in data science such as data transformations, exploratory data analysis, feature engineering, ensemble strategies, and visualization (story telling) all involve maths and stats.

An Overview of Data Science & Machine Learning

Data Science is a multidisciplinary domain involved in solving analytically complex problems using machine learning algorithms. Unlike traditional algorithms, machine learning algorithms are data driven. Thus, the data determines the algorithm’s response. For example, for an application to detect photos, a non-machine learning algorithm would try to first define what a face is. In contrast, a machine learning algorithm would not have such a pre-determined definition but rather it would "learn-by-examples."

Data science includes a formal set of steps. Hilary Mason and Chris Wiggins describe a process called OSEMN which is summarized as:

  1. Obtain data
  2. Scrub data
  3. Explore data:‘Explore’ in this context refers to exploratory data analysis; i.e. no hypothesis that is being tested and no predictions that are being evaluated.
  4. Model data (machine learning stage): Here, we apply the predictive models (regression, classification,etc.). A model’s predictive accuracy can be evaluated by how well it performs on unseen data.
  5. Interpret results

Broadly, we will also follow this sequence in this tutorial.

What Is Machine Learning?

As we see above, Machine learning can be seen as a step in the wider data science process. Tom Mitchell says this in his book Machine Learning:

“The field of machine learning is concerned with the question of how to construct computer programs that automatically improve with experience.”

The formal definition of machine learning is as follows:

“A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.”

From a programmer’s perspective machine learning involves:

  1. Training of a model from data.
  2. Predict/extrapolate a decision.
  3. Measure against a performance measure.

Visually, we can see this process as:

Image title

Check out the tutorial here.

Data science Machine learning

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Secrets Management
  • Using AI and Machine Learning To Create Software
  • Top Authentication Trends to Watch Out for in 2023
  • Core Machine Learning Metrics

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: