🖤 Black Friday + Cyber Monday | Flat 30% OFF | Code: BLACK
Global Tech Council
data science13 min read

What are the 4 Types of Data?

Toshendra SharmaToshendra Sharma
Updated Oct 7, 2026
What are the 4 Types of Data?

Every spreadsheet, survey, app, and sensor collects data, but not all data is the same. A person's eye color, a customer's satisfaction rating, the number of items in a cart, and a patient's body temperature each behave differently and need different tools. That is why people who work with numbers learn the 4 Types of Data early: nominal, ordinal, discrete, and continuous. Knowing which type you have tells you what math is valid, which charts make sense, and which models will work.

This guide explains each type in plain language with real examples, shows how to tell them apart, and covers the other "four types" people sometimes mean in big data. If you want to turn these basics into a career skill, a program such as the Certified Data Science Developer course teaches how to work with data in practice. The language below is simple enough for beginners and detailed enough for professionals.

Certified Data Science Developer Strip

Quick Answer: What Are the 4 Types of Data?

The four types of data most often taught in statistics and data science are:

  • Nominal data: Categories with no natural order, such as blood type or country.

  • Ordinal data: Categories with a meaningful order, such as survey ratings or education level.

  • Discrete data: Countable numbers, such as the number of students in a class.

  • Continuous data: Measured values that can take any number in a range, such as height, weight, or time.

Nominal and ordinal data together are called qualitative or categorical data. Discrete and continuous data together are called quantitative or numerical data.

Why Data Types Matter

They Decide What You Can Calculate

You can average people's heights, but you cannot average their favorite colors. The type of data tells you which calculations make sense, such as counts, medians, means, or correlations.

They Decide Which Charts to Use

Bar charts suit categories, histograms suit measured values, and scatter plots suit pairs of numbers. Using the wrong chart can mislead readers.

They Shape Data Quality at Scale

In large systems with millions of rows, mixing up types causes errors, such as a numeric column stored as text or a category stored as a number. Professionals who manage such volume often study big data practices, and a program like the Certified Big Data Expert course covers how large datasets are collected, stored, and processed.

They Guide Machine Learning

Models handle types differently. Categories often need encoding, while numbers often need scaling. Choosing the right treatment can change model accuracy.

The Big Picture: Qualitative vs Quantitative Data

Group

Also Called

Types Inside

Question It Answers

Qualitative

Categorical

Nominal, Ordinal

What kind? Which group?

Quantitative

Numerical

Discrete, Continuous

How many? How much?

Think of it as two branches. If the answer is a label, it is qualitative. If the answer is a number you can do math on, it is quantitative.

Type 1: Nominal Data

What It Is

Nominal data sorts things into named categories that have no order. One category is not higher or lower than another. The word "nominal" comes from the Latin word for name.

Examples

  • Eye color: brown, blue, green

  • Country of residence

  • Blood type: A, B, AB, O

  • Payment method: card, cash, wallet

  • Yes or no answers, a special case called binary data

What You Can Do

  • Count how many fall into each category

  • Find the mode, which is the most common category

  • Compare shares using percentages

  • Test relationships between categories using methods such as the chi-square test

What You Cannot Do

You cannot rank nominal categories or calculate an average. The "average" of blue and green eyes means nothing.

Best Charts

Bar charts, column charts, and pie charts for a small number of categories.

In Machine Learning

Nominal columns usually need encoding, such as one-hot encoding, which creates a separate yes or no column for each category.

Type 2: Ordinal Data

What It Is

Ordinal data is categorical, but the categories have a meaningful order. You know which is higher or lower, but you do not know exactly how far apart they are.

Examples

  • Satisfaction ratings: very unhappy, unhappy, neutral, happy, very happy

  • Education level: high school, bachelor's, master's, doctorate

  • Race finishing position: first, second, third

  • T-shirt sizes: small, medium, large

  • Letter grades: A, B, C, D, F

