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
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top