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 02:01:08 -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/t12295045857p55jpnlb6liqcw.htm/, Retrieved Wed, 17 Dec 2008 10:03:07 +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/t12295045857p55jpnlb6liqcw.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 time12 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.014606-0.12310.4512
2-0.095955-0.80850.210744
3-0.340825-2.87180.002688
4-0.391612-3.29980.000758
50.0650930.54850.292541
60.1500741.26450.105085
70.1773391.49430.069766
80.113780.95870.170474
90.0034530.02910.488434
10-0.114653-0.96610.168641
110.0121990.10280.459208
12-0.182494-1.53770.064281
130.021570.18170.428148
140.0546690.46060.323229
150.1040940.87710.191692
160.0731630.61650.269775
17-0.175718-1.48060.071566
180.0727860.61330.270818
19-0.154295-1.30010.098884
200.1431371.20610.115892
210.0682470.57510.283536
22-0.013103-0.11040.4562
230.0140430.11830.453072
24-0.189293-1.5950.057575
250.015010.12650.449856
260.0725980.61170.271338
270.1122750.9460.173666
280.0282610.23810.406231
29-0.076592-0.64540.260382
30-0.22795-1.92070.02939
310.0377190.31780.375774
320.1022460.86150.195922
330.1317191.10990.135396
340.0973790.82050.20733
35-0.128741-1.08480.140842
36-0.054251-0.45710.324487
37-0.144003-1.21340.1145
380.0790510.66610.253755
390.0028390.02390.49049
400.0417970.35220.362871
410.1318921.11130.135085
42-0.055262-0.46560.321446
430.0222760.18770.425822
44-0.162309-1.36760.087869
45-0.028878-0.24330.404224
460.0270050.22750.410326
470.0864170.72820.234454
480.0296770.25010.401631
490.0346620.29210.385543
50-0.082484-0.6950.244656
51-0.009074-0.07650.469634
52-0.009947-0.08380.46672
530.0169580.14290.44339
540.0336360.28340.388841
55-0.048194-0.40610.34295
560.0572430.48230.315525
57-0.05186-0.4370.331726
58-0.013647-0.1150.454388
590.0608670.51290.304816
60-0.036664-0.30890.379138


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.014606-0.12310.4512
2-0.096189-0.81050.210181
3-0.347051-2.92430.002315
4-0.485838-4.09375.5e-05
5-0.172035-1.44960.075787
6-0.158776-1.33790.092604
7-0.234276-1.9740.026134
8-0.194457-1.63850.052869
9-0.043487-0.36640.357566
10-0.10517-0.88620.189256
110.0773140.65150.258426
12-0.134374-1.13230.130668
13-0.021564-0.18170.428168
140.0186280.1570.437859
150.1073370.90440.184411
160.012470.10510.458306
17-0.202855-1.70930.045883
180.1314511.10760.13588
19-0.131311-1.10640.136134
200.0313560.26420.39619
210.0153960.12970.448575
220.0324340.27330.39271
230.0893160.75260.227092
24-0.112939-0.95160.172254
250.0411680.34690.36485
260.0739010.62270.267739
270.13691.15350.126279
280.0799180.67340.25144
29-0.094132-0.79320.215161
30-0.161345-1.35950.089142
31-0.072521-0.61110.271551
320.0119530.10070.460029
33-0.078755-0.66360.254546
34-0.090912-0.7660.223097
350.0332420.28010.390107
36-0.01936-0.16310.435439
37-0.048217-0.40630.342877
380.0704290.59340.277384
390.007080.05970.476297
40-0.017688-0.1490.440973
410.0712850.60070.274991
42-0.035533-0.29940.382753
43-0.034756-0.29290.385242
44-0.096261-0.81110.210007
450.0362420.30540.380486
46-0.064825-0.54620.293311
47-0.077835-0.65580.257021
48-0.079961-0.67380.251326
49-0.056048-0.47230.319092
50-0.025355-0.21360.415717
510.0638030.53760.296263
52-0.034387-0.28980.386425
530.0636550.53640.29669
54-0.06572-0.55380.29074
550.0215190.18130.428316
560.0038910.03280.48697
57-0.006958-0.05860.476706
58-0.035482-0.2990.382915
59-0.014533-0.12250.451442
60-0.048464-0.40840.342118
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t12295045857p55jpnlb6liqcw/1j3ql1229504455.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t12295045857p55jpnlb6liqcw/1j3ql1229504455.ps (open in new window)


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


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