Proper algorithm for short term predictions












0















I am currently working on my final project in university and I have to do some Machine Learning. I have to say I am not experienced with ML. I have data with a timestamp, zone number (6 zones) and number of calls. I need to predict the number of calls and initially i decided to use Multilinear regression. However, while researching i found about time series analysis and I am wondering now, which one would be better for making predicitons in my case.
From what I understood time series analysis is good for forecast, but is it good for short term predictions. Like predicting number of calls tomorrow or next week? I want to make short term predictions. Maximum in the next month.
I just have read so much that I got confused!
I would very much appreciate, if you could advice me, what is better.










share|improve this question























  • If you have 24 months of data, you can model the first 21 months, and use the last 3 months to test short-term predictions. For example, model 21 months and then test on month 22. Then model 22 months and test on month 23. Finally, model 23 months and test using month 24. Another possible technique is to convert timestamps to days such as "day 100 at 8:00 AM" converts to 100.25 to make the date information numeric. You may want to code "normal business day" as a 1 and other days as 0 as a rough way to account for weekends and holidays, that might be useful.

    – James Phillips
    Nov 22 '18 at 1:41











  • @JamesPhillips For the linear regression that I wanted to use at first i converted my time stamp can I use Multilinear regression or i should necessary use Time series since i have a timestamp. That is the confusing part, because i am not sure my data has some seasonality a.k.a i am not sure that my dependant variable depends on the time of the year. Or is it that if you have time in our data there for sure must be some pattern?

    – Kosi
    Nov 22 '18 at 14:26











  • If you inspect scatterplots of month versus density for a the different species, you should be able to see whether or not seasonal variation exists - it might be obvious from the plots, or it might not seem large enough to be a concern.

    – James Phillips
    Nov 22 '18 at 15:07











  • @JamesPhillips Thanks! So if there is no obvious seasonality or trend in the data, and it is just random peaks and drops can i use Multiple linear regression or the fact that we have peaks and drops just means that the data is non stationary over time and regressions it not the best fir model? Thank you in advance and sorry for the probably not so smarty questions :))

    – Kosi
    Nov 22 '18 at 15:36











  • If there is a large and obvious annual cyclical variation, accounting for this would improve the model, true - and if it is small, then accounting for this small variation may not yield significant improvement. Random noise is expected and cannot be directly modeled.

    – James Phillips
    Nov 22 '18 at 17:39


















0















I am currently working on my final project in university and I have to do some Machine Learning. I have to say I am not experienced with ML. I have data with a timestamp, zone number (6 zones) and number of calls. I need to predict the number of calls and initially i decided to use Multilinear regression. However, while researching i found about time series analysis and I am wondering now, which one would be better for making predicitons in my case.
From what I understood time series analysis is good for forecast, but is it good for short term predictions. Like predicting number of calls tomorrow or next week? I want to make short term predictions. Maximum in the next month.
I just have read so much that I got confused!
I would very much appreciate, if you could advice me, what is better.










share|improve this question























  • If you have 24 months of data, you can model the first 21 months, and use the last 3 months to test short-term predictions. For example, model 21 months and then test on month 22. Then model 22 months and test on month 23. Finally, model 23 months and test using month 24. Another possible technique is to convert timestamps to days such as "day 100 at 8:00 AM" converts to 100.25 to make the date information numeric. You may want to code "normal business day" as a 1 and other days as 0 as a rough way to account for weekends and holidays, that might be useful.

    – James Phillips
    Nov 22 '18 at 1:41











  • @JamesPhillips For the linear regression that I wanted to use at first i converted my time stamp can I use Multilinear regression or i should necessary use Time series since i have a timestamp. That is the confusing part, because i am not sure my data has some seasonality a.k.a i am not sure that my dependant variable depends on the time of the year. Or is it that if you have time in our data there for sure must be some pattern?

    – Kosi
    Nov 22 '18 at 14:26











  • If you inspect scatterplots of month versus density for a the different species, you should be able to see whether or not seasonal variation exists - it might be obvious from the plots, or it might not seem large enough to be a concern.

    – James Phillips
    Nov 22 '18 at 15:07











  • @JamesPhillips Thanks! So if there is no obvious seasonality or trend in the data, and it is just random peaks and drops can i use Multiple linear regression or the fact that we have peaks and drops just means that the data is non stationary over time and regressions it not the best fir model? Thank you in advance and sorry for the probably not so smarty questions :))

    – Kosi
    Nov 22 '18 at 15:36











  • If there is a large and obvious annual cyclical variation, accounting for this would improve the model, true - and if it is small, then accounting for this small variation may not yield significant improvement. Random noise is expected and cannot be directly modeled.

    – James Phillips
    Nov 22 '18 at 17:39
















