Statistics, spectral analysis, sampling and decimation
Digital Signal Processing · · dsp, spectral-analysis, sampling, multirate
Giorgi Aptsiauri · https://giorgiaptsiauri.com/notes/dsp-ctu/04-spectra-and-sampling/
Contents
Handwritten solutions, problems 2001–2205 and 2101a–2106 (PDF)
This typeset version was assembled by AI from my handwritten solutions. The handwritten PDF is the original source.
Problem 2001
Problem 2001 · CTU BE2M31DSPA exam
What is the formula for evaluation of signal power P_x from N samples of the signal x[n]? (6 points)
Handwritten work (PDF)
Example: N = 5, displaystyle hat P _x = 1 5 sum_ n=0 ^ 4 (x[n] )^2
Problem 2002
Problem 2002 · CTU BE2M31DSPA exam
What is the formula for evaluation of mean value mu_x from N samples of the signal x[n]? (6 points)
Handwritten work (PDF)
Problem 2003
Problem 2003 · CTU BE2M31DSPA exam
What is the formula for evaluation of variance sigma_x^2 from N samples of the signal x[n]? (6 points)
Handwritten work (PDF)
Problem 2004
Problem 2004 · CTU BE2M31DSPA exam
What is the formula for the evaluation of SNR (Signal-to-Noise-Ration) for the mixture of clean signal s[n] and additive noise n[n], i.e. x[n] = s[n] + n[n]? (6 points)
Handwritten work (PDF)
Problem 2008
Problem 2008 · CTU BE2M31DSPA exam
In the following figure, the continuous and aperiodic amplitude spectrum is shown. Determine, if analyzed signal was continuous or discrete in the time and if it was periodic or aperiodic. What kind of Fourier transform was used to obtain this spectrum? (6 points)
The figure is on page 2 of the scan.
Handwritten work (PDF)
Continuous in time, aperiodic. Simple old Fourier Transform.
Problem 2008a
Problem 2008a · CTU BE2M31DSPA exam
In the following figure, the discrete and aperiodic amplitude spectrum is shown. Determine, if analyzed signal was continuous or discrete in the time and if it was periodic or aperiodic. What kind of Fourier transform was used to obtain this spectrum? (6 points)
The figure is on page 2 of the scan.
Handwritten work (PDF)
Continuous in time, periodic. FS (Fourier series).
Problem 2008b
Problem 2008b · CTU BE2M31DSPA exam
In the following figure, the continuous and periodic amplitude spectrum is shown. Determine, if analyzed signal was continuous or discrete in the time and if it was periodic or aperiodic. What kind of Fourier transform was used to obtain this spectrum? (6 points)
The figure is on page 2 of the scan.
Handwritten work (PDF)
Discrete in time, aperiodic. Rightarrow DTFT
Problem 2008c
Problem 2008c · CTU BE2M31DSPA exam
In the following figure, the discrete and periodic amplitude spectrum is shown. Determine, if analyzed signal was continuous or discrete in the time and if it was periodic or aperiodic. What kind of Fourier transform was used to obtain this spectrum? (6 points)
The figure is on page 3 of the scan.
Handwritten work (PDF)
Discrete in time, periodic. DFT
Problem 2009
Problem 2009 · CTU BE2M31DSPA exam
Random signal n[n] with Gaussian distribution has the zero-mean value mu_n = 0 and variance sigma_n^2 = 0.01. Determine, how should the signal be modified to obtain the signal with new variance sigma_n^2 = 0.16. The mean value of modified signal should be again equal to. (6 points)
Handwritten work (PDF)
n = sqrt(0.16/0.01)*n
Problem 2009a
Problem 2009a · CTU BE2M31DSPA exam
Random signal n[n] with Gaussian distribution has the mean value mu_n = 0.1 and variance sigma_n^2 = 0.01. Determine, what is the value of the signal power P_n. (6 points)
Handwritten work (PDF)
hat P _x = 0.02, hat P _x = hat sigma ^2 + hat mu _n^2
Given: hat sigma ^2 = 0.01, hat mu _x = 0.1.
Now, group the like terms:
We have:
Problem 2009b
Problem 2009b · CTU BE2M31DSPA exam
Random signal n[n] with Gaussian distribution has the power P_n = 0.12. Determine, what is the value of signal variance sigma_n^2, when the signal has the zero-mean value mu_n = 0. (6 points)
Handwritten work (PDF)
Problem 2009c
Problem 2009c · CTU BE2M31DSPA exam
Random signal n[n] with Gaussian distribution has the power P_n = 0.2. Determine, what is the value of signal variance sigma_n^2, when the signal has the mean value mu_n = 0.2. (6 points)
Handwritten work (PDF)
Problem 2201
Problem 2201 · CTU BE2M31DSPA exam
We have quasi-periodic signal with period T_o which is less than number of the signal samples N, i.e. T_o < N. How can be detected the periodicity of such signal in short-time DFT spectrum with N samples? (6 points)
Handwritten work (PDF)
Zero-padding the signal can increase the resolution.
Problem 2201a
Problem 2201a · CTU BE2M31DSPA exam
We have quasi-periodic signal with period T_o which is less than number of the signal samples N, i.e. T_o < N. How can be detected the periodicity of such signal using the autocorrelation function? (6 points)
Handwritten work (PDF)
We detect the side global maximum of ACF.
Problem 2202
Problem 2202 · CTU BE2M31DSPA exam
We have real signal x[n]. Explain symmetry of real part, imaginary part, magnitude, and phase of DFT spectrum X[k]. (6 points)
Handwritten work (PDF)
Real part: even, imag: odd, magnitude: even, phase: odd.
Problem 2203
Problem 2203 · CTU BE2M31DSPA exam
Signal x_1[n] has discrete spectrum X_1[k] and signal x_2[n] has discrete spectrum X_2[k]. Write formula for the computation of convolution of these two signals in the time domain. How is the convolution computed in the spectral domain? (6 points)
Handwritten work (PDF)
Problem 2204
Problem 2204 · CTU BE2M31DSPA exam
What is spectral leackage in computation of DFT? How can we minimize this phenomenon? (6 points)
Handwritten work (PDF)
Spectral leakage is the phenomenon of smearing power across a frequency spectrum that occurs when the signal being analyzed is not periodic in the sample interval.
Example (of leakage): f = 1000 Hz, f_s = 8000 Hz (sinusoid).
Left: when N = 8 (one full cycle). Right: when N = 9 (one full cycle AND one more point of the next cycle, which belongs to the next cycle): leakage occurred, power is smeared across the spectrum. Source: 2204.tex · Data: data.py
We minimize this phenomenon by using weighting windows which lower the discontinuity wherever we do not have full cycles of the signal. For speech signals, it is particularly useful because it can reveal hidden formants.
Problem 2205
Problem 2205 · CTU BE2M31DSPA exam
Why we are using weighting windows for computation of DFT? Draw a typical shape of the window which are usually used for such purpose. (6 points)
Handwritten work (PDF)
We are using weighting windows to minimize the phenomenon of spectral leakage.
Example of a weighting window: Hamming window.
M: number of samples of the function, as in Matlab. Source: 2205.tex · Data: data.py
Problem 2115
Problem 2115 · CTU BE2M31DSPA exam
Explain the principle of the sampling theorem. Determine, which minimal sampling frequency f_s should be used for the sampling of the signal which has non-zero spectrum in the frequency band 0 div 200 Hz. (6 points)
Handwritten work (PDF)
The sampling theorem specifies the minimum sampling rate at which a continuous-time signal needs to be uniformly sampled so that the original signal can be completely recovered or reconstructed by these samples alone.
If a function x(t) contains no frequencies higher than B Hz, sufficient sampling rate is anything greater than 2B [ samples second ]. More succinctly, f_s > 2B.
x(t) Rightarrow 0 div 200 Hz. Highest frequency is 200 Hz.
Problem 2116
Problem 2116 · CTU BE2M31DSPA exam
Is it possible to decimate the signal sampled with f_s = 8000 Hz, which has the non-zero spectrum in the band 0 div 2000 Hz? If so, what are the values of decimation factor and new sampling frequncy? If not, explain why. Draw illustrativelly the spectrum of the original and decimated signal. (6 points)
Handwritten work (PDF)
Yes, possible! Sampling theorem must be fulfilled:
New sampling frequency f_ s,new = 4000 Hz. M = decimation factor:
Top: original signal spectrum, f_ s,old = 8000 Hz. Bottom: decimated signal spectrum, f_ s,new = 4000 Hz. Source: 2116.tex
Problem 2117
Problem 2117 · CTU BE2M31DSPA exam
Is it possible to decimate the signal sampled with f_s = 8000 Hz, which has the non-zero spectrum in the band 1000 div 4000 Hz? If so, what are the values of decimation factor and new sampling frequncy? If not, explain why. Draw illustrativelly the spectrum of the original and decimated signal. (6 points)
Handwritten work (PDF)
Let’s see the calculations below. We must use band-pass sampling instead of Nyquist sampling (we used this in the previous problem).
Rules:
where
f_d = 1000 Hz, f_h = 4000 Hz
Minimum f_s is 8000, so we can’t downsample this signal!
Problem 2118
Problem 2118 · CTU BE2M31DSPA exam
Is it possible to decimate the signal sampled with f_s = 8000 Hz, which has the non-zero spectrum in the band 3000 div 4000 Hz? If so, what are the values of decimation factor and new sampling frequncy? If not, explain why. Draw illustrativelly the spectrum of the original and decimated signal. (6 points)
Handwritten work (PDF)
Same rules as above. The given signal is called a band-pass signal, so we must use band-pass sampling.
arrow Yes! We can downsample this signal with f_s = 2000 Hz, decimation factor is 4.
I will use a continuous spectrum example for practical purposes.
Top: original spectrum (which is sampled at Nyquist rate). Bottom: decimated spectrum, f_s = 2000 Hz. Source: 2118.tex
Problem 2119
Problem 2119 · CTU BE2M31DSPA exam
Explain the procedure for the realization of low-band signal reconstruction (interpolation) to target sampling frequency f_s,new = 8000 when it was decimated to sampling frequency f_s = 4000 Hz and when it had non-zero spectrum in the band 0 div 2000 Hz before the decimation. (6 points)
Handwritten work (PDF)
f_ s,low = 4 kHz in, f_ s,high = 8 kHz out. Source: 2119.tex
Problem 2119a
Problem 2119a · CTU BE2M31DSPA exam
Explain the procedure for the realization of high-band signal reconstruction (interpolation) to target sampling frequency f_s,new = 8000 when it was decimated to sampling frequency f_s = 4000 Hz and when it had non-zero spectrum in the band 2000 div 4000 Hz before the decimation. (6 points)
Handwritten work (PDF)
f_ s,low = 4 kHz in. Source: 2119a.tex
Problem 2121
Problem 2121 · CTU BE2M31DSPA exam
Describe the procedure of the change of the sampling frequency of the signal sampled with f_s = 8 kHz to new sampling frequency f_s,new = 12 kHz. (6 points)
Handwritten work (PDF)
f_s = 8 kHz, f_ s,new = 12 kHz, L M = f_ s,new f_ s,orig
f_s = 8 kHz in, f_ s,new = 12 kHz out. Source: 2121.tex
Problem 2122
Problem 2122 · CTU BE2M31DSPA exam
Describe the procedure of the change of the sampling frequency of the signal sampled with f_s = 16 kHz to new sampling frequency f_s,new = 6 kHz. (6 points)
Handwritten work (PDF)
f_s = 16 kHz, f_ s,new = 6 kHz, L M = 6 16 = 3 8
f_s = 16 kHz in, f_ s,new = 6 kHz out. Source: 2122.tex
Problem 2100
Problem 2100 · CTU BE2M31DSPA exam
What is spectrogram of the signal? Explain the term of time-frequency resolution in the signal spectrogram. Which parameter of spectrogram computation affects the time and the frequency resolution? (6 points)
Handwritten work (PDF)
A spectrogram is a visual representation of the spectrum of frequencies of a signal as it varies with time.
N is the length of a short-time frame. Uncertainty principle: boxed Delta f cdot Delta t = const
- High N arrow better freq. res.; worse time res.
- Low N arrow worse time res.; worse freq. res.
Problem 2100a
Problem 2100a · CTU BE2M31DSPA exam
Determine the procedure of signal spectrogram computation and show illustratively its typical graphical representation. Describe all axes! (6 points)
Handwritten work (PDF)
- Segmentation into short-time (s-t) frames.
- Weighting and possible overlap of s-t frames.
- DFT each periodogram.
- Observe as time varies.
Frames of 0.5 s. Source: 2100a.tex
Problem 2101
Problem 2101 · CTU BE2M31DSPA exam
What is the difference between “power spectrum” and “power spectral density”? (6 points)
Handwritten work (PDF)
Power spectrum:
Describes the distribution of power contained in a signal as a function of frequency. [watt]
PSD: PSD of the signal describes the power present in the signal as a function of frequency, per unit frequency. [watt/Hz]
pwelch can be used for PSD estimation.
Problem 2101a
Problem 2101a · CTU BE2M31DSPA exam
Explain the procedure of the computation of power spectral density (PSD) using the Welch method. (6 points)
Handwritten work (PDF)
- Signal is divided into short-time (s-t) frames (possibly with overlap).
- s-t frames can be weighted.
- Periodograms (power spectra) are computed for each s-t frame using DFT.
- Particular s-t periodograms are averaged.
Source: 2101a.tex
Problem 2102
Problem 2102 · CTU BE2M31DSPA exam
How can be detected the delay between two correlated signals x_1[n] and x_2[n] using cross-correlation function? Give the formula for the evaluation of cross-correlation function. (6 points)
Handwritten work (PDF)
Delay can be detected by localizing the global maximum of CCF (cross-correlation function).
Same as ACF, but two different signals are used.
Problem 2104
Problem 2104 · CTU BE2M31DSPA exam
What is the difference between deterministic and stachastic signal? Give the example of two deterministic signals and two stochastic signals. (6 points)
Handwritten work (PDF)
Deterministic: defined by generation formula (reproducible). Ex: harmonic signals, periodic signals, exponential pulse…
Stochastic: value is random and defined by probability density function (pdf). Ex: white noise, color noise…
Problem 2105
Problem 2105 · CTU BE2M31DSPA exam
Draw probality density function of signal samples for White Gaussian noise and for white noise with uniform distribution. (6 points)
Handwritten work (PDF)
Uniform: same probability for values between a and b because it’s uniform! Source: 2105.tex
Problem 2106
Problem 2106 · CTU BE2M31DSPA exam
Draw illustratively power spectral density of White Gaussian noise. What is the relationship between the power spectral density nad variance of Gaussian white noise? (6 points)
Handwritten work (PDF)
Almost same power at all frequencies. Source: 2106.tex · Data: data.py
Describes how much power the random signal has given a frequency.
Variance is average power contained in the random signal.
© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/dsp-ctu/04-spectra-and-sampling/