Home » date » 2010 » Jul » 29 »

TIJDREEKS B - STAP 17

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Jul 2010 13:14:20 +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/Jul/29/t1280409329p8wknplqvattwys.htm/, Retrieved Thu, 29 Jul 2010 15:15:31 +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/2010/Jul/29/t1280409329p8wknplqvattwys.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:
Hoes Isabelle
 
Dataseries X:
» Textbox « » Textfile « » CSV «
158 157 156 154 152 151 152 154 155 155 156 158 156 152 145 141 140 145 143 141 144 139 141 142 141 132 122 122 127 128 122 123 128 128 128 129 124 121 109 110 107 107 104 110 114 118 117 122 113 106 102 111 106 110 105 104 106 110 107 111 101 105 108 124 122 128 124 121 125 134 126 126 111 117 118 128 127 129 124 113 120 127 114 107
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9180028.41360
20.8475227.76770
30.7873247.21590
40.7571956.93980
50.7116056.5220
60.690216.32590
70.6468825.92880
80.6149165.63580
90.5813695.32830
100.5766345.28490
110.5499785.04061e-06
120.5093354.66816e-06
130.4226643.87380.000106
140.3571043.27290.000773
150.3137532.87560.002554
160.2877932.63770.004972
170.2534322.32270.011306
180.2230112.04390.022047
190.1793511.64380.05198
200.1462811.34070.091818
210.1169251.07160.143478
220.1029210.94330.174119
230.059150.54210.294586
240.0060720.05560.477877
25-0.062589-0.57360.283873
26-0.107775-0.98780.16305
27-0.128527-1.1780.121068
28-0.138599-1.27030.103745
29-0.159638-1.46310.073585
30-0.180526-1.65450.050874
31-0.202503-1.8560.033482
32-0.219554-2.01220.023699
33-0.230613-2.11360.018758
34-0.248812-2.28040.012558
35-0.290448-2.6620.004653
36-0.328818-3.01370.001706
37-0.358229-3.28320.000748
38-0.379036-3.47390.000407
39-0.368825-3.38030.00055
40-0.353182-3.2370.000865
41-0.338531-3.10270.001306
42-0.339326-3.110.001278
43-0.332772-3.04990.001531
44-0.325132-2.97990.001885
45-0.318189-2.91630.002271
46-0.326267-2.99030.001828
47-0.340189-3.11790.001247
48-0.358999-3.29030.000732
49-0.357963-3.28080.000754
50-0.34393-3.15220.001124
51-0.308658-2.82890.00292
52-0.282-2.58460.005739
53-0.260742-2.38970.009549
54-0.255561-2.34230.010767
55-0.234592-2.15010.017212
56-0.203553-1.86560.032794
57-0.183173-1.67880.048453
58-0.179977-1.64950.051388
59-0.176507-1.61770.054737
60-0.166692-1.52780.065165


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9180028.41360
20.0304870.27940.390305
30.0320110.29340.384976
40.1666311.52720.065234
5-0.08772-0.8040.211844
60.1474971.35180.09003
7-0.118094-1.08240.141097
80.0365630.33510.369189
90.0194810.17850.429363
100.1191461.0920.138979
11-0.075864-0.69530.244392
12-0.130727-1.19810.117118
13-0.291979-2.6760.004478
14-0.021851-0.20030.420878
150.0976310.89480.186725
16-0.008629-0.07910.468574
170.015360.14080.444193
18-0.036019-0.33010.371065
19-0.042452-0.38910.349103
20-0.000911-0.00840.496679
21-0.026144-0.23960.405606
220.0326560.29930.382725
23-0.106954-0.98030.164888
24-0.046142-0.42290.336725
25-0.112301-1.02930.153157
26-0.035312-0.32360.373507
270.0811670.74390.229505
28-0.006819-0.06250.475159
290.018080.16570.434392
30-0.014464-0.13260.447428
310.0147470.13520.446403
32-0.049753-0.4560.324785
330.0134560.12330.45107
34-0.086368-0.79160.215418
35-0.078324-0.71790.237419
360.0307050.28140.389543
37-0.040161-0.36810.356868
38-0.079832-0.73170.233204
390.1117191.02390.154406
400.0413930.37940.352683
410.1091861.00070.159921
42-0.054009-0.4950.310945
43-0.001416-0.0130.494838
440.0057360.05260.479101
45-0.021019-0.19260.423853
46-0.042812-0.39240.347887
47-0.044629-0.4090.341777
48-0.067483-0.61850.268964
49-0.002655-0.02430.490321
500.0342130.31360.377314
510.0215670.19770.421894
520.0207720.19040.424738
530.0281250.25780.398609
54-0.031208-0.2860.38778
550.0630540.57790.282438
560.1049010.96140.169546
57-0.04657-0.42680.3353
58-0.027141-0.24870.402081
59-0.049407-0.45280.325921
600.023490.21530.415033
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/29/t1280409329p8wknplqvattwys/1seit1280409258.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/29/t1280409329p8wknplqvattwys/1seit1280409258.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/29/t1280409329p8wknplqvattwys/2seit1280409258.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/29/t1280409329p8wknplqvattwys/2seit1280409258.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
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,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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