Calculates the expected y-value for a specified x-value, using linear regression on a given data sample.
The independent value x on which to base the forecast of y (e.g. a future date, for a time-series, or a numerical value, for a range of numbers)
The range of cells with the dependent data. For example:
The range of cells with the independent data. For example: