ArticleslgStudy

computer science

Garbage in, garbage out

Garbage in, garbage out is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Garbage in, garbage out rather than just read about it. In short: In computer science, garbage in, garbage out (GIGO) is the concept that flawed, biased or poor quality (garbage) information or input produces a result or output of similar ("garbage") quality. The saying points to the need to improve data quality in, for example, programming.

Key takeaways

  • Garbage in, garbage out belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Garbage in, garbage out to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Garbage in, garbage out from memory before moving on to harder problems.

Reference excerpt

In computer science, garbage in, garbage out (GIGO) is the concept that flawed, biased or poor quality (garbage) information or input produces a result or output of similar ("garbage") quality. The saying points to the need to improve data quality in, for example, programming. Rubbish in, rubbish out (RIRO) is an alternate wording. The principle applies to all logical argumentation: soundness implies validity, but validity does not imply soundness. In other words, assumptions matter: even if the argument’s form is perfectly logical, if the assumptions are false from the start, a false result is the likely outcome.

History The term may have been derived from similar formal terms for data structures last-in, first-out (LIFO) or first-in, first-out (FIFO). It is credited to George Fuechsel, an early IBM programmer, who introduced it in the late 1950s. For a wider public it was introduced a 1957 syndicated newspaper article about US Army mathematicians and their work with early computers, in which an Army Specialist named William D. Mellin explained that computers cannot think for themselves, and that "sloppily programmed" inputs inevitably lead to incorrect outputs. The underlying principle was noted by the inventor of the first programmable computing device design:

On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.

Uses This phrase can be used as an explanation for the poor quality of a digitized audio or video file. Although digitizing can be the first step in cleaning up a signal, it does not, by itself, improve the quality. Defects in the original analog signal will be faithfully recorded, but might be identified and removed by a subsequent step by digital signal processing. GIGO is also used to describe failures in human decision-making due to faulty, incomplete, or imprecise data. In audiology, GIGO describes the process that occurs at the dorsal cochlear nucleus (DCN) when auditory neuropathy spectrum disorder is present. This occurs when the neural firing from the cochlea has become unsynchronized, resulting in a static-filled sound being input into the DCN and then passed up the chain to the auditory cortex. The term was applied by Dan Schwartz at the 2012 Worldwide ANSD Conference, St. Petersburg, Florida, on 16 March 2012; and adopted as industry jargon to describe the electrical signal received by the DCN and passed up the auditory chain to the superior olivary complex on the way to the auditory cortex destination. GIGO was the name of a Usenet gateway program to FidoNet, MAUSnet, e.a. The phrase may also be used in the context of machine learning, where poor-quality training data will inevitably lead to a poor-quality model.

See also

Algorithmic bias Auditory neuropathy spectrum disorder Computer says no Data processing inequality FINO Model collapse No free lunch theorem Standard error Undefined behavior

References

Worked examples

Example 1 — a first encounter with Garbage in, garbage out

Start with the simplest possible case. Write down what Garbage in, garbage out claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Garbage in, garbage out before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Garbage in, garbage out ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Garbage in, garbage out

In research
Garbage in, garbage out appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Garbage in, garbage out in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Garbage in, garbage out is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer errors, Computer humour, Computer jargon, so understanding it makes those chapters shorter.
In everyday life
Look for Garbage in, garbage out outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Garbage in, garbage out” →

How to study Garbage in, garbage out in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Garbage in, garbage out means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Garbage in, garbage out out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Garbage in, garbage out in simple terms?

In computer science, garbage in, garbage out (GIGO) is the concept that flawed, biased or poor quality (garbage) information or input produces a result or output of similar ("garbage") quality. The saying points to the need to improve data quality in, for example, programming.

Why does Garbage in, garbage out matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Garbage in, garbage out?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Garbage in, garbage out.

Tags

  • Computer errors
  • Computer humour
  • Computer jargon

Keep exploring