Forecasting ticket sales and cityForecasting an individual based on a representative groupBest regression model to use for sales predictionRegression (and Forecasting) on RentSales Prediction for Fashion Retail DataArtificially Increasing Training dataTime series prediction of discontinuous dataForecast vs Prediction: What is the difference?How to decide which forecasting model to use?Forecasting energy consumption with no historical data when there is a trend

Is there a symmetric-key algorithm which we can use for creating a signature?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

My adviser wants to be the first author

Is there a place to find the pricing for things not mentioned in the PHB? (non-magical)

Pauli exclusion principle

Professor being mistaken for a grad student

How could an airship be repaired midflight?

Do I need to be arrogant to get ahead?

Can I use USB data pins as power source

How to terminate ping <dest> &

How to make healing in an exploration game interesting

Why does a Star of David appear at a rally with Francisco Franco?

Book about superhumans hiding among normal humans

Is "upgrade" the right word to use in this context?

Are relativity and doppler effect related?

How do I hide Chekhov's Gun?

Are Roman Catholic priests ever addressed as pastor

PTIJ: Who should I vote for? (21st Knesset Edition)

Brexit - No Deal Rejection

Python if-else code style for reduced code for rounding floats

How could a scammer know the apps on my phone / iTunes account?

Are all passive ability checks floors for active ability checks?

Have the tides ever turned twice on any open problem?

Bacteria contamination inside a thermos bottle



Forecasting ticket sales and city


Forecasting an individual based on a representative groupBest regression model to use for sales predictionRegression (and Forecasting) on RentSales Prediction for Fashion Retail DataArtificially Increasing Training dataTime series prediction of discontinuous dataForecast vs Prediction: What is the difference?How to decide which forecasting model to use?Forecasting energy consumption with no historical data when there is a trend













1












$begingroup$


I am learning data science. I have the following dataset for train tickets:



1. order_date_meduim

order,date,medium
95062,2017-09-11,35
171081,2017-07-05,39
122867,2017-08-18,39
107186,2017-11-23,
171085,2017-09-02,

2. order_ordercityA_ordercityB [some order has only 1 ordercity, I think ordercity means here which city is something like source and destination]

order,ordercityA,ordercityB
81773,4,11
105838,4,
76153,24,18
93058,12,
11623,24,3
3070,24,3

3. order_ticketcount,ticketclass

order,ticketcount,ticketclass
246783,1,pax
1693998,2,pax
1958576,1,other
673681,1,pax
1593899,1,pax
194035,1,pax


I need to forecast the ticket sales for a week and also the ordercity with medium of booking.



As I am new, could someone give a possible answer about how to create a prediction model that could predict the sales for 1 week? Also, I doubt the data is time-series data.



I code in Python.










share|improve this question











$endgroup$





This question has an open bounty worth +50
reputation from Roshan Mehta ending ending at 2019-03-19 07:15:53Z">in 2 days.


This question has not received enough attention.















  • $begingroup$
    Yes it's timeseries; work on adding more features to the data which you think could help the model to strengthen its preds.add various statistics and groupby cols, check for holidays and all, weekends, hour etc, etc and I truly recommend not to jump into Time series first without having proper aspect of ML or hands on experience on various datasets/comps/hacks
    $endgroup$
    – Aditya
    Mar 10 at 2:53
















1












$begingroup$


I am learning data science. I have the following dataset for train tickets:



1. order_date_meduim

order,date,medium
95062,2017-09-11,35
171081,2017-07-05,39
122867,2017-08-18,39
107186,2017-11-23,
171085,2017-09-02,

2. order_ordercityA_ordercityB [some order has only 1 ordercity, I think ordercity means here which city is something like source and destination]

order,ordercityA,ordercityB
81773,4,11
105838,4,
76153,24,18
93058,12,
11623,24,3
3070,24,3

3. order_ticketcount,ticketclass

order,ticketcount,ticketclass
246783,1,pax
1693998,2,pax
1958576,1,other
673681,1,pax
1593899,1,pax
194035,1,pax


I need to forecast the ticket sales for a week and also the ordercity with medium of booking.



As I am new, could someone give a possible answer about how to create a prediction model that could predict the sales for 1 week? Also, I doubt the data is time-series data.



I code in Python.










share|improve this question











$endgroup$





This question has an open bounty worth +50
reputation from Roshan Mehta ending ending at 2019-03-19 07:15:53Z">in 2 days.


This question has not received enough attention.















  • $begingroup$
    Yes it's timeseries; work on adding more features to the data which you think could help the model to strengthen its preds.add various statistics and groupby cols, check for holidays and all, weekends, hour etc, etc and I truly recommend not to jump into Time series first without having proper aspect of ML or hands on experience on various datasets/comps/hacks
    $endgroup$
    – Aditya
    Mar 10 at 2:53














