Questions tagged [holtwinters]

Holt-winters smoothing is one of the simplest form of exponential smoothing

128 questions
2
votes
1 answer

Where did the forecast.Holtwinters go in R 3.4.3?

I'm using R Studio based on R 3.4.3. However, when I tried to call the forecast.HoltWinters function, R told me that "could not find function "forecast.HoltWinters"". Inspect the installed package (v8.2) told me that it's true, there is no…
GVN.Chaos
  • 23
  • 4
2
votes
1 answer

How to show to date instead of periods at x-axis in time series forecast plot?

I have a simple time series dataset: df1, in format like: Item | Date | Var 1 | 20000101 | 12 2 | 20000102 | 13 3 | 20000103 | 16 4 | 20000104 | 18 5 | 20000105 | 29 6 | 20000106 | 36 ... …
HW-Scientist
  • 394
  • 2
  • 7
  • 20
2
votes
1 answer

C - C_Holt-Winters function called within R Holt-Winters function

I am trying to understand the C function which is called in the R Holt-Winters function. The section by which I am confused reads: for (i = *start_time - 1; i < *xl; i++) { 56 /* indices for period i */ 57 i0 = i -…
Statsanalyst
  • 331
  • 2
  • 3
  • 16
2
votes
1 answer

Forecasting Holt-Winters with and without trend -> Strange Results

I am currently encountering a problem with the HoltWinters method implemented in the forecast package. If I use the method for some of my time series I have a larger error (SSE) when I use the Holt Winters with trend than without trend (Single…
Chris
  • 45
  • 5
2
votes
0 answers

R forecast: Handling a cutted frequency of a time series [35 months instead of 36]

I'm dealing with the following problem right now: I'm going through Data Smart Forecasting example with this data set: library(forecast) mydata <- c(165, 171, 147, 143, 164, 160, 152, 150, 159, 169, 173, 203, 169, 166, 162, 147, 188, 161, 162, 169,…
Alex
  • 340
  • 2
  • 13
2
votes
0 answers

R HoltWinters - Odd dip in predictions

So, I have this time series that tracks the daily number of applications to a graduate program. Each application period is 64 days - so for each period, you start at zero and it goes up until the end of the period. The last period is partial,…
kng229
  • 473
  • 5
  • 13
2
votes
1 answer

Holt-Winters for multi-seasonal forecasting in Python

My data: I have two seasonal patterns in my hourly data... daily and weekly. For example... each day in my dataset has roughly the same shape based on hour of the day. However, certain days like Saturday and Sunday exhibit increases in my data, and…
user1152532
  • 697
  • 3
  • 7
  • 15
1
vote
0 answers

Retrieving AIC from a Holt-Winters model in R

I am relatively new to R (and any kind of programming in general) and I am trying to generate forecasting models. One of the methods I have been looking into is the Holt-Winters method, using the HoltWinters function from the {stats} package in…
j_patrick
  • 11
  • 1
1
vote
0 answers

Holt Winters Model Failing with Error "Optimization Failure" in R

I was trying to forecast a model using holt winters in R and this failed as showing the below mentioned error. I am not sure what is the issue and how to bypass it? I am actually forecasting this on loop so, because of this error my other time…
user20203146
  • 447
  • 7
1
vote
1 answer

for loop having issue with holt-winters exponential smoothing

when I run my individual models with different training and test data my model works fine. I wanted to run a for loop and now I am getting the error not sure why. I have created several time splits to check how the model is performing with different…
sdave
  • 531
  • 4
  • 18
1
vote
4 answers

How to take confidence interval of statsmodels.tsa.holtwinters-ExponentialSmoothing Models in python?

I did time series forecasting analysis with ExponentialSmoothing in python. I used statsmodels.tsa.holtwinters. model = ExponentialSmoothing(df, seasonal='mul', seasonal_periods=12).fit() pred = model.predict(start=df.index[0],…
1
vote
1 answer

hw() function in R doesn't work properly on my laptop only

I'm studying time series and need to use hw() function. I cannot make it working even on a simple code based on the co2 dataset…
1
vote
0 answers

One step ahead forecast on test data using holtwinters

I want to train holt model on training data, and then make a forecast on test data without estimating parameters again. On several sites I found this solution, but for ARIMA model: library(forecast) m_train <- holt(rnorm(500)+runif(500)) m_test <-…
Szymon Fraś
  • 96
  • 1
  • 7
1
vote
0 answers

Fine tuning parameters for the Exponential Smoothing

I am a new user of the packages tidymodels and modeltime. I find these packages really useful for having the same interface of different models from different packages. I try to fine tune a time series with an exponential smoothing from the package…
Quynh-Mai Chu
  • 165
  • 1
  • 9
1
vote
0 answers

Unexpected date change when running HoltWinters

I am running time series data, but I encountered an unexpected date change while running the HoltWinters function. The original data has a date range from 2013 to 2017, but the implementation of HoltWinters turns the date into 2014-2018. This is…
user9532692
  • 584
  • 7
  • 28
1
2
3
8 9