0












0








0








I am currently working on my final project in university and I have to do some Machine Learning. I have to say I am not experienced with ML. I have data with a timestamp, zone number (6 zones) and number of calls. I need to predict the number of calls and initially i decided to use Multilinear regression. However, while researching i found about time series analysis and I am wondering now, which one would be better for making predicitons in my case.
From what I understood time series analysis is good for forecast, but is it good for short term predictions. Like predicting number of calls tomorrow or next week? I want to make short term predictions. Maximum in the next month.
I just have read so much that I got confused!
I would very much appreciate, if you could advice me, what is better.










share|improve this question














I am currently working on my final project in university and I have to do some Machine Learning. I have to say I am not experienced with ML. I have data with a timestamp, zone number (6 zones) and number of calls. I need to predict the number of calls and initially i decided to use Multilinear regression. However, while researching i found about time series analysis and I am wondering now, which one would be better for making predicitons in my case.
From what I understood time series analysis is good for forecast, but is it good for short term predictions. Like predicting number of calls tomorrow or next week? I want to make short term predictions. Maximum in the next month.
I just have read so much that I got confused!
I would very much appreciate, if you could advice me, what is better.







machine-learning time-series linear-regression






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 22 '18 at 0:28









KosiKosi

41




41













  • If you have 24 months of data, you can model the first 21 months, and use the last 3 months to test short-term predictions. For example, model 21 months and then test on month 22. Then model 22 months and test on month 23. Finally, model 23 months and test using month 24. Another possible technique is to convert timestamps to days such as "day 100 at 8:00 AM" converts to 100.25 to make the date information numeric. You may want to code "normal business day" as a 1 and other days as 0 as a rough way to account for weekends and holidays, that might be useful.

    – James Phillips
    Nov 22 '18 at 1:41











  • @JamesPhillips For the linear regression that I wanted to use at first i converted my time stamp can I use Multilinear regression or i should necessary use Time series since i have a timestamp. That is the confusing part, because i am not sure my data has some seasonality a.k.a i am not sure that my dependant variable depends on the time of the year. Or is it that if you have time in our data there for sure must be some pattern?

    – Kosi
    Nov 22 '18 at 14:26











  • If you inspect scatterplots of month versus density for a the different species, you should be able to see whether or not seasonal variation exists - it might be obvious from the plots, or it might not seem large enough to be a concern.

    – James Phillips
    Nov 22 '18 at 15:07











  • @JamesPhillips Thanks! So if there is no obvious seasonality or trend in the data, and it is just random peaks and drops can i use Multiple linear regression or the fact that we have peaks and drops just means that the data is non stationary over time and regressions it not the best fir model? Thank you in advance and sorry for the probably not so smarty questions :))

    – Kosi
    Nov 22 '18 at 15:36











  • If there is a large and obvious annual cyclical variation, accounting for this would improve the model, true - and if it is small, then accounting for this small variation may not yield significant improvement. Random noise is expected and cannot be directly modeled.

    – James Phillips
    Nov 22 '18 at 17:39





















  • If you have 24 months of data, you can model the first 21 months, and use the last 3 months to test short-term predictions. For example, model 21 months and then test on month 22. Then model 22 months and test on month 23. Finally, model 23 months and test using month 24. Another possible technique is to convert timestamps to days such as "day 100 at 8:00 AM" converts to 100.25 to make the date information numeric. You may want to code "normal business day" as a 1 and other days as 0 as a rough way to account for weekends and holidays, that might be useful.

    – James Phillips
    Nov 22 '18 at 1:41











  • @JamesPhillips For the linear regression that I wanted to use at first i converted my time stamp can I use Multilinear regression or i should necessary use Time series since i have a timestamp. That is the confusing part, because i am not sure my data has some seasonality a.k.a i am not sure that my dependant variable depends on the time of the year. Or is it that if you have time in our data there for sure must be some pattern?

    – Kosi
    Nov 22 '18 at 14:26











  • If you inspect scatterplots of month versus density for a the different species, you should be able to see whether or not seasonal variation exists - it might be obvious from the plots, or it might not seem large enough to be a concern.

    – James Phillips
    Nov 22 '18 at 15:07











  • @JamesPhillips Thanks! So if there is no obvious seasonality or trend in the data, and it is just random peaks and drops can i use Multiple linear regression or the fact that we have peaks and drops just means that the data is non stationary over time and regressions it not the best fir model? Thank you in advance and sorry for the probably not so smarty questions :))

    – Kosi
    Nov 22 '18 at 15:36











  • If there is a large and obvious annual cyclical variation, accounting for this would improve the model, true - and if it is small, then accounting for this small variation may not yield significant improvement. Random noise is expected and cannot be directly modeled.

    – James Phillips
    Nov 22 '18 at 17:39



















