<< Chapter < Page Chapter >> Page >

Questions or comments concerning this laboratory should be directedto Prof. Charles A. Bouman, School of Electrical and Computer Engineering, Purdue University, West Lafayette IN 47907;(765) 494-0340; bouman@ecn.purdue.edu

Introduction

In the first and second weeks of this experiment, weintroduced methods of statistically characterizing random processes. The sample autocorrelation and cross correlation are examples of“time domain” characterizations of random signals. In many applications, it can also be useful to get the frequency domaincharacteristics of a random process. Examples include detection of sinusoidal signals in noise, speech recognition and coding, and rangeestimation in radar systems.

In this week, we will introduce methods to estimate the power spectrum of a random signal given a finite number of observations. We will examine the effectiveness of the periodogram for spectrum estimation, and introduce the spectrogram to characterize a nonstationary random processes.

Power spectrum estimation

In this section, you will estimate the power spectrum of a stationary discrete random process.The power spectrum is defined as

S x x ( ω ) = lim N E 1 N n = 0 N - 1 x ( n ) e - j ω n 2

There are 4 steps for calculating a power spectrum:

  1. Select a window of length N and generate a finite sequence x ( 0 ) , x ( 1 ) , , x ( N - 1 ) .
  2. Calculate the DTFT of the windowed sequence x ( n ) , ( n = 0 , 1 , , N - 1 ) , square the magnitude of the DTFT and divide it by the length of the sequence.
  3. Take the expectation with respect to x .
  4. Let the length of the window go to infinity.

In real applications, we can only approximate the power spectrum. Two methods are introduced in this section.They are the periodogram and the averaged periodogram .

Periodogram

Click here for help on the fft command and the random command .

The periodogram is a simple and common method for estimating a power spectrum.Given a finite duration discrete random sequence x ( n ) , ( n = 0 , 1 , , N - 1 ) , the periodogram is defined as

P x x ( ω ) = 1 N X ( ω ) 2 = 1 N n = 0 N - 1 x ( n ) e - j ω n 2

where X ( ω ) is the Discrete Time Fourier Transform (DTFT) of x ( n ) .

The periodogram P x x ( ω ) can be computed using the Discrete Fourier Transformation (DFT), which in turn can beefficiently computed by the Fast Fourier Transformation (FFT). If x ( n ) is of length N , you can compute an N -point DFT.

P x x ( ω k ) = 1 N n = 0 N - 1 x ( n ) e - j ω k n 2
ω k = 2 π k N , k = 0 , 1 , , N - 1

Using [link] and [link] , write a Matlab function called Pgram to calculate the periodogram. The syntax for this function should be

[P,w] = Pgram(x)

where x is a discrete random sequence of length N . The outputs of this command are P , the samples of the periodogram, and w , the corresponding frequencies of the samples. Both P and w should be vectors of length N .

Now, let x be a Gaussian (Normal) random variable with mean 0 and variance 1. Use Matlab function random or randn to generate 1024 i.i.d. samples of x , and denote them as x 0 , x 1 , ..., x 1023 . Then filter the samples of x with the filter whichobeys the following difference equation

y ( n ) = 0 . 9 y ( n - 1 ) + 0 . 3 x ( n ) + 0 . 24 x ( n - 1 ) .

Denote the output of the filter as y 0 , y 1 , , y 1023 .

The samples of x ( n ) and y ( n ) will be used in the following sections. Please save them.

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask