Home » date » 2010 » Dec » 16 »

*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, 16 Dec 2010 17:59:52 +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/Dec/16/t12925222728jxq3v1or8lpn9p.htm/, Retrieved Thu, 16 Dec 2010 18:57:55 +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/2010/Dec/16/t12925222728jxq3v1or8lpn9p.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
655362 873127 1107897 1555964 1671159 1493308 2957796 2638691 1305669 1280496 921900 867888 652586 913831 1108544 1555827 1699283 1509458 3268975 2425016 1312703 1365498 934453 775019 651142 843192 1146766 1652601 1465906 1652734 2922334 2702805 1458956 1410363 1019279 936574 708917 885295 1099663 1576220 1487870 1488635 2882530 2677026 1404398 1344370 936865 872705 628151 953712 1160384 1400618 1661511 1495347 2918786 2775677 1407026 1370199 964526 850851 683118 847224 1073256 1514326 1503734 1507712 2865698 2788128 1391596 1366378 946295 859626
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.011205-0.07760.469222
20.1765341.22310.113638
30.2481281.71910.046022
4-0.05295-0.36690.357671
50.1173480.8130.210114
6-0.124443-0.86220.196442
7-0.192801-1.33580.093963
8-0.02975-0.20610.418788
9-0.207338-1.43650.078676
10-0.211551-1.46570.07463
11-0.174225-1.20710.116661
12-0.487314-3.37620.000732
13-0.031793-0.22030.413299
14-0.06605-0.45760.324649
15-0.048555-0.33640.369019
16-0.003329-0.02310.490846
170.0410290.28430.388719
180.2599561.8010.038991
190.0109060.07560.470043
200.1020440.7070.241498
210.14080.97550.167104
22-0.00836-0.05790.477027
230.2854021.97730.026882
24-0.044415-0.30770.379816
250.0298170.20660.418606
260.0349940.24240.404734
27-0.08759-0.60680.273409
280.0435150.30150.382176
29-0.029072-0.20140.420611
30-0.185874-1.28780.102
310.0727040.50370.308385
32-0.025888-0.17940.429207
33-0.095169-0.65940.256411
340.0833940.57780.28306
35-0.14093-0.97640.166883
360.0951850.65950.256376
370.014560.10090.460034
38-0.048312-0.33470.369648
390.0353340.24480.403826
400.0149790.10380.458889
41-0.009657-0.06690.473466
420.0153730.10650.457812
43-0.011564-0.08010.468239
440.0038270.02650.489478
450.0085520.05920.4765
46-0.006583-0.04560.481907
470.0003360.00230.499077
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.011205-0.07760.469222
20.1764311.22230.113772
30.2598541.80030.039048
4-0.075213-0.52110.30235
50.0242390.16790.433672
6-0.17771-1.23120.112122
7-0.225523-1.56250.062373
8-0.045526-0.31540.376907
9-0.069272-0.47990.316728
10-0.148366-1.02790.154573
11-0.145255-1.00640.159645
12-0.474895-3.29020.00094
13-0.116389-0.80640.212004
140.0926580.6420.261979
150.2314881.60380.05766
16-0.079663-0.55190.291781
17-0.115617-0.8010.213535
180.0470580.3260.372911
19-0.169492-1.17430.12304
20-0.058713-0.40680.34299
21-0.016671-0.11550.454264
22-0.256665-1.77820.04085
230.0335650.23250.408551
24-0.287442-1.99150.026069
25-0.023915-0.16570.434549
26-0.041654-0.28860.387071
270.0544410.37720.353851
28-0.015162-0.1050.458388
290.0863150.5980.276324
30-0.020063-0.1390.445016
31-0.11073-0.76720.223372
32-0.07592-0.5260.300658
33-0.08714-0.60370.274435
34-0.056529-0.39160.348527
350.010640.07370.47077
36-0.131981-0.91440.182541
37-0.030525-0.21150.416704
38-0.113786-0.78830.217189
390.0017730.01230.495126
400.1234260.85510.198367
410.0385670.26720.395231
42-0.032132-0.22260.412389
43-0.102387-0.70940.240768
44-0.012613-0.08740.465364
45-0.000217-0.00150.499404
46-0.075382-0.52230.301945
470.0040640.02820.488827
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925222728jxq3v1or8lpn9p/1t3ak1292522389.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925222728jxq3v1or8lpn9p/1t3ak1292522389.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925222728jxq3v1or8lpn9p/24c9n1292522389.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925222728jxq3v1or8lpn9p/24c9n1292522389.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925222728jxq3v1or8lpn9p/34c9n1292522389.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925222728jxq3v1or8lpn9p/34c9n1292522389.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 0.0 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 0.0 ; par3 = 0 ; par4 = 2 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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