jenkinser

jenkinser / qx / 0.1.0

README.md

Sum2Det

Decomposes a weekly 30-day summary trend into weekly detail trend.

reverse trend

Applicable Scenarios and Problems

Given a trend line of the 30-day sum of sales on a weekly basis, you can use this to reverse-engineer the numbers back into what the actual sales were week-to-week. Note, because the problem is mathematically unsolvable, what is returned are best guess estimates.

Usage

InputDescription
list of intn length time series of positive integers, with a 7-day period, ordered chronologically.
OutputDescription
list of intn-3 length time series of positive integers, with a 7-day period, ordered chronologically. The last element corresponds to the last element of the input.

Math

Estimates variables on the left of the equation, given the known 30-day trend on the right:

equation