In regression analysis, calculates an exponential curve that fits your data and returns an array of values that describes the curve. Because this function returns an array of values, it must be entered as an array formula.

The equation for the curve is:

y = b*m^x or

y = (b*(m1^x1)*(m2^x2)*_) (if there are multiple x-values)

where the dependent y-value is a function of the independent x-values. The m-values are bases corresponding to each exponent x-value, and b is a constant value. Note that y, x, and m can be vectors. The array that LOGEST returns is {mn,mn-1,...,m1,b}.

Syntax

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

Known_y's is the set of y-values you already know in the relationship y = b*m^x.

Known_x's is an optional set of x-values that you may already know in the relationship y = b*m^x.

Const is a logical value specifying whether to force the constant b to equal 1.

Stats is a logical value specifying whether to return additional regression statistics.

For more information about additional regression statistics, see LINEST.

Remarks

Example 1 m-coefficients and the constant b

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

    Note Do not select the row or column headers.

    selecting an example from helpSelecting an example from Help

  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
A B
Month Units
11 33,100
12 47,300
13 69,000
14 102,000
15 150,000
16 220,000
Formula Formula
=LOGEST(B2:B7,A2:A7, TRUE, FALSE)

Note The formula in the example must be entered as an array formula. After copying the example to a blank worksheet, select the range A9:B9 starting with the formula cell. Press F2, and then press CTRL+SHIFT+ENTER. If the formula is not entered as an array formula, the single result is 1.463275628.

When entered as an array, the m-coefficients and the constant b are returned.

y = b*m1^x1 or using the values from the array:

y = 495.3 * 1.4633x

You can estimate sales for future months by substituting the month number for x in this equation, or you can use the GROWTH function.

Example 2 Full statistics

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

    Note Do not select the row or column headers.

    selecting an example from helpSelecting an example from Help

  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
3
4
5
6
7
A B
Month Units
11 33,100
12 47,300
13 69,000
14 102,000
15 150,000
16 220,000
Formula
=LOGEST(B2:B7,A2:A7, TRUE, TRUE)

Note The formula in the example must be entered as an array formula. After copying the example to a blank worksheet, select the range A9:B13 starting with the formula cell. Press F2, and then press CTRL+SHIFT+ENTER. If the formula is not entered as an array formula, the single result is 1.463275628.

When entered as an array, the following regression statistics are returned. Use this key to identify the statistic you want.

worksheet

You can use the additional regression statistics (cells A10:B13 in the above output array) to determine how useful the equation is for predicting future values.

Important The methods you use to test an equation using LOGEST are similar to the methods for LINEST. However, the additional statistics LOGEST returns are based on the following linear model:

ln y = x1 ln m1 + ... + xn ln mn + ln b

You should keep this in mind when you evaluate the additional statistics, especially the sei and seb values, which should be compared to ln mi and ln b, not to mi and b. For more information, consult an advanced statistics manual.

See also: