LOGEST


Returns a table of statistics for an exponential curve that best fits a data set.

Syntax:

LOGEST(yvalues, xvalues, allow_const, stats)


yvalues is a single row or column range specifying the y coordinates in a set of data points.

xvalues is a corresponding single row or column range specifying the x coordinates. If xvalues is omitted it defaults to 1, 2, 3, ..., n

If there is more than one set of x variables, xvalues may be a range with corresponding multiple rows or columns.

LOGEST finds an exponential curve  that best fits the data. With more than one set of variables the curve is of the form .

In order to fit the curve, LOGEST uses linear regression (the "least squares" method) based on the equation .

if allow_const is FALSE the constant a is forced to be one; . If omitted, allow_const defaults to TRUE (a value for a is found).



 to  and a are the coeficients for the equation above.

 to  are the standard error values for the ln(b) values;  is the standard error value for the  value.

 is the determination coefficient RSQ;  is the standard error value for the  estimate.

F is the F statistic (F-observed value); df is the number of degrees of freedom.

 is the regression sum of squares;  is the residual sum of squares.






Example:





In the example above, cells A2:B6 contain the x,y values for a set of points. LOGEST(B2:B6,A2:A6,1,1) returns the statistics for a best fit exponential curve through those points.


Application:

Predicting Population Growth


The LOGEST function is particularly useful for analyzing and predicting data that exhibits exponential growth, such as population, compound interest, or the spread of a virus.


Scenario: A regional government wants to predict the future population of a small town based on historical census data. They believe the population is growing at an exponential rate due to new economic opportunities in the area.


Objective: Use the LOGEST function to find the best-fit exponential curve for the historical data and then use that model to predict the population in the year 2026.


Historical Data Table:

Year (x-values)

Population (y-values)

A
B
1
2010
5,500
2
2012
6,100
3
2014
6,950
4
2016
7,800
5
2018
8,900
6
2020
10,200

Understanding the LOGEST Function:


The LOGEST function in a spreadsheet program calculates the parameters for an exponential curve that best fits the given data. The equation for this curve is:



  • y is the dependent variable (Population).
  • x is the independent variable (Year).
  • b is the initial value (the y-intercept, which is the value of y when x is 0).
  • m is the growth factor (the rate at which y increases for each unit increase in x).


Applying LOGEST:


To use LOGEST, you would select a range of cells to output the results. The function is entered as an array formula.


The syntax is: LOGEST(known_y's, [known_x's])


  • known_y's: The population data (e.g., B1:B6 in a spreadsheet).
  • known_x's: The year data (e.g., A1:A6).


The LOGEST function will return an array of values, with the growth factor (m) as the first value and the initial value (b) as the second.


Result of the LOGEST Calculation:


Using the data above, the LOGEST function would yield the following approximate values:


  • Growth Factor (m): 1.058 (This means the population is growing by approximately 5.8% each year.)
  • Initial Value (b): 1.48E-26 (This value is not very meaningful on its own because x=0 is the year zero, but it's part of the exponential model.)


The Final Equation:


Using the growth factor found, the exponential model for this data is:



Predicting the Future Population:


To predict the population in the year 2026, we can substitute x = 2026 into our model.


  • To make the model easier to work with, we can use a relative year value (e.g., let 2010 = 0, 2012 = 2, etc.). The LOGEST function handles this automatically. Let's assume the x values are [0, 2, 4, 6, 8, 10]. The LOGEST function will provide the model for these x values. The growth factor would be the same, but b would be ~5,500.


Let's use the simpler model directly with the b and m values from LOGEST.


The predicted population for 2026 is approximately:



This will give a population value of approximately 13,200.


Conclusion:


By using the LOGEST function, we were able to model the town's historical population growth with an exponential curve. This model provided a reliable growth factor (m=1.058), which was then used to make a data-driven prediction for the future population. This type of analysis is crucial for urban planning, resource allocation, and government services.







This page is protected by Google reCAPTCHA. Privacy - Terms.
 
Built using Zapof