1












1








1


1



$begingroup$


I am learning data science. I have the following dataset for train tickets:



1. order_date_meduim

order,date,medium
95062,2017-09-11,35
171081,2017-07-05,39
122867,2017-08-18,39
107186,2017-11-23,
171085,2017-09-02,

2. order_ordercityA_ordercityB [some order has only 1 ordercity, I think ordercity means here which city is something like source and destination]

order,ordercityA,ordercityB
81773,4,11
105838,4,
76153,24,18
93058,12,
11623,24,3
3070,24,3

3. order_ticketcount,ticketclass

order,ticketcount,ticketclass
246783,1,pax
1693998,2,pax
1958576,1,other
673681,1,pax
1593899,1,pax
194035,1,pax


I need to forecast the ticket sales for a week and also the ordercity with medium of booking.



As I am new, could someone give a possible answer about how to create a prediction model that could predict the sales for 1 week? Also, I doubt the data is time-series data.



I code in Python.










share|improve this question











$endgroup$




I am learning data science. I have the following dataset for train tickets:



1. order_date_meduim

order,date,medium
95062,2017-09-11,35
171081,2017-07-05,39
122867,2017-08-18,39
107186,2017-11-23,
171085,2017-09-02,

2. order_ordercityA_ordercityB [some order has only 1 ordercity, I think ordercity means here which city is something like source and destination]

order,ordercityA,ordercityB
81773,4,11
105838,4,
76153,24,18
93058,12,
11623,24,3
3070,24,3

3. order_ticketcount,ticketclass

order,ticketcount,ticketclass
246783,1,pax
1693998,2,pax
1958576,1,other
673681,1,pax
1593899,1,pax
194035,1,pax


I need to forecast the ticket sales for a week and also the ordercity with medium of booking.



As I am new, could someone give a possible answer about how to create a prediction model that could predict the sales for 1 week? Also, I doubt the data is time-series data.



I code in Python.







python predictive-modeling prediction data-science-model






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 23:40







Roshan Mehta

















asked Mar 9 at 23:27









Roshan MehtaRoshan Mehta

666




666






This question has an open bounty worth +50
reputation from Roshan Mehta ending ending at 2019-03-19 07:15:53Z">in 2 days.


This question has not received enough attention.








This question has an open bounty worth +50
reputation from Roshan Mehta ending ending at 2019-03-19 07:15:53Z">in 2 days.


This question has not received enough attention.













  • $begingroup$
    Yes it's timeseries; work on adding more features to the data which you think could help the model to strengthen its preds.add various statistics and groupby cols, check for holidays and all, weekends, hour etc, etc and I truly recommend not to jump into Time series first without having proper aspect of ML or hands on experience on various datasets/comps/hacks
    $endgroup$
    – Aditya
    Mar 10 at 2:53

















  • $begingroup$
    Yes it's timeseries; work on adding more features to the data which you think could help the model to strengthen its preds.add various statistics and groupby cols, check for holidays and all, weekends, hour etc, etc and I truly recommend not to jump into Time series first without having proper aspect of ML or hands on experience on various datasets/comps/hacks
    $endgroup$
    – Aditya
    Mar 10 at 2:53
















$begingroup$
Yes it's timeseries; work on adding more features to the data which you think could help the model to strengthen its preds.add various statistics and groupby cols, check for holidays and all, weekends, hour etc, etc and I truly recommend not to jump into Time series first without having proper aspect of ML or hands on experience on various datasets/comps/hacks
$endgroup$
– Aditya
Mar 10 at 2:53





$begingroup$
Yes it's timeseries; work on adding more features to the data which you think could help the model to strengthen its preds.add various statistics and groupby cols, check for holidays and all, weekends, hour etc, etc and I truly recommend not to jump into Time series first without having proper aspect of ML or hands on experience on various datasets/comps/hacks
$endgroup$
– Aditya
Mar 10 at 2:53











2 Answers
2






active

oldest

votes


















2












$begingroup$

You have got yourself a time series forecasting problem. And with multiple input variables it is called multivariate time series forecasting.



What Is Time Series Forecasting?



You can start with EDA on your data and find out if you can see any trend or seasonality. ( You might need to add or update your current features to get underlying trend/seasonality )



After EDA, you can start looking into following models, all of them are the go-to for time series prediction problem:



  • Classical, Statistical

    • ARMA for stationary data

    • ARIMA for data with a trend - Refer

    • SARIMA for data with seasonality

    • Holt-Winters Forecasting - Refer

    • Theta method - Refer

    • Fourier Transformation - Refer


  • Machine Learning

    • Quantile Regression Forest(QRF)

    • Support Vector Regression(SVR)

    • Recurrent Neural Networks(RNNs) (LSTM)


