Skip to content

#Nyquist-Shannon Theorem

1 ideas

We're gathering ideas for this tag. Check back soon!

Get new #Nyquist-Shannon Theorem ideas by email

Every Thursday: the week's best ideas, with the newest from #Nyquist-Shannon Theorem.

The Nyquist-Shannon Theorem, Explained Simply

Every time you listen to an MP3, take a photo, or record a video, you are trusting a piece of mathematics worked out long before any of those things existed. The Nyquist-Shannon sampling theorem answers a deceptively simple question: how often do you have to measure a continuously changing signal so that you can later reconstruct it exactly, with nothing missing?

Two names, one idea

The result carries the names of Harry Nyquist and Claude Shannon, who worked on the problem of transmitting information at Bell Labs in the first half of the twentieth century. Nyquist approached it from the practical side of telegraph and telephone signals; Shannon later gave it its precise, general form. What they established is often called the sampling theorem, and it is one of the founding ideas of the digital age: continuous reality can be captured as a finite list of numbers, provided you take those numbers often enough.

The core statement

Read more

A signal is band-limited if it contains no frequencies above some maximum, call it B. The theorem says that such a signal is completely determined by its values taken at regular intervals, as long as the sampling rate is greater than twice B. Twice B is called the Nyquist rate; half your sampling rate is called the Nyquist frequency. Stay above that line and the original waveform can be rebuilt exactly from the samples, with no information lost — not approximately, but perfectly.

What happens when you don't

Sample too slowly and something strange occurs: high frequencies disguise themselves as low ones. A fast oscillation, measured only occasionally, produces a pattern of readings indistinguishable from a slower one. This is aliasing, and it is not a small error — the original is unrecoverable.

You have probably seen it. A spinning wheel on film sometimes appears to turn backwards, or stand still, because the camera's frame rate is too low to follow the spokes. The same effect makes fine patterns shimmer on a screen, and it is why audio engineers place a filter before a converter to remove frequencies that would otherwise fold down into the audible range as whistles and buzz.

Where it shows up

Digital audio, video, medical imaging, radar, radio, control systems and instrument design all rest on this principle. Any device that turns a physical quantity into numbers is, knowingly or not, making a bet about the highest frequency it will encounter.

Practical things to remember

  • Know your bandwidth before you choose a sample rate, and allow a margin above the bare minimum.
  • Filter first. Removing content you cannot represent is far better than letting it alias.
  • More samples than necessary is safe; too few is destructive.
  • The theorem assumes ideal conditions. Real converters and real filters are imperfect, which is why working systems leave headroom.

Once you notice the idea, you start seeing it everywhere — in every dial that becomes data.

Videos come from YouTube and posts from Instagram; titles and summaries are our own. All rights belong to their creators.