What Is Data
What did you create today without noticing? Srihitha took a photo of the sea, sent a voice note to her sister, filled in a form at the clinic, walked 6,000 steps with her watch on, and bought a bag of mandarins. She didn't write a single file, yet every one of those moments created data.
Earlier lessons said again and again that AI learns from examples. Those examples are data. In this lesson, you will see what data is, where it comes from, and how a computer stores it.
Data Is Information
Data is any information a computer can store and process: names, ages, photos, shopping history, payments, emails, voice recordings and readings from sensors such as a fitness watch.
| Kind of data | Everyday example |
|---|---|
| Text | A name on a form, an email, a chat message |
| Numbers | Steps walked, a price, a temperature, marks in an exam |
| Images | A photo, a scanned document, an X-ray |
| Audio | A voice note, a phone call, a song |
| Video | A security camera recording, a video call |
| Records of actions | A purchase, a payment, a click on a website |
Everything Becomes Numbers
A computer only works with numbers, so every kind of data is stored as numbers. Text is stored as a code for each character. An image is a grid of tiny dots called pixels, each with a number for its brightness or color. Sound is stored as thousands of measurements of the sound wave every second.
message = "Hi"
# A computer stores every character as a number
print(list(message.encode("utf-8")))
# A tiny 2 x 2 grayscale image: 0 is black, 255 is white
image = [[0, 255],
[255, 0]]
print(image)[72, 105]
[[0, 255], [255, 0]]This is why AI can learn from photos and voices at all: once they are numbers, a model can look for patterns in them. A real phone photo has millions of pixels, each with three numbers for red, green and blue.
Where Data Comes From
| Source | Example |
|---|---|
| People typing | Forms, messages, reviews, search queries |
| Devices and sensors | Phones, fitness watches, cameras, weather stations |
| Transactions | Shop purchases, bank payments, ticket bookings |
| Websites and apps | Pages visited, buttons clicked, videos watched |
| Organizations | School records, hospital records, government statistics |
| Public collections | Open datasets that researchers and governments publish |
Much of this data is about people, so it comes with responsibilities: who collected it, did people agree, and who can see it? "Data Privacy Basics" covers those questions.
Common Mistakes
Thinking data means only spreadsheets. Photos, voice notes, videos and documents are data too, and most of the world's data looks like them.
Thinking more data is always better. More data helps only if it is accurate and relevant, as "Data Quality and Bias in Data" explains.
Forgetting that data is often about people. A list of purchases or a step count can reveal a lot about someone's life.
Interview Corner
What is data, in the context of AI?
Any information a computer can store and process, such as text, numbers, images, audio and video. AI models learn patterns from data, so the data decides what a model can do.
How can a computer learn from a photo?
The photo is stored as numbers: a grid of pixels, each with values for color or brightness. A model looks for patterns in those numbers, such as the edges and shapes that make up a face.
Practice
Exercise: a data diary. For one hour, list every piece of data you create or use: messages, photos, payments, steps, searches. For each one, write the kind of data (text, numbers, image, audio, video or record) and who might store it.
Check your understanding:
- Give one example of data for each of text, numbers, images and audio.
- How is an image stored inside a computer?
- Why does data decide what an AI model can do?
Key Takeaways
Quick reference
| Term | Meaning |
|---|---|
| Data | Information a computer can store and process |
| Pixel | One tiny dot of an image, stored as numbers |
| Sensor | A device that measures something, such as steps or temperature |
| Record | One stored event or item, such as a purchase |
Was this tutorial helpful?