Wednesday 22 March 2017

Excel - Microsoft Excel LOGEST Function

Description

The Excel LOGEST function returns statistical information on the exponential curve of best fit, through a supplied set of x- and y- values. 

The basic statistical information returned is the array of constants, mn, mn-1, ... , b (or m and b) for the exponential curve equation. However, you can also request that additional regression statistics be returned. 

The format of the Logest function is : 

LOGEST( known_y's, [known_x's], [const], [stats] ) 


Where the function arguments are listed in the table below: 


The array of statistics returned from the Excel Logest function has the following form: 

where the statistics returned are: 


Inputting an Array Formula 


To input an array formula, you need to first highlight the range of cells for the function result.
 Type your function into the first cell of the range, and press CTRL-SHIFT-Enter. 

Go to the Excel array formulas page for more details. 

As the Logest function returns an array of values, it must be entered as an array formula. If the function is not entered as an array formula, only the first 'm' value in the calculated array of statistical information is returned. 

You can see if a function has been input as an array formula, curly brackets will be inserted around the formula, as it is viewed in the formula bar. This can be seen in the examples below. 

Logest Function Example 1

Cells A2 - A10 and B2 - B10 of the spreadsheet below list a number of known x and known y values, and also shows these points, plotted on a chart. Cells D1 - E5 of the spreadsheet show the Excel Logest function, used to return statistical information relating to the exponential curve of best fit through these points. 

The format of the Logest function is seen in the formula bar. The curly brackets around this function show that it has been entered as an array formula. 

Cells D1 and E1 give the values of the base, m as 1.482939831, and the y-intercept, b as 2.257475168. Therefore, the equation for the exponential curve of best fit through the given points is: 

y = 2.257475168 * 1.482939831^x 

Logest Function Example 2
Cells A2 - A11, B2 - B11 and C2 - C11 of the spreadsheet below contain three different sets of independent variables (known x values), and cells D2 - D11 of the spreadsheet contain the associated known y-values. Cells F1 - H3 of the spreadsheet show the Excel Logest function, used to return statistical information relating to the exponential curve of best fit through these points. 
Again, the format of the Logest function is seen in the formula bar and it can be seen, (from the curly brackets), that the function has been entered as an array formula. 

Cells F1 - I1 give the values of the coefficents, m3, m2 and m1 as 2.010750937, 0.942167056 and 1.31373656, respectively and the y-intercept, b as 2.554652779. Therefore, the equation for the exponential curve of best fit through the given points is: 

y = 2.554652779 * 1.31373656^x1 * 0.942167056^x2 * 2.010750937^x3 


and the unused cells show the #N/A error. 


Logest Function Errors

If you get an error from the Excel Logest function this is likely to be one of the following: 
Common Errors 




































No comments:

Post a Comment