4
$\begingroup$

Given the values of a bank account balance over time (see figure below as an example), how can one predict the account balance at a given date in the future ?

Should I just fit one linear regression model to the values of the i'th day of each month, in order to predict the value at the i'th date of future months ?enter image description here

$\endgroup$
1
  • $\begingroup$ "how can one predict anything?": Only by making a model and stating that reality adheres to that model. So, you've got to make a model :) $\endgroup$ Commented Mar 9, 2017 at 13:28

2 Answers 2

2
$\begingroup$

Given the strong correlation of the downward trend in each cycle, I offer the following that would offer an improved prediction over one linear regression, but not be significantly more complicated (but still would like to see what a precise "best estimator" would be):

  1. Do a linear regression to determine the general upward trend. This would be the Income - Spend = Savings rate.

  2. Do a least mean square linear fit for all the downward trend cycles. This would be the spend rate. (my temptation to do this easily would be detect the upward spike and superimpose the datasets, find the mean downward trend and do a linear regression to that.)

  3. Determine the time of each upward spike to determine the best estimate of the frequency of occurrence of the upward spikes (clock recovery). For this the strongest tone in the FFT should reveal this. This would be the pay dates.

  4. Determine the mean of the magnitude of the upward spikes. This would be the income per pay date.

From the information above you can create a future projection of continued upward spikes at the best estimated times along an overall upward trend that will provide a better estimate than one linear regression over the whole dataset.

$\endgroup$
-1
$\begingroup$

You may use decomposition methods which decompose the signal into several models.
It is clear that the signal above has a linear component and a seasonal periodic component.

A simple package to apply this kind of decomposition is Facebook Prophet.
A great review of it can be found at microprediction - Is Facebook's "Prophet" the Time-Series Messiah, or Just a Very Naughty Boy? (Hacker News Discussion).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.