Home » date » 2011 » May » 14 »

Additief model - Aant L Verkochte rose wijn- Sophie Rousseau

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 14 May 2011 13:31:55 +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/14/t1305379703d2n3y5x6g663ot0.htm/, Retrieved Sat, 14 May 2011 15:28:23 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
112 118 129 99 116 168 118 129 205 147 150 267 126 129 124 97 102 127 222 214 118 141 154 226 89 77 82 97 127 121 117 117 106 112 134 169 75 108 115 85 101 108 109 124 105 95 135 164 88 85 112 87 91 87 87 142 95 108 139 159 61 82 124 93 108 75 87 103 90 108 123 129 57 65 67 71 76 67 110 118 99 85 107 141 58 65 70 86 93 74 87 73 101 100 96 157 63 115 70 66 67 83 79 77 102 116 100 135 71 60 89 74 73 91 86 74 87 87 109 137 43 69 73 77 69 76 78 70 83 65 110 132 54 55 66 65 60 65 96 55 71 63 74 106 34 47 56 53 53 55 67 52 46 51 58 91 33 40 46 45 41 55 57 54 46 52 48 77 30 35 42 48 44 45 0 0 46 51 63 84 30 39 45 52 28 40 62
 
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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1112NANA-28.109375NA
2118NANA-16.6599702380952NA
3129NANA-8.37425595238095NA
499NANA-14.186755952381NA
5116NANA-9.28497023809524NA
6168NANA-6.76711309523809NA
7118152.075148809524147.0833333333334.99181547619048-34.0751488095238
8129153.027529761905148.1254.90252976190476-24.0275297619047
9205148.209077380952148.375-0.16592261904761956.7909226190476
10147151.072172619048148.0833333333332.98883928571429-4.07217261904759
11150166.188244047619147.41666666666718.7715773809524-16.188244047619
12267197.018601190476145.12551.893601190476269.9813988095238
13126119.640625147.75-28.1093756.359375
14129138.965029761905155.625-16.6599702380952-9.96502976190476
15124147.167410714286155.541666666667-8.37425595238095-23.1674107142857
1697137.479910714286151.666666666667-14.186755952381-40.4799107142857
17102142.298363095238151.583333333333-9.28497023809524-40.2983630952381
18127143.274553571429150.041666666667-6.76711309523809-16.2745535714285
19222151.783482142857146.7916666666674.9918154761904870.2165178571429
20214147.985863095238143.0833333333334.9025297619047666.0141369047619
21118139.000744047619139.166666666667-0.165922619047619-21.000744047619
22141140.405505952381137.4166666666672.988839285714290.594494047619094
23154157.229910714286138.45833333333318.7715773809524-3.22991071428569
24226191.143601190476139.2551.893601190476234.8563988095238
2589106.515625134.625-28.109375-17.515625
2677109.548363095238126.208333333333-16.6599702380952-32.5483630952381
2782113.292410714286121.666666666667-8.37425595238095-31.2924107142857
2897105.771577380952119.958333333333-14.186755952381-8.77157738095237
29127108.631696428571117.916666666667-9.2849702380952418.3683035714286
30121107.941220238095114.708333333333-6.7671130952380913.0587797619048
31117116.74181547619111.754.991815476190480.258184523809547
32117117.360863095238112.4583333333334.90252976190476-0.360863095238059
33106114.959077380952115.125-0.165922619047619-8.95907738095237
34112118.9888392857141162.98883928571429-6.98883928571428
35134133.188244047619114.41666666666718.77157738095240.811755952380963
36169164.685267857143112.79166666666751.89360119047624.31473214285715
377583.8072916666667111.916666666667-28.109375-8.80729166666666
3810895.2150297619047111.875-16.659970238095212.7849702380953
39115103.750744047619112.125-8.3742559523809511.2492559523809
408597.188244047619111.375-14.186755952381-12.1882440476191
41101101.423363095238110.708333333333-9.28497023809524-0.423363095238074
42108103.774553571429110.541666666667-6.767113095238094.22544642857143
43109115.86681547619110.8754.99181547619048-6.86681547619047
44124115.360863095238110.4583333333334.902529761904768.63913690476193
45105109.209077380952109.375-0.165922619047619-4.20907738095238
4695112.322172619048109.3333333333332.98883928571429-17.3221726190476
47135127.77157738095210918.77157738095247.22842261904763
48164159.60193452381107.70833333333351.89360119047624.39806547619048
498877.8072916666667105.916666666667-28.10937510.1927083333333
508589.0900297619048105.75-16.6599702380952-4.09002976190477
5111297.7090773809524106.083333333333-8.3742559523809514.2909226190476
528792.0215773809524106.208333333333-14.186755952381-5.02157738095238
539197.6316964285714106.916666666667-9.28497023809524-6.63169642857142
5487100.107886904762106.875-6.76711309523809-13.1078869047619
5587110.533482142857105.5416666666674.99181547619048-23.5334821428571
56142109.194196428571104.2916666666674.9025297619047632.8058035714286
5795104.500744047619104.666666666667-0.165922619047619-9.50074404761904
58108108.405505952381105.4166666666672.98883928571429-0.405505952380949
59139125.146577380952106.37518.771577380952413.8534226190476
60159158.47693452381106.58333333333351.89360119047620.523065476190482
616177.9739583333333106.083333333333-28.109375-16.9739583333333
628287.7983630952381104.458333333333-16.6599702380952-5.7983630952381
6312494.250744047619102.625-8.3742559523809529.749255952381
649388.2299107142857102.416666666667-14.1867559523814.77008928571431
6510892.4650297619047101.75-9.2849702380952415.5349702380953
667593.066220238095299.8333333333333-6.76711309523809-18.0662202380952
6787103.40848214285798.41666666666674.99181547619048-16.4084821428571
68103102.44419642857197.54166666666674.902529761904760.555803571428584
699094.292410714285794.4583333333333-0.165922619047619-4.29241071428571
7010894.15550595238191.16666666666672.9888392857142913.8444940476191
71123107.68824404761988.916666666666718.771577380952415.311755952381
72129139.14360119047687.2551.8936011904762-10.1436011904762
735759.76562587.875-28.109375-2.76562499999999
746572.798363095238189.4583333333333-16.6599702380952-7.79836309523809
756782.084077380952490.4583333333333-8.37425595238095-15.0840773809524
767175.68824404761989.875-14.186755952381-4.68824404761905
777678.965029761904888.25-9.28497023809524-2.96502976190476
786781.316220238095288.0833333333333-6.76711309523809-14.3162202380952
7911093.616815476190588.6254.9918154761904816.3831845238095
8011893.569196428571488.66666666666674.9025297619047624.4308035714286
819988.62574404761988.7916666666667-0.16592261904761910.3742559523809
828592.53050595238189.54166666666672.98883928571429-7.53050595238095
83107109.64657738095290.87518.7715773809524-2.64657738095238
84141143.76860119047691.87551.8936011904762-2.7686011904762
855863.098958333333391.2083333333333-28.109375-5.09895833333331
866571.715029761904888.375-16.6599702380952-6.71502976190476
877078.209077380952486.5833333333333-8.37425595238095-8.20907738095238
888673.104910714285787.2916666666667-14.18675595238112.8950892857143
899378.17336309523887.4583333333333-9.2849702380952414.8266369047619
907480.899553571428687.6666666666667-6.76711309523809-6.89955357142857
918793.533482142857288.54166666666674.99181547619048-6.53348214285715
927395.73586309523890.83333333333334.90252976190476-22.7358630952381
9310192.75074404761992.9166666666667-0.1659226190476198.24925595238095
9410095.072172619047692.08333333333332.988839285714294.92782738095238
9596108.93824404761990.166666666666718.7715773809524-12.9382440476191
96157141.3519345238189.458333333333351.893601190476215.6480654761905
976361.39062589.5-28.1093751.60937500000001
9811572.673363095238189.3333333333333-16.659970238095242.3266369047619
997081.167410714285789.5416666666667-8.37425595238095-11.1674107142857
1006676.06324404761990.25-14.186755952381-10.0632440476191
1016781.798363095238191.0833333333333-9.28497023809524-14.7983630952381
1028383.566220238095290.3333333333333-6.76711309523809-0.566220238095241
1037994.741815476190589.754.99181547619048-15.7418154761905
1047792.694196428571487.79166666666674.90252976190476-15.6941964285714
10510286.12574404761986.2916666666667-0.16592261904761915.874255952381
10611690.40550595238187.41666666666672.9888392857142925.5944940476191
107100106.7715773809528818.7715773809524-6.77157738095238
108135140.4769345238188.583333333333351.8936011904762-5.47693452380952
1097161.098958333333389.2083333333333-28.1093759.90104166666666
1106072.715029761904789.375-16.6599702380952-12.7150297619047
1118980.25074404761988.625-8.374255952380958.74925595238095
1127472.604910714285786.7916666666666-14.1867559523811.39508928571431
1137376.673363095238185.9583333333333-9.28497023809524-3.6733630952381
1149179.649553571428686.4166666666667-6.7671130952380911.3504464285714
1158690.325148809523885.33333333333334.99181547619048-4.32514880952381
1167489.444196428571484.54166666666674.90252976190476-15.4441964285714
1178784.084077380952484.25-0.1659226190476192.91592261904763
1188786.697172619047683.70833333333332.988839285714290.302827380952394
119109102.43824404761983.666666666666718.77157738095246.56175595238095
120137134.76860119047682.87551.89360119047622.2313988095238
1214353.807291666666781.9166666666667-28.109375-10.8072916666667
1226964.756696428571481.4166666666667-16.65997023809524.24330357142858
1237372.709077380952481.0833333333333-8.374255952380950.29092261904762
1247765.81324404761980-14.18675595238111.1867559523809
1256969.840029761904879.125-9.28497023809524-0.84002976190476
1267672.191220238095278.9583333333333-6.767113095238093.80877976190476
1277884.200148809523879.20833333333334.99181547619048-6.20014880952381
1287083.985863095238179.08333333333334.90252976190476-13.9858630952381
1298378.042410714285778.2083333333333-0.1659226190476194.95758928571428
1306580.40550595238177.41666666666672.98883928571429-15.4055059523809
13111095.31324404761976.541666666666718.771577380952414.686755952381
132132127.6019345238175.708333333333351.89360119047624.39806547619048
1335447.89062576-28.1093756.10937500000001
1345559.465029761904876.125-16.6599702380952-4.46502976190477
1356666.62574404761975-8.37425595238095-0.625744047619051
1366560.229910714285774.4166666666667-14.1867559523814.77008928571429
1376063.548363095238172.8333333333333-9.28497023809524-3.54836309523809
1386563.482886904761970.25-6.767113095238091.51711309523809
1399673.325148809523868.33333333333334.9918154761904822.6748511904762
1405572.069196428571467.16666666666674.90252976190476-17.0691964285714
1417166.25074404761966.4166666666667-0.1659226190476194.74925595238096
1426368.488839285714365.52.98883928571429-5.48883928571429
1437483.479910714285764.708333333333318.7715773809524-9.4799107142857
144106115.8936011904766451.8936011904762-9.89360119047619
1453434.26562562.375-28.109375-0.265624999999993
1464744.381696428571461.0416666666667-16.65997023809522.61830357142859
1475651.50074404761959.875-8.374255952380954.49925595238096
1485344.146577380952458.3333333333333-14.1867559523818.85342261904763
1495347.881696428571457.1666666666667-9.284970238095245.11830357142858
1505549.107886904761955.875-6.767113095238095.8921130952381
1516760.200148809523855.20833333333334.991815476190486.7998511904762
1525259.777529761904854.8754.90252976190476-7.77752976190476
1534654.00074404761954.1666666666667-0.165922619047619-8.00074404761904
1545156.40550595238153.41666666666672.98883928571429-5.40550595238096
1555871.354910714285752.583333333333318.7715773809524-13.3549107142857
15691103.9769345238152.083333333333351.8936011904762-12.9769345238095
1573323.557291666666751.6666666666667-28.1093759.44270833333334
1584034.673363095238151.3333333333333-16.65997023809525.3266369047619
1594643.042410714285751.4166666666667-8.374255952380952.95758928571429
1604537.271577380952451.4583333333333-14.1867559523817.72842261904761
1614141.798363095238151.0833333333333-9.28497023809524-0.798363095238095
1625543.316220238095250.0833333333333-6.7671130952380911.6837797619048
1635754.366815476190549.3754.991815476190482.63318452380952
1645453.944196428571449.04166666666674.902529761904760.0558035714285694
1654648.50074404761948.6666666666667-0.165922619047619-2.50074404761904
1665251.613839285714348.6252.988839285714290.386160714285708
1674867.646577380952448.87518.7715773809524-19.6465773809524
16877100.4769345238148.583333333333351.8936011904762-23.4769345238095
1693017.682291666666745.7916666666667-28.10937512.3177083333333
1703524.506696428571441.1666666666667-16.659970238095210.4933035714286
1714230.542410714285738.9166666666667-8.3742559523809511.4575892857143
1724824.68824404761938.875-14.18675595238123.3117559523809
1734430.173363095238139.4583333333333-9.2849702380952413.8266369047619
1744533.607886904761940.375-6.7671130952380911.3921130952381
175045.658482142857140.66666666666674.99181547619048-45.6584821428571
176045.735863095238140.83333333333334.90252976190476-45.7358630952381
1774640.959077380952441.125-0.1659226190476195.04092261904762
1785144.40550595238141.41666666666672.988839285714296.59449404761904
1796359.68824404761940.916666666666718.77157738095243.31175595238095
1808491.935267857142940.041666666666751.8936011904762-7.93526785714285
18130NA42.4166666666667NANA
18239NANANANA
18345NANANANA
18452NANANANA
18528NANANANA
18640NANANANA
18762NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/1xy7w1305379911.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/1xy7w1305379911.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/208zr1305379911.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/208zr1305379911.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/30yrl1305379911.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/30yrl1305379911.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/495yn1305379911.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/14/t1305379703d2n3y5x6g663ot0/495yn1305379911.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.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