How can I simulate voltage data caused by 1/f noise?

  • Thread starter phys_student2
  • Start date
  • Tags
    Spectrum
In summary, the program would take as input a time series of voltages and would output a series of simulated voltages which would correspond as closely as possible to the original time series.
  • #1
phys_student2
2
0
I am trying to implement what's called the "second spectrum". Basically, you do this:

1. Take a time series of length [itex]N[/itex].
2. Divide it into [itex]m[/itex] segment, each of length [itex]N'=N/m[/itex].
3. For each segment [itex]m[/itex], do a Fourier Transform. The result is the 'first spectrum',[itex]S_i^{(1)}(f_1), i=1,...,m[/itex]
4. Divide each spectrum into [itex]n[/itex] octaves, an octave starts at [itex]f_L=f_0 \times 2^p[/itex] and ends at [itex]f_H=f_0 \times 2^{p+1}[/itex], where [itex]p=0,1,2, etc[/itex], and [itex]f_0[/itex] is the lowest frequency in [itex]S_i^{(1)}(f_1)[/itex]. For [itex]f_0 = 1[/itex] Hz, The octaves will be like: 1-2 Hz, 2-4 Hz, 4-8 Hz, 8-16 Hz, etc.
5. For each octave in each spectrum, sum all spectrum values in that octave.
6. Construct a time-series for each octave. There will be [itex]n[/itex] time series each of length [itex]m[/itex].
7. Take the Fourier Transform of each time series. This is the second spectrum, [itex]S_n^{(2)}(f_2)[/itex]

I have already implemented this algorithm (in c++), but I have a question about step 7. I implemented a Welch periodogram method for doing an FFT-based Power Spectral Density. This method chops the signal into segments of length L with overlapping D. Then it Fourier Transform each segment, and the final answer is the average of these transforms. The larger the number of segments, the lower the variance obtained.

But in step 7, I typically have a time series of length 32, too short to divide into segments. Should I do the PSD with one segment being the whole data, or I still have to segment it? In that case the resulting second spectrum will have too few data points to have any meaning.

(A version of this question appeared in Stack Exchange, but I got no answers)
 
Physics news on Phys.org
  • #2
Your post seems to say "I have made some arbitrary decisions about a computer program whose purpose is only known to me. Please advise about what further arbitrary decisions to make."

To get an answer based on mathematics, you either need to state a mathematical question or state a practical problem. In matters involving probability, it's usually easier to state the practical problem! What is the data you are dealing iwth - financial data? electrical currents? solar flares? After you apply your program to the data, what do you intend to do with the output? Invest in the stock market? Publish a scientific paper? Win a bet with a friend?
 
  • #3
I am trying to investigate 1/f noise in a solid state material across a first order phase transition. Normally, one suffice with first spectrum, but if the scattering processes responsible for the noise are non Gaussian, then you need to investigate higher order statistics. The second spectrum will give you an idea about the correlation that exist, if any, between different scatters in the material/system. The data consist of a time series of voltage fluctuations obtained using a balanced Wheatstone bridge.
 
  • #4
Someone in communications engineering might give you a quick answer - that wouldn't be me!

I personally find it helpful to approach practical problems by using simulation. Even if no computer simulation is written in the end, just thinking about how to write it forces one to think about specific mathematical models. What would be a computer program to simulate voltage data caused by 1/f noise? - I mean a program that would simulate a specific time series of voltages.

Let's start with the thought of that program and then conjecture some ways it would be modified to simulate the kind of data you have.
 
  • #5


One approach to simulating voltage data caused by 1/f noise could be to use a mathematical model or algorithm that generates random data with a 1/f power spectrum. This can be done using methods such as inverse Fourier transform, wavelet transform, or autoregressive modeling. Additionally, you could also try using a pre-existing software or library that allows for the generation of 1/f noise data.

Regarding your question about step 7, it would depend on the specific characteristics and goals of your simulation. If you are trying to replicate the "second spectrum" as described in the algorithm, then segmenting the data would be necessary. However, if your goal is to simply generate data with a 1/f power spectrum, then segmenting may not be necessary and you could use the whole data for the PSD calculation. If the resulting second spectrum has too few data points, you could consider increasing the length of your original time series or adjusting the segment length and overlap in the Welch periodogram method to obtain a more meaningful result. Ultimately, it would be important to carefully consider the implications of your choices and ensure that they align with the objectives of your simulation.
 

What is Second Spectrum?

Second Spectrum is a technology company that specializes in sports analytics and data visualization. They provide advanced tracking data and video solutions for professional basketball and soccer teams.

How does Second Spectrum collect data?

Second Spectrum uses cameras and sensors installed in sports arenas to track the movements of players and the ball. The data is then processed using computer vision and machine learning algorithms to provide detailed insights and visualizations.

What kind of data does Second Spectrum provide?

Second Spectrum provides various types of data, including player and ball tracking data, shot and pass charts, court and field visualizations, and advanced metrics such as player speed and distance covered. They also offer video analysis and highlights packages.

How do teams use Second Spectrum's data?

Teams use Second Spectrum's data to analyze player performance, identify strengths and weaknesses, and make strategic decisions. The data can also be used to scout opponents and improve training and game strategy.

Is Second Spectrum's data available to the public?

While some of Second Spectrum's data is available to the public through their partnerships with media outlets and leagues, the majority of their data is only accessible to professional teams and organizations. However, they do offer some public-facing products, such as the NBA's Player Tracking website, which utilizes Second Spectrum's data.

Similar threads

  • Electrical Engineering
Replies
4
Views
838
  • Other Physics Topics
Replies
1
Views
3K
Replies
19
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
2K
Replies
7
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
749
  • Mechanical Engineering
Replies
4
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
4K
Replies
1
Views
335
Back
Top