Home » date » 2009 » Jun » 03 »

opdracht 10 - eigen reeks: droge witte wijn Australië - Evelien Anthonissen

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 03 Jun 2009 07:35:41 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo.htm/, Retrieved Wed, 03 Jun 2009 15:40:26 +0200
 
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/2009/Jun/03/t1244036426djm4kouk0f09fwo.htm/},
    year = {2009},
}
@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 = {2009},
    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:
Evelien Anthonissen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1954 2302 3054 2414 2226 2725 2589 3470 2400 3180 4009 3924 2072 2434 2956 2828 2687 2629 3150 4119 3030 3055 3821 4001 2529 2472 3134 2789 2758 2993 3282 3437 2804 3076 3782 3889 2271 2452 3084 2522 2769 3438 2839 3746 2632 2851 3871 3618 2389 2344 2678 2492 2858 2246 2800 3869 3007 3023 3907 4209 2353 2570 2903 2910 3782 2759 2931 3641 2794 3070 3576 4106 2452 2206 2488 2416 2534 2521 3093 3903 2907 3025 3812 4209 2138 2419 2622 2912 2708 2798 3254 2895 3263 3736 4077 4097 2175 3138 2823 2498 2822 2738 4137 3515 3785 3632 4504 4451 2550 2867 3458 2961 3163 2880 3331 3062 3534 3622 4464 5411 2564 2820 3508 3088 3299 2939 3320 3418 3604 3495 4163 4882 2211 3260 2992 2425 2707 3244 3965 3315 3333 3583 4021 4904 2252 2952 3573 3048 3059 2731 3563 3092 3478 3478 4308 5029 2075 3264 3308 3688 3136 2824 3644 4694 2914 3686 4358 5587 2265 3685 3754 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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.122926496035536
beta0.0628758944477284
gamma0.3550319570393


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1320721985.8426816239386.1573183760681
1424342331.8340299847102.165970015300
1529562837.70791816454118.292081835465
1628282728.7284256786999.2715743213057
1726872639.2614234389447.738576561057
1826292618.4119605589510.5880394410538
1931502809.57754848236340.422451517636
2041193751.37802201576367.621977984239
2130302757.36342998386272.636570016143
2230553592.02985353973-537.029853539726
2338214348.72438939199-527.724389391993
2440014209.73397170188-208.733971701879
2525292364.00438489807164.995615101928
2624722726.60613803078-254.606138030775
2731343192.82141403267-58.8214140326686
2827893053.95490779798-264.954907797978
2927582898.66056445638-140.660564456383
3029932836.61998289932156.380017100676
3132823143.07735942779138.922640572210
3234374061.68363251219-624.683632512194
3328042901.54715194120-97.5471519411958
3430763421.16186449278-345.161864492782
3537824188.39764373804-406.397643738035
3638894148.6473556987-259.647355698698
3722712397.63668945409-126.636689454093
3824522576.07782070433-124.077820704326
3930843102.66072416236-18.6607241623569
4025222888.21071493319-366.210714933193
4127692742.0580507965826.9419492034181
4234382777.29567812917660.704321870835
4328393128.39002998256-289.390029982563
4437463741.334355532674.66564446733264
4526322812.33817008831-180.338170088309
4628513233.6632711899-382.663271189899
4738713965.92325211251-94.9232521125068
4836184001.26755773092-383.267557730925
4923892266.63298796773122.367012032265
5023442468.55887358033-124.558873580335
5126783019.98345992279-341.983459922785
5224922647.14131476486-155.141314764858
5328582640.56559660929217.434403390708
5422462889.24630185622-643.246301856221
5528002766.8029425655333.197057434465
5638693496.06223569706372.937764302944
5730072542.66942181805464.330578181948
5830232973.1634211690949.836578830907
5939073844.4549092729162.5450907270874
6042093806.85276087344402.147239126561
6123532329.7699397574623.2300602425412
6225702445.40734636475124.592653635254
6329032964.46944013528-61.4694401352804
6429102691.17247120066218.827528799345
6537822856.3558652183925.6441347817
6627592939.33394152907-180.333941529074
6729313103.25602286572-172.256022865717
6836413930.28742127508-289.287421275078
6927942936.06607224404-142.066072244042
7030703170.37978328149-100.379783281490
7135764033.43280332002-457.43280332002
7241064039.9108519103266.0891480896753
7324522403.1803107491648.8196892508377
7422062553.37776636195-347.377766361951
7524882952.68776171025-464.687761710252
7624162710.19276812224-294.192768122236
7725343021.52894889665-487.528948896653
7825212564.60006345212-43.6000634521229
7930932727.10156545076365.898434549241
8039033567.25938612931335.740613870687
8129072683.95986759605223.040132403946
8230252967.2036067638757.7963932361326
8338123730.8089496860681.1910503139356
8442093962.97097359688246.029026403124
8521382340.82685647277-202.826856472768
8624192332.6182681568786.3817318431288
8726222747.97188081392-125.971880813917
8829122602.07444211761309.925557882394
8927082934.00939929065-226.009399290653
9027982656.02354718919141.976452810813
9132542978.84576534434275.154234655663
9228953807.75159723942-912.75159723942
9332632735.52955902784527.470440972156
9437363006.73767993719729.262320062809
9540773867.35558805113209.644411948873
9640974174.81628681047-77.8162868104691
9721752378.77072385198-203.770723851980
9831382466.17178583668671.828214163319
9928232897.56192835713-74.56192835713
10024982904.30945959739-406.309459597394
10128222986.37158164533-164.37158164533
10227382836.08158976521-98.0815897652083
10341373174.54113837325962.458861626747
10435153727.02293230079-212.022932300790
10537853203.81346887837581.186531121627
10636323559.2806729936872.7193270063226
10745044187.13434804106316.865651958936
10844514428.8376295453122.1623704546910
10925502617.20838351865-67.2083835186463
11028673006.45119889580-139.451198895796
11134583111.82800207176346.171997928244
11229613076.37637597602-115.376375976025
11331633281.17142891415-118.171428914148
11428803169.19245135751-289.192451357508
11533313824.91286352036-493.912863520358
11630623831.90335835759-769.903358357587
11735343482.0567160238351.9432839761744
11836223604.9884728326617.0115271673412
11944644292.4418484161171.558151583899
12054114413.81564891984997.184351080162
12125642691.04947042788-127.049470427883
12228203046.81419779610-226.814197796104
12335083288.36791028975219.632089710246
12430883088.36034768323-0.360347683228156
12532993302.03285500293-3.03285500292941
12629393147.45257798524-208.452577985241
12733203746.47360320174-426.473603201739
12834183673.45823051455-255.458230514551
12936043644.38533326350-40.3853332634958
13034953745.99717247956-250.997172479556
13141634447.46493076533-284.464930765332
13248824765.18339065509116.816609344907
13322112572.62900626506-361.629006265062
13432602855.18544957032404.814550429679
13529923304.97692607819-312.97692607819
13624252958.45309332827-533.453093328269
13727073089.10059535481-382.100595354811
13832442804.36593210832439.634067891679
13939653400.58228740883564.417712591167
14033153495.70243563438-180.702435634384
14133333536.44455974871-203.444559748712
14235833544.8237532142638.1762467857429
14340214266.04603436235-245.046034362346
14449044708.49844443965195.501555560354
14522522372.17554589575-120.175545895752
14629522920.4832064035731.5167935964296
14735733095.39678166789477.603218332115
14830482778.03554126245269.964458737551
14930593061.41680034781-2.41680034781075
15027313089.01212149424-358.012121494243
15135633629.64534753971-66.6453475397057
15230923413.90371013267-321.903710132667
15334783427.8503399015250.1496600984797
15434783542.24466528959-64.2446652895878
15543084161.49633424889146.503665751109
15650294791.10060577057237.899394229431
15720752363.85710834031-288.857108340314
15832642939.52692001224324.473079987761
15933083292.4855778878015.514422112195
16036882853.2199254804834.780074519599
16131363125.1359475231410.8640524768607
16228243047.6584912207-223.6584912207
16336443700.59738569295-56.5973856929468
16446943411.745496642481282.25450335752
16529143756.27703309174-842.277033091744
16636863735.98764230341-49.9876423034134
16743584433.36712797424-75.3671279742439
16855875073.19288437053513.807115629471
16922652527.00768169796-262.007681697959
17036853308.33804125099376.661958749015
17137543583.28479624520170.715203754796
17237083431.18647571931276.813524280691
17332103386.62118186770-176.621181867704
17435173220.2860031215296.713996878497
17539054000.45244280169-95.4524428016935
17636704134.66680512631-464.66680512631
17742213600.3359147728620.664085227198
17844044015.33478510540388.665214894605
17950864770.86756869772315.132431302284
18057255657.3108687386267.6891312613761
18123672826.40991027566-459.409910275665
18238193792.527594179826.4724058202037
18340673967.7690500486199.230949951395
18440223846.84062861367175.15937138633
18539373654.71835916725282.281640832750
18643653701.86648290655663.133517093449
18742904417.47188522259-127.471885222589


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1884445.046049950193762.815064155285127.2770357451
1894321.651894448953633.622405865675009.68138303223
1904599.172234823653904.695532142785293.64893750451
1915292.085874864474590.491499093865993.68025063509
1926068.359621366045358.958099155296777.7611435768
1933070.101514265592352.187135465633788.01589306555
1944252.63869520393525.492296775984979.78509363182
1954455.724980408373718.616699348425192.83326146832
1964353.917533470773606.1094932735101.72557366854
1974179.942222044673420.691120238524939.19332385083
1984315.123773854113543.683342096235086.56420561198
1994702.04132932123917.664642154565486.41801648784
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo/1k5fi1244036135.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo/1k5fi1244036135.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo/2az3x1244036135.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo/2az3x1244036135.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo/3k61u1244036135.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244036426djm4kouk0f09fwo/3k61u1244036135.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