summaryrefslogtreecommitdiff
path: root/pred_compare.m
diff options
context:
space:
mode:
Diffstat (limited to 'pred_compare.m')
-rw-r--r--pred_compare.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/pred_compare.m b/pred_compare.m
new file mode 100644
index 0000000..7b8f523
--- /dev/null
+++ b/pred_compare.m
@@ -0,0 +1,19 @@
+[p, q] = get_products();
+
+
+wanted = sum(q');
+wanted = wanted(29:42);
+plot(sum(q'), '-or');
+
+hold on;
+
+plot(29:42, sum(mean_pred(q(1:28, :), 14)'), '-ok');
+wanted - sum(mean_pred(q(1:28, :), 14)')
+
+plot(29:42, sum(regress_pred(p, q(1:28, :))'), '-om');
+wanted - sum(regress_pred(p, q(1:28, :))')
+
+plot(29:42, sum(repmat(sevenday_pred(q(1:28, :), 4), 2, 1)'), '-ob');
+wanted - sum(repmat(sevenday_pred(q(1:28, :), 4), 2, 1)')
+
+hold off;