Article ID: 307276 - Last Review: February 20, 2007 - Revision: 3.4 INF: How to Use the Linear Regression FunctionsThis article was previously published under Q307276 On This PageSUMMARY
This article explains and illustrates the use of the following Linear Regression functions in a calculated member:
MORE INFORMATION
Linear Regression is a statistical method that predicts the value of one variable, based on knowledge of another variable and the statistical relationship between the two. The Linear Regression functions use the method of least squares to calculate the equation of the best-fit line for a series of points. The general equation for linear regression is Y'=aX+b where Y' is the predicted value, a is the slope of the regression line, b is the intercept of the regression line, and X is a value of the X axis. LinRegInterceptThe LinRegIntercept function returns the intercept of a regression line. In this example, you add a calculated member named "Intercept" to the Sales cube of the FoodMart sample. To add the calculated member, use these steps:
LinRegSlopeThe LinRegSlope function returns the slope of a regression line. In this example, you add a calculated member named "Regression Slope" to the Sales cube of the FoodMart sample. To add the calculated member, use these steps:
LinRegPointThe LinRegPoint function returns a predicted value of one variable, based on the statistical relationship between the variables. In this example, you add a calculated member named "Predict" to the Sales cube of the FoodMart sample. To add the calculated member, use these steps:
LinRegR2The LinRegR2 function returns the statistical R2 that describes the goodness of fit of the linear regression equation to the points. In this example, you add a calculated member named "Good Fit" to the Sales cube of the FoodMart sample. To add the calculated member, use these steps:
LinRegVarianceThe LinRegVariance function returns the statistical variance that describes the fit of the linear equation to the points. In this example, you add a calculated member named "Variance" to the Sales cube of the FoodMart sample. To add the calculated member, use these steps:
| Article Translations
|

Back to the top
