Random signals II. ÚPGM FIT VUT Brno,

Similar documents
Discrete Fourier Transform

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science : Discrete-Time Signal Processing

Spectral Analysis of Random Processes

Practical Spectral Estimation

Parametric Signal Modeling and Linear Prediction Theory 1. Discrete-time Stochastic Processes

Signals and Systems Spring 2004 Lecture #9

ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization

Correlator I. Basics. Chapter Introduction. 8.2 Digitization Sampling. D. Anish Roshi

ECE 636: Systems identification

In this Lecture. Frequency domain analysis

Complex symmetry Signals and Systems Fall 2015

Stochastic Processes. M. Sami Fadali Professor of Electrical Engineering University of Nevada, Reno

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY UNIT 3 RANDOM PROCESS TWO MARK QUESTIONS

Discrete Time Systems

ELEG 3143 Probability & Stochastic Process Ch. 6 Stochastic Process

Revision of Lecture 4

Homework 4. May An LTI system has an input, x(t) and output y(t) related through the equation y(t) = t e (t t ) x(t 2)dt

EE 224 Signals and Systems I Review 1/10

Lab 4: Quantization, Oversampling, and Noise Shaping

Lecture 3 - Design of Digital Filters

13.42 READING 6: SPECTRUM OF A RANDOM PROCESS 1. STATIONARY AND ERGODIC RANDOM PROCESSES

2A1H Time-Frequency Analysis II

Signal Processing Signal and System Classifications. Chapter 13

Signals and Spectra - Review

PROBABILITY AND RANDOM PROCESSESS

LECTURE 12 Sections Introduction to the Fourier series of periodic signals

Stochastic Process II Dr.-Ing. Sudchai Boonto

Massachusetts Institute of Technology

2A1H Time-Frequency Analysis II Bugs/queries to HT 2011 For hints and answers visit dwm/courses/2tf

Chapter 5. Fourier Analysis for Discrete-Time Signals and Systems Chapter

EE123 Digital Signal Processing

Review of Discrete-Time System

E4702 HW#4-5 solutions by Anmo Kim

System Identification & Parameter Estimation

Random Processes Handout IV

University of Connecticut Lecture Notes for ME5507 Fall 2014 Engineering Analysis I Part III: Fourier Analysis

BME 50500: Image and Signal Processing in Biomedicine. Lecture 2: Discrete Fourier Transform CCNY

Lecture Notes 7 Stationary Random Processes. Strict-Sense and Wide-Sense Stationarity. Autocorrelation Function of a Stationary Process

CHAPTER 2 RANDOM PROCESSES IN DISCRETE TIME

Principles of Communications

Each problem is worth 25 points, and you may solve the problems in any order.

Laboratory Project 2: Spectral Analysis and Optimal Filtering

Analysis of Finite Wordlength Effects

Final Exam of ECE301, Prof. Wang s section 8 10am Tuesday, May 6, 2014, EE 129.

2.161 Signal Processing: Continuous and Discrete Fall 2008

The Fourier Transform (and more )

LECTURE NOTES IN AUDIO ANALYSIS: PITCH ESTIMATION FOR DUMMIES

Fourier series for continuous and discrete time signals

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 3, SNR, non-linear Quantisation Gerald Schuller, TU Ilmenau

Fundamentals of Digital Commun. Ch. 4: Random Variables and Random Processes

Final Exam January 31, Solutions

6.003: Signals and Systems. Sampling and Quantization

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

EAS 305 Random Processes Viewgraph 1 of 10. Random Processes

Discrete-time Signals and Systems in

16.584: Random (Stochastic) Processes

Digital Signal Processing: Signal Transforms

DFT & Fast Fourier Transform PART-A. 7. Calculate the number of multiplications needed in the calculation of DFT and FFT with 64 point sequence.

L6: Short-time Fourier analysis and synthesis

Stochastic Processes. A stochastic process is a function of two variables:

Discrete Fourier Transform

Lecture 19: Discrete Fourier Series

Probability Space. J. McNames Portland State University ECE 538/638 Stochastic Signals Ver

LAB 2: DTFT, DFT, and DFT Spectral Analysis Summer 2011

LOPE3202: Communication Systems 10/18/2017 2

Fourier Representations of Signals & LTI Systems

Fast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding

Solutions. Number of Problems: 10

FROM ANALOGUE TO DIGITAL

EE482: Digital Signal Processing Applications

