Home » date » 2009 » Dec » 18 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 18 Dec 2009 05:59:19 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/18/t1261141182vk5054zs6nzk7gt.htm/, Retrieved Fri, 18 Dec 2009 13:59:44 +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/2009/Dec/18/t1261141182vk5054zs6nzk7gt.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100.00 110.08 123.28 106.30 114.60 110.22 117.82 138.84 131.13 153.26 148.76 110.75 132.00 138.55 126.50 119.47 152.49 152.46 134.08 162.33 130.46 142.83 148.39 122.88 125.86 133.31 140.97 110.30 123.04 125.99 112.24 136.10 111.86 109.63 135.75 114.39 121.79 101.33 147.01 113.01 101.89 117.85 128.68 117.27 121.55 109.18 127.88 104.92 100.93 116.79 107.50 109.18 128.31 83.80 93.16 103.99 106.33 97.55 111.71 105.43 103.62
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.495808-3.84050.000149
2-0.122583-0.94950.173081
30.24651.90940.030499
4-0.078106-0.6050.273729
5-0.045509-0.35250.362846
6-0.006124-0.04740.481162
70.0599460.46430.322043
8-0.025838-0.20010.421024
90.0039870.03090.487731
100.1741731.34910.091181
11-0.365391-2.83030.003159
120.278192.15480.017599
13-0.039009-0.30220.381786
14-0.040387-0.31280.377744
15-0.004217-0.03270.487025
16-0.026946-0.20870.417686
170.0792890.61420.270712
18-0.016239-0.12580.450161
19-0.048708-0.37730.353645
20-0.026028-0.20160.420451
210.0494990.38340.351383
220.0692930.53670.296715
23-0.17688-1.37010.08788
240.0947270.73380.232978
250.0128470.09950.460533
26-0.007293-0.05650.477568
270.0257910.19980.421166
28-0.101426-0.78560.217583
290.0706070.54690.29323
300.084080.65130.258676
31-0.144888-1.12230.133103
320.0078250.06060.475935
330.0896540.69450.245037
34-0.027355-0.21190.416456
35-0.078414-0.60740.27294
360.1021820.79150.215885
370.0017870.01380.494502
38-0.133671-1.03540.152315
390.1083360.83920.202354
400.0112520.08720.465417
41-0.14201-1.10.137861
420.1592111.23320.111148
43-0.019155-0.14840.441274
44-0.069437-0.53790.296333
450.0466860.36160.359449
46-0.032342-0.25050.401521
47-0.027733-0.21480.415318
480.0287650.22280.412219
49-0.009711-0.07520.470146
500.0318560.24680.402971
51-0.011714-0.09070.464002
52-0.022777-0.17640.430275
53-0.001312-0.01020.495962
540.0206480.15990.436735
55-0.018615-0.14420.442916
560.0093350.07230.471298
570.004430.03430.486371
58-0.004344-0.03370.486634
59-0.000924-0.00720.497156
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.495808-3.84050.000149
2-0.488494-3.78390.000179
3-0.150062-1.16240.124843
4-0.046281-0.35850.360617
5-0.001455-0.01130.495524
6-0.093605-0.72510.235616
7-0.035521-0.27510.392074
8-0.01219-0.09440.462544
90.0483710.37470.354611
100.3432782.6590.005017
11-0.138149-1.07010.144431
120.0319640.24760.402649
13-0.076604-0.59340.277581
140.1589841.23150.111474
150.0430950.33380.369843
16-0.07914-0.6130.271091
17-0.098404-0.76220.224454
180.0291840.22610.410964
190.0701420.54330.294463
20-0.11098-0.85960.196702
21-0.039227-0.30380.381148
22-0.077873-0.60320.274323
23-0.021114-0.16350.435319
24-0.066655-0.51630.303769
25-0.030079-0.2330.408282
26-0.018958-0.14690.441871
270.0713170.55240.291356
28-0.031295-0.24240.404645
29-0.007018-0.05440.478413
300.1479151.14570.128226
31-0.027128-0.21010.417138
32-0.038215-0.2960.384121
330.008420.06520.474107
340.0203320.15750.437695
35-0.078735-0.60990.272124
360.0118290.09160.463648
370.1019920.790.216311
38-0.068547-0.5310.298702
39-0.151523-1.17370.122579
40-0.071634-0.55490.290521
41-0.035624-0.27590.39177
420.0347270.2690.39443
43-0.021493-0.16650.434167
44-0.005035-0.0390.484509
450.060790.47090.319719
46-0.057509-0.44550.328793
47-0.115471-0.89440.187331
48-0.036022-0.2790.390591
49-0.056341-0.43640.33205
500.0551730.42740.33532
510.038460.29790.3834
52-0.060142-0.46590.321503
53-0.002851-0.02210.491227
54-0.039929-0.30930.379087
550.019570.15160.440009
560.0942740.73020.234042
570.0107790.08350.466869
58-0.07388-0.57230.284638
59-0.014543-0.11260.455342
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261141182vk5054zs6nzk7gt/1fzor1261141158.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261141182vk5054zs6nzk7gt/1fzor1261141158.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/18/t1261141182vk5054zs6nzk7gt/2w2ok1261141158.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/18/t1261141182vk5054zs6nzk7gt/2w2ok1261141158.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; 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