KarhunenLoeveDecomposition function in Mathematica

  • Thread starter Thread starter confused_engineer
  • Start date Start date
  • Tags Tags
    Function Mathematica
AI Thread Summary
The discussion revolves around the use of the Karhunen-Loève expansion in Mathematica to analyze a large dataset, stochasticData.mat, which contains 211,302 measurements of a stochastic process across 50 realizations. The user, identified as Confused_engineer, seeks assistance in interpreting the results from their Mathematica code, specifically the function KarhunenLoeveDecomposition, as they are struggling to identify the uncorrelated random variables generated by the process. Despite attempts to read the data from both a .mat file and a text file, the user reports that the function appears ineffective. They have provided a smaller version of the dataset for others to analyze and have referenced additional resources for further research on the Karhunen-Loève decomposition.
confused_engineer
Messages
34
Reaction score
1
TL;DR Summary
I am unable to properly use the KarhunenLoeveDecomposition function included in Mathematica to calculate the uncorrelated random variables.
Hello everyone. I have a vector, stochasticData.mat, it contains a matrix of size 211302*50, being 211302 measurements of 50 realizations of a stochsatic process. I want to use the Karhunen-Loève expansion and the software Mathematica to calculate the uncorrelated random variables. For that, I have written the following code:

SetDirectory[NotebookDirectory[]];
stochasticData = Import["stochasticData.mat"]
KarhunenLoeveDecomposition[{stochasticData}]

Also, I have tried to read the data transformed into a text file asUnfortunately, since I am not proficient with Mathematica, I cannot propperly understand the results and I don't know how to find the random uncorrelated random variables, it seems like the function has no effect as can be seen in the attached image. Can someone please help me?

Best regards

Confused_engineer.

E. G. I cannot upload stochasticData.txt since it is too heavy, but I am uploading a smaller version which contains the first 10000 measurements, just in case someone can help me.
 
Technology news on Phys.org
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top