2 ms·
I believe you can use a polynomial curve fitter for this sort of "regression" [0]. There are other, much better, curve fitting algorithms out there than in NumP
by gravypod 9y ago
I believe you can use a polynomial curve fitter for this sort of "regression" [0]. There are other, much better, curve fitting algorithms out there than in NumPy. Some implementations can also guess how many terms there are and iteratively optimize making it very similar to a linear regression.
A good first order (that is much more commonly used) is to just, as you have already pointed out, use centered averages spanning N days of data.
edit: I'd also like to note that I'm neither pro nor anti legalization. I am definitely against false reporting, knee jerking, and lying to the public with statistics.
[0] - https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.polyfit.html https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/...