What You Can Do

  • Sort and rank the values

  • Find the median and percentiles

  • Find the mode

  • Use rank-based methods such as Spearman correlation

A Common Trap

The gap between "good" and "excellent" is not necessarily the same as the gap between "poor" and "fair." Because the distances are unknown, averaging ordinal ratings can be misleading. In practice, many survey analysts do average rating scales, but they should do so carefully and explain the limits. Medians and distributions are safer.

Best Charts

Bar charts in order, stacked bars for rating scales, and diverging bars for survey data.

In Machine Learning

Ordinal columns are often converted to ordered numbers, such as 1, 2, 3, 4, 5, so that the model can use the order.

Type 3: Discrete Data

What It Is

Discrete data is numerical data you count. It takes separate, distinct values, usually whole numbers, with gaps between them. You cannot have 2.5 children or 3.7 customers walking through a door.

Examples

  • Number of students in a class

  • Number of products in a shopping cart

  • Number of website visits per day

  • Number of defects found in a batch

  • Number of goals scored in a match

What You Can Do

  • Add, subtract, and compare values

  • Calculate the mean, median, mode, and range

  • Model counts using methods designed for counting data, such as the Poisson distribution

A Useful Note

An average of discrete data can be a decimal. If a household has 2, 3, and 4 children, the average is 3, but across many homes it might be 2.4. The data itself is still discrete, even though the average is not a whole number.

Best Charts

Bar charts, dot plots, and line charts over time.

Type 4: Continuous Data

What It Is

Continuous data is measured, not counted. It can take any value within a range, including fractions and decimals. The only limit is how precisely you can measure.

Examples

  • Height and weight

  • Temperature

  • Time to complete a task

  • Distance traveled

  • Speed of a car

  • Blood pressure

  • Rainfall in millimeters

What You Can Do

  • Calculate means, medians, standard deviations, and correlations

  • Build regression models

  • Compare groups with tests such as the t-test

A Quick Test

If the measurement can be cut in half and still make sense, such as 1.5 seconds or 0.75 liters, it is probably continuous.

A Note on Money

Prices and revenue are often treated as continuous in analysis, even though money is counted in cents. When the steps are tiny compared with the range, treating it as continuous works well in practice.

Best Charts

Histograms, box plots, line charts, and scatter plots.

Comparison Table

Feature

Nominal

Ordinal

Discrete

Continuous

Group

Qualitative

Qualitative

Quantitative

Quantitative

Has order?

No

Yes

Yes

Yes

Equal gaps?

Not applicable

Not guaranteed

Yes

Yes

Counted or measured

Labeled

Ranked

Counted

Measured

Example

Blood type

Satisfaction rating

Number of orders

Weight

Typical statistic

Mode, percentages

Median, mode

Mean, median

Mean, standard deviation

Typical chart

Bar chart

Ordered bar chart

Bar chart

Histogram

How to Tell the Types Apart

Ask these questions in order.

  • Is it a label or a number? If it is a label, it is nominal or ordinal. If it is a number you can do math on, it is discrete or continuous.

  • If it is a label, does it have a natural order? If yes, it is ordinal. If no, it is nominal.

  • If it is a number, are you counting or measuring? Counting gives discrete data. Measuring gives continuous data.

  • Can it be split into smaller parts and still make sense? If yes, it is continuous.

Tricky Cases

  • Zip codes and phone numbers look like numbers but are nominal, because math on them is meaningless.

  • Star ratings are ordinal, even though they use numbers.

  • Age can be continuous if measured exactly, or discrete if recorded in whole years, or ordinal if grouped into ranges.

Data Types in Real Jobs

Data types appear in almost every field. Marketers study nominal data like channels and ordinal data like survey ratings. Operations teams track discrete counts like orders. Scientists and engineers measure continuous values like temperature and pressure. As data work expands into AI, automation, and other advanced fields, many professionals broaden their skills beyond one specialty. You can explore a wide range of options through Deep Tech Certification programs, which cover advanced and emerging technologies and help you build a profile that stays relevant as tools change.

