Explain different data types with an example?
There are different types of data:
- Continuous
- Discrete
- Structured
- Unstructured
- Time series data
Continuous: When the values in the data are floating-point numbers or the decimal numbers then such type of dataset is called Continuous data. There are again two types of continuous data, Interval data, and ratio data.
Interval data type is subjective, it means the data is always influenced by different factors.
For example, a person sitting in the office with AC on can feel hot for a 29 deg celsius whereas a person working at a construction site may feel it normal. The temperature value is subjective here.
A Ratio data type is an objective, it means the data value is universally accepted.
For example, the value of pi is 3.14 and it is not influenced by any other factor. Such type of data is called Ratio.
Discrete: When the values in the data type are integer number or the real number then it is called a discrete data type.
There are two types of discrete data types, Categorical, and Count. If the data has some categories or classes then it is called as Categorical data
For example, a person performing different actions in a video can be classified as Categorical data.
The categorical data is again classified as binary and multiple. A binary categorical data will have only two categories or only two classes.
For example, a person having COVID-19 or not.
Categorical data with multiple classes can be classified as multi categorical data.
For example, categorizing a movie review, it can have a positive review, negative review, or neutral.
The categorical data is again classified into two categories, Nominal and Ordinal. In nominal data type, the order of the data doesn't matter. Considering the above example, a person performing different actions in a video can be classified as Nominal data as there is no specific order of actions.
But, a person’s order of education cant be altered. He has to finish his primary education to reach secondary and then to finish his masters he has to finish his degree. So, here the order can be modified, if modified then the data will not make any sense. Such type of data is called an Ordinal data type.
Structured: Structured data will have a well-defined structure and it will follow a consistent order. It can also be easily accessed and used by a person or a computer. This type of data is usually stored in well-defined schemes like the database. It will have multiple numbers of rows and columns.
Unstructured: It is a data type that does not have a well-structured format(no rows or columns). Text, images, audio, and video are different examples of Unstructured data.
Time series data: Sequence of data that has a time factor associated with it is called a Time series data. Each data point will be associated with a time.
Stock price prediction, House prices for a decade predicting temperature values are the different examples of Time series data.