Home » date » 2009 » Nov » 27 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 27 Nov 2009 10:28:51 -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/Nov/27/t1259342982yo6amtn43pw46bi.htm/, Retrieved Fri, 27 Nov 2009 18:29: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/Nov/27/t1259342982yo6amtn43pw46bi.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 «
252.5 251.1 255.1 258.3 255.3 261.1 253.8 252.9 253.9 255.5 262 262.8 263.3 262.5 269.2 270.8 274.1 273 267.3 267.1 268.2 270.2 271.5 281 280.1 281.5 285.9 289.8 292.9 291.2 291.8 289.8 292.5 290.3 297.5 307.5 304.7 304.6 310.7 310.7 315.7 314.7 312.2 312.8 314.3 319.7 319.9 329.5 326.9 329.7 335.7 337.2 339.7 338.3 339.2 342.5 342.2 338.3 339 345.9
 
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.433259-2.97030.002337
20.1562611.07130.144759
3-0.240954-1.65190.052611
40.1428660.97940.166188
50.1045150.71650.238608
6-0.193502-1.32660.095528
70.2487021.7050.047397
8-0.322436-2.21050.015987
90.1499111.02770.154667
10-0.094728-0.64940.259614
110.3772322.58620.006432
12-0.379667-2.60290.006165
130.0768370.52680.300417
14-0.048731-0.33410.369902
150.1420380.97380.16758
16-0.068152-0.46720.321249
17-0.066574-0.45640.325099
180.1035130.70960.240715
19-0.115447-0.79150.216324
200.2093631.43530.078909
21-0.070996-0.48670.314357
220.153761.05410.148607
23-0.327931-2.24820.014647
240.1885981.2930.101171
25-0.017279-0.11850.453103
260.0241920.16580.434494
27-0.06435-0.44120.33056
28-0.089726-0.61510.270718
290.091220.62540.267376
30-0.094964-0.6510.259095
310.1287720.88280.190914
32-0.085287-0.58470.280775
330.0115820.07940.468525
34-0.159472-1.09330.13992
350.1532971.05090.149328
36-0.060541-0.4150.339999


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.433259-2.97030.002337
2-0.03872-0.26550.39591
3-0.231062-1.58410.059941
4-0.059312-0.40660.343066
50.1964321.34670.092273
6-0.14436-0.98970.163699
70.1861791.27640.104047
8-0.144466-0.99040.163522
9-0.166219-1.13950.130126
100.0060320.04140.483594
110.3735642.5610.006853
12-0.253593-1.73850.044331
13-0.022098-0.15150.440115
140.0213240.14620.442198
150.0055760.03820.484835
16-0.11355-0.77850.2201
170.093010.63760.2634
18-0.103619-0.71040.24049
190.1425320.97720.166749
200.1718311.1780.12236
210.0405990.27830.39099
220.0510380.34990.363989
23-0.010082-0.06910.472595
24-0.09934-0.6810.249594
250.038860.26640.395545
26-0.074432-0.51030.306122
27-0.020546-0.14090.444293
28-0.039675-0.2720.393408
29-0.098579-0.67580.251233
30-0.063028-0.43210.333823
31-0.019328-0.13250.447575
32-0.048968-0.33570.369292
330.0127940.08770.465238
34-0.088222-0.60480.274104
35-0.077106-0.52860.299782
36-0.054246-0.37190.355822
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259342982yo6amtn43pw46bi/1i6ax1259342929.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259342982yo6amtn43pw46bi/1i6ax1259342929.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259342982yo6amtn43pw46bi/2hn581259342929.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259342982yo6amtn43pw46bi/2hn581259342929.ps (open in new window)


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