A Worked Example: Classifying a Customer Survey

Imagine a customer survey table with these columns.

Column

Example Value

Data Type

Customer ID

C-1021

Nominal (a label, not a quantity)

City

Mumbai

Nominal

Satisfaction

Very satisfied

Ordinal

Number of purchases this year

7

Discrete

Time spent on website (minutes)

12.4

Continuous

Subscribed to newsletter

Yes

Nominal (binary)

Average order value

48.75

Continuous (treated as such)

Once each column is classified, the analysis is easier. You can count cities, compare satisfaction by median, average purchases, and plot time on site with a histogram.

The Four Levels of Measurement: A Related Idea

Statisticians also describe four levels of measurement, which are often confused with the four data types.

  • Nominal: Categories with no order.

  • Ordinal: Ordered categories.

  • Interval: Numbers with equal gaps but no true zero, such as temperature in Celsius. A 20-degree day is not "twice as hot" as a 10-degree day.

  • Ratio: Numbers with equal gaps and a true zero, such as height, weight, and income. A weight of 100 kg is twice 50 kg.

Discrete and continuous describe how numbers are formed, while the four levels describe what math is meaningful. Both views are useful, and they overlap.

Another Meaning of "4 Types of Data" in Big Data

In data management, you may also see four types based on how data is organized.

Structured Data

Data in neat rows and columns, such as spreadsheets and SQL databases.

Unstructured Data

Data with no fixed format, such as emails, photos, videos, audio, and social posts. Most of the world's data is of this kind.

Semi-Structured Data

Data with some organization but no strict table, such as JSON, XML, and log files.

Metadata

Data that describes other data, such as the date a photo was taken, the author of a file, or the size of a document.

This is a different way of slicing data, focused on storage and processing, so be clear which "four types" a question means.

How Data Types Show Up in Tools

  • Excel and Google Sheets: Text, number, date, and category formats guide sorting and charts.

  • SQL: Types such as VARCHAR for text, INTEGER for whole numbers, and DECIMAL or FLOAT for measured numbers.

  • Python and pandas: Columns appear as object or category for labels, integer types for counts, and float types for measurements. Pandas also supports ordered categories for ordinal data.

  • BI dashboards: Fields are marked as dimensions for categories and measures for numbers, which closely matches qualitative and quantitative data.

Common Mistakes to Avoid

  • Averaging nominal data. There is no meaningful average of categories.

  • Treating ordinal ratings as exact numbers. The gaps may not be equal.

  • Treating IDs as numbers. Adding or averaging customer IDs makes no sense.

  • Using the wrong chart. A pie chart with 20 slices is hard to read, and a line chart of unordered categories is misleading.

  • Mixing counts and measurements. Be clear whether you are counting items or measuring a quantity.

  • Ignoring missing values. Missing data can bias results for any type.

Simple Tips for Beginners

  • Start by asking whether each column is a label or a number.

  • Make a small table of your columns and their types before you analyze anything.

  • Use medians and percentages for ordinal data.

  • Use histograms to see the shape of continuous data.

  • Keep IDs and codes as text.

  • Practice with a small dataset, such as a class survey.

  • Check your tools' data types so they match your intended meaning.

Conclusion

The 4 Types of Data are nominal, ordinal, discrete, and continuous. Nominal and ordinal data describe qualities, while discrete and continuous data describe quantities. Once you know which type you are handling, you know which statistics to run, which charts to draw, and which models to try. Start by labeling each column, keep an eye on tricky cases like zip codes and star ratings, and build from there.

Data skills grow more powerful when you can explain your findings clearly. If you want to learn how to turn insights into compelling messages that reach the right audience, a Marketing Certification is a smart next step.

FAQs

1. What are the 4 types of data?

