Purpose
Return value
Syntax
=EXPONDIST(x,lambda,cumulative)
- x - The value at which to evaluate the distribution (must be ≥ 0).
- lambda - The rate parameter of the distribution (must be > 0).
- cumulative - A logical value that determines the form of the function. If TRUE, returns the cumulative distribution function; if FALSE, returns the probability density function.
Using the EXPONDIST function
The EXPONDIST function calculates values for the exponential distribution, which is a continuous probability distribution commonly used to model the time between events in a Poisson process. The exponential distribution is characterized by its “memoryless” property, meaning the probability of an event occurring in the next time interval is independent of how much time has already elapsed. This makes it ideal for modeling systems with constant event rates, such as radioactive decay, customer arrivals, and equipment failures with no aging effects.
For better accuracy and consistency with other modern statistical functions, it is recommended to use the EXPON.DIST function . EXPON.DIST uses the same arguments and provides the same core functionality with improved numerical precision.
Notes
- EXPONDIST is a legacy function. For Excel 2010 and later, use the EXPON.DIST function.
- If any argument is non-numeric, EXPONDIST returns the #VALUE! error.
- If x < 0, EXPONDIST returns the #NUM! error.
- If lambda ≤ 0, EXPONDIST returns the #NUM! error.
Purpose
Return value
Syntax
=FORECAST(x,known_ys,known_xs)
- x - The x value data point to use to calculate a prediction.
- known_ys - The dependent array or range of data (y values).
- known_xs - The independent array or range of data (x values).
Using the FORECAST function
The FORECAST function predicts a value based on existing values along a linear trend. FORECAST calculates future value predictions using linear regression, and can be used to predict numeric values like sales, inventory, test scores, expenses, measurements, etc.
Note: Starting with Excel 2016, the FORECAST function was replaced with the FORECAST.LINEAR function . Microsoft recommends replacing FORECAST with FORECAST.LINEAR, since FORECAST will eventually be deprecated.
In statistics, linear regression is an approach for modeling the relationship between a dependent variable (y values) and an independent variable (x values). FORECAST uses this approach to calculate a y value for a given x value based on existing x and y values. In other words, for a given value x, FORECAST returns a predicted value based on the linear regression relationship between x values and y values.
Example
In the example shown above, the formula in cell D13 is:
=FORECAST(B13,sales,periods)
where sales (C5:C12) and periods (B5:B12) are named ranges . With these inputs, the FORECAST function returns 1505.36 in cell D13. As the formula is copied down the table, FORECAST returns predicted values in D13:D16, using values in column B for x.
The chart to the right shows this data plotted in a scatter plot .
Notes
- If x is not numeric, FORECAST returns a #VALUE! error.
- If known_ys and known_xs are not the same size, FORECAST will return an #N/A error.
- If the variance of known_x values is zero, FORECAST will return a #DIV/0! error.