If you have 24 months of data, you can model the first 21 months, and use the last 3 months to test short-term predictions. For example, model 21 months and then test on month 22. Then model 22 months and test on month 23. Finally, model 23 months and test using month 24. Another possible technique is to convert timestamps to days such as "day 100 at 8:00 AM" converts to 100.25 to make the date information numeric. You may want to code "normal business day" as a 1 and other days as 0 as a rough way to account for weekends and holidays, that might be useful.

– James Phillips
Nov 22 '18 at 1:41





If you have 24 months of data, you can model the first 21 months, and use the last 3 months to test short-term predictions. For example, model 21 months and then test on month 22. Then model 22 months and test on month 23. Finally, model 23 months and test using month 24. Another possible technique is to convert timestamps to days such as "day 100 at 8:00 AM" converts to 100.25 to make the date information numeric. You may want to code "normal business day" as a 1 and other days as 0 as a rough way to account for weekends and holidays, that might be useful.

– James Phillips
Nov 22 '18 at 1:41













@JamesPhillips For the linear regression that I wanted to use at first i converted my time stamp can I use Multilinear regression or i should necessary use Time series since i have a timestamp. That is the confusing part, because i am not sure my data has some seasonality a.k.a i am not sure that my dependant variable depends on the time of the year. Or is it that if you have time in our data there for sure must be some pattern?

– Kosi
Nov 22 '18 at 14:26





@JamesPhillips For the linear regression that I wanted to use at first i converted my time stamp can I use Multilinear regression or i should necessary use Time series since i have a timestamp. That is the confusing part, because i am not sure my data has some seasonality a.k.a i am not sure that my dependant variable depends on the time of the year. Or is it that if you have time in our data there for sure must be some pattern?

– Kosi
Nov 22 '18 at 14:26













If you inspect scatterplots of month versus density for a the different species, you should be able to see whether or not seasonal variation exists - it might be obvious from the plots, or it might not seem large enough to be a concern.

– James Phillips
Nov 22 '18 at 15:07





If you inspect scatterplots of month versus density for a the different species, you should be able to see whether or not seasonal variation exists - it might be obvious from the plots, or it might not seem large enough to be a concern.

– James Phillips
Nov 22 '18 at 15:07













@JamesPhillips Thanks! So if there is no obvious seasonality or trend in the data, and it is just random peaks and drops can i use Multiple linear regression or the fact that we have peaks and drops just means that the data is non stationary over time and regressions it not the best fir model? Thank you in advance and sorry for the probably not so smarty questions :))

– Kosi
Nov 22 '18 at 15:36





@JamesPhillips Thanks! So if there is no obvious seasonality or trend in the data, and it is just random peaks and drops can i use Multiple linear regression or the fact that we have peaks and drops just means that the data is non stationary over time and regressions it not the best fir model? Thank you in advance and sorry for the probably not so smarty questions :))

– Kosi
Nov 22 '18 at 15:36













If there is a large and obvious annual cyclical variation, accounting for this would improve the model, true - and if it is small, then accounting for this small variation may not yield significant improvement. Random noise is expected and cannot be directly modeled.

– James Phillips
Nov 22 '18 at 17:39







If there is a large and obvious annual cyclical variation, accounting for this would improve the model, true - and if it is small, then accounting for this small variation may not yield significant improvement. Random noise is expected and cannot be directly modeled.

– James Phillips
Nov 22 '18 at 17:39














0






active

oldest

votes











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',
autoActivateHeartbeat: false,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422304%2fproper-algorithm-for-short-term-predictions%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422304%2fproper-algorithm-for-short-term-predictions%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'