Home » date » 2010 » Nov » 30 »

ws 8

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 30 Nov 2010 16:11:48 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm.htm/, Retrieved Tue, 30 Nov 2010 17:12:53 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2938 2909 3141 2427 3059 2918 2901 2823 2798 2892 2967 2397 3458 3024 3100 2904 3056 2771 2897 2772 2857 3020 2648 2364 3194 3013 2560 3074 2746 2846 3184 2354 3080 2963 2430 2296 2416 2647 2789 2685 2666 2882 2953 2127 2563 3061 2809 2861 2781 2555 3206 2570 2410 3195 2736 2743 2934 2668 2907 2866 2983 2878 3225 2515 3193 2663 2908 2896 2853 3028 3053 2455 3401 2969 3243 2849 3296 3121 3194 3023 2984 3525 3116 2383 3294 2882 2820 2583 2803 2767 2945 2716 2644 2956 2598 2171 2994 2645 2724 2550 2707 2679 2878 2307 2496 2637 2436 2426 2607 2533 2888 2520 2229 2804 2661 2547 2509 2465 2629 2706 2666 2432 2836 2888 2566 2802 2611 2683 2675 2434 2693 2619 2903 2550 2900 2456 2912 2883 2464 2655 2447 2592 2698 2274 2901 2397 3004 2614 2882 2671 2761 2806 2414 2673 2748 2112 2903 2633 2684 2861 2504 2708 2961 2535 2688 2699 2469 2585 2582 2480 2709 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.137854413836711
beta0.00578274385342074
gamma0.233989636519689


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1334583422.4051816239335.5948183760665
1430242998.6051742611425.3948257388574
1531003080.7942970572219.2057029427774
1629042882.6871989648821.3128010351197
1730563048.637563714727.36243628527927
1827712782.37901160563-11.3790116056325
1928972951.98613043277-54.9861304327719
2027722842.95464845602-70.954648456016
2128572808.0402723902648.9597276097415
2230202893.61231857154126.387681428457
2326482969.37556993068-321.375569930676
2423642364.15648759912-0.156487599118918
2531943441.44106969978-247.441069699777
2630132976.2007957424736.7992042575265
2725603058.35775894735-498.357758947352
2830742788.55898274627285.441017253727
2927462987.54855207437-241.548552074371
3028462682.43953945554163.560460544459
3131842866.74908255775317.250917442254
3223542805.49072674787-451.490726747872
3330802741.68510612475338.314893875249
3429632882.3731207751180.626879224892
3524302861.07017885997-431.070178859974
3622962305.01311469469-9.01311469469147
3724163330.66759057353-914.66759057353
3826472829.73229124656-182.732291246560
3927892772.4363876964116.5636123035883
4026852730.91987024959-45.9198702495883
4126662776.83436164114-110.834361641138
4228822570.48872899831311.511271001694
4329532805.33628640245147.663713597548
4421272564.62161996628-437.621619966281
4525632661.07162863300-98.0716286329962
4630612688.28349738175372.716502618251
4728092602.91886874011206.081131259893
4828612219.24546054001641.754539459988
4927813151.83603455409-370.836034554090
5025552873.8848649455-318.884864945500
5132062838.27472611076367.725273889239
5225702833.09275401697-263.092754016972
5324102836.33082494429-426.330824944294
5431952671.79943704686523.200562953137
5527362903.0502878742-167.050287874201
5627432500.90305204697242.096947953030
5729342760.11919310883173.880806891166
5826682920.57670829879-252.57670829879
5929072715.68054441769191.319455582312
6028662418.13393696478447.866063035221
6129833119.84049864061-136.840498640615
6228782884.93089264961-6.93089264961054
6332253031.3896562673193.610343732701
6425152875.36213191657-360.362131916567
6531932832.59697759902360.403022400985
6626632969.03574533904-306.035745339044
6729082947.02867794113-39.0286779411263
6828962645.47282865107250.527171348928
6928532892.50086685623-39.5008668562332
7030282937.7532726802790.2467273197299
7130532870.17979355190182.820206448097
7224552623.72309981415-168.723099814146
7334013122.49152914244278.50847085756
7429692971.39388162149-2.39388162148953
7532433159.2847188176683.7152811823435
7628492876.61628131111-27.6162813111146
7732963025.65228971797270.347710282028
7831213015.69043134138105.309568658622
7931943105.0378943498788.9621056501337
8030232880.42577044919142.574229550809
8129843054.86431943051-70.86431943051
8235253122.74308615555402.256913844450
8331163117.8810162738-1.88101627379910
8423832775.92156185318-392.921561853182
8532943334.70299387297-40.702993872972
8628823083.37718221263-201.377182212630
8728203261.49359608024-441.493596080236
8825832883.8300793168-300.830079316801
8928033054.96031689203-251.960316892034
9027672938.93470629782-171.93470629782
9129452985.77636065501-40.7763606550143
9227162753.00249700534-37.0024970053441
9326442858.39275895808-214.392758958081
9429563000.58009200437-44.5800920043748
9525982850.88571684403-252.885716844031
9621712393.53238609267-222.532386092675
9729943045.08676700320-51.0867670032048
9826452758.13781534055-113.137815340552
9927242898.27093773928-174.270937739278
10025502584.32671806898-34.3267180689845
10127072800.77170315402-93.7717031540164
10226792721.54044517074-42.5404451707391
10328782811.6253404424166.3746595575903
10423072593.41613650956-286.416136509562
10524962627.47141273665-131.471412736649
10626372814.24604208603-177.246042086033
10724362603.03455725743-167.034557257429
10824262162.50152212482263.498477875175
10926072914.89317901695-307.893179016946
11025332579.06937186539-46.0693718653852
11128882715.21385861468172.786141385321
11225202476.7193004395643.2806995604383
11322292691.30757987716-462.307579877164
11428042570.75007086764233.249929132360
11526612720.18852953502-59.1885295350189
11625472412.76305513361134.236944866393
11725092535.66279636221-26.6627963622095
11824652727.33314429513-262.333144295130
11926292506.06583979411122.934160205891
12027062192.20402442006513.795975579937
12126662863.87617318974-197.876173189741
12224322596.16944140611-164.169441406112
12328362760.2217826614175.7782173385922
12428882482.18944523287405.810554767129
12525662645.00988814034-79.0098881403383
12628022718.1639388383783.8360611616349
12726112788.44668684973-177.446686849731
12826832504.08103447305178.918965526947
12926752601.0591043065273.9408956934803
13024342759.51332030403-325.513320304027
13126932607.6648865806185.3351134193904
13226192367.84703867423251.152961325766
13329032859.912847689943.0871523101023
13425502632.58383963681-82.5838396368113
13529002856.7136482963843.2863517036203
13624562641.17985851695-185.179858516947
13729122624.65343156555287.346568434448
13828832781.38292484963101.617075150371
13924642801.64181612116-337.641816121165
14026552567.1899527548087.8100472452034
14124472630.46470664228-183.464706642280
14225922672.68008166223-80.6800816622299
14326982637.4887150254760.5112849745274
14422742427.703940712-153.703940712002
14529012821.6661229675479.3338770324572
14623972573.69222964465-176.692229644645
14730042809.87629489622194.123705103777
14826142568.8024654347845.1975345652249
14928822679.29803629241202.701963707590
15026712786.76284915367-115.762849153666
15127612688.1403405073572.8596594926476
15228062596.13135090133209.86864909867
15324142621.63031466415-207.630314664154
15426732681.35315273477-8.35315273476772
15527482684.7767409137463.2232590862577
15621122432.31506942704-320.315069427041
15729032850.3513562966552.6486437033468
15826332547.0592996440485.9407003559568
15926842894.47316074841-210.473160748406
16028612567.47681661262293.523183387385
16125042744.07328749078-240.073287490779
16227082725.99595467241-17.9959546724108
16329612678.72167222405282.278327775951
16425352643.2073854769-108.207385476902
16526882540.3673898731147.632610126898
16626992689.281403267209.71859673279778
16724692709.66580900261-240.665809002614
16825852337.72725984697247.272740153027
16925822909.48759748182-327.487597481824
17024802560.44558509239-80.4455850923878
17127092824.93061849702-115.930618497020
17224412612.52026222978-171.520262229780
17321822616.87375213901-434.873752139014
17425852616.09677912458-31.0967791245835
17528812626.93542578866254.064574211342
17624222508.07901519761-86.0790151976094
17726902459.23972970158230.760270298420
17826592591.1965123911867.8034876088223
17925352568.52873052359-33.5287305235893
18026132323.19482294785289.805177052150


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1812784.520656493762326.38721358763242.65409939993
1822530.372294379912067.856175602332992.8884131575
1832798.764209683432331.856724723343265.67169464353
1842591.189154974552119.881573432893062.49673651621
1852566.265104687152090.548658039253041.98155133505
1862707.444021670602227.309905145543187.57813819565
1872780.672209525232296.111583906343265.23283514413
1882558.547329773072069.551323123213047.54333642293
1892585.933703689012092.493413004453079.37399437356
1902653.463731366132155.570224162243151.35723857002
1912601.211171316412098.855487148453103.56685548436
1922425.957535151851919.130687073912932.78438322979
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm/1lzip1291133504.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm/1lzip1291133504.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm/2lzip1291133504.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm/2lzip1291133504.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm/3d8ir1291133504.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911335699w7tfx8mp473irm/3d8ir1291133504.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
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=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
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