Analysis of Sequential Data
MSE Module TSM_AnSeqDa
MSE Module TSM_AnSeqDa
Kartei Details
Karten | 96 |
---|---|
Sprache | Deutsch |
Kategorie | Mathematik |
Stufe | Universität |
Erstellt / Aktualisiert | 17.01.2021 / 08.09.2023 |
Weblink |
https://card2brain.ch/box/20210117_tsmanseqda
|
Einbinden |
<iframe src="https://card2brain.ch/box/20210117_tsmanseqda/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
Lernkarteien erstellen oder kopieren
Mit einem Upgrade kannst du unlimitiert Lernkarteien erstellen oder kopieren und viele Zusatzfunktionen mehr nutzen.
Melde dich an, um alle Karten zu sehen.
What is the ets() function in R about?
- Automatically chooses a model by default using the AIC, AICc or BIC
- Can handle any combination of trend, seasonality and damping
- Ensures the parameters are admissible ( equivalent to invertible)
- Produces an object of class "ets"
Exercise shown in lecture 5:
An exponential smoothing model with trend has parameters alpha = 0.0001, beta = 0.0001, with initial states l0 = 1; b0 = 1. Let us assume that the first observation of the time series has time index 1.
- Which is approximately the fitted value for time t=8? Discuss how you reach your conclusion, showing the relevant formulae.
- Compute exactly the fitted values for the first two time instants of the time instants of the time series, assuming the first two observations of the time series to be y=[1.5;2.2].
- How could you change the parameters of the model, in order to obtain a nive predictor?
How can you identify non-stationary time series (arima models need stationarity)?
- Time plot
- The ACF of stationary data drops to zero relatively quickly
- The ACF of non-stationary data decreases slowly
- For non-stationary data, the value of r1 is often large and positive
What is differencing about?
- Used when arima models are applied to forecast the time series
- Differencing helps to stailize the mean
- the differenced series is the change between each observation in the original series
- y't = yt - yt-1
- The differenced series will have only T-1 values since it is not possible to calculate a difference y'1 for the first observation
What is the difference between first- and second-order differencing?
Occasionally the first-order differenced data will not appear stationary and it may be necessary to difference the data a second time.
What can we forecast?
- Sells of pills/medicine
- Elextricity demand and availability
- Weather
- Sells of product/service
- Customer churns
Which factors affect forecastability?
- Some thing is easier to forecast if:
- we have a good understanding of the factors that contribute to it
- There is lots of data available
- the forecasts cannot affect the thing we are trying to forecast
- There is relatively low natural/unexplainable random variation
- the future is somewhat similar to the past
What are time series data?
- Daily stock prices
- Monthly rainfall
- Annual business profits
- Production, e.g. quartely australien beer production
What is forecasting about?
Forecasting is estimating how the sequence of observations will continue into the future
What do wee need to add to the forecast?
An uncerainty range
Why is providing an uncertainty of the forecast in forecasting important?
If you have just the probabilty (e.g. 50%) you do not know the deviation. So you could for example produce the 80% of the forecast. The worst case scenario is that customer could order or demand more. If you can not provide the asked product of piece, you have the bigger loss (in image) than if you have produced a bit too much, which you can hold and put in the sale in the end.
When is it ok to use the gaussian distribution in forecasting?
As long as the to be predicted number is far away from 0 (like hundreds of thousends of better millions)
How is a time series stored in R
In a ts object:
- A list of numbers
- Information about times those numbers were recorded
What is the command for the ts class package in R and what does it include?
library(fpp2)
Loads:
- some data for use in examples and exercises
- forecast package (for forecasting functions)
- ggplot2 package (for graphics functions)
- fma package (for lots of time series data)
- expsmooth package (for more time series data)
How do you plot saisons in a ts?
With seasonal plots:
- Data plotted against the individual "seasons" in which the data were observed. (in this case a "season" is a month.)
- Something like a time plot except that the data from each season are overlapped
- Enables the underlying sesonal pattern to be seen more clearly, and also allow any substantial departures form the seasonal pattern to be easily identified.
- In R: ggseasonplot()
What are the different time series patterns? Name and explain them!
- Trend
- Pattern exists when there is a long-term increase or decrease in the data
- Seasonal
- Pattern exists when a series in influenced by seasonal factors (e.g., the quarter of the year, the month, or day of the week)
- Cyclic
- Pattern exists when data exhibit rises and falls that are not of fixed period (duration usually of at least 2 years)
What are the differences between seasonal and cyclic patterns?
- seasonal pattern constant length; cyclic pattern variable length
- Average length of cycle longer than length of seasonal pattern
- magnitude of cycle more variable than magnitude of seasonal pattern
The timing of peaks and troughs is predictable with seasonal data, but unpredictable in the long term with cyclic data.
What is covariance and correlation as well as autocoraviance and autocorrelation about?
-
- 1 / 96
-