Types of Data in Data Science: Definitions, Examples, and Applications
Mar 05, 2026 7 Min Read 72147 Views
(Last Updated)
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
- Data Types in Data Science (Qualitative and Quantitative)
- Healthcare and Medicine
- E-commerce and Retail
- Education
- Social Media Analytics
- What Is Qualitative (Categorical) Data?
- What Is Nominal Data?
- Examples of Nominal Data
- Key Properties of Nominal Data
- How Nominal Data Is Used in Data Science
- What Is Ordinal Data?
- Examples of Ordinal Data
- Key Properties of Ordinal Data
- Nominal vs. Ordinal Data: What Is the Difference?
- What Is Quantitative (Numerical) Data?
- What Is Discrete Data?
- Key Properties of Discrete Data
- How Discrete Data Is Used in Data Science
- What Is Continuous Data?
- Key Properties of Continuous Data
- How Continuous Data Is Used in Data Science
- Real-World Example
- Discrete vs. Continuous Data: Key Differences
- All 4 Types of Data: Side-by-Side Comparison
- Scales of Measurement (Interval and Ratio Data)
- Conclusion
- 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 Category | Data Type | Key Property | Examples |
| Qualitative | Nominal | Categories, no order | Gender, eye colour, city name |
| Qualitative | Ordinal | Categories with order | Star ratings, education level |
| Quantitative | Discrete | Countable whole numbers | Number of students, number of clicks |
| Quantitative | Continuous | Measurable, any value in a range | Height, 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.
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
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 called | Categorical data |
| Subtypes | Nominal and Ordinal |
| Can you average it? | No |
| Best charts | Bar chart, pie chart, frequency table |
| ML encoding | One-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
| Order | None. Categories cannot be ranked. |
| Arithmetic | Not possible. You cannot add, subtract, multiply, or divide. |
| Central tendency | Mode only (the most common category) |
| Best charts | Bar chart, pie chart |
| Statistical tests | Chi-square test, frequency analysis |
| ML encoding | One-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
| Order | Yes. Categories can be ranked from low to high. |
| Equal intervals | No. The gap between ranks is unknown or unequal. |
| Arithmetic | Not reliably possible. Averages can be misleading. |
| Central tendency | Median and mode |
| Best charts | Bar chart, stacked bar chart, ordered frequency table |
| Statistical tests | Mann-Whitney U test, Spearman’s rank correlation |
| ML encoding | Label encoding (assign numbers 1, 2, 3 to preserve order) |
Nominal vs. Ordinal Data: What Is the Difference?
| Factor | Nominal Data | Nominal DataOrdinal Data |
| Is there an order? | No | Yes |
| Can you rank categories? | No | Yes |
| Are intervals equal? | No | No |
| Example | Blood type (A, B, AB, O) | Pain scale (1 to 10) |
| Encoding in ML | One-hot encoding | Label encoding |
| Central tendency | Mode only | Median and mode |
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 called | Numerical data |
| Subtypes | Discrete and Continuous |
| Can you average it? | Yes |
| Best charts | Histogram, scatter plot, line chart, box plot |
| Statistical operations | Mean, median, mode, standard deviation, correlation |
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
| Values | Whole numbers (integers) only |
| How to collect | Counting |
| Can it be divided? | No. 2.5 children is not possible. |
| Central tendency | Mean, median, mode |
| Best charts | Bar chart, histogram, dot plot |
| Statistical methods | Poisson distribution, binomial distribution, frequency tables |
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
| Values | Any number within a range, including decimals |
| How to collect | Measuring |
| Can it be divided? | Yes, into smaller and smaller fractions |
| Central tendency | Mean, median, mode |
| Best charts | Histogram, line chart, box plot, scatter plot |
| Statistical methods | Normal distribution, regression analysis, t-tests, ANOVA |
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
| Factor | Discrete Data | Continuous Data |
| Definition | Countable, separate values | Measurable, any value in a range |
| How is it collected? | By counting | By measuring |
| Can it be divided? | No – whole numbers only | Yes – to any decimal precision |
| Example | Number of students (25, 30) | Height (1.73 m, 1.735 m) |
| Best chart | Bar chart | Histogram, line chart |
| ML problem type | Classification | Regression |
| Distribution models | Poisson, Binomial | Normal, Gaussian |
Also Explore: Top 25 Statistics Interview Questions for Data Science
All 4 Types of Data: Side-by-Side Comparison
| Data Type | Category | Has Order? | Measurable? | Example | Best Chart | ML Encoding |
| Nominal | Qualitative | No | No | Gender, city | Bar, pie | One-hot encoding |
| Ordinal | Qualitative | Yes | No (unequal gaps) | Star rating, grade | Bar chart | Label encoding |
| Discrete | Quantitative | Yes | Counted (integers) | No. of students | Bar, histogram | Direct (already numeric) |
| Continuous | Quantitative | Yes | Measured (decimals) | Height, salary | Histogram, scatter | Direct / normalize |
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.
| Scale | Description | Has True Zero? | Example |
| Nominal | Categories, no order | No | Blood type, gender |
| Ordinal | Categories with order, unequal gaps | No | Satisfaction rating, education level |
| Interval | Equal gaps between values, no true zero | No | Temperature in Celsius (0°C is not ‘no heat’) |
| Ratio | Equal gaps and true zero | Yes | Weight, height, income (0 means none) |
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.
What type of data is age?
Age can be discrete, continuous, ordinal, or nominal, depending on how it is recorded.



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
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.
no coment
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.