Linear Regression fits a group of data in the previous N data points to a line. 

A straight line is fit through the set of N data points so that the sum of the residuals (R2 =vertical distances between the points and the fitted line) is as small as possible.




Input Data*

Defines the time series data fed into the function. This can be a sensor ID or another function.


Number of data intervals considered in the function

*Input data is optional in most cases. If Info360 detects that the first input is time series data, it will be applied to the function. Otherwise, the current active sensor's data will be used, which is often the case in Reference Charts.

Example Usage as an Expression:

Regression(Sum(4),5)): Find linear regression for data set when every 4 data points are added. Evaluates for the last 5intervals.

Examples Reference Chart:

The following example shows a comparison of pump flowrate data and multiple moving average methods with the same period.

The TMA method displays the smoothest line with the most delay from the original signal, while WMA most closely follows current data.

Regression responds the fastest to sudden changes in measured values, but this also makes it the most sensitive to spikes in data.

The Median function preserves the on/off gradient in the data the best, but it will be offset by half of the selected period.

Also note that EMA and TMA provide dampened smooth values for a longer window than the input period.


For information on setting up custom equations and syntax, please refer to Analytical Functions.