Quiz: Fourier transform & basis functions
Short conceptual questions to test your feel for the Fourier transform and the idea of choosing a basis. This is an appreciation topic, so the questions are about understanding and vocabulary, not by-hand computation. Try each on paper first, then open the answer.
Q1. In one sentence: what does the Fourier transform of a signal tell you?
Think of the “recipe of waves” picture.
It tells you how much of each frequency (and at what phase) is present in the signal — i.e. it writes the signal as a sum of sinusoids and reports each one’s amplitude and phase.
Q2. The lecture says the Fourier transform is “just a change of basis.” What are the coordinates in the two bases, and why does “change of basis” imply the transform loses no information?
Standard basis = one axis per what? Fourier basis = one axis per what? A change of basis is reversible.
In the standard basis the coordinates are the signal’s values at each time point (or pixel) — one axis per sample. In the Fourier basis the coordinates are the amount of each frequency — one axis per frequency. A change of basis is an invertible rotation of the coordinate system, so the inverse transform reconstructs the original exactly: no information is lost.
Q3. Why is it important that sinusoids of different frequencies are orthogonal? Connect this to how a Fourier coefficient is computed.
Orthogonal basis vectors give clean, independent coordinates. Recall the projection idea from PCA.
Orthogonality means different-frequency waves do not overlap (\(f \cdot g = \sum_t f(t)g(t) = 0\)), so the amount of each frequency can be read off independently of the others. Each Fourier coefficient is simply the projection of the signal onto one basis wave — the same projection idea as reading a PCA score onto a principal axis.
Q4. Both Fourier and PCA express data in an orthogonal basis. State the key difference between the two bases, and give one situation where each is the natural choice.
One basis is fixed in advance; the other is learned from the data.
The Fourier basis is fixed — the same sinusoids for every signal, independent of the data. The PCA basis is data-driven — the axes are learned from the data’s covariance (its eigenvectors). Use Fourier when you expect structure at particular frequencies (a rhythm, a periodic stripe, a mains hum); use PCA when you want the basis to adapt to your dataset’s own main axes of variation (e.g. a gene-expression table or a set of spectra).
Q5. In a signal, which end of the spectrum — low or high frequency — carries the broad overall shape, and which carries fine detail? Why does this make naive “delete all high frequencies to remove noise” imperfect?
What kind of structure changes slowly, and what changes fast? What else besides noise is fast?
Low frequencies carry the broad, smooth overall shape; high frequencies carry fine detail. Deleting all high frequencies removes a lot of noise (noise is high-frequency), but sharp real edges and fine true detail are also high-frequency, so a blunt cut blurs genuine structure along with the noise. Filtering trades noise reduction against detail loss.
Q6. How does frequency-domain image compression (as in JPEG) save space, and what is the direct analogy to PCA?
Which coefficients are large in a natural image, and which can you throw away?
Most of a natural image’s energy sits in a few low-frequency coefficients; the many high-frequency ones are small. Compression keeps the large coefficients and discards the rest, storing far fewer numbers while the image still looks nearly the same. This is exactly like truncating a PCA to its top few components — represent the data in a smart basis, then keep only the coordinates that carry the signal. (JPEG uses the DCT, a Fourier relative; pushing it too far gives blocky artefacts.)
Q7. You want to remove a single 50 Hz electrical hum from an electrophysiology recording without disturbing the rest of the signal. What kind of filter is this, and why is the frequency domain the natural place to do it?
A single-frequency artefact is localised in the spectrum — you delete one spot.
A notch (band-stop) filter. The hum is a single frequency, so in the frequency domain it is localised at one spot; you can zero out just that frequency (and its immediate neighbours) and transform back, leaving all other frequencies untouched. In the time domain the same effect would require a carefully designed convolution — the convolution theorem tells us this is just a multiplication (a mask) in the frequency domain.
Q8. What is the one-sentence “big idea” shared by the Fourier transform and PCA? Use it to explain both compression and denoising.
Both re-express the data in an orthogonal basis. What do you then do with the coordinates?
Analysis is choosing a basis that matches your data’s structure, then keeping or masking coordinates in that basis. Fourier uses a fixed basis (sinusoids); PCA learns its axes from the data. Compression keeps only the few large coordinates (top frequencies, top PCs) and drops the rest. Denoising masks the coordinates where mostly noise lives (high frequencies, low-variance PCs) and transforms back.