Apply Now Apply Now Apply Now
header_logo
Post thumbnail
DATA SCIENCE

Types of Data in Data Science: Definitions, Examples, and Applications

By Jaishree Tomar

Every time a hospital records a patient’s blood pressure, a retailer tracks weekly sales figures, or a survey asks customers to rate their satisfaction as “poor,” “good,” or “excellent,” data is being generated. But not all data is the same. In data science, knowing what kind of data you are working with is the first and most important step toward making sense of it.

Think about a ride-sharing company like Uber. It handles passenger ratings, trip distances, city names, and driver rankings all at once. Each data type requires a different approach to analysis. Using the wrong method can lead to poor results and bad decisions.

This is why understanding data types matters beyond the classroom. In fields like healthcare, finance, e-commerce, and sports, knowing the difference between quantitative and qualitative data, nominal and ordinal categories, and discrete versus continuous values helps you analyze trends more accurately, build better models, and make smarter decisions.

This article breaks down the main types of data in data science using simple, real-world examples. By the end, you will be able to look at any dataset and know exactly how to approach it.

Quick answer

In data science, data is mainly divided into four types: nominal, ordinal, discrete, and continuous.
Nominal and ordinal data describe categories, while discrete and continuous data describe numbers.

Table of contents


  1. Data Types in Data Science (Qualitative and Quantitative)
    • Healthcare and Medicine
    • E-commerce and Retail
    • Education
    • Social Media Analytics
  2. What Is Qualitative (Categorical) Data?
  3. What Is Nominal Data?
    • Examples of Nominal Data
    • Key Properties of Nominal Data
    • How Nominal Data Is Used in Data Science
  4. What Is Ordinal Data?
    • Examples of Ordinal Data
    • Key Properties of Ordinal Data
    • Nominal vs. Ordinal Data: What Is the Difference?
  5. What Is Quantitative (Numerical) Data?
  6. What Is Discrete Data?
    • Key Properties of Discrete Data
    • How Discrete Data Is Used in Data Science
  7. What Is Continuous Data?
    • Key Properties of Continuous Data
    • How Continuous Data Is Used in Data Science
  8. Real-World Example
  9. Discrete vs. Continuous Data: Key Differences
  10. All 4 Types of Data: Side-by-Side Comparison
  11. Scales of Measurement (Interval and Ratio Data)
  12. Conclusion
  13. Frequently Asked Questions
    • What are the primary categories of data science?
    • How many categories of data exist in statistical analysis?
    • What do the terms nominal, ordinal, and discrete signify in data types?
    • What are the 4 types of data in data science?
    • What is the difference between nominal and ordinal data?
    • What is the difference between discrete and continuous data?
    • Why does the data type matter?
    • Can data change from one type to another?
    • How is each data type encoded for machine learning?
    • What are the four scales of measurement in data science?
    • What type of data is age?

Data Types in Data Science (Qualitative and Quantitative)

Data CategoryData TypeKey PropertyExamples
QualitativeNominalCategories, no orderGender, eye colour, city name
QualitativeOrdinalCategories with orderStar ratings, education level
QuantitativeDiscreteCountable whole numbersNumber of students, number of clicks
QuantitativeContinuousMeasurable, any value in a rangeHeight, temperature, salary

Understanding this classification helps you pick the right tools for every step of the data pipeline, from data collection and cleaning to analysis, visualisation, and model selection.

Also Read:  Types of Data Science Explained: A Simple Guide for Complete Beginners

Real-World Applications of Data Types in Data Science

A call center tracks the number of calls received each hour. This is discrete data because you can only receive whole-number counts of calls. The data team uses a Poisson distribution to model the arrival rate and staff rosters accordingly.

1. Healthcare and Medicine

Patient blood type (nominal), pain levels on a 1–10 scale (ordinal), number of hospital visits (discrete), and body temperature readings (continuous) are all collected and analysed together. Choosing the right statistical test for each type ensures accurate clinical insights.

2. E-commerce and Retail

Product category (nominal), customer satisfaction rating (ordinal), number of items purchased (discrete), and transaction amount in rupees (continuous) are core data types in any retail dataset. Machine learning models use all four to drive recommendations and pricing strategies.

3. Education

Student’s state of residence (nominal), grade level (ordinal), number of correct answers (discrete), and percentage score (continuous) are all standard educational data types used to track performance and identify students who need support.

4. Social Media Analytics

