It is because of the `map` operator on the collection we want to create the moving average (MA) on:
The resulting collection of a MA is smaller _by definition_ than the collection the MA is applied on!
`map` will create a collection of the _same_ length, so this algorithm is wrong.
I'm so tired of this shit!
If you want to read good source material for this algorithm:
https://www.statisticshowto.com/probability-and-statistics/statistics-definitions/moving-average/
(Oh, and how ironic that #LLMs get #statistics wrong... 🙃)
2/2