Home » date » 2008 » Dec » 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: Wed, 17 Dec 2008 01:41:55 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/17/t12295033721qj87btmmjbxr7u.htm/, Retrieved Wed, 17 Dec 2008 09:42:54 +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/2008/Dec/17/t12295033721qj87btmmjbxr7u.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
6.4 6.8 7.5 7.5 7.6 7.6 7.4 7.3 7.1 6.9 6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.2 8.3 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.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
10.4443993.77080.000165
2-0.106268-0.90170.185107
3-0.545504-4.62888e-06
4-0.582191-4.94012e-06
5-0.178088-1.51110.067566
60.149741.27060.103984
70.308162.61480.005433
80.26882.28080.012759
90.0869650.73790.231479
10-0.080067-0.67940.249535
11-0.14163-1.20180.116695
12-0.183046-1.55320.062381
13-0.04169-0.35370.362281
140.0544360.46190.32277
150.1244521.0560.147248
160.0762520.6470.259839
17-0.066109-0.5610.288285
18-0.012541-0.10640.457775
19-0.048406-0.41070.341244
200.0750640.63690.263092
210.0661320.56110.288219
22-0.018869-0.16010.436623
23-0.075909-0.64410.260775
24-0.145696-1.23630.110187
25-0.020582-0.17460.430925
260.0893180.75790.225495
270.0990950.84090.201607
28-9.1e-05-8e-040.499692
29-0.154582-1.31170.096898
30-0.192092-1.630.05374
310.0282120.23940.405744
320.1985561.68480.048178
330.2513022.13240.018194
340.1161370.98550.163851
35-0.130254-1.10520.136367
36-0.216077-1.83350.035432
37-0.196432-1.66680.049951
380.0049570.04210.483283
390.1066340.90480.18429
400.1556791.3210.095346
410.1465411.24340.108869
42-0.016173-0.13720.445614
43-0.101791-0.86370.195304
44-0.180418-1.53090.065088
45-0.096423-0.81820.207979
460.0428770.36380.358527
470.1453761.23360.110689
480.1335661.13330.130414
490.0619290.52550.300431
50-0.059873-0.5080.306489
51-0.06901-0.58560.279997
52-0.057589-0.48870.313285
530.006670.05660.47751
540.0318670.27040.393814
550.002170.01840.49268
560.0189370.16070.436394
57-0.031113-0.2640.396266
58-0.020308-0.17230.431835
590.0277090.23510.407391
60-0.006716-0.0570.477357


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4443993.77080.000165
2-0.378511-3.21180.000987
3-0.454078-3.8530.000125
4-0.276011-2.3420.010974
50.045670.38750.349756
6-0.172628-1.46480.073665
7-0.154835-1.31380.09654
80.003990.03390.486543
90.0210050.17820.42952
10-0.048908-0.4150.33969
110.023190.19680.42228
12-0.096714-0.82060.207279
130.0884820.75080.227612
14-0.002866-0.02430.490333
150.0211110.17910.429168
16-0.077896-0.6610.255371
17-0.091499-0.77640.220031
180.184831.56830.060594
19-0.106222-0.90130.18521
200.1181921.00290.159636
21-0.004382-0.03720.485221
220.0017790.01510.493998
23-0.026338-0.22350.411897
24-0.100457-0.85240.198409
250.1089090.92410.179254
26-0.028228-0.23950.405691
27-0.085556-0.7260.235107
28-0.154506-1.3110.097007
29-0.232242-1.97060.026305
30-0.100982-0.85690.197182
310.0502070.4260.335681
320.0242350.20560.418825
33-0.055651-0.47220.319102
340.018850.160.436684
350.0704280.59760.275989
36-0.030132-0.25570.399463
370.0532140.45150.326479
380.1114560.94570.173723
39-0.043246-0.3670.357366
400.0203790.17290.4316
410.07840.66520.254009
42-0.060766-0.51560.30385
43-0.019475-0.16530.434604
44-0.009884-0.08390.466698
450.063970.54280.294472
46-0.093828-0.79620.214278
470.0088520.07510.470167
480.0193440.16410.435042
490.0106250.09020.464205
500.0338390.28710.387417
510.0663320.56280.287646
52-0.072254-0.61310.270873
530.0248040.21050.416947
54-0.046585-0.39530.3469
550.0618140.52450.300769
56-0.008938-0.07580.469878
57-0.008494-0.07210.471371
58-0.006814-0.05780.477027
590.0090140.07650.469623
60-0.018957-0.16090.436327
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t12295033721qj87btmmjbxr7u/1rtju1229503313.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t12295033721qj87btmmjbxr7u/1rtju1229503313.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t12295033721qj87btmmjbxr7u/2btx81229503313.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t12295033721qj87btmmjbxr7u/2btx81229503313.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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