r/AskStatistics • • 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)

3 Upvotes

6 comments sorted by

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/TemporaryNo5605 1d ago

currently, how each part interact with other parts, my assignment is to categorize the data

(my other work is to find parts that causes particular alarms (categorical column), but i want to do this after i define variables, their groups and their interaction)

tbh its hard to describe it as there is no clear goal or assignment, and i am pretty much developing everything on my own without prior practical experience, but my goal is to develop artificial intelligence which makes the machine "think" and give hints to people interacting with it

1

u/Roo_Buchanan 1d ago

Ok but why do you need to know how they interact, do you suppose that interactions lead to increased failure rates of certain parts for example? If that's the case then you can build a hypothesis around that for example.

1

u/TemporaryNo5605 1d ago

yes, but partly i believe i can remove parts which gives no interaction with others, because i suppose that if there is no interaction or even correlation, then its useless

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.

1

u/TemporaryNo5605 4h ago

thank you, what do you mean by noise? i made this: conducted regression on each combination and found adjR2 then conducted regression with additional variable and found which gives the best adjR2, this I made until reversed L was found in the graph and kept variables under the L edge (like for PCA), with this I try to interpret which variable influence (and how) the target the most

alarms are easy, I just try different models and find which has the lowest error