Unit 5: Data analysis · Big data

Article

The era of big data

7 min read

Your phone can hold a few thousand photos. Now picture a photo app with a billion users, and every one of them is taking photos today. Where do the pictures go? How would you count them, search them or learn anything from them? Data on this scale has its own name: big data.

How big is big?

Data is measured in bytes. You learned in Unit 1 that one byte is 8 bits, and enough to store one letter of plain text. Bigger amounts get bigger names. In this course each step up is 1,000 times bigger than the one before.

The sizes of data

  1. Petabyte (PB)

    1,000 TB: the disks of a thousand laptops

  2. Terabyte (TB)

    1,000 GB: the disk of a laptop

  3. Gigabyte (GB)

    1,000 MB: a film, or a phone game

  4. Megabyte (MB)

    1,000 KB: a photo or a song is a few of these

  5. Kilobyte (KB)

    1,000 bytes: a short paragraph of text

Above a petabyte come the exabyte (1,000 PB) and the zettabyte (1,000 EB).

Real files vary, so to compare sizes we use round numbers. Say a photo is 2 MB, a song is 4 MB and a film is 2 GB.

SizeIn bytesWhat fits
1 KB1,000a short paragraph of text
1 MB1,000,000half of one photo
1 GB1,000,000,000250 songs, or 500 photos
1 TB1,000,000,000,000500 films
1 PB1,000,000,000,000,000500 million photos

To change from one unit to the next one down, multiply by 1,000. So 3 TB is 3,000 GB, and 2 PB is 2,000 TB.

Check your understanding

Which statement best describes big data?

Now ask a different question: how long would it take to read that much data? Suppose an ordinary computer can read 100 MB (100,000,000 bytes) every second. Run the code. Then change the size to 10 ** 15, which is 1 PB.

Runs in your browser

A terabyte takes about 2.8 hours. A petabyte takes about 116 days of reading, before you have even started to think about the data. That is the beginning of the problem.

What makes data "big"?

There is no exact number where data becomes "big". Data is big data when it is so large, so fast or so varied that one computer and ordinary tools cannot handle it. People remember three things that can make it big. They all start with V.

The VThe questionExample
VolumeHow much is there?Billions of photos
VelocityHow fast does new data arrive?A sensor reading every second, all day
VarietyHow many kinds are there?Text, photos, video and numbers in one set

Because "big" depends on the tools, the same amount of data can be ordinary for one team and huge for another. A team with a data centre of computers may handle a petabyte easily. A student with one laptop cannot.

Worked example: is it big data?

A city wants to follow its vehicles. Each report is about 100 bytes (an id, a place and a time). We compare two plans.

Plan A: 500 busesPlan B: 2 million phones
Reportsone every 5 secondsone every 5 seconds
Bytes each second500 × 100 ÷ 5 = 10,0002,000,000 × 100 ÷ 5 = 40,000,000
In one day864 MBabout 3.5 TB
In one yearabout 315 GBabout 1.3 PB

Plan A fits on one ordinary computer, so it is not big data. Plan B is about 4,000 times bigger. A year of it would need over a thousand 1 TB disks, so it is big data. The program for each plan could be the same. Only the size changes.

Check your understanding

How many gigabytes (GB) are in 2 terabytes (TB)?

What big data makes possible

With enough data, a computer can find patterns that no person would notice. That is why big data is useful.

  • Maps that predict the traffic on your road from the speed of thousands of phones.
  • Weather forecasts built from millions of readings.
  • Science, such as finding new diseases or planets in huge piles of measurements.
  • Recommendations of videos or songs, from what many people watched.
  • Fraud detection: a bank spots an odd payment because it has seen billions of normal ones.

Common mistakes

  • "Big data means one exact size." There is no fixed line. It depends on what your tools can handle.
  • "Big data only means volume." Fast arrival (velocity) and many kinds of data (variety) count too.
  • "More data is always better." Not always. The next articles show why.
  • "1 GB is 100 MB." Each step is 1,000 times bigger, so 1 GB is 1,000 MB.

On the exam

Questions about big data mix easy facts with ideas from earlier units. You may be told a data set is huge and asked what the main challenge is. You may be asked why many computers are used for it. Or you may be asked what a large data set lets people do. Remember: a data set is "big" when it is too much for ordinary tools, and the answer to "too much" is usually a scalable system with parallel or distributed computing.

Key words

Big data: data sets so large, so fast or so varied that one computer and ordinary tools cannot handle them.

Volume: how much data there is.

Velocity: how fast new data arrive.

Variety: how many different kinds of data there are.

Kilobyte, megabyte, gigabyte, terabyte, petabyte: units of data. Each is 1,000 times bigger than the one before.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site. All lessons and questions here are written by JrCodex.