ECE 301 Fall 2010 Division 2 Homework 10 Solutions. { 1, if 2n t < 2n + 1, for any integer n, x(t) = 0, if 2n 1 t < 2n, for any integer n.

Atmospheric Flight Dynamics Example Exam 1 Solutions

1. Determine if each of the following are valid autocorrelation matrices of WSS processes. (Correlation Matrix),R c =

Lecture 3 January 23

2. SPECTRAL ANALYSIS APPLIED TO STOCHASTIC PROCESSES

3F1 Random Processes Examples Paper (for all 6 lectures)

Fast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Problem Sheet 1 Examples of Random Processes

A=randn(500,100); mu=mean(a); sigma_a=std(a); std_a=sigma_a/sqrt(500); [std(mu) mean(std_a)] % compare standard deviation of means % vs standard error

Lecture 7 Random Signal Analysis

Chapter 5 Frequency Domain Analysis of Systems

IV. Covariance Analysis

Deterministic. Deterministic data are those can be described by an explicit mathematical relationship

Digital Signal Processing

Each of these functions represents a signal in terms of its spectral components in the frequency domain.

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

EEL3135: Homework #3 Solutions

SIGNAL PROCESSING. B14 Option 4 lectures. Stephen Roberts

II. Nonparametric Spectrum Estimation for Stationary Random Signals - Non-parametric Methods -

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

CCNY. BME I5100: Biomedical Signal Processing. Stochastic Processes. Lucas C. Parra Biomedical Engineering Department City College of New York

SNR Calculation and Spectral Estimation [S&T Appendix A]

Discrete Time Fourier Transform

E : Lecture 1 Introduction

8/19/16. Fourier Analysis. Fourier analysis: the dial tone phone. Fourier analysis: the dial tone phone

Summary of lecture 1. E x = E x =T. X T (e i!t ) which motivates us to define the energy spectrum Φ xx (!) = jx (i!)j 2 Z 1 Z =T. 2 d!

Final Exam of ECE301, Section 3 (CRN ) 8 10am, Wednesday, December 13, 2017, Hiler Thtr.

Review: Continuous Fourier Transform

Probability and Statistics for Final Year Engineering Students

Transcription:

Random signals II. Jan Černocký ÚPGM FIT VUT Brno, cernocky@fit.vutbr.cz 1

Temporal estimate of autocorrelation coefficients for ergodic discrete-time random process. ˆR[k] = 1 N N 1 n=0 x[n]x[n + k], where N is the number of samples we have at our disposal, is called biased estimate. When we pull the signals from each other, R(k) is estimated from only N k samples, but we are always dividing by N, so that the values will decrease toward the edges. ˆR[k] = 1 N k N 1 n=0 x[n]x[n + k], is unbiased estimate, where the division is done by the actual number of overlapping samples. On the other hand, the coefficients on the edges: k N 1, k N + 1 are very badly estimated, as only few samples are available for their estimation. Therefore, we prefer biased estimates. 2

10 x 10 3 8 6 4 2 0 2 4 6 300 200 100 0 100 200 300 x 10 3 14 12 10 8 6 4 2 0 2 4 6 300 200 100 0 100 200 300 3

Power spectral density PSD continuous time We want to study the behavior in frequency also for random processes, but: we can not use Fourier series, as random signals are not periodic. we can not use Fourier transform, as random signals have infinite energy (FT can be applied to such signals, but only to some special cases). We will consider only ergodic random signals, one realization: x(t). Power spectral density PSD derivation. let us define an interval of length T: from T/2 till T/2: x(t) for t < T/2 x T (t) = 0 elsewhere 4

x We will define a Fourier image: -0.5T 0 +0.5T t X T (jω) = + x T (t)e jωt dt We will define energy spectral density (see the lecture on Fourier transform): x 2 T(t)dt =... = 1 2π X T (jω)x T ( jω)dω = L T (jω)dω L T (ω) will be called (double-sided) energy spectral density 5

L T (jω) = X(jω) 2 2π We will try to stretch T till. In this case however, the energy (and also its density) would grow to infinity. We will therefore define (double-sided) power spectral density by dividing the energy by T (analogy: P = E/T): G T (jω) = L T(jω) T now, the stretching can be done and power spectral density can be computed not only for the interval of length T, but for the whole signal: Properties of G(jω) G(jω) = lim T G T(jω) = lim T For spectral function of a real signal X T (jω): X T (jω) = X T( jω) X T (jω) 2 2πT G(jω) is given by squares of its values so that it will be purely real and even. 6

The mean power of random process in an interval [ω 1, ω 2 ] can be computed by: P [ω1, ω 2 ] = ω2 ω 1 G(jω)dω + ω1 ω 2 G(jω)dω = 2 ω2 ω 1 G(jω)dω. And the total mean power of random process is expressed as: P = + G(ω)dω In communication technology, often the mean value a = 0. Then, the mean power is equal to the variance: P = D and the effective value is equal to the standard deviation: X ef = σ. 7

Wiener-Chinchin s equations The power spectral density is linked to the auto-correlation function by R(τ) by FT (usually, we compute PSD in this way it is more tractable than increasing T ): G(jω) = 1 2π + R(τ)e jωτ dτ R(τ) = + G(jω)e +jωτ dω 8

Power spectral density discrete time PSD of discrete-time random process will be defined directly using auto-correlation coefficients (note the terminology: auto-correlation function R(τ) for continuous time but auto-correlation coefficients R[k] for discrete time): G(e jω ) = k= R[k]e jωk (question: which angular frequency is ω in this equation?). G(e jω ) is Discrete-time Fourier transform (DTFT) of auto-correlation coefficients. In case we estimate these (ensemble or temporal estimate), we can compute G(e jω ). Back from G(e jω ) to auto-correlation coefficients (inverse DTFT): R[k] = 1 2π π π G(e jω )e +jωk dω 9

Example: flowing water (R[k] estimated from one realization): 0.5 normalized omega 0.4 0.3 0.2 0.1 15 10 5 0 5 10 15 0.5 f 0.4 0.3 0.2 0.1 4 3 2 1 0 1 2 3 4 10 x 10 4

zoom from Fs/2 to Fs/2: normalized omega 0.7 0.6 0.5 0.4 0.3 0.2 0.1 3 2 1 0 1 2 3 f 0.7 0.6 0.5 0.4 0.3 0.2 0.1 8000 6000 4000 2000 0 2000 4000 6000 8000 the flowing water has a peak in the power at 700 Hz (a resonance of tube in my ex-apartment?) 11

Properties of G(e jω ) are again given by standard properties of DTFT-image of a real signal: auto-correlation coefficients are real, therefore G(e jω ) = G (e jω ), autocorrelation coefficients are symmetric (even), so that G(e jω ) will be purely real. by combining the two properties above, we can conclude, that G(e jω ) will be real and even, similarly to G(jω). it is periodic (with period 2π, 1, F s or 2πF s depends on which frequency you ll choose) as the signal is discrete. The mean power of random process in interval [ω 1, ω 2 ] can be computed as: P [ω1, ω 2 ] = 1 2π ω2 ω 1 G(e jω )dω + 1 2π ω1 ω 2 For the total mean power of random signal, we have: G(e jω )dω = 1 π ω2 ω 1 G(e jω )dω. P = 1 2π +π 12 π G(e jω )dω

...but this is a value of inverse DTFT for k = 0: R[0] = 1 2π π π G(e jω )e +jω0 dω = R[0] = 1 2π +π π G(e jω )dω so that we have obtained: R[0] = P 13

Estimation of power spectral density G(e jω ) using DFT In case we dispose of one realization of random process x[n] with samples N, we can estimate the PSD using Discrete Fourier transform (DFT...this is the only one that we can actually compute!). Reminder: X[k] = N 1 n=0 x[n]e j 2π N kn G(e jω ) will be obtained only for discrete frequencies: ω k = 2π N k: Ĝ(e jω k ) = 1 N X[k] 2. This estimate is usually very unreliable (noisy), so that we often use Welch method averaging of several PSD estimates over several time-segments: The signal is divided into M segments, each with N samples and DFT is computed 14

for each segment: X m [k] = N 1 n=0 x m [n]e j 2π N kn for 0 m M 1 The PSD-estimate is done: Ĝ W (e jω k ) = 1 M M 1 m=0 1 N X m[k] 2. 15

Example of PSD estimate from one 320-sample segment and average from 1068 such segments: 1.4 1.2 1 0.8 0.6 0.4 0.2 one realization 0 0 0.5 1 1.5 2 2.5 3 3.5 1 averaging Welch 0.8 0.6 0.4 0.2 0 0 0.5 1 1.5 2 2.5 3 3.5 the estimate obtained by averaging is much smoother. 16

Random signals processed by linear systems continuous time: the linear system has complex frequency response H(jω). For input signal with PSD G x (jω) the output PSD is: G y (jω) = H(jω) 2 G x (jω) discrete time: the linear system has complex frequency response H(e jω ). For input signal with PSD G x (e jω ), the output PSD is: G y (e jω ) = H(e jω ) 2 G x (e jω ) In both cases, the input PSD is multiplied by the square of the magnitude of complex frequency response. The shape of probability density function is not changed by the linear system only the parameters change. 17

Example: filtering of one realization of the water flowing by filter H(z) = 1 0.9z 1. Input signal and its PSD: 0.2 0 0.2 50 100 150 200 250 300 0.5 0.4 0.3 0.2 0.1 0 0.5 1 1.5 2 2.5 3 18

Magnitude of the complex frequency response and its square: H 1.5 1 0.5 0 0.5 1 1.5 2 2.5 3 3.5 H 2 3 2.5 2 1.5 1 0.5 0 0.5 1 1.5 2 2.5 3 19

Output signal and its PSD: 0.2 0 0.2 50 100 150 200 250 300 0.1 0.08 0.06 0.04 0.02 0 0.5 1 1.5 2 2.5 3 20

Example of random process Gaussian white noise In Matlab, function randn the samples are independent and the PDF is given by Gaussian distribution: p(x) = N(x; µ, σ) = 1 σ [x µ] 2 2π e 2σ 2 µ=0, σ=1 1 µ=0, σ=1 0.4 0.9 0.8 0.3 0.7 0.6 p(x) 0.2 F(x) 0.5 0.4 0.3 0.1 0.2 0.1 0 5 4 3 2 1 0 1 2 3 4 5 x 0 5 4 3 2 1 0 1 2 3 4 5 x Generation in Matlab: x = sigma*randn(1,n) + mu 21

3 2 1 0 1 2 3 0 20 40 60 80 100 120 140 160 180 200 Autocorrelation coefficients: R[0] = µ 2 + D, R[k] = µ 2 pro k 0 22

1 0.8 0.6 0.4 0.2 0 150 100 50 0 50 100 150 PSD for white noise is constant (therefore white ): G(e jω ) = R[0] 23

5 4 3 2 1 0 0.5 1 1.5 2 2.5 3 1.06 1.04 1.02 1 0.98 0.96 0.94 0.92 averaging Welch 0 0.5 1 1.5 2 2.5 3 For continuous time, a true white noise ca not be generated (in case G(jω) is be non-zero for all ω, the noise would have infinite energy...) 24

Quantization We can not represent samples of discrete signal x[n] with arbitrary precision quantization. Most often, we will round to a fixed number L quantization levels, which are numbered 0 to L 1. In case we dispose of b bits, L = 2 b. Uniform quantization has uniform distribution of quantization levels q 0...q L 1 from minimum value of the signal x min till its maximum value x max : Quantization step is given by: = x max x min, L 1 25

for large L, we can approximate by: = x max x min L Quantization: for value x[n], the index of the best quantization level is given by: i[n] = arg min x[n] q l, l=0...l 1. and the quantized signal is: Quantization error: x q [n] = q i[n]. e[n] = x[n] x q [n]. can also be considered as a signal! 26

Illustration of quantization on a cosine: x[n] = 4 cos(0.1n), L = 8: 4 2 0 2 20 40 60 80 100 120 140 160 180 4 2 0 2 20 40 60 80 100 120 140 160 180 0.5 0 0.5 20 40 60 80 100 120 140 160 180 27

To learn, how the signal was distorted by the quantization, we will compute the power of the useful signal P s and compare it to the power of noise P e : signal-to-noise ratio (SNR): SNR = 10 log 10 P s P e [db]. For computing the power of error signal, we will make use of the theory of random processes: we do not know the values of e[n], but we know that they will be in the interval [ 2, + 2 ] and that they will be uniformly distributed. Probability density function for e[n] will therefore be: 28

...its height 1 is given by the fact that the surface: 2 p e (g)dg! = 1. 2 This process has a zero mean value (we would easily obtain 2 2 power will be equal to the variance: gp e (g)dg = 0), so that its P e = D e = g 2 p e (g)dg = 2 2 g 2 p e (g)dg = 1 [ g 3 3 ] 2 2 = 1 3 ( 3 8 + 3 8 ) = 2 12 29

SNR computation for a cosine amplitude A, the cosine has power P s = A2 2 x min = A, x max = A, so that Signal-to-noise ratio: = 2A L P e = 2 12 = 4A2 12L 2 = A2 3L 2. SNR = 10 log 10 P s P e = 10 log 10 2A L A 2 3L 2 = 10 log 10 3L2 2. In case we dispose of b bits and the number of quantization levels is L = 2 b : SNR = 10 log 10 3 2 (2b ) 2 = 10 log 10 3 2 + 10 log 10 2 2b = 1.76 + 20b log 10 2 = 1.76 + 6 b db. The constant 1.76 depends on the character of signal (cos, noise), but it always holds that adding/removing 1 bit improves/decreases the SNR by 6 db. 30

Example: cosine with A = 4 quantized at L = 8 levels: SNR teor = 1.76 + 3 6 = 19.76 db SNR exp = 10 log 10 1 N 1 N N 1 n=0 N 1 n=0 s 2 [n] e 2 [n] Matlab: snr = 10*log10 (sum(x.^2) / sum(e.^2))...quite matching ;-) = 19.36 db 31