Before analysing data, we must first collect it and make sure it is correct. Imagine that your teacher wants to know the favourite subjects of students in your school. You may collect answers from students, but some students might leave questions unanswered or enter incorrect information.
This is why data collection, cleaning, and preparation are important. They help us turn raw information into useful and organised data.
At the end of this module, you should be able to:
Data collection is the process of gathering information for a particular purpose. The information collected can be numbers, words, dates, pictures, or answers to questions.
For example, a school may collect information about:
A teacher wants to know how many students prefer Mathematics, English, Science, and Computer Studies.
The teacher asks students to select their favourite subject. Their answers become data that can be analysed.
There are several ways to collect data. Here are some common methods:
A survey is a set of questions used to collect information from people. A questionnaire is the list of questions that people answer.
For example, a business can ask customers whether they are happy with its products or services.
An interview involves asking someone questions and recording their answers. A school may interview students to understand why they prefer certain subjects.
Observation means watching something carefully and recording what happens. For example, a shop owner may count how many customers enter the shop each day.
Sometimes, information has already been collected. You can use existing records such as school attendance sheets, sales reports, customer records, and examination results.
Data collection tools help us gather information quickly and organise the answers we receive.
Google Forms is an online tool that allows people to create questions and collect answers.
You can use it to:
Microsoft Forms is another online tool for creating surveys, quizzes, and questionnaires. It can collect responses and display them in organised reports.
Excel and Google Sheets can be used to enter information manually, organise records, and prepare collected data for analysis.
Imagine asking five students to choose their favourite subject.
| Student | Favourite Subject |
|---|---|
| Ada | Mathematics |
| John | English |
| Mary | Science |
| David | Mathematics |
| Samuel | Computer Studies |
This information can be entered into Excel or Google Sheets and used to create a chart showing the most popular subject.
Data cleaning is the process of finding and correcting mistakes in a dataset. It helps make information accurate, complete, and consistent.
Think about preparing food. Before cooking rice, you may remove stones and other unwanted materials. Data cleaning works in a similar way: it removes or corrects unwanted mistakes in information.
Here are some common problems that can appear in a dataset:
A missing value occurs when information that should be provided is left blank.
| Student | Age |
|---|---|
| Ada | 13 |
| John | |
| Mary | 14 |
John does not have an age recorded. We should check the original information instead of guessing his age.
A duplicate happens when the same record appears more than once.
| Student | Class |
|---|---|
| Ada | JSS 2 |
| John | JSS 1 |
| Ada | JSS 2 |
Ada's record appears twice. If these are accidental duplicates, one of them should be removed after checking the original records.
Different spellings can make the same information look like different categories.
For example:
These entries may refer to the same location. They should be checked and corrected to use one consistent spelling.
Information may be recorded in different formats. For example, dates could appear as 25/11/2026, 11/25/2026, or 25-Nov-2026.
A dataset should use a consistent date format so that it is easier to sort and analyse.
Excel provides useful features for cleaning data, including:
Power Query is a data preparation tool available in Microsoft Excel and Power BI. It helps users import, clean, transform, and organise data.
With Power Query, you can:
OpenRefine is a tool that helps users clean and organise messy datasets. It is useful for finding similar words, correcting inconsistent entries, and exploring large collections of information.
Data preparation is the process of organising and arranging data before using it for analysis.
Data preparation may involve:
A shop in Ibadan wants to understand how much money it makes every week. The owner collects sales records from different days.
| Product | Quantity Sold | Price (โฆ) |
|---|---|---|
| Rice | 5 | 2500 |
| Beans | 3 | 1800 |
| Milk | 4 | 1200 |
Before analysing the records, the owner checks that all products have names, quantities, and prices. The owner also checks for duplicate entries and makes sure the prices are recorded as numbers.
They are important because they help us:
Study the table below. It contains some data problems.
| Student | Age | Location |
|---|---|---|
| Ada | 13 | Ibadan |
| John | 14 | lagos |
| Mary | Abuja | |
| Ada | 13 | Ibadan |
| Samuel | 15 | Lagoss |
Your tasks:
Remember: Do not guess missing information. Check the original source before making corrections.
1. What is data collection?
2. Which tool can be used to create online surveys?
3. What is a duplicate record?
4. Which tool helps clean and transform data in Excel?
5. Why should we clean data before analysing it?
In this module, you learned that data collection involves gathering information, while data cleaning involves finding and correcting mistakes. You also learned that data preparation organises information so it can be analysed properly.
Tools such as Google Forms, Microsoft Forms, Excel, Power Query, and OpenRefine can help us collect, clean, and prepare data.
Always remember: good analysis begins with good-quality data.
In the next module, you will learn about Cloud-Based and AI-Powered Data Analysis Tools. You will discover how cloud platforms and artificial intelligence help people analyse information more quickly.