If you are not comfortable with Statistics then I would advise you to start with LSTMs for forecasting - Refer






share|improve this answer









$endgroup$












  • $begingroup$
    How to find out the ticketclass or so called categorical column using timeseries forecasting
    $endgroup$
    – Roshan Mehta
    yesterday










  • $begingroup$
    This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
    $endgroup$
    – Sean Owen
    2 hours ago


















0












$begingroup$

Generally, the first step in modeling is merging all separate datasets into a single dataset. It looks like the data can be joined on order as a key.



Then, sort the data by date.



Next, visualize the data to see general trends and outliers.



The prophet package can estimate forecasts for time series data. A quick-start notebook is here.






share|improve this answer











$endgroup$












  • $begingroup$
    Which join, outer, inner or cartesian product?
    $endgroup$
    – Roshan Mehta
    Mar 12 at 17:25










  • $begingroup$
    Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
    $endgroup$
    – Brian Spiering
    Mar 12 at 17:42










Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "557"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fdatascience.stackexchange.com%2fquestions%2f47014%2fforecasting-ticket-sales-and-city%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

You have got yourself a time series forecasting problem. And with multiple input variables it is called multivariate time series forecasting.



What Is Time Series Forecasting?



You can start with EDA on your data and find out if you can see any trend or seasonality. ( You might need to add or update your current features to get underlying trend/seasonality )



After EDA, you can start looking into following models, all of them are the go-to for time series prediction problem:



  • Classical, Statistical

    • ARMA for stationary data

    • ARIMA for data with a trend - Refer

    • SARIMA for data with seasonality

    • Holt-Winters Forecasting - Refer

    • Theta method - Refer

    • Fourier Transformation - Refer


  • Machine Learning

    • Quantile Regression Forest(QRF)

    • Support Vector Regression(SVR)

    • Recurrent Neural Networks(RNNs) (LSTM)


If you are not comfortable with Statistics then I would advise you to start with LSTMs for forecasting - Refer






share|improve this answer









$endgroup$












  • $begingroup$
    How to find out the ticketclass or so called categorical column using timeseries forecasting
    $endgroup$
    – Roshan Mehta
    yesterday










  • $begingroup$
    This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
    $endgroup$
    – Sean Owen
    2 hours ago















2












$begingroup$

You have got yourself a time series forecasting problem. And with multiple input variables it is called multivariate time series forecasting.



What Is Time Series Forecasting?



You can start with EDA on your data and find out if you can see any trend or seasonality. ( You might need to add or update your current features to get underlying trend/seasonality )



After EDA, you can start looking into following models, all of them are the go-to for time series prediction problem:



  • Classical, Statistical

    • ARMA for stationary data

    • ARIMA for data with a trend - Refer

    • SARIMA for data with seasonality

    • Holt-Winters Forecasting - Refer

    • Theta method - Refer

    • Fourier Transformation - Refer


  • Machine Learning

    • Quantile Regression Forest(QRF)

    • Support Vector Regression(SVR)

    • Recurrent Neural Networks(RNNs) (LSTM)


If you are not comfortable with Statistics then I would advise you to start with LSTMs for forecasting - Refer






share|improve this answer









$endgroup$












  • $begingroup$
    How to find out the ticketclass or so called categorical column using timeseries forecasting
    $endgroup$
    – Roshan Mehta
    yesterday










  • $begingroup$
    This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
    $endgroup$
    – Sean Owen
    2 hours ago













2












2








2





$begingroup$

You have got yourself a time series forecasting problem. And with multiple input variables it is called multivariate time series forecasting.



What Is Time Series Forecasting?



You can start with EDA on your data and find out if you can see any trend or seasonality. ( You might need to add or update your current features to get underlying trend/seasonality )



After EDA, you can start looking into following models, all of them are the go-to for time series prediction problem:



  • Classical, Statistical

    • ARMA for stationary data

    • ARIMA for data with a trend - Refer

    • SARIMA for data with seasonality

    • Holt-Winters Forecasting - Refer

    • Theta method - Refer

    • Fourier Transformation - Refer


  • Machine Learning

    • Quantile Regression Forest(QRF)

    • Support Vector Regression(SVR)

    • Recurrent Neural Networks(RNNs) (LSTM)


If you are not comfortable with Statistics then I would advise you to start with LSTMs for forecasting - Refer






share|improve this answer









$endgroup$



You have got yourself a time series forecasting problem. And with multiple input variables it is called multivariate time series forecasting.



What Is Time Series Forecasting?



You can start with EDA on your data and find out if you can see any trend or seasonality. ( You might need to add or update your current features to get underlying trend/seasonality )



