#๐ ARIMA and times series weather forecast
32 messages ยท Page 1 of 1 (latest)
@proud scroll
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
-
These 3 CSV files have a total of 9 years of historical data about Finland's weather on 4 factors (air temperature, cloud cover, precipitation, and wind speed).
I tried combining the 3 files and it messed up the columns and everything so it couldn't be read. The reason why they are in 3 files is because the official weather site allowed me to download up 3 years spans. -
The 3 files need to be trained and tested with ARIMA
-
Using Time series analysis with the 9 years of historical data I have to get charts showing forecasts for the next 10 years. Come to a conclusion, is climate change increasing or decreasing based on the analysis of the 4 factors throughout the 4 seasons (Summer, Autumn, Winter, and Spring)?
I have been on this for days and the code just doesn't work. I am not sure if the CSV files are not understandable. The forecasted data is not realistic and it is showing a straight line.
I am using google collab.
First, deal with one problem at a times if your data is bad, no point moving on to next step.
Plot your data over time, and examine it to see if it makes sense
Once you're there, then you should look at using pmdarima (and its auto_arima)
Then, you need a plan for handling seasons. You could use seasonality in pmdarima.... or you could calculate a seasonal average or distribution and forecast that independently
I need a step by step guidance.
By ''data is bad'' you mean the csv?
You said something about the data being messed up, and you're not sure if the csv files are understandable.
The first thing you do with any new dataset is plot it: make sure it makes sense.
These are official data from an official weather site. The CSV looks funny, but it is the only data I can use for this
Great, but does the data make sense?
the information in it yes
Well it is a subjective matter, if you look at it, it isn't the typical American type column setup
in my opinion it looks funny
others might disagree
Still not descriptive.
The thing is, I don't know how to explain it
It is something that you see and you realize if it looks proper
But because it is from the only official site, It has to be it
I just want you to appreciate that nothing you're saying is technical nor descriptive. There's nothing to respond to.
the colums look like they are stuck together or all written inside the same colum
but the code still understands them as seperate
Instead of stats model, I'd also suggest using pmdarima https://pypi.org/project/pmdarima/. It contains a very helpful/important auto_arima feature that discovers p,d,q's for the arima model
Or maybe it doesn't and you have totally erroneous results?
That's why you plot and inspect the data first
I am currently testing pmdarima
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.