


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



By the Nyquist theorem the analysable frequency range is:
f in [0 , Fs/2] = [0 , 350] Hz
The frequency resolution (smallest distinguishable frequency step) is:
fr = 1/T = 1/7200 = 1.39 x 10^(-4) Hz
The ECG signal is modelled as a sum of harmonics of the fundamental heart-rate frequency and its respiratory baseline drift:
f_HR = 75/60 = 1.25 Hz (fundamental) f_RR = 20/60 ~ 0.333 Hz (respiration)
An ECG waveform contains up to ~25 harmonics of f_HR:
f_max = 25 x 1.25 = 31.25 Hz
Since 31.25 Hz < 350 Hz (Nyquist limit), the signal can be fully analysed in frequency with this sampling rate — no aliasing occurs.
The spectrum shows discrete lines at multiples of 1.25 Hz (ECG harmonics, blue), multiples of 0.333 Hz (respiration, green), and a dominant power-line spike at 60 Hz (red). The ECG content is confined below 31. Hz.
Yes, it is possible to obtain a cleaner trace using a combination of filters:
Combined filter chain: HPF (0.5 Hz) -> LPF (35 Hz) -> Notch (60 Hz) gives a clean ECG in the pass-band 0.5–35 Hz with the power-line artefact suppressed.
x1(n) = [4, 7, 0, 5] x2(n) = [8, -4, 24, 4]
All four data points align very closely on a straight line with negative slope. The computed rho ~ -1.000 is very close to -1, so the answer is rho = -1 (perfect negative linear correlation). This means x2 is almost perfectly predicted by a decreasing linear function of x1.
We use the least-squares linear regression x2 = m*x1 + q :
Step 1 – form a system using two data points to find m and q:
n=1: x1=4, x2=8 -> 8 = 4m + q n=2: x1=7, x2=-4 -> -4 = 7m + q
Subtracting the first from the second:
-4 - 8 = 7m - 4m -> -12 = 3m -> m = -
Back-substituting: q = 8 - 4*(-4) = 8 + 16 = 24 -> but let us use LSQ:
Least-squares gives the best-fit slope and intercept for all 4 points:
m = -4.0000 ~ - q = 24.0000 ~ 24 (rounding to integers)
_Regression line: x2 = -4x1 + 24_*
rho = -1.0000 ~ -1 (perfect negative linear correlation)
Because all points fall (almost) exactly on a line of negative slope, the Pearson coefficient is extremely close to -1. This confirms the visual assessment from parts 1 and 2.