Data is all around us: marks in school, weather readings, online orders, and messages on a phone. Data science is the study of data — collecting it, cleaning it, studying it, and using it to find useful information and make better decisions. In this chapter we learn how data is gathered, how it is cleaned, and how charts and graphs help us understand it.
Data means facts, numbers, words, images, or measurements that are collected and used to learn something. For example, a list of student marks, the daily temperature, and the number of books in a library are all data. Data science is the study of data. It includes collecting data, cleaning it, studying it, and using the results to find useful information and make better decisions. A school can use data to see which subjects need more help, a shop can use data to see which items sell most, and a hospital can use data to plan its work. Data science helps us move from guessing to deciding with evidence.
Data gathering is the first step in data science. It means collecting data from different sources. Data can be gathered through surveys, which ask people a set of questions, and through interviews, where a person answers questions face to face. It can also be gathered by observation, by watching and recording what happens, and by sensors, which are devices that measure things such as temperature or movement. Data is also gathered from online sources, such as websites and forms, and from records, such as school registers and hospital records. Good data gathering needs a clear purpose, so we know what information we need and why.
Data comes in two main types. Structured data is organised in rows and columns, so it is easy to read, search, and use. A spreadsheet with student names and marks is structured data, and so is a table in a database. Unstructured data has no fixed format. Examples are photos, videos, voice recordings, emails, and social media posts. Both types are useful, but unstructured data is harder to organise and study because it does not fit neatly into rows and columns. Before data is used, it is often organised and cleaned so that it is correct and ready to study.
Data that is collected is not always ready to use. It may have errors, repeated entries, or missing values. Data cleaning is the process of finding and fixing these problems. For example, a name may be spelled in two different ways, a mark may be missing, or the same student may appear twice in a list. Cleaning means correcting mistakes, removing duplicates, and filling in or marking missing values. Clean data gives correct results. If the data is wrong, the result of the study will also be wrong, even if the method used is correct. This is why cleaning is done before data is studied.
After data is cleaned, it is studied to find patterns and useful information. This study is called data analysis. The results are then shown in a way that is easy to understand, which is called data visualisation. Common charts are the bar chart, which compares values across categories; the pie chart, which shows parts of a whole; and the line graph, which shows how values change over time. For example, a bar chart can compare marks in different subjects, a pie chart can show the share of students in each class, and a line graph can show temperature over a week. A good chart has a clear title and labels so anyone can read it.
Data often belongs to people, so it must be handled with care. Personal information, such as names, addresses, and phone numbers, should be collected only with permission and kept private. Data should not be shared without a good reason, and it should not be used in a way that harms anyone. When a survey is made, the questions should be clear and fair, and people should not be forced to answer. Good data work is honest: results should be shown as they are, without hiding or changing them to suit a purpose.
| Term | Definition |
|---|---|
| Data Science | The study of data: collecting it, cleaning it, studying it, and using it to find useful information and make better decisions. |
| Data | Facts, numbers, words, images, or measurements that are collected and used to learn something or make a decision. |
| Data Gathering | The process of collecting facts and information from different sources, such as surveys, sensors, and websites. |
| Structured Data | Data that is arranged in rows and columns, such as a table or a spreadsheet, so it is easy to read and use. |
| Unstructured Data | Data that has no fixed format, such as text messages, photos, videos, and social media posts. |
| Data Cleaning | Finding and fixing errors, removing duplicates, and filling in missing values in data so that it is correct and ready to use. |
| Data Visualisation | Showing data with charts and graphs, such as bar charts and pie charts, so that patterns and results are easy to understand. |
1. What is data science?
Answer: B — Collecting, cleaning, studying, and using data. Data science is about collecting, cleaning, studying, and using data to find useful information.
2. What is data gathering?
Answer: A — Collecting data from different sources. Data gathering is the process of collecting facts and information from sources.
3. Which of the following is structured data?
Answer: D — A table with rows and columns. Structured data is organised in rows and columns, like a table or spreadsheet.
4. Which of the following is unstructured data?
Answer: C — A photo or video. Photos, videos, and messages have no fixed row-and-column format, so they are unstructured.
5. What is data cleaning?
Answer: B — Fixing errors and removing duplicates in data. Data cleaning fixes errors, removes duplicates, and fills in missing values.
6. A bar chart is used to:
Answer: C — To compare values across categories. A bar chart compares values across different categories, such as marks in different subjects.
7. A pie chart is used to show:
Answer: A — Parts of a whole. A pie chart shows each part as a share of the whole, often as a percentage.
8. Which chart is best to show how temperature changes over a week?
Answer: D — Change over time. A line graph shows how a value changes over time, such as temperature over a week.
9. What is a survey?
Answer: B — A set of questions used to collect information. A survey collects information by asking a set of questions to people.
10. Why is data cleaning important?
Answer: A — It can lead to wrong results and decisions. Dirty or wrong data leads to wrong results, so cleaning is needed before analysis.
1. What is data science? Give one example of its use.
Data science is the study of data: collecting it, cleaning it, studying it, and using it to find useful information and make better decisions. For example, a school can use data to see which subjects need more help.
2. What is data gathering? Name any three sources of data.
Data gathering is the process of collecting facts and information from different sources. Common sources are surveys, interviews, observation, sensors, online forms, and records such as school registers.
3. What is the difference between structured and unstructured data? Give one example of each.
Structured data is organised in rows and columns, such as a spreadsheet of student marks. Unstructured data has no fixed format, such as photos, videos, and text messages.
4. What is data cleaning? Why is it important?
Data cleaning is the process of finding and fixing errors in data, removing duplicate entries, and dealing with missing values. It is important because wrong data leads to wrong results and wrong decisions.
5. Name three types of charts and state what each one is used for.
A bar chart compares values across categories, such as marks in different subjects. A pie chart shows parts of a whole, such as the share of students in each class. A line graph shows how values change over time, such as temperature over a week.
Data science is about collecting, cleaning, studying, and using data to make better decisions. Data is gathered from surveys, interviews, observation, sensors, and online sources. Structured data fits in rows and columns, while unstructured data, such as photos and videos, does not. After cleaning, data is studied and shown with charts such as bar charts, pie charts, and line graphs, and personal data must always be handled with care.