After EDA, you can start looking into following models, all of them are the go-to for time series prediction problem:



  • Classical, Statistical

    • ARMA for stationary data

    • ARIMA for data with a trend - Refer

    • SARIMA for data with seasonality

    • Holt-Winters Forecasting - Refer

    • Theta method - Refer

    • Fourier Transformation - Refer


  • Machine Learning

    • Quantile Regression Forest(QRF)

    • Support Vector Regression(SVR)

    • Recurrent Neural Networks(RNNs) (LSTM)


If you are not comfortable with Statistics then I would advise you to start with LSTMs for forecasting - Refer







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









PreetPreet

3334




3334











  • $begingroup$
    How to find out the ticketclass or so called categorical column using timeseries forecasting
    $endgroup$
    – Roshan Mehta
    yesterday










  • $begingroup$
    This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
    $endgroup$
    – Sean Owen
    2 hours ago
















  • $begingroup$
    How to find out the ticketclass or so called categorical column using timeseries forecasting
    $endgroup$
    – Roshan Mehta
    yesterday










  • $begingroup$
    This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
    $endgroup$
    – Sean Owen
    2 hours ago















$begingroup$
How to find out the ticketclass or so called categorical column using timeseries forecasting
$endgroup$
– Roshan Mehta
yesterday




$begingroup$
How to find out the ticketclass or so called categorical column using timeseries forecasting
$endgroup$
– Roshan Mehta
yesterday












$begingroup$
This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
$endgroup$
– Sean Owen
2 hours ago




$begingroup$
This is an exact duplicate of another answer you posted. Please customize the answer to the actual question. This is pretty broad as advice.
$endgroup$
– Sean Owen
2 hours ago











0












$begingroup$

Generally, the first step in modeling is merging all separate datasets into a single dataset. It looks like the data can be joined on order as a key.



Then, sort the data by date.



Next, visualize the data to see general trends and outliers.



The prophet package can estimate forecasts for time series data. A quick-start notebook is here.






share|improve this answer











$endgroup$












  • $begingroup$
    Which join, outer, inner or cartesian product?
    $endgroup$
    – Roshan Mehta
    Mar 12 at 17:25










  • $begingroup$
    Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
    $endgroup$
    – Brian Spiering
    Mar 12 at 17:42















0












$begingroup$

Generally, the first step in modeling is merging all separate datasets into a single dataset. It looks like the data can be joined on order as a key.



Then, sort the data by date.



Next, visualize the data to see general trends and outliers.



The prophet package can estimate forecasts for time series data. A quick-start notebook is here.






share|improve this answer











$endgroup$












  • $begingroup$
    Which join, outer, inner or cartesian product?
    $endgroup$
    – Roshan Mehta
    Mar 12 at 17:25










  • $begingroup$
    Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
    $endgroup$
    – Brian Spiering
    Mar 12 at 17:42













0












0








0





$begingroup$

Generally, the first step in modeling is merging all separate datasets into a single dataset. It looks like the data can be joined on order as a key.



Then, sort the data by date.



Next, visualize the data to see general trends and outliers.



The prophet package can estimate forecasts for time series data. A quick-start notebook is here.






share|improve this answer











$endgroup$



Generally, the first step in modeling is merging all separate datasets into a single dataset. It looks like the data can be joined on order as a key.



Then, sort the data by date.



Next, visualize the data to see general trends and outliers.



The prophet package can estimate forecasts for time series data. A quick-start notebook is here.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 12 at 17:43

























answered Mar 12 at 17:05









Brian SpieringBrian Spiering

4,1131029




4,1131029











  • $begingroup$
    Which join, outer, inner or cartesian product?
    $endgroup$
    – Roshan Mehta
    Mar 12 at 17:25










  • $begingroup$
    Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
    $endgroup$
    – Brian Spiering
    Mar 12 at 17:42
















  • $begingroup$
    Which join, outer, inner or cartesian product?
    $endgroup$
    – Roshan Mehta
    Mar 12 at 17:25










  • $begingroup$
    Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
    $endgroup$
    – Brian Spiering
    Mar 12 at 17:42















$begingroup$
Which join, outer, inner or cartesian product?
$endgroup$
– Roshan Mehta
Mar 12 at 17:25




$begingroup$
Which join, outer, inner or cartesian product?
$endgroup$
– Roshan Mehta
Mar 12 at 17:25












$begingroup$
Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
$endgroup$
– Brian Spiering
Mar 12 at 17:42




$begingroup$
Depends on how you want to handle duplicate and missing data. Here is more details jakevdp.github.io/PythonDataScienceHandbook/…
$endgroup$
– Brian Spiering
Mar 12 at 17:42

















draft saved

draft discarded
















































Thanks for contributing an answer to Data Science Stack Exchange!


  • 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.

Use MathJax to format equations. MathJax reference.


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%2fdatascience.stackexchange.com%2fquestions%2f47014%2fforecasting-ticket-sales-and-city%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

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?