Article ID: 214230 - Last Review: February 14, 2007 - Revision: 6.3 Incorrect output is returned when you use the Linear Regression (LINEST) function in ExcelThis article was previously published under Q214230 On This PageSYMPTOMS
When you use the LINEST worksheet function in a worksheet in Microsoft Excel, the statistical output may return incorrect values. The Regression tool in the Analysis ToolPak may also return incorrect values.
CAUSE
The output returned from LINEST may be incorrect if one or more of the following conditions are true:
WORKAROUNDCase 1: The x-value and y-value ranges overlapIf the x-value and y-value ranges overlap, the LINEST worksheet function produces incorrect values in all result cells. Normal statistical probability disallows the values in the x and y ranges to overlap (duplicate each other). Do not overlap the x- and y-value ranges when referencing cells in the formula.Note The Regression tool alerts you to this problem and does not continue. You can use the Regression tool instead of the LINEST worksheet function. In Microsoft Office Excel 2007, you can find the Regression tool by clicking Data Analysis in the Analysis group on the Data tab. In Microsoft Office Excel 2003 and in earlier versions of Excel, you can find the Regression tool by clicking Data Analysis on the Tools menu. Case 2: The number of rows is less than the number of x-columnsIt is not statistically valid for the number of rows to be less than the number of x (variable) columns. The number of rows of data must be larger than the number of columns of data (x-columns plus y-columns).Case 3: You specify a zero constantDo not specify a zero constant (b=0) in the function.MORE INFORMATIONThe Regression tool is included in the Analysis ToolPak. The Analysis ToolPak is an Excel add-in program. It is available when you install Microsoft Office or Excel. Before you use the Regression tool in Excel, you have to load the Analysis ToolPak. To do this in Excel 2007, follow these steps:
REFERENCESStatistical Computations on a Digital Computer. William J. Hemmerle.
Blaisdell Publishing Company: 1967. Chapter 3, "Multiple-Regression
Computations" and section 3.2.1, "Preliminary Regression Theory."
APPLIES TO
| Article Translations
|
Back to the top
