Data is a collection of raw facts such as numbers, words, images, sounds and measurements. Computers can store and process different types of data depending on their purpose.
For example, a student’s name is text data, their marks are numerical data and their photograph is image data.
Common Forms of Data
Numerical Data
Numerical data contains numbers that can usually be counted or measured.
Examples:
- Student marks: 75, 82 and 91
- Product price: £25
- Temperature: 18°C
- Person’s age: 23 years
- Distance: 10.5 kilometres
Numerical data can be used in mathematical calculations.
Text Data
Text data contains letters, words, sentences or special characters.
Examples:
- Names
- Home addresses
- Email messages
- Website articles
- Product descriptions
A person’s phone number may contain numbers, but it is often stored as text because we do not perform mathematical calculations with it.
Image Data
Image data includes photographs, drawings, screenshots, diagrams and scanned documents.
Examples:
- Passport photograph
- Medical X-ray
- Website logo
- Map
- Security camera image
Digital images are made from tiny coloured squares called pixels.
Audio Data
Audio data contains recorded sound.
Examples:
- Music
- Voice messages
- Podcasts
- Telephone calls
- Sound effects
Common audio file formats include MP3, WAV and AAC.
Video Data
Video data contains moving images and usually includes sound.
Examples:
- Films
- YouTube videos
- Online classes
- CCTV recordings
- Video calls
Common video file formats include MP4, AVI and MOV.
Boolean Data
Boolean data has only two possible values:
- True or False
- Yes or No
- On or Off
- 1 or 0
For example, a website may store whether a user has verified their email as either True or False.
Qualitative and Quantitative Data
Data can also be divided into two main categories:
Qualitative Data → Describes qualities or categories
Quantitative Data → Represents numbers or measurements
What Is Qualitative Data?
Qualitative data describes qualities, labels or categories. It normally answers questions such as:
- What type?
- Which category?
- What colour?
- How does it feel?
Examples:
- Eye colour
- Country name
- Customer feedback
- Type of vehicle
- Level of satisfaction
Qualitative data is also called categorical data.
Nominal Data
Nominal data contains categories that do not have a natural order.
Examples:
- Blood group: A, B, AB or O
- Eye colour: Blue, brown or green
- Country: India, UK or Canada
- Device type: Mobile, tablet or computer
One category is not higher or lower than another.
Ordinal Data
Ordinal data contains categories that have a meaningful order or ranking.
Examples:
- Small, medium and large
- Beginner, intermediate and advanced
- Poor, average, good and excellent
- First, second and third position
The categories have an order, but the exact difference between them may not be measurable.
For example, “excellent” is better than “good,” but we cannot say exactly how much better it is.
What Is Quantitative Data?
Quantitative data is numerical data that can be counted or measured.
Examples:
- Number of students
- Height of a person
- Product price
- Distance travelled
- Monthly salary
Quantitative data is divided into discrete data and continuous data.
Discrete Data
Discrete data contains values that can be counted. It normally uses whole numbers.
Examples:
- Number of students in a class
- Number of cars in a car park
- Number of website visitors
- Number of books on a shelf
- Number of goals scored
A class can have 30 or 31 students, but it cannot have 30.5 students.
Continuous Data
Continuous data contains values that can be measured. It can include decimal values.
Examples:
- Height: 172.5 cm
- Weight: 68.4 kg
- Temperature: 21.7°C
- Time: 10.25 seconds
- Distance: 5.6 kilometres
Continuous data can have many possible values within a particular range.
Discrete Data vs Continuous Data
| Discrete Data | Continuous Data |
|---|---|
| Data is counted | Data is measured |
| Usually uses whole numbers | Can include decimal values |
| Has separate values | Can have any value within a range |
| Example: Number of students | Example: Height of students |
| Example: Number of products | Example: Weight of products |
Structured, Semi-Structured and Unstructured Data
Computers also classify data according to how it is organised.
Structured Data
Structured data is highly organised and normally stored in rows and columns.
Examples:
- Excel spreadsheets
- Customer databases
- Student attendance tables
- Bank transaction records
- Employee information
Structured data is easy for computers to search, sort and analyse.
Semi-Structured Data
Semi-structured data does not use a fixed table, but it still contains labels or tags that provide organisation.
Examples:
- Emails
- JSON files
- XML files
- Website HTML
- Online form responses
An email has a sender, receiver, subject and message. This gives it some structure, even though it is not stored like a normal table.
Unstructured Data
Unstructured data does not follow a fixed format or table structure.
Examples:
- Photographs
- Videos
- Audio recordings
- Social media posts
- PDF documents
- Customer reviews
Unstructured data can be more difficult for traditional computer systems to analyse. Technologies such as artificial intelligence can help identify patterns within it.
Primary and Secondary Data
Data can also be classified by where it comes from.
Primary Data
Primary data is collected directly for a specific purpose.
Examples:
- Conducting a survey
- Interviewing customers
- Recording an experiment
- Collecting information through a questionnaire
Primary data is usually more relevant to the researcher’s needs, but collecting it can take time and money.
Secondary Data
Secondary data has already been collected by another person or organisation.
Examples:
- Government reports
- Books and research papers
- Company records
- Published statistics
- Trusted websites
Secondary data is usually quicker to obtain, but it may be outdated or unsuitable for a specific purpose.
Simple Data Classification
- Qualitative data
- Nominal data
- Ordinal data
- Quantitative data
- Discrete data
- Continuous data
- Data by structure
- Structured data
- Semi-structured data
- Unstructured data
- Data by source
- Primary data
- Secondary data
Real-Life Student Example
A school may store several types of data about a student:
| Student Detail | Type of Data |
|---|---|
| Name | Text data |
| Age | Numerical data |
| Photograph | Image data |
| Present or absent | Boolean data |
| Number of classes attended | Discrete data |
| Height | Continuous data |
| Performance level | Ordinal data |
This shows that a single computer system can contain many different types of data.
Why Is Understanding Data Types Important?
Choosing the correct data type helps computers:
- Store data correctly
- Perform accurate calculations
- Search information quickly
- Reduce errors
- Protect sensitive information
- Select the correct analysis method
For example, storing a date of birth as a proper date allows the computer to calculate a person’s age. Storing it incorrectly may cause calculation errors.
Conclusion
Data can be classified in several ways. Beginners should first understand text, numerical, image, audio, video and Boolean data.
For a slightly more advanced understanding, remember:
- Qualitative data describes categories.
- Quantitative data represents numbers.
- Discrete data is counted.
- Continuous data is measured.
- Structured data follows a fixed format.
- Unstructured data does not have a fixed format.
Understanding these data types makes it easier to store, process and analyse information correctly.
Frequently Asked Questions
What are the two main types of data?
The two main types are qualitative data and quantitative data.
What is the difference between qualitative and quantitative data?
Qualitative data describes categories or qualities, while quantitative data contains numbers that can be counted or measured.
Is age discrete or continuous data?
Age can be continuous when measured precisely, such as 23.5 years. It may be treated as discrete when recorded only in complete years.
Is a photograph structured or unstructured data?
A photograph is normally considered unstructured data because it is not organised into rows and columns.
Is a phone number numerical data?
A phone number contains digits, but it is usually stored as text because it is used as an identifier and is not used for calculations.
