## Introduction

Machine Learning and data science thrives on data. It is very important to understand the nature of underlying data on top of which the machine learning model is required to be built. Given a dataset, one of the first thing you would normally do is try to understand the nature and variety of data present in the dataset. This usually becomes the first stepping stone of creating a powerful and robust machine learning model. Statistics is a distant cousin of machine learning which also deals with data. So if you can understand different types of data in Statistics field, you can apply the same knowledge for your machine learning problem.

Also Read – How to deal with missing data in machine learning

Let us understand the different types of data you would normally encounter in Statistics.

### Two Main Types of Data

At the very high level you would generally encounter two types of data – numerical data or categorical.

**Numerical –**These types of data denotes numeric description of something. Examples of numerical data are*age, weight, temperature, count of something etc*. These types of data are also known as Q*uantitative data*.**Categorical –**These types of data describes the characteristics of something. Example of categorical data are*gender of persons (Male or Female), names of places (India, America, England), color of car (Red, White).*These types of data is also known as*Qualitative*data

Let us now take a deep dive in each of these types of data.

### Numerical Data

Numerical data can further be divided into following two types –

**Discrete Numerical Data –** These types of numeric data represent something which cant be divided into some meaningful parts. For example – *number of children in a class*. This can’t be fractional count like 40.5 , because 0.5 children is conceptually incorrect. Some other examples of discrete numerical data is – *number of cars in parking area, number of states of country , count of animals in farm etc*.

**Continuous Numerical Data – **These types of numeric data can be divided into further unit or can assume a more precision. These types of data is mostly a measurement of something. For example – an weight of a person can be 70.5 kg. Here fraction 0.5 kg is conceptually correct. This can also assume a more accurate precision like 70.56kg or 70.562kg. Some other examples of continuous data is *height, temperature, price etc*. It is interesting to note that some types of data like *Age*, though can be divided into continuous representation is also used as discrete data in some problems.

[adrotate banner=”3″]

### Categorical Data

Categorical Data can be further divided into –

**Ordinal Data – **These types of categorical data describes something and their ordering holds some significance. An example will make this clear. For example – Grades are categorical data which describes performance of a student. The possible values of Grades are given below.

Outstanding, Excellent, Average, Satisfactory, Failed

It is worth noting that the order of grades holds some significance, from left to right it represents the performance of students in decreasing scale.

Another examples of ordinal data is education (undergraduate ,graduate ,postgraduate)

**Nominal Data – **These types of categorical data describe something and their ordering holds no significance unlike ordinal data. For example, Color of car – Red or White is nominal data. A white color car holds no superiority over red car or vice versa just because of color. There is no significance of ordering of car color. Another example of nominal data is Subjects in a class – English, Maths, Geography, Science, History.

## In the End…

I hope this post gave a good insight on types of data with some intuitive examples. Do remember, this understanding of data is very important to clean up and pre-process data for feeding into machine learning system and get some meaningful results.

I leave you with a quote on data…

“In God we trust. All others must bring data”