I have one minute level data from a process vessel. The level data contains some noise. Using the level data, I want to determine is the vessel filling, emptying, or holding steady.
I have used simple one-row Dif(x,1) > y and even two point (Lag(x,-1) - Lag(x,1)) > y to find the changes from one state to another. Even with the latter there are false positives. From one minute to another the vessel can be filled. Some of the fills/empties last ~10 min.
I spoke with a process control colleague about this and he suggested a method that is used to find (un)steady-states:
- do a t-test to compare the means of row(1-10) with rows(11-20) to see if the means are same/different to determine fill/empty/hold
- do an F-test of the same data to see the variances are different to determine un/steady state
- repeat this down every row in the column (i have 785k rows)
He did this using Excel using the T.TEST() and F.TEST() functions.
I looked in the scripting index and could not find an obvious way to accomplish this.
Any suggestions?