I'm trying to create a 7 Day Moving average column for my sales. I am having trouble in comprehending the notion of moving averages as I'm not sure which date should the Moving Average value be associated to.
Data
+--------+-------+----+
| date | sales | MA |
+--------+-------+----+
| 1-Jan | 5 | |
| 2-Jan | 10 | |
| 3-Jan | 15 | |
| 4-Jan | 10 | |
| 5-Jan | 20 | |
| 6-Jan | 40 | |
| 7-Jan | 25 | |
| 8-Jan | 30 | |
| 9-Jan | 40 | |
| 10-Jan | 20 | |
| 11-Jan | 50 | |
| 12-Jan | 10 | |
+--------+-------+----+
Question:
If i take the MA of say January 8th which is the sales average between Jan 2nd and Jan 8th (inclusively), I'd compute 21.42. Should this value be associated with row Jan 2nd or Jan 8th ? If both answers are accepted, what are the different notions of using either one?