Needing some help with verbiage and opinions on how I am approaching this model.
I have counts of people over the past 24 months.
month | count |
---|---|
1 | 100 |
2 | 105 |
... | ... |
24 | 200 |
First, I reverse the months to this:
month | count |
---|---|
24 | 100 |
23 | 105 |
... | ... |
1 | 200 |
I create multiple custom periods from month 24...
period | month |
---|---|
3 | 1 |
3 | 2 |
3 | 3 |
6 | 1 |
... | ... |
6 | 6 |
9 | 1 |
9 | ... |
9 | 9 |
... | ... |
24 | 24 |
For each period I calculate the Linear Regression and forecast next value
period | lr_slope | lr_intercept | lr_r2 | forcast_next | period_weight* | contrib |
---|---|---|---|---|---|---|
3 | 4.543 | 903 | .4499 | 900 | 1/3* | 300 |
6 | 44.67 | 309 | .9944 | 903 | 1/6* | 150.5 |
9 | 990.33 | 33.990 | .9494 | 910 | 1/9* | 101.11 |
... | ... | ... | ... | 980 | ... | |
24 | 776.677 | 77.09 | .0009 | 990 | 1/24* | 41.5 |
For this example, assume SUM(period_weight) = 1
The contrib is the period_weight * forecast_next
I sum up all the contrib above to get the final forecast value.
Is this a valid regression model? Does it mimic current models?