The four commonly recognized measurement-scale types are nominal, ordinal, interval, and ratio data. Each type has different characteristics and determines which statistical methods can appropriately be used for analysis.

2. What is nominal data?

Nominal data consists of categories or labels that have no natural order or ranking. Examples include country, eye color, blood group, and product category.

3. What is ordinal data?

Ordinal data consists of categories that have a meaningful order or ranking, but the differences between categories are not necessarily equal. Examples include satisfaction levels such as dissatisfied, neutral, and satisfied.

4. What is interval data?

Interval data has ordered numerical values with equal intervals between measurements but does not have a meaningful absolute zero. Temperature measured in Celsius or Fahrenheit is a common example.

5. What is ratio data?

Ratio data has ordered values, equal intervals, and a meaningful zero point. Examples include height, weight, age, distance, and income, where ratios between values can have meaningful interpretations.

6. What is the difference between nominal and ordinal data?

Nominal data categorizes observations without any inherent ranking, while ordinal data has a meaningful order. For example, eye color is nominal, whereas a customer satisfaction rating is ordinal.

7. What is the difference between interval and ratio data?

Both interval and ratio data have ordered values and equal intervals. The key difference is that ratio data has a meaningful zero, while interval data does not.

8. Are nominal and ordinal data qualitative data?

Yes. Nominal and ordinal data are generally treated as categorical or qualitative data because they describe categories or attributes rather than measurements with meaningful numerical distances.

9. Are interval and ratio data quantitative data?

Yes. Interval and ratio data are numerical measurement scales and are generally considered quantitative. They allow numerical analysis, although the appropriate mathematical operations depend on the measurement scale.

10. What are examples of nominal data?

Examples include gender categories, blood groups, countries, colors, types of vehicles, and product categories. The categories identify observations but do not have a meaningful numerical ranking.

11. What are examples of ordinal data?

Examples include education levels, customer satisfaction ratings, product quality rankings, and agreement scales such as strongly disagree through strongly agree. The categories have an order, but the distance between them may not be measurable.

12. What are examples of interval data?

Common examples include temperature measured in Celsius or Fahrenheit and certain standardized scores. The difference between values is meaningful, but zero does not represent the complete absence of the measured characteristic.

13. What are examples of ratio data?

Examples include height, weight, age, income, distance, time duration, and the number of products sold. These measurements have a meaningful zero, making statements about ratios meaningful.

14. Why are the four types of data important?

Understanding data types helps researchers and analysts choose suitable statistical techniques and visualization methods. Using an inappropriate method can lead to misleading interpretations or invalid conclusions.

15. Which type of data has no natural order?

Nominal data has no natural order among its categories. For example, categories such as red, blue, and green cannot normally be ranked from lowest to highest.

16. Which type of data has a meaningful order?

Ordinal, interval, and ratio data have meaningful ordering. However, ordinal data does not necessarily have equal distances between categories, whereas interval and ratio scales have equal numerical intervals.

17. Which type of data has a true zero?

Ratio data has a meaningful or true zero point. For example, zero kilograms represents the absence of weight, allowing meaningful comparisons such as 20 kg being twice 10 kg.

18. Can numbers be used for nominal data?

Yes. Numbers can be assigned to nominal categories as labels, but those numbers do not have mathematical meaning. For example, assigning 1 to one category and 2 to another does not mean category 2 is greater than category 1.

19. How do the 4 types of data differ?

Nominal data identifies categories, ordinal data adds ranking, interval data adds equal numerical intervals, and ratio data adds a meaningful zero. This progression is often summarized as nominal, ordinal, interval, and ratio, or NOIR.

20. Why should businesses and data scientists understand the 4 types of data?

Correctly identifying data types helps businesses and data scientists select appropriate analytical techniques, create suitable visualizations, and interpret results accurately. Understanding these distinctions is especially useful in statistics, research, data science, machine learning, and business analytics.

Related Articles

View All

Trending Articles

View All