Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: power spectrum

  • To: mathgroup at
  • Subject: [mg52752] Re: power spectrum
  • From: nospam nospam <nospam_please at>
  • Date: Sat, 11 Dec 2004 05:22:53 -0500 (EST)
  • References: <cpav41$irl$>
  • Sender: owner-wri-mathgroup at

George Szpiro wrote:
> If I have a string of data - let us say a time series of 200 observations - 
> how can I find the power spectrum? I did Fourier[list] but have no idea what 
> the output means.
> Thank you for any help (please to my email address:
> george at
> George Szpiro

I think the power spectra is just the Magnitude squared of the fourier 

So, do something like this:

data = Table[Random[], {i, 200}];
ck = Fourier[data];
ck = Abs[ck];
ck = ck^2;
ListPlot[data, PlotJoined -> True];
ListPlot[ck, PlotJoined -> True]

This is a plot of the 'energy' in each frequency.

  • Prev by Date: Re: Reduce[] in version 5.1
  • Next by Date: Re: Successive words in different colors?
  • Previous by thread: Re: power spectrum
  • Next by thread: Successive words in different colors?