Platform name (nominal), engagement tier such as low, medium, high (ordinal), number of likes or shares (discrete), and time spent on page in seconds (continuous) all appear together in social analytics dashboards.

From Mechanical Engineering to a Data Science Job in Chennai

Shubham Chavan had a degree in mechanical engineering. Data science felt out of reach. He had no coding background and was not sure where to start.

Then he joined the HCL GUVI Data Science Program . That decision changed his career.

The coursework was structured and taught in local languages. Topics like data types, machine learning, and statistics became much easier to understand. Mock interviews with experienced mentors helped him prepare for real industry questions.

When the actual interviews came, he was ready.

Today, Shubham works with generative AI models at a top tech firm in Chennai.

“HCL GUVI promised placement support, and they delivered. That trust made all the difference,” he says.

Your background does not limit your future in tech. The right program and the right mentors can take you further than you think.

 Watch: Success Story of our Alumni Shubham

MDN

What Is Qualitative (Categorical) Data?

Qualitative data describes characteristics that cannot be measured as numbers. It groups observations into categories. It is also called categorical data. The two types are Nominal data (no order) and Ordinal data (with order). Examples include gender, colour, job title, and customer satisfaction ratings. 

Qualitative data represents qualities, characteristics, or attributes. You cannot calculate an average or run standard arithmetic on it. Instead, you count how often each category appears and analyse distributions.

Qualitative data is best visualised with bar charts and pie charts. It is gathered through surveys, interviews, forms, and observation. In data science and machine learning, qualitative data needs to be encoded into numbers before a model can use it.

Also calledCategorical data
SubtypesNominal and Ordinal
Can you average it?No
Best chartsBar chart, pie chart, frequency table
ML encodingOne-hot encoding (Nominal), Label encoding (Ordinal)

Before we move into the next section, ensure you have a good grip on data science essentials like Python, MongoDB, Pandas, NumPy, Tableau & Power BI Data Methods. If you are looking for a detailed course on Data Science, you can join HCL GUVI’s Data Science Course with Placement Assistance. You’ll also learn about the trending tools and technologies and work on some real-time projects.  Additionally, if you would like to explore Python through a Self-paced course, try HCL GUVI’s Python course.

 Read: Data Transformation: Types, Process, Benefits & Definition

What Is Nominal Data?

Nominal data is a type of qualitative data used to label or name variables. The categories have no natural order or ranking. You cannot say one category is greater or lesser than another. Examples include gender (male, female, other), blood type (A, B, AB, O), and eye colour (brown, blue, green). 

Nominal data is the simplest form of data. It puts observations into named groups or labels, and that is all. The categories are mutually exclusive, meaning one observation can only belong to one group at a time. There is no inherent hierarchy, no order, and no meaningful numeric difference between categories.

The word ‘nominal’ comes from the Latin word for name. That is exactly what nominal data does: it names things.

Examples of Nominal Data

•       Gender – Male, Female, Non-binary

•       Blood type – A, B, AB, O

•       Eye colour – Brown, Blue, Green, Grey

•       Country of birth – India, USA, UK, Australia

•       Preferred payment method – Cash, Credit card, UPI, Net banking

•       Mode of transport – Bus, Train, Car, Bicycle

•       Smartphone brand – Apple, Samsung, OnePlus, Xiaomi

Key Properties of Nominal Data

OrderNone. Categories cannot be ranked.
ArithmeticNot possible. You cannot add, subtract, multiply, or divide.
Central tendencyMode only (the most common category)
Best chartsBar chart, pie chart
Statistical testsChi-square test, frequency analysis
ML encodingOne-hot encoding, binary encoding

How Nominal Data Is Used in Data Science

Nominal data is everywhere in real datasets. In machine learning, nominal features like product category or customer region need to be converted to numbers before a model can process them. The standard method is one-hot encoding, which creates a separate binary column for each category.

In marketing, nominal data helps segment audiences by demographics. In healthcare, it categorises patients by diagnosis or treatment type. In survey analysis, it captures preferences and choices.

Explore: 15 Data Analysis Examples For Beginners In 2026

What Is Ordinal Data?

Ordinal data is qualitative data where categories have a natural, meaningful order or ranking. However, the exact difference between ranks is not known or equal. Examples include customer satisfaction ratings (poor, average, good, excellent) and education levels (high school, bachelor’s, master’s, PhD). 

