What Is Data

Updated · 6 min read
easyPython 3.13aidatabeginnersbasics

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.

Every ordinary moment creates data
Kind of dataEveryday example
TextA name on a form, an email, a chat message
NumbersSteps walked, a price, a temperature, marks in an exam
ImagesA photo, a scanned document, an X-ray
AudioA voice note, a phone call, a song
VideoA security camera recording, a video call
Records of actionsA 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.

Python
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)
Output
[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

SourceExample
People typingForms, messages, reviews, search queries
Devices and sensorsPhones, fitness watches, cameras, weather stations
TransactionsShop purchases, bank payments, ticket bookings
Websites and appsPages visited, buttons clicked, videos watched
OrganizationsSchool records, hospital records, government statistics
Public collectionsOpen 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:

  1. Give one example of data for each of text, numbers, images and audio.
  2. How is an image stored inside a computer?
  3. Why does data decide what an AI model can do?

Quick check: what is data

4 questions
1Which of these is data?
2How does a computer store a photo?
3A fitness watch records your steps. What kind of data is this?
4Why is data called the raw material of AI?

Key Takeaways

Quick reference

TermMeaning
DataInformation a computer can store and process
PixelOne tiny dot of an image, stored as numbers
SensorA device that measures something, such as steps or temperature
RecordOne stored event or item, such as a purchase

Was this tutorial helpful?

Lesson 8 of 186