Predicting the difference or the quotient?











up vote
0
down vote

favorite












For a time series forecasting problem, I noticed some people tried to predict the difference or the quotient. For instance, in trading, we can try to predict the price difference P_{t-1} - P_t or the price quotient P_{t-1}/P_t. So we get a more stationary problem. With a recurrent neural network for a regression problem, trying to predict the price difference can be a real pain if the price does not change sufficiently fast because it will predict mostly zero at each step.



Questions :




  1. What are the advantages and inconveniences of using the difference or the quotient instead of the whole quantity?

  2. What can a nice tool to get rid of the repetitive zeros in a problem like trying to predict the price movement?










share|improve this question







New contributor




user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    For a time series forecasting problem, I noticed some people tried to predict the difference or the quotient. For instance, in trading, we can try to predict the price difference P_{t-1} - P_t or the price quotient P_{t-1}/P_t. So we get a more stationary problem. With a recurrent neural network for a regression problem, trying to predict the price difference can be a real pain if the price does not change sufficiently fast because it will predict mostly zero at each step.



    Questions :




    1. What are the advantages and inconveniences of using the difference or the quotient instead of the whole quantity?

    2. What can a nice tool to get rid of the repetitive zeros in a problem like trying to predict the price movement?










    share|improve this question







    New contributor




    user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      For a time series forecasting problem, I noticed some people tried to predict the difference or the quotient. For instance, in trading, we can try to predict the price difference P_{t-1} - P_t or the price quotient P_{t-1}/P_t. So we get a more stationary problem. With a recurrent neural network for a regression problem, trying to predict the price difference can be a real pain if the price does not change sufficiently fast because it will predict mostly zero at each step.



      Questions :




      1. What are the advantages and inconveniences of using the difference or the quotient instead of the whole quantity?

      2. What can a nice tool to get rid of the repetitive zeros in a problem like trying to predict the price movement?










      share|improve this question







      New contributor




      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      For a time series forecasting problem, I noticed some people tried to predict the difference or the quotient. For instance, in trading, we can try to predict the price difference P_{t-1} - P_t or the price quotient P_{t-1}/P_t. So we get a more stationary problem. With a recurrent neural network for a regression problem, trying to predict the price difference can be a real pain if the price does not change sufficiently fast because it will predict mostly zero at each step.



      Questions :




      1. What are the advantages and inconveniences of using the difference or the quotient instead of the whole quantity?

      2. What can a nice tool to get rid of the repetitive zeros in a problem like trying to predict the price movement?







      neural-network deep-learning time-series lstm






      share|improve this question







      New contributor




      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 5 at 2:12









      user1050421

      1072




      1072




      New contributor




      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user1050421 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote














          • If the assumption is that the price is stationary (*Pt=Cte), then predict the whole quantity.

          • If the assumption is that the price increase ()is stationary (Pt= Pt-1+Cte), then predict the absolute difference Pt-Pt-1. (Note: thie is the ARIMA model with a degree of differencing=1)

          • If the assumption is that the price growth (in percentage) is stationary (Pt=Pt-1 +Cte * Pt-1), then predict the relative difference Pt/Pt-1.

          • If the price changes rarely (i.e. the absolute or relative difference is most often zero), then try to predict the time interval between tow changes rather than the price itself.






          share|improve this answer





















          • Can you add more details to your answer?
            – user1050421
            Nov 5 at 14:42










          • With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
            – AlainD
            2 days ago











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          user1050421 is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147451%2fpredicting-the-difference-or-the-quotient%23new-answer', 'question_page');
          }
          );

          Post as a guest
































          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote














          • If the assumption is that the price is stationary (*Pt=Cte), then predict the whole quantity.

          • If the assumption is that the price increase ()is stationary (Pt= Pt-1+Cte), then predict the absolute difference Pt-Pt-1. (Note: thie is the ARIMA model with a degree of differencing=1)

          • If the assumption is that the price growth (in percentage) is stationary (Pt=Pt-1 +Cte * Pt-1), then predict the relative difference Pt/Pt-1.

          • If the price changes rarely (i.e. the absolute or relative difference is most often zero), then try to predict the time interval between tow changes rather than the price itself.






          share|improve this answer





















          • Can you add more details to your answer?
            – user1050421
            Nov 5 at 14:42










          • With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
            – AlainD
            2 days ago















          up vote
          0
          down vote














          • If the assumption is that the price is stationary (*Pt=Cte), then predict the whole quantity.

          • If the assumption is that the price increase ()is stationary (Pt= Pt-1+Cte), then predict the absolute difference Pt-Pt-1. (Note: thie is the ARIMA model with a degree of differencing=1)

          • If the assumption is that the price growth (in percentage) is stationary (Pt=Pt-1 +Cte * Pt-1), then predict the relative difference Pt/Pt-1.

          • If the price changes rarely (i.e. the absolute or relative difference is most often zero), then try to predict the time interval between tow changes rather than the price itself.






          share|improve this answer





















          • Can you add more details to your answer?
            – user1050421
            Nov 5 at 14:42










          • With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
            – AlainD
            2 days ago













          up vote
          0
          down vote










          up vote
          0
          down vote










          • If the assumption is that the price is stationary (*Pt=Cte), then predict the whole quantity.

          • If the assumption is that the price increase ()is stationary (Pt= Pt-1+Cte), then predict the absolute difference Pt-Pt-1. (Note: thie is the ARIMA model with a degree of differencing=1)

          • If the assumption is that the price growth (in percentage) is stationary (Pt=Pt-1 +Cte * Pt-1), then predict the relative difference Pt/Pt-1.

          • If the price changes rarely (i.e. the absolute or relative difference is most often zero), then try to predict the time interval between tow changes rather than the price itself.






          share|improve this answer













          • If the assumption is that the price is stationary (*Pt=Cte), then predict the whole quantity.

          • If the assumption is that the price increase ()is stationary (Pt= Pt-1+Cte), then predict the absolute difference Pt-Pt-1. (Note: thie is the ARIMA model with a degree of differencing=1)

          • If the assumption is that the price growth (in percentage) is stationary (Pt=Pt-1 +Cte * Pt-1), then predict the relative difference Pt/Pt-1.

          • If the price changes rarely (i.e. the absolute or relative difference is most often zero), then try to predict the time interval between tow changes rather than the price itself.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 5 at 14:17









          AlainD

          4,02431026




          4,02431026












          • Can you add more details to your answer?
            – user1050421
            Nov 5 at 14:42










          • With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
            – AlainD
            2 days ago


















          • Can you add more details to your answer?
            – user1050421
            Nov 5 at 14:42










          • With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
            – AlainD
            2 days ago
















          Can you add more details to your answer?
          – user1050421
          Nov 5 at 14:42




          Can you add more details to your answer?
          – user1050421
          Nov 5 at 14:42












          With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
          – AlainD
          2 days ago




          With pleasure. Can you please add the first 5-6 lines of data and a graph of the full range (units do not matter).
          – AlainD
          2 days ago










          user1050421 is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          user1050421 is a new contributor. Be nice, and check out our Code of Conduct.













          user1050421 is a new contributor. Be nice, and check out our Code of Conduct.












          user1050421 is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147451%2fpredicting-the-difference-or-the-quotient%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()