Ordinal data is one step above nominal data. Like nominal data, it places observations into categories. But unlike nominal data, those categories can be arranged in a clear order from lowest to highest, or worst to best.

The important limitation of ordinal data is that the gaps between ranks are not equal or known. For example, the difference between a 1-star and 2-star rating is not necessarily the same experience gap as between a 4-star and 5-star rating. You know the order, but not the distance.

Examples of Ordinal Data

•       Customer satisfaction rating – Very Dissatisfied, Dissatisfied, Neutral, Satisfied, Very Satisfied

•       Education level – High School, Diploma, Bachelor’s, Master’s, PhD

•       Pain scale – 1 to 10 (used in medical assessments)

•       Movie ratings – 1 star, 2 stars, 3 stars, 4 stars, 5 stars

•       Employee performance – Poor, Below Average, Average, Good, Excellent

•       Socioeconomic status – Low income, Middle income, High income

Key Properties of Ordinal Data

OrderYes. Categories can be ranked from low to high.
Equal intervalsNo. The gap between ranks is unknown or unequal.
ArithmeticNot reliably possible. Averages can be misleading.
Central tendencyMedian and mode
Best chartsBar chart, stacked bar chart, ordered frequency table
Statistical testsMann-Whitney U test, Spearman’s rank correlation
ML encodingLabel encoding (assign numbers 1, 2, 3 to preserve order)
Key Properties of Ordinal Data

Nominal vs. Ordinal Data: What Is the Difference?

FactorNominal DataNominal DataOrdinal Data
Is there an order?NoYes 
Can you rank categories?No Yes 
Are intervals equal?No No
ExampleBlood type (A, B, AB, O)Pain scale (1 to 10)
Encoding in MLOne-hot encodingLabel encoding
Central tendencyMode onlyMedian and mode
Nominal vs. Ordinal Data: What Is the Difference?

Also explore: Our highly popular Python Learner’s Hub, to master Python. 

What Is Quantitative (Numerical) Data?

Quantitative data is data that can be measured or counted and expressed as numbers. You can perform arithmetic on it, calculate averages, and use it directly in statistical models. It answers questions like ‘how many’ and ‘how much.’ The two types are Discrete data and Continuous data. 

Quantitative data is the foundation of statistical analysis and most machine learning models. Because it is already in numerical form, it can be used directly in calculations without encoding. You can find averages, measure spread, run regressions, and build predictive models.

Also calledNumerical data
SubtypesDiscrete and Continuous
Can you average it?Yes
Best chartsHistogram, scatter plot, line chart, box plot
Statistical operationsMean, median, mode, standard deviation, correlation
What Is Quantitative (Numerical) Data?

Read: A Complete Data Scientist Roadmap for Beginners

What Is Discrete Data?

Discrete data is quantitative data that can only take specific, separate values. These values are usually whole numbers (integers). You count discrete data; you do not measure it. Examples include the number of students in a class, the number of cars in a car park, and the number of clicks on a website.

The word ‘discrete’ means separate or distinct. Discrete data has clear gaps between its possible values. You cannot have 2.5 students in a classroom or 3.7 cars in a parking lot. Every value is a whole number, and there is nothing in between.

Discrete data is counted, not measured. This is the key distinction between discrete and continuous data. If you are counting items, people, events, or occurrences, the data is almost certainly discrete.

 Examples of Discrete Data

•       Number of students in a class – 25, 30, 45 (cannot be 25.6)

•       Number of cars in a parking lot – 0, 1, 2, 3…

•       Number of goals scored in a match – 0, 1, 2, 3…

•       Number of support tickets filed per day – 10, 15, 22…

•       Number of clicks on an advertisement – 145, 230, 890…

•       Number of items in an online shopping cart – 1, 2, 3, 4…

•       Number of errors in a software build – 0, 1, 5, 12…

Key Properties of Discrete Data

ValuesWhole numbers (integers) only
How to collectCounting
Can it be divided?No. 2.5 children is not possible.
Central tendencyMean, median, mode
Best chartsBar chart, histogram, dot plot
Statistical methodsPoisson distribution, binomial distribution, frequency tables
Key Properties of Discrete Data

How Discrete Data Is Used in Data Science

Discrete data is central to many business problems. E-commerce companies analyse the number of orders per day. Healthcare providers track the number of patient visits. Software teams count the number of bugs in each release.

In machine learning, discrete target variables lead to classification problems (for example, predicting the number of items a customer will buy). Algorithms commonly used include decision trees, random forests, and Naive Bayes classifiers.

