Welcome to Module 2! In the previous module, you learned what data analysis means and the difference between data, information, and knowledge.
Now, let's learn how data is arranged and stored. Imagine opening an Excel spreadsheet containing the names, ages, examination scores, and favourite subjects of students. Each piece of information has a place in the spreadsheet.
Understanding data types and structures helps you organize information correctly and prepare it for analysis.
When working with data, you will often come across numbers and text. These are two common forms of data.
Numerical data is information represented by numbers. It can be used for counting or measuring.
Examples include:
Numerical data is useful when calculating totals, averages, differences, and percentages.
Text data contains letters, words, or combinations of letters and numbers that are treated as text.
Examples include:
Text data is useful for identifying people, describing products, and grouping information into categories.
Not every value containing digits is numerical data. For example, a phone number or student identification number is usually treated as text because you do not add or average it.
| Value | Data Type | Reason |
|---|---|---|
| 25 | Numerical | It can be used in calculations. |
| Chinwe | Text | It is a person's name. |
| โฆ10,000 | Numerical | It represents an amount of money. |
| 08012345678 | Text | It is a phone number, not a measurement. |
Rows and columns are used to organize information in tables and spreadsheets.
A row is a horizontal arrangement of information in a table or spreadsheet. It moves from left to right.
For example, imagine a school record containing student names, ages, and examination scores. Each student's information can be placed in a separate row.
A column is a vertical arrangement of information. It moves from top to bottom.
For example, all student names can appear in one column, all ages in another column, and all examination scores in a third column.
Study this example:
| Student Name | Age | Subject | Score |
|---|---|---|---|
| John | 14 | Mathematics | 85 |
| Amina | 13 | English | 90 |
| Peter | 15 | Science | 78 |
In this table:
A record is a complete collection of information about one person, object, or activity.
For example, in a student database, one record may contain:
All these details together form one student record.
A field is one specific category of information stored in a record or database.
Examples of fields include:
Think of a school registration form. When you see spaces labelled Full Name, Date of Birth, and Class, each label represents a field.
| Student Name | Age | Class |
|---|---|---|
| John | 14 | JSS 2 |
| Amina | 13 | JSS 1 |
In this example, each student occupies one record, while Student Name, Age, and Class are fields.
A dataset is a collection of related data organized for storage, study, or analysis.
For example, a supermarket may have a dataset containing information about products sold every day.
| Product | Quantity Sold | Price |
|---|---|---|
| Rice | 20 | โฆ5,000 |
| Beans | 15 | โฆ3,500 |
| Cooking Oil | 10 | โฆ4,000 |
The complete table is a dataset because it contains related information about products and sales.
Datasets can be stored in different places, including:
Data can also be classified according to how it is organized.
Structured data is information arranged in a clear format, usually using rows and columns.
Examples include:
Structured data is generally easy to organize, search, and analyze using spreadsheets and database tools.
Semi-structured data does not always follow a traditional table format, but it contains labels, tags, or other information that help organize it.
Examples include:
For example, a JSON record may look like this:
{
"name": "John",
"age": 14,
"subject": "Mathematics"
}
The labels help identify what each value represents.
Unstructured data is information that does not follow a fixed table or database structure.
Examples include:
For example, a video uploaded to YouTube is unstructured data because it is not naturally arranged as rows and columns.
| Data Structure | Meaning | Examples |
|---|---|---|
| Structured | Organized in a fixed format | Excel tables and SQL databases |
| Semi-Structured | Uses labels or tags to organize information | JSON, XML, and emails |
| Unstructured | Does not follow a fixed data structure | Images, videos, and audio |
Imagine you work as a junior data analyst in a school in Lagos. Your teacher gives you the following student information:
Your task is to organize the information into a table.
| Student Name | Age | Class | Mathematics Score |
|---|---|---|---|
| John | 14 | JSS 2 | 85 |
| Amina | 13 | JSS 1 | 90 |
| Peter | 15 | JSS 3 | 78 |
Now answer these questions:
In this module, you learned about numerical and text data, rows and columns, records and fields, and datasets. You also explored the differences between structured, semi-structured, and unstructured data.
These concepts are important because data analysts must understand how information is organized before they can examine it and produce useful results.
After completing this module, you should be able to identify numerical and text data, recognize rows and columns, explain records and fields, describe datasets, and distinguish between structured, semi-structured, and unstructured data.