Multiple Linear
Regression Coefficients
multipleLinearRegression(
sequence tsDataSequence,
floating-point minimumLimit,
floating-point maximumLimit )
Compute the multiple linear regression coefficients between the current time series data set and the array of independent time series data sets in tsDataSequence. The function stores the regression coefficients in a new paired data set. This paired data set may be used with the multipleLinearRegression function to derive a new estimated time series data set.
For the general linear regression equation, a dependent variable, Y, may be computed from a set independent variables, Xn:
Y = B0 + B1*X1 + B2*X2 + B3*X3
where Bn are linear regression coefficients.
For time series data sets, an estimate of the original time series data set values may be computed from a set of independent time series data sets using regression coefficients such that:
TsEstimate(t) = B0 + B1*TS1(t) + B2*TS2(t) + … + Bn*TSn(t)
where Bn are the set of regression coefficients and TSn are the time series data sets contained in tsDataSequence.
The parameters minimumLimit and maximumLimit may be used to exclude out of range values in the current time series data set from the regression determination. minimumLimit or maximumLimit may be entered as “Constants.UNDEFINED” to ignore the minimum or maximum value check.
See also: applyMultipleLinearRegression()
Parameters:
tsDataSequence – sequence of TimeSeriesMath objects, which form the
independent variables in the regression equation. Must all be regular interval and
have the same time interval.
minimumLimit – A floating-point value. Values in the current time
series exceeding minimumLimit are excluded from the regression analysis. Set to
Constants.UNDEFINED to ignore this option.
maximumLimit – A floating-point value. Values in the current time
series exceeding maximumLimit are excluded from the regression analysis. Set to
Constants.UNDEFINED to ignore this option.
Example:
regression = tsFlow.multipleLinearRegression (
[tsUpstrFlow1, tsUpstrFlow2, tsUpstrFlow3],
0.,
100000.)
Returns: A new PairedDataMath object containing the computed regression coefficients.
Generated Exceptions: Throws a
hec.hecmath.HecMathException if the current data set and the data sets in tsDataSequence
are not regular interval time series data sets with the same interval time.