Also Read: Data Analysis in Research: Types & Methods

What Is Continuous Data?

Continuous data is quantitative data that can take any value within a given range, including fractions and decimals. It is measured, not counted. Examples include height (1.73 m), body temperature (98.6°F), and salary (Rs. 45,250.75). There is no limit to the precision of a continuous value. 

Continuous data flows along a scale without gaps. Between any two values, there is always another possible value. For example, between 1.5 kg and 1.6 kg, you could have 1.52 kg, 1.521 kg, or 1.5219 kg. The precision is limited only by your measuring instrument, not by the data type itself.

Continuous data is measured, not counted. This is the defining characteristic. Whenever you use a measuring instrument such as a ruler, thermometer, timer, or scale, the output is almost always continuous data.

 Examples of Continuous Data

•       Height – 1.72 m, 1.735 m, 1.7351 m

•       Weight – 65.4 kg, 65.42 kg

•       Body temperature – 98.4°F, 98.41°F

•       Time taken to complete a task – 3.25 minutes, 3.257 minutes

•       Salary – Rs. 45,250.75 per month

•       Exam score percentage – 76.4%, 76.43%

•       Air pressure – 1013.25 hPa

Key Properties of Continuous Data

ValuesAny number within a range, including decimals
How to collectMeasuring
Can it be divided?Yes, into smaller and smaller fractions
Central tendencyMean, median, mode
Best chartsHistogram, line chart, box plot, scatter plot
Statistical methodsNormal distribution, regression analysis, t-tests, ANOVA
Key Properties of Continuous Data

How Continuous Data Is Used in Data Science

Continuous data powers the most common types of machine learning models. Predicting a house price, estimating a patient’s blood glucose level, or forecasting tomorrow’s temperature are all regression problems that use continuous target variables.

Continuous data supports a wide range of statistical techniques, including Pearson correlation, linear regression, and ANOVA. These allow data scientists to find precise relationships between variables and make accurate predictions.

Real-World Example

A fitness app records a user’s weight every morning. Weight is continuous data because it can take any decimal value. The data science team uses linear regression to model weight trends over time and sends personalised goal recommendations to each user. 

Discrete vs. Continuous Data: Key Differences

FactorDiscrete DataContinuous Data
DefinitionCountable, separate valuesMeasurable, any value in a range
How is it collected?By countingBy measuring
Can it be divided?No – whole numbers onlyYes – to any decimal precision
ExampleNumber of students (25, 30)Height (1.73 m, 1.735 m)
Best chartBar chartHistogram, line chart
ML problem typeClassificationRegression
Distribution modelsPoisson, BinomialNormal, Gaussian
Discrete vs. Continuous Data

Also Explore: Top 25 Statistics Interview Questions for Data Science 

 All 4 Types of Data: Side-by-Side Comparison 

Data TypeCategoryHas Order?Measurable?ExampleBest ChartML Encoding
NominalQualitativeNoNoGender, cityBar, pieOne-hot encoding
OrdinalQualitativeYesNo (unequal gaps)Star rating, gradeBar chartLabel encoding
DiscreteQuantitativeYesCounted (integers)No. of studentsBar, histogramDirect (already numeric)
ContinuousQuantitativeYesMeasured (decimals)Height, salaryHistogram, scatterDirect / normalize
All 4 Types of Data: Difference

Scales of Measurement (Interval and Ratio Data)

Some frameworks break data into four measurement scales rather than four types. These are often asked in data science interviews and exams.

ScaleDescriptionHas True Zero?Example
NominalCategories, no orderNoBlood type, gender
OrdinalCategories with order, unequal gapsNoSatisfaction rating, education level
IntervalEqual gaps between values, no true zeroNoTemperature in Celsius (0°C is not ‘no heat’)
RatioEqual gaps and true zeroYes Weight, height, income (0 means none)
Scales of Measurement

Conclusion 

Understanding the types of data in data science is not just theory. It is a very practical skill for students, analysts, and data scientists. Every next step, such as choosing a chart, a test, or a machine learning model, depends on knowing the correct type of data.

Here is a simple summary to remember.

Nominal data means labelled categories with no order. You usually use bar charts and one-hot encoding.

Ordinal data means categories that have an order, but the gaps between them are not equal. You usually use the median and label encoding.

Discrete data means values that can be counted and are whole numbers. You usually use histograms and classification models.

