Welcome to Module 4! Before a data analyst can create charts, calculate averages, or prepare reports, there is an important step to complete: collecting and preparing data.
Imagine you own a supermarket in Ibadan. You want to know which products customers buy most often. You will need to collect information about sales, organize it, check for mistakes, and prepare it for analysis.
In this module, you will learn important terms related to data collection and preparation. You will also understand why clean and reliable data is important.
Data collection is the process of gathering information from different sources for a particular purpose.
People and organizations collect data to answer questions, solve problems, and make better decisions.
1. Surveys: A survey involves asking people questions to collect information about their opinions, experiences, or behaviour.
Example: A school asks 200 students about their favourite subjects.
2. Interviews: An interview involves asking someone questions directly to obtain information.
Example: A business owner interviews customers to understand why they prefer a particular product.
3. Observation: Observation involves watching activities or events and recording what happens.
Example: A supermarket observes how customers move around the store.
4. Online Forms: Online forms allow people to submit information through the internet.
Example: A company uses Google Forms to collect job application details.
5. Existing Records: Analysts can collect information from records that already exist.
Example: A school uses previous examination results to study students' academic performance.
A data source is the place, system, or person from which data is obtained.
Data analysts use different sources depending on the type of information they need.
Primary data is information collected directly by the person or organization conducting the research.
Examples include:
For example, if CRMNuggets asks learners to complete a survey about their favourite technology courses, the answers collected are primary data.
Secondary data is information that was previously collected by another person or organization and is reused for a new purpose.
Examples include:
For example, a student studying population growth in Nigeria may use population reports published by a government agency.
| Data Source | Meaning | Example |
|---|---|---|
| Primary Data | Collected directly by the researcher | Customer survey |
| Secondary Data | Previously collected by someone else | Published research report |
Data cleaning is the process of identifying and correcting errors, inconsistencies, and other problems in a dataset.
Imagine a business has a customer list containing the following records:
| Customer Name | Age | City |
|---|---|---|
| John | 25 | Ibadan |
| Amina | Lagos | |
| Peter | 30 | Abuja |
| John | 25 | Ibadan |
There are two possible problems in this dataset:
Data cleaning helps identify these problems so that the analyst can decide how to handle them.
Important: Data cleaning does not mean deleting every unusual value. An analyst must investigate records before changing or removing them.
Missing values occur when information that should be available in a dataset is empty or not recorded.
Example:
| Student Name | Age | Score |
|---|---|---|
| John | 14 | 85 |
| Amina | 90 | |
| Peter | 15 | 78 |
Amina's age is missing. This is an example of a missing value.
Never guess important information without a clear reason.
Duplicate values or records occur when the same information appears more than once when it should only appear once.
Example:
| Customer ID | Customer Name |
|---|---|
| C001 | John |
| C002 | Amina |
| C001 | John |
John's record appears twice with the same customer ID. If these are accidental duplicates, the analyst should investigate and remove the extra record.
However, two identical-looking transactions may be genuine separate purchases. Always check before deleting records.
Data transformation is the process of changing data from one format, structure, or value representation into another to make it suitable for analysis.
For example, a business may store dates in different formats:
An analyst may convert these dates into one consistent format.
Other examples of data transformation include:
Data validation is the process of checking whether data follows expected rules before it is accepted or used.
For example, imagine a school registration form that asks students to enter their ages.
If the expected age range is 10 to 20, the system can reject an entry of 150 because it is outside the permitted range.
| Term | Meaning | Example |
|---|---|---|
| Data Cleaning | Finding and correcting data problems | Removing accidental duplicates |
| Data Transformation | Changing data into a useful format | Standardizing date formats |
| Data Validation | Checking data against rules | Rejecting an invalid age |
Imagine you are working as a junior data analyst for a small supermarket in Ibadan. The manager gives you the following sales records:
| Product | Quantity Sold | Price | Date |
|---|---|---|---|
| Rice | 10 | 5000 | 26/11/2026 |
| Beans | 5 | 3500 | November 26, 2026 |
| Rice | 10 | 5000 | 26/11/2026 |
| Cooking Oil | 4000 | 2026-11-26 |
Look carefully at the dataset and identify the problems.
This activity shows why data preparation is important before creating a sales report.
In this module, you learned how data is collected and where it comes from. You explored primary and secondary data sources, data cleaning, missing values, duplicate records, data transformation, and data validation.
You also learned that data should be checked and prepared before analysis. Poor-quality data can lead to incorrect reports and bad decisions.
After completing this module, you should be able to explain data collection methods, identify primary and secondary data sources, recognize missing and duplicate values, describe data cleaning and transformation, and explain how validation rules help maintain data quality.