Home » date » 2008 » Dec » 15 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 15 Dec 2008 07:31:46 -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/15/t12293515486znxi8brmrc4tev.htm/, Retrieved Mon, 15 Dec 2008 15:32:30 +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/15/t12293515486znxi8brmrc4tev.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,3 6,1 6,1 6,3 6,3 6 6,2 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
 
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.8873136.93010
20.7096125.54220
30.5522164.31293e-05
40.4771613.72670.000213
50.4594623.58850.000332
60.4354283.40080.000595
70.3775642.94890.002258
80.3220742.51550.007268
90.3060212.39010.009974
100.3484812.72170.004227
110.3959013.09210.001498
120.4140753.2340.000986
130.3505562.73790.004046
140.2536541.98110.026046
150.1634411.27650.103306
160.0945980.73880.231422
170.0414870.3240.373515
18-0.006217-0.04860.480717
19-0.037917-0.29610.384065
20-0.041405-0.32340.373757
21-0.021148-0.16520.434677
220.0101210.07910.468626
230.0252750.19740.422084
240.0130280.10180.459644
25-0.038914-0.30390.381108
26-0.095129-0.7430.230173
27-0.148968-1.16350.124583
28-0.192129-1.50060.069312
29-0.229612-1.79330.038939
30-0.25527-1.99370.02533
31-0.248597-1.94160.028404
32-0.216264-1.68910.048155
33-0.181086-1.41430.081175
34-0.170611-1.33250.093824
35-0.18388-1.43610.078034
36-0.20365-1.59060.05844
37-0.219834-1.7170.04553
38-0.219933-1.71770.045459
39-0.232744-1.81780.037004
40-0.271842-2.12320.018903
41-0.321725-2.51280.007319
42-0.356845-2.7870.00354
43-0.337201-2.63360.005345
44-0.278779-2.17730.016667
45-0.22095-1.72570.044734
46-0.197421-1.54190.064134
47-0.202826-1.58410.059169
48-0.210105-1.6410.052975
49-0.212195-1.65730.051297
50-0.203189-1.5870.058846
51-0.192672-1.50480.068765
52-0.201098-1.57060.060721
53-0.204086-1.5940.058057
54-0.202501-1.58160.059458
55-0.174181-1.36040.089355
56-0.136099-1.0630.145993
57-0.102225-0.79840.213866
58-0.080323-0.62730.266387
59-0.057557-0.44950.32732
60-0.030342-0.2370.406735


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8873136.93010
2-0.365402-2.85390.002946
30.0907340.70870.240619
40.2550381.99190.025431
50.039230.30640.380174
6-0.121748-0.95090.172708
7-0.040244-0.31430.377176
80.1463131.14270.128805
90.1179150.92090.180354
100.142541.11330.13498
11-0.048118-0.37580.354179
120.027580.21540.415085
13-0.237853-1.85770.034021
14-0.005274-0.04120.483639
15-0.060085-0.46930.320273
16-0.144954-1.13210.131006
17-0.066387-0.51850.302994
180.0162020.12650.449859
190.1045310.81640.208721
200.0104420.08160.467633
210.0003510.00270.498912
22-0.016855-0.13160.447851
23-0.009041-0.07060.471969
24-0.079317-0.61950.268952
25-0.130472-1.0190.156109
260.0370760.28960.386562
27-0.072275-0.56450.287246
280.0051640.04030.483979
29-0.015885-0.12410.450835
300.0477680.37310.35519
310.086470.67540.251001
32-0.036713-0.28670.387643
33-0.063402-0.49520.311123
34-0.132507-1.03490.152397
35-0.001416-0.01110.495607
36-0.027624-0.21570.414953
370.0285380.22290.412184
380.0538360.42050.337808
39-0.056177-0.43880.331194
40-0.060591-0.47320.31887
41-0.039077-0.30520.380627
42-0.041687-0.32560.372927
430.0180890.14130.444058
44-0.001219-0.00950.496218
45-0.012895-0.10070.460054
46-0.0012-0.00940.496278
470.0344490.26910.394398
480.0053160.04150.48351
49-0.051478-0.40210.344524
50-0.011684-0.09130.463795
510.0615190.48050.316303
52-0.059954-0.46830.320636
530.0678180.52970.29913
54-0.050634-0.39550.346939
550.025590.19990.421126
56-0.036889-0.28810.387118
570.0026430.02060.491798
580.0230930.18040.428735
590.043260.33790.368311
600.0182290.14240.443627
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293515486znxi8brmrc4tev/1gl9k1229351504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293515486znxi8brmrc4tev/1gl9k1229351504.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293515486znxi8brmrc4tev/21y661229351504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293515486znxi8brmrc4tev/21y661229351504.ps (open in new window)


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