Bohrium
robot
新建

空间站广场

论文
Notebooks
比赛
课程
Apps
我的主页
我的Notebooks
我的论文库
我的足迹

我的工作空间

任务
节点
文件
数据集
镜像
项目
数据库
公开
Digital-Signal-Processing_04_Random Signals and LTI-Systems_Introduction
English
notebook
Signal Processing
EnglishnotebookSignal Processing
喇叭花
发布于 2023-08-02
推荐镜像 :digital-signal-processing:Digital-Signal-Processing-Lecture
推荐机型 :c2_m4_cpu
赞 1
1
Random Signals and LTI-Systems
Introduction
Stationarity and Ergodicity
Example - Response of an LTI system to a random signal

Random Signals and LTI-Systems

🏃🏻 Getting Started Guide
This document can be executed directly on the Bohrium Notebook. To begin, click the Connect button located at the top of the interface, then select the digital-signal-processing:Digital-Signal-Processing-Lecture Image and choose your desired machine configuration to proceed.

📖 Source
This Notebook is from a famous Signal Processing Lecture. The notebooks constitute the lecture notes to the masters course Digital Signal Processing read by Sascha Spors, Institute of Communications Engineering, Universität Rostock.

This jupyter notebook is part of a collection of notebooks on various topics of Digital Signal Processing. Please direct questions and suggestions to Sascha.Spors@uni-rostock.de.

代码
文本

Introduction

The response of a system to a random input signal is the foundation of statistical signal processing. In the following we limit ourselves to linear-time invariant (LTI) systems.

LTI_system_td.png

In the following it is assumed that the statistical properties of the input signal are known. For instance, its first- and second-order ensemble averages. It is further assumed that the impulse response or the transfer function of the LTI system is given. We are looking for the statistical properties of the output signal and the joint properties between the input and output signal.

代码
文本

Stationarity and Ergodicity

The question arises if the output signal of an LTI system is (wide-sense) stationary or (wide-sense) ergodic for an input signal exhibiting the same properties.

Let's assume that the input signal is drawn from a stationary random process. According to the definition of stationarity the following relation must hold

where denotes an arbitrary (temporal) shift and an arbitary mapping function. The condition for time-invariance of a system reads

for . Applying the system operator to the left- and right-hand side of the definition of stationarity for the input signal and recalling the linearity of the expectation operator yields

where denotes an arbitrary mapping function that may differ from . From the equation above, it can be concluded that the output signal of an LTI system for a stationary input signal is also stationary. The same reasoning can also be applied to an ergodic input signal. Since both wide-sense stationarity (WSS) and wide-sense ergodicity are special cases of the general case, the derived results hold also here.

Summarizing, for an input signal that is

  • (wide-sense) stationary, the output signal is (wide-sense) stationary and the in- and output is jointly (wide-sense) stationary
  • (wide-sense) ergodic, the output signal is (wide-sense) ergodic and the in- and output is jointly (wide-sense) ergodic

This implies for instance, that for a WSS input signal measures like the auto-correlation function (ACF) can also be applied to the output signal of an LTI system.

代码
文本

Example - Response of an LTI system to a random signal

The following example computes and plots estimates of the linear mean and auto-correlation function (ACF) for the in- and output of an LTI system. The input is drawn from a normally distributed white noise process.

代码
文本
[1]
import numpy as np
import matplotlib.pyplot as plt

L = 64 # number of random samples
N = 1000 # number of sample functions

# generate input signal (white Gaussian noise)
np.random.seed(1)
x = np.random.normal(size=(N, L))
# generate output signal
h = 2*np.fft.irfft([1, 1, 1, 0, 0, 0])
y = np.asarray([np.convolve(x[n, :], h, mode='same') for n in range(N)])


def compute_plot_results(x):
'''Compute and plot linear mean and ACF'''

# estimate linear mean by ensemble average
mu = 1/N * np.sum(x, 0)
# estimate the auto-correlation function
acf = np.zeros((L, L))
for n in range(L):
for m in range(L):
acf[n, m] = 1/N * np.sum(x[:, n]*x[:, m], 0)

plt.subplot(121)
plt.stem(mu)
plt.title(r'Estimate of linear mean $\hat{\mu}[k]$')
plt.xlabel(r'$k$')
plt.ylabel(r'$\hat{\mu}[k]$')
plt.axis([0, L, -1.5, 1.5])

plt.subplot(122)
plt.pcolor(np.arange(L+1), np.arange(L+1), acf, vmin=-2, vmax=2)
plt.title(r'Estimate of ACF $\hat{\varphi}[k_1, k_2]$')
plt.xlabel(r'$k_1$')
plt.ylabel(r'$k_2$')
plt.colorbar()
plt.autoscale(tight=True)


plt.figure(figsize=(10, 5))
plt.gcf().suptitle(r'Input signal $x[k]$', fontsize=12)
compute_plot_results(x)

plt.figure(figsize=(10, 5))
plt.gcf().suptitle(r'Output signal $y[k]$', fontsize=12)
compute_plot_results(y)
代码
文本

Exercise

  • Are the in- and output signals WSS?
  • Can the output signal be assumed to be white noise?

Solution: From the shown results it can assumed for the input signal that the linear mean does not depend on the time-index and that the ACF does only depend on the difference of both time indexes. The same holds also for the output signal . Hence both the in- and output signal are WSS. Although the input signal can be assumed to be white noise, the output signal is not white noise due to its ACF .

代码
文本

Copyright

This notebook is provided as Open Educational Resource. Feel free to use the notebook for your own purposes. The text is licensed under Creative Commons Attribution 4.0, the code of the IPython examples under the MIT license. Please attribute the work as follows: Sascha Spors, Digital Signal Processing - Lecture notes featuring computational examples.

代码
文本
English
notebook
Signal Processing
EnglishnotebookSignal Processing
已赞1
推荐阅读
公开
Digital-Signal-Processing 04Random Signals and LTI-Systems_Measurement of Acoustic Impulse Responses
EnglishnotebookSignal Processing
EnglishnotebookSignal Processing
喇叭花
发布于 2023-08-02
公开
Digital-Signal-Processing_04_Random Signals and LTI-Systems_Auto-Correlation Function
EnglishnotebookSignal Processing
EnglishnotebookSignal Processing
喇叭花
发布于 2023-08-02