Home » date » 2011 » May » 19 »

inflation in consumer prices (%)

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 19:16:56 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g.htm/, Retrieved Thu, 19 May 2011 21:13:33 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.440 0.548 0.163 0.381 0.164 0.109 0.328 0.435 0.325 0.108 0.054 0.270 0.431 0.215 0.214 0.160 0.427 0.372 0.106 0.053 0.317 0.527 0.472 0.001 0.051 0.418 0.364 0.311 0.052 0.052 0.620 0.616 1.377 0.151 0.501 0.001 0.606 0.050 0.150 0.501 0.299 0.248 0.545 0.444 0.491 0.444 0.050 0.545 0.138 0.423 0.495 0.370 0.388 0.169 0.241 0.014 0.376 0.331 0.789 0.289 0.359 0.236 0.367 0.309 0.551 0.901 0.870 0.160 0.032 0.877 1.812 0.784 0.270 0.462 0.146 0.108 0.132 0.680 0.117 0.345 0.204 0.227 0.236 0.092 0.138 0.046 0.023 0.009 0.142 0.207 0.346 0.207 0.165 0.247 0.123 0.433
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0
beta0
gamma0.144366894147601


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.4310.3863238063091580.0446761936908425
140.2150.2129791805050960.00202081949490351
150.2140.22752494958839-0.0135249495883902
160.160.1584854983252490.00151450167475148
170.4270.370848190860210.0561518091397898
180.3720.3166160137288860.0553839862711142
190.1060.288834925031666-0.182834925031666
200.0530.404561238766747-0.351561238766747
210.3170.3169756731608552.43268391449947e-05
220.5270.1085845142551590.418415485744841
230.4720.05399863424854370.418001365751456
240.0010.248284557096173-0.247284557096173
250.0510.401086340442924-0.350086340442924
260.4180.2177766991510860.200223300848914
270.3640.2303296917227750.133670308277225
280.3110.1620453231130630.148954676886937
290.0520.38691877155086-0.33491877155086
300.0520.331421745336218-0.279421745336218
310.620.2679357995202840.352064200479716
320.6160.3612041959709190.254795804029081
331.3770.3235944834944261.05340551650557
340.1510.172510523248285-0.0215105232482846
350.5010.1167222641788450.384277735821155
360.0010.216998433463264-0.215998433463264
370.6060.3578107415993150.248189258400685
380.050.25178614889252-0.20178614889252
390.150.254783133690003-0.104783133690003
400.5010.1873340174052960.313665982594704
410.2990.345536473558083-0.0465364735580834
420.2480.297063714700177-0.0490637147001771
430.5450.3253010050534280.219698994946572
440.4440.4061383027774860.0378616972225141
450.4910.4853955987135380.0056044012864615
460.4440.1728624042516450.271137595748355
470.050.175707592952947-0.125707592952947
480.5450.189594751825420.35540524817458
490.1380.401633860459003-0.263633860459003
500.4230.2271682378717280.195831762128272
510.4950.2445056735658490.250494326434151
520.370.2373163898702150.132683610129785
530.3880.3456515350054590.0423484649945405
540.1690.295819141529303-0.126819141529303
550.2410.364194597344315-0.123194597344315
560.0140.419863992763976-0.405863992763976
570.3760.495945130248409-0.119945130248409
580.3310.2162458602615810.114754139738419
590.7890.1607055631608670.628294436839133
600.2890.2457056227251220.0432943772748776
610.3590.370809243532144-0.0118092435321445
620.2360.260514884114387-0.0245148841143871
630.3670.2862358096113170.0807641903886827
640.3090.2615502130309410.0474497869690593
650.5510.3587195046069860.192280495393014
660.9010.2829879030328760.618012096967124
670.870.3532352549510570.516764745048943
680.160.368377714245271-0.208377714245271
690.0320.488029374769362-0.456029374769362
700.8770.2373775633785690.639622436621431
711.8120.2563321112988191.55566788870118
720.7840.2568801731640050.527119826835996
730.270.3763064984068-0.1063064984068
740.4620.2619818243788540.200018175621146
750.1460.303689304048226-0.157689304048226
760.1080.273612108545154-0.165612108545154
770.1320.393970839588824-0.261970839588824
780.680.3794125047421730.300587495257827
790.1170.436106489258548-0.319106489258548
800.3450.3448215334585320.000178466541468136
810.2040.43032606610757-0.22632606610757
820.2270.336058667370351-0.10905866737035
830.2360.490152801987282-0.254152801987282
840.0920.339361877491228-0.247361877491228
850.1380.367867749660774-0.229867749660774
860.0460.29641568201754-0.25041568201754
870.0230.286283692638016-0.263283692638016
880.0090.254459507152157-0.245459507152157
890.1420.362924074480643-0.220924074480643
900.2070.430835465183252-0.223835465183252
910.3460.397432245061054-0.0514322450610543
920.2070.351374448411832-0.144374448411832
930.1650.405166842631687-0.240166842631687
940.2470.326357937097361-0.0793579370973606
950.1230.462004092043866-0.339004092043866
960.4330.309362378487950.12363762151205


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
970.3409676420123450.2486713588201450.433263925204545
980.2651439501756770.1728476669834770.357440233367878
990.2529221741862560.1606258909940550.345218457378456
1000.2231172182142270.1308209350220270.315413501406427
1010.3372078722026580.2449115890104580.429504155394859
1020.4059469728052010.3136506896130.498243255997401
1030.397263156995720.304966873803520.48955944018792
1040.3366715293557680.2443752461635670.428967812547968
1050.3773663931976180.2850701100054170.469662676389818
1060.3207328463649130.2284365631727130.413029129557113
1070.4207007373844180.3284044541922180.512997020576619
1080.333252451748585-228.341438594071229.007943497568
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g/19ana1305832615.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g/19ana1305832615.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g/20rwb1305832615.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g/20rwb1305832615.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g/3o8om1305832615.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305832410ftq0lxdgkw29s9g/3o8om1305832615.ps (open in new window)


 
Parameters (Session):
par1 = Studio 100 PRIJS 2005 ; par2 = Studio 100 PRIJS 2005 ; par3 = Studio 100 PRIJS 2005 ; par4 = 12 ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ; par4 = 12 ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by