# Last edited on 2014-05-12 01:58:47 by stolfilocal PLOTTING PRICES AT SLUMBER TIMES ../plot_slumber_prices.sh \ "Huobi" \ 2100 5400 0.000 \ ../../00-DATA/2014-slumber-points-HUBI-BSTP.txt \ > 2014-slumber-points-HUBI-pr.png convert 2014-slumber-points-HUBI-pr.png -resize '600x' 2014-slumber-points-HUBI-pr.jpg ../plot_slumber_prices.sh \ "Huobi" \ 2100 5400 1.000 \ ../../00-DATA/2014-slumber-points-HUBI-BSTP.txt \ > 2014-slumber-points-HUBI-pn.png EVALUATING PREDICTION METHODS # Created files "2014-slumber-predictions-{ex}.txt", where {ex} is "BSTP", "HUBI", etc., # with actual prices and prices predicted by various methods such as "Slumber", "Banal", etc. # Recomputing the last trend line: cat 2014-05-06--2014-05-10-slumber-trend-wx-lin.txt | egrep -e '^ *[-+.0-9]' | linear_fit -weighted 1 -terms 2 ../compute_lin_trend.gawk -v DB=6 -v D0=6 -v D1=10 -v H0=3019 -v H1=24 -v P0=+2674.89 -v P1=+31.16 -v R=1.00 # Creating an image to show the prices and slumber points: 2014-05-06-plot-prices-and-slumber-points.sh # Computing the average and rms errors: function do_plt() { idate="$1"; shift; fdate="$1"; shift; ./plot_predictions_scatter.sh "HUBI" 800 "Banal" "Slumber" "${idate}" "${fdate}" ./plot_predictions_scatter.sh "BSTP" 150 "Banal" "Slumber" "${idate}" "${fdate}" ./plot_predictions_hist.sh "HUBI" 21 "${idate}" "${fdate}" ./plot_predictions_hist.sh "BSTP" 5 "${idate}" "${fdate}" } do_plt 2014-02-09 2014-05-09 do_plt 2014-02-09 2014-03-24 do_plt 2014-03-25 2014-05-09