Continuous data means measured values that can include decimals. You usually use regression models and normalisation.


 Frequently Asked Questions

What are the primary categories of data science?

Data science incorporates various methodologies and tools, primarily categorized into four types: descriptive, inferential, predictive, and prescriptive.

How many categories of data exist in statistical analysis?

There are four categories of data in statistical analysis: Nominal, Ordinal, Discrete, and Continuous.

What do the terms nominal, ordinal, and discrete signify in data types?

Nominal, Ordinal, and Discrete are specific types of data used to categorize different methods of quantification and analysis. Nominal data is categorized without a natural order or ranking, Ordinal data involves order but not fixed intervals, and Discrete data consists of distinct and separate values.

What are the 4 types of data in data science?

The four types are nominal, ordinal, discrete, and continuous. Nominal and ordinal are qualitative data. Discrete and continuous are quantitative data.

What is the difference between nominal and ordinal data?

Nominal data has no order, such as blood type. Ordinal data has an order, such as satisfaction level, but the gaps are not equal.

What is the difference between discrete and continuous data?

 Discrete data is counted in whole numbers. Continuous data is measured and can include decimals.

Why does the data type matter?

 It decides which charts, statistics, and machine learning methods you should use. Using the wrong type can give wrong results.

Can data change from one type to another?

Yes. For example, age as a number can be converted into age groups. This is called data transformation.

How is each data type encoded for machine learning?

 Nominal data uses one-hot encoding. Ordinal data uses label encoding. Discrete and continuous data are used as numbers, usually after scaling

What are the four scales of measurement in data science?

They are nominal, ordinal, interval, and ratio.

MDN

What type of data is age?

Age can be discrete, continuous, ordinal, or nominal, depending on how it is recorded.

Success Stories

Did you enjoy this article?

Comments

NKB chaz
9 months ago
Star Unselected Star Unselected Star Unselected Star Unselected Star Unselected

as am preparing for my research , this tips helped me to grasp something i hadn't before.thank as i see something in me from this simple and understable take away

Maghanga Gibran
11 months ago
Star Selected Star Selected Star Selected Star Selected Star Selected

Hello! This article has helped me a lot. I'm a slow learner but i've understood the contents in one read. thank you soo much and keep up the exemplary work you are doing. Unakaa mwalimu mzuri sana.

abc
1 months ago
Star Selected Star Unselected Star Unselected Star Unselected Star Unselected

no coment

Yousra Touheed
5 months ago
Star Selected Star Selected Star Selected Star Selected Star Selected

I really enjoyed reading this article as i am learning data analysis for the first time… Your article helped me clear my queries. Easy to understand.daily life examples makes it more practical to understand.

Schedule 1:1 free counselling

Similar Articles

Loading...
Get in Touch
Chat on Whatsapp
Request Callback
Share logo Copy link
Table of contents Table of contents
Table of contents Articles
Close button

  1. Data Types in Data Science (Qualitative and Quantitative)
    • Healthcare and Medicine
    • E-commerce and Retail
    • Education
    • Social Media Analytics
  2. What Is Qualitative (Categorical) Data?
  3. What Is Nominal Data?
    • Examples of Nominal Data
    • Key Properties of Nominal Data
    • How Nominal Data Is Used in Data Science
  4. What Is Ordinal Data?
    • Examples of Ordinal Data
    • Key Properties of Ordinal Data
    • Nominal vs. Ordinal Data: What Is the Difference?
  5. What Is Quantitative (Numerical) Data?
  6. What Is Discrete Data?
    • Key Properties of Discrete Data
    • How Discrete Data Is Used in Data Science
  7. What Is Continuous Data?
    • Key Properties of Continuous Data
    • How Continuous Data Is Used in Data Science
  8. Real-World Example
  9. Discrete vs. Continuous Data: Key Differences
  10. All 4 Types of Data: Side-by-Side Comparison
  11. Scales of Measurement (Interval and Ratio Data)
  12. Conclusion
  13. Frequently Asked Questions
    • What are the primary categories of data science?
    • How many categories of data exist in statistical analysis?
    • What do the terms nominal, ordinal, and discrete signify in data types?
    • What are the 4 types of data in data science?
    • What is the difference between nominal and ordinal data?
    • What is the difference between discrete and continuous data?
    • Why does the data type matter?
    • Can data change from one type to another?
    • How is each data type encoded for machine learning?
    • What are the four scales of measurement in data science?
    • What type of data is age?