You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

9.1 Sampling theorem and aliasing

3 min readjuly 18, 2024

The Nyquist-Shannon sampling theorem is a cornerstone of digital . It states that to accurately capture a signal, you need to sample it at least twice as fast as its highest frequency component. This rule helps prevent , a that occurs when signals are undersampled.

Aliasing can lead to weird effects like pitch shifting in audio or moiré patterns in images. To avoid it, you need to choose the right . can improve signal quality, but it comes with trade-offs like increased data storage and processing needs.

Sampling Theorem and Aliasing

Nyquist-Shannon sampling theorem significance

Top images from around the web for Nyquist-Shannon sampling theorem significance
Top images from around the web for Nyquist-Shannon sampling theorem significance
  • States a band-limited continuous-time signal can be perfectly reconstructed from its samples if the sampling frequency is at least twice the signal's maximum frequency ()
    • Mathematically expressed as fs2fmaxf_s \geq 2f_{max}, where fsf_s is the sampling frequency and fmaxf_{max} is the maximum frequency of the signal
  • Provides a fundamental guideline for selecting an appropriate sampling frequency to accurately represent and reconstruct a continuous-time signal (audio, video)
  • Ensures the original signal can be recovered from its discrete-time representation without loss of information
  • Helps prevent aliasing, which can cause distortion and loss of information in the reconstructed signal (distorted audio, visual artifacts)

Aliasing and sampling frequency

  • Occurs when a signal is sampled at a frequency lower than twice its maximum frequency (Nyquist rate)
    • Results in high-frequency components of the signal being misinterpreted as lower-frequency components in the sampled signal (audio pitch shifting, visual moiré patterns)
    • Causes distortion and loss of information in the reconstructed signal
  • If the sampling frequency is less than twice the maximum frequency of the signal, aliasing will occur
  • Increasing the sampling frequency above the Nyquist rate reduces the risk of aliasing (44.1 kHz for audio CDs, 48 kHz for professional audio)
  • Sampling at exactly the Nyquist rate (fs=2fmaxf_s = 2f_{max}) theoretically prevents aliasing, but practical considerations often require a higher sampling frequency (anti-aliasing filters, noise)

Minimum sampling frequency calculation

  • To avoid aliasing, the minimum sampling frequency (fsf_s) must be at least twice the signal's bandwidth (BB)
    • Mathematically expressed as fs2Bf_s \geq 2B
  • Calculate the minimum sampling frequency:
    1. Identify the signal's bandwidth (BB), which is the difference between the maximum and minimum frequencies present in the signal
    2. Multiply the bandwidth by 2 to obtain the minimum sampling frequency required to avoid aliasing
  • If a signal has a bandwidth of 100 Hz, the minimum sampling frequency to avoid aliasing would be fs2×100=200f_s \geq 2 \times 100 = 200 Hz

Effects of under and oversampling

  • (sampling below the Nyquist rate)
    • Results in aliasing, causing high-frequency components to be misinterpreted as lower-frequency components (audio pitch shifting, visual moiré patterns)
    • Leads to distortion and loss of information in the reconstructed signal
    • Cannot accurately reconstruct the original signal from the sampled data
  • Oversampling (sampling above the Nyquist rate)
    • Helps reduce aliasing and improve signal reconstruction accuracy
    • Provides more samples than the minimum required, allowing for better representation of the original signal (higher resolution, smoother curves)
    • Enables the use of simpler anti-aliasing filters with lower cutoff frequencies
    • Increases the (SNR) of the sampled signal (reduced quantization noise)
    • Requires more storage space and processing power compared to sampling at the Nyquist rate
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary