Home » date » 2011 » May » 12 »

Opdracht 9 - Classical decomposition - Aantal bouwvergunningen - Nathan Jacobs

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 12 May 2011 11:19:04 +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/12/t1305199252bc5v2pk5cmmhxp4.htm/, Retrieved Thu, 12 May 2011 13:20:52 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1394 1657 2411 3595 3336 3249 2920 2113 2040 1853 1832 2093 2164 2368 2072 2521 1819 1947 2226 1754 1787 2072 1846 2137 2467 2154 2289 2628 2074 2798 2194 2442 2565 2063 2069 2539 1898 2139 2408 2725 2201 2311 2548 2276 2351 2280 2057 2479 2379 2295 2456 2546 2844 2260 2981 2678 3440 2842 2450 2669 2570 2540 2318 2930 2947 2799 2695 2498 2260 2160 2058 2533 2150 2172 2155 3016 2333 2355 2825 2214 2360 2299 1746 2069 2267 1878 2266 2282 2085 2277 2251 1828 1954 1851 1570 1852 2187 1855 2218
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11394NANA-67.7013888888888NA
21657NANA-111.87996031746NA
32411NANA-49.9573412698413NA
43595NANA333.99503968254NA
53336NANA0.566468253968204NA
63249NANA66.9890873015874NA
729202613.786706349212406.5207.286706349206306.213293650794
821132388.411706349212468.20833333333-79.7966269841268-275.411706349206
920402552.810515873022483.7083333333369.1021825396825-512.810515873016
1018532427.346230158732424.833333333332.51289682539678-574.34623015873
1118321982.268849206352316.875-334.606150793651-150.268849206349
1220932162.905753968252199.41666666667-36.5109126984128-69.9057539682535
1321642048.548611111112116.25-67.7013888888888115.451388888889
1423681960.495039682542072.375-111.87996031746407.504960317461
1520721996.917658730162046.875-49.957341269841375.0823412698414
1625212379.453373015872045.45833333333333.99503968254141.546626984127
1718192055.733134920632055.166666666670.566468253968204-236.733134920635
1819472124.572420634922057.5833333333366.9890873015874-177.57242063492
1922262279.328373015872072.04166666667207.286706349206-53.328373015873
2017541995.953373015872075.75-79.7966269841268-241.953373015873
2117872144.977182539682075.87569.1021825396825-357.977182539682
2220722091.88789682542089.3752.51289682539678-19.8878968253966
2318461769.852182539682104.45833333333-334.60615079365176.1478174603176
2421372114.030753968252150.54166666667-36.510912698412822.969246031746
2524672116.965277777782184.66666666667-67.7013888888888350.034722222222
2621542100.120039682542212-111.8799603174653.8799603174607
2722892223.125992063492273.08333333333-49.957341269841365.8740079365084
2826282639.120039682542305.125333.99503968254-11.1200396825398
2920742314.608134920632314.041666666670.566468253968204-240.608134920635
3027982407.072420634922340.0833333333366.9890873015874390.92757936508
3121942540.411706349212333.125207.286706349206-346.411706349206
3224422228.995039682542308.79166666667-79.7966269841268213.00496031746
3325652382.227182539682313.12569.1021825396825182.772817460318
3420632324.63789682542322.1252.51289682539678-261.637896825397
3520691996.852182539682331.45833333333-334.60615079365172.147817460318
3625392279.947420634922316.45833333333-36.5109126984128259.05257936508
3718982243.215277777782310.91666666667-67.7013888888888-345.215277777778
3821392206.870039682542318.75-111.87996031746-67.8700396825393
3924082252.959325396832302.91666666667-49.9573412698413155.040674603175
4027252637.036706349212303.04166666667333.9950396825487.9632936507937
4122012312.14980158732311.583333333330.566468253968204-111.149801587302
4223112375.572420634922308.5833333333366.9890873015874-64.5724206349205
4325482533.411706349212326.125207.28670634920614.5882936507937
4422762272.870039682542352.66666666667-79.79662698412683.12996031746025
4523512430.268849206352361.1666666666769.1021825396825-79.2688492063494
4622802358.221230158732355.708333333332.51289682539678-78.2212301587297
4720572040.435515873022375.04166666667-334.60615079365116.5644841269841
4824792363.197420634922399.70833333333-36.5109126984128115.80257936508
4923792347.923611111112415.625-67.701388888888831.0763888888891
5022952338.536706349212450.41666666667-111.87996031746-43.5367063492058
5124562462.584325396832512.54166666667-49.9573412698413-6.58432539682553
5225462915.328373015872581.33333333333333.99503968254-369.328373015873
5328442621.691468253972621.1250.566468253968204222.308531746032
5422602712.405753968252645.4166666666766.9890873015874-452.405753968254
5529812868.578373015872661.29166666667207.286706349206112.421626984127
5626782599.661706349212679.45833333333-79.796626984126878.3382936507937
5734402753.018849206352683.9166666666769.1021825396825686.98115079365
5828422696.679563492062694.166666666672.51289682539678145.320436507936
5924502379.852182539682714.45833333333-334.60615079365170.147817460318
6026692704.697420634922741.20833333333-36.5109126984128-35.69742063492
6125702684.048611111112751.75-67.7013888888888-114.048611111111
6225402620.453373015872732.33333333333-111.87996031746-80.4533730158732
6323182625.709325396832675.66666666667-49.9573412698413-307.709325396826
6429302932.078373015872598.08333333333333.99503968254-2.07837301587278
6529472553.89980158732553.333333333330.566468253968204393.100198412698
6627992598.322420634922531.3333333333366.9890873015874200.677579365079
6726952715.453373015872508.16666666667207.286706349206-20.4533730158728
6824982395.536706349212475.33333333333-79.7966269841268102.463293650794
6922602522.310515873022453.2083333333369.1021825396825-262.310515873015
7021602452.512896825424502.51289682539678-292.512896825397
7120582093.393849206352428-334.606150793651-35.3938492063489
7225332347.405753968252383.91666666667-36.5109126984128185.594246031746
7321502303.131944444442370.83333333333-67.7013888888888-153.131944444444
7421722252.536706349212364.41666666667-111.87996031746-80.5367063492063
7521552306.792658730162356.75-49.9573412698413-151.792658730158
7630162700.703373015872366.70833333333333.99503968254315.296626984127
7723332360.066468253972359.50.566468253968204-27.0664682539682
7823552394.155753968252327.1666666666766.9890873015874-39.155753968254
7928252519.995039682542312.70833333333207.286706349206305.00496031746
8022142225.536706349212305.33333333333-79.7966269841268-11.5367063492063
8123602366.810515873022297.7083333333369.1021825396825-6.8105158730159
8222992274.26289682542271.752.5128968253967824.7371031746034
8317461896.227182539682230.83333333333-334.606150793651-150.227182539682
8420692180.739087301592217.25-36.5109126984128-111.739087301587
8522672122.381944444442190.08333333333-67.7013888888888144.618055555555
8618782038.203373015872150.08333333333-111.87996031746-160.203373015873
8722662067.125992063492117.08333333333-49.9573412698413198.874007936508
8822822415.495039682542081.5333.99503968254-133.49503968254
8920852056.066468253972055.50.56646825396820428.9335317460318
9022772106.114087301592039.12566.9890873015874170.885912698413
9122512234.036706349212026.75207.28670634920616.9632936507937
9218281942.661706349212022.45833333333-79.7966269841268-114.661706349206
9319542088.602182539682019.569.1021825396825-134.602182539682
941851NANA2.51289682539678NA
951570NANA-334.606150793651NA
961852NANA-36.5109126984128NA
972187NANANANA
981855NANANANA
992218NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/17cra1305199140.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/17cra1305199140.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/2qxxk1305199140.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/2qxxk1305199140.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/3ltqr1305199140.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/3ltqr1305199140.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/4ntuc1305199140.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/12/t1305199252bc5v2pk5cmmhxp4/4ntuc1305199140.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