Holt-winters smoothing is one of the simplest form of exponential smoothing
Questions tagged [holtwinters]
128 questions
1
vote
1 answer
Looping through rows from a spreadsheet, running a function through each row and outputting the result back to the end of the same row
This is a tough one, but I've been stuck for 2 weeks and I would appreciate if someone could help me on this. Basically, I've got a spreadsheet where the first row is like this (I was not able to paste the spreadsheet here and keep it formatted in…

W Barreto
- 438
- 4
- 11
1
vote
1 answer
Time series forecasting in r : ts() function in forecast package
I am currently working on a sample data that requires me to perform time
series forecasting in R on a given set of data.So i need to forecast for daily
basis. I am getting the following error message.
Error in -.default(x, trend) :…

Eswaraiah
- 13
- 5
1
vote
1 answer
HoltWinters Nested Seasons in R
I have a dataset of daily demand over the last 2 years. The data has weekly seasons and nested daily seasons. I converted the data into a time series using ts function with frequency=365. When using HoltWinters method now, he interprets every day as…

PeterD
- 1,331
- 12
- 22
1
vote
1 answer
Why am I getting flat time series forecasts from most of the techniques?
I have a simple example time series:
Data:
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2000 200.1 199.5 199.4 198.9 199.0 200.2 198.6 200.0 200.3 201.2 201.6 201.5
2001 201.5 203.5 204.9 207.1 210.5 210.5 209.8 208.8…

William Calhoun
- 95
- 2
- 12
1
vote
1 answer
Forecasting Daily Data using HoltWinters
First of all I have already consulted this article and this but couldn't get it to work.
I have daily data starting from 28-03-2015 till 27-02-2017.
My TS object looks like this:
bvg11_prod_ts <- ts(bvg11_data$MA_PROD, freq=365, start=c(2015, 87),…

Shery
- 1,808
- 5
- 27
- 51
1
vote
0 answers
Holt Winters Forecast with Multiple Input Variables
For context, I'm a novice R user, so please forgive any incorrect terminology/processes. I am actively trying to improve my coding ability, but recently have become stumped.
I have the following data set where A * B * C = Output:
Date …

user6301467
- 11
- 1
1
vote
1 answer
Date on the x-axis in Holt-Winters graph R
I am trying to plot the date as the x-axis in a Holt-Winters graph in R. I have searched for this topic on this site and many others with no luck. I am aware of using xaxt="n" and then axis() for most plots. The following code works for a normal…

gleasocd
- 93
- 7
1
vote
1 answer
HoltWinters forecast in R
I have a time series divided in 30 days and hour , so 720 values (24h*30).
Every Saturday and Sunday as you can see I have the lowest values at the time series . (It starts from friday).
I divided the time series in 3 week for "train" and 1 for…

DanieleO
- 462
- 1
- 7
- 20
1
vote
0 answers
Interpretation of level, trend and seasonal indices in holt winters exponential smoothing
I am trying to learn Holt Winters exponential smoothing. In the algorithm there are three indices involved (level, trend, seasonality) while forecasting.
My questions:
What is the interpretation of these 3 indices?
How do I differentiate between…

user3664020
- 2,980
- 6
- 24
- 45
1
vote
2 answers
Time Series Analysis and R Holt Winters
I have a seasonal (7 days interval) time series, daily data for 30 days.
What is the best approach for a reasonable forecast?
The time series contains orders made with a app, it shows a seasonality of 1 week (lower sales at the beginning of the…

chopin_is_the_best
- 1,951
- 2
- 23
- 39
1
vote
1 answer
R: Running forecast function through multiple columns of a data frame
I read in a csv file into a data frame using:
dataxlsx <- read.csv(file.choose(), header = T)
The data frame looks like:
Year Month Period X410 X430 X431
2005 1 1 3467748 4434879 1345638
2005 2 2 3626338 4311150 …

Michael Donofrio
- 11
- 3
1
vote
1 answer
NaNs produced when applying HoltWinters to a matrix
I am trying to an exponential smoothing model using the forecast library.
> library(forecast)
> dput(dat)
structure(list(a = c(142.8163942, 143.5711365, 145.3485827, 142.0577145,
139.4326176, 140.1236581, 138.6560282, 136.405036, 133.9337229,…

Carol.Kar
- 4,581
- 36
- 131
- 264
1
vote
2 answers
holt winters in R by grouping a set of observations (like HW per region/per product)
I am trying to do a holt winters forecast for a dataset which is of this pattern:
>Insample
Region Week Sales
x 01/1/2013 200
x 08/1/2013 250
x 15/1/2013 185
x 22/1/2013 375
y 01/1/2013 155
y …

Shraddha
- 155
- 3
- 16
1
vote
1 answer
ggplot & Confidence Intervals for Holt-Winters Prediction Function
Using data UKDriverDeaths
Attempting to use Holt-Winters prediction function & ggplot().
Basically reproduce the data in ggplot (1) with confidence intervals (2).
This is the data:
data('UKDriverDeaths')
past <- window(UKDriverDeaths, end =…

user3608523
- 65
- 1
- 7
0
votes
0 answers
How to save a Holt model forecast in a dataframe in pandas
I have sample data in following format enter image description hereand I am trying to run Holts model on it to forecast ln_value for future 10 time points for each groupby variable 'bid'. I am running following snippet but I am unable to store the…

Shash
- 1
- 1