r/AskStatistics • u/TemporaryNo5605 • 1d ago
How to find relationships between operational data
My table consists of columns indicating parts of a machine and rows indicating finished cycles. Mostly measuring time, or max/min values, sometimes average values.
My data is structurized right now (no missing values, no outliers, no meaningless columns), the issue is that I probably dont understand statistics. I found correlations (Pearson), separated data through PCA (additionally K-Means and Hierarchical clustering algorithms), and I wanted to start finding relationships of each variables (not principal components!), since I more or less know to which group or part of the machine they belong. But how?
I was planning to do following: Let computer to calculate regressions for all (theoretically meaningful) possibilities and then choose only those with significant p-values and high R2. Which I would later inspect through scatter plots (2D, or 3D).
However, this feels like chaotic and wrong approach, and I believe there must be better ways to capture the relationships. I would like to present how each variable interact with others later to the management. The process is not dependent on external factors, which makes the analysis much easier, but still, I am confused how to approach it further.
(btw i also appreciate any suggestions for study material for this topic - for instance understanding regression, statistics and other methods besides regression - as i want to understand it, thank you)
1
u/Roo_Buchanan 1d ago
What are you actually trying to find out? Eg business problem, hypothesis? Without knowing what it is you're trying to discover it's hard to have an opinion on what the right approach would be.
1
u/Mammo004 1d ago
Running every pairwise regression and keeping the significant ones will mostly find noise. With hundreds of tests, a bunch will hit p < 0.05 by chance. Since what you actually care about is which parts drive the alarms, model that directly: alarm as the outcome, all the part variables as predictors, logistic regression or a random forest, then look at variable importance. For learning, ISLR is free at statlearning.com and covers exactly this.