Home » date » 2007 » Dec » 13 » attachments

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 13 Dec 2007 06:48:47 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/13/t1197552793g24obcub96vkjuj.htm/, Retrieved Thu, 13 Dec 2007 14:33:15 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-3,8 -1,9 14,2 0 2,1 14,9 18,2 7,2 1 6,8 24,9 10,3 1,7 8,6 8,2 6 7 3,5 -1,5 1 14,6 -8,6 -8,9 2,5 1,7 24,7 15,2 15,5 8,9 16,3 5,7 23,9 14,6 12,7 10,6 9,7 24,8 4,5 13,1 22,4 15,6 20,4 19,1 11,8 7,3 29,7 13,4
 
Text written by user:
 
Output produced by software:


Summary of compuational 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
015.91610
10.2119391.25380.109104
20.0275660.16310.435695
30.0895620.52990.299778
40.1314060.77740.221071
50.1832231.0840.142897
60.0733760.43410.333442
7-0.07737-0.45770.675011
8-0.165828-0.98110.83335
9-0.087841-0.51970.69672
10-0.1797-1.06310.852496
11-0.085203-0.50410.691315
12-0.284087-1.68070.949135
13-0.186856-1.10550.861748
14-0.08466-0.50090.690196
150.0197050.11660.453932
160.0494830.29270.385722
17-0.162811-0.96320.828973
18-0.082299-0.48690.685313
19-0.002324-0.01370.505445
200.0762290.4510.327394
210.0901680.53340.298549
220.0446070.26390.396702
23-0.053113-0.31420.622391
24-0.092899-0.54960.706957
250.0521860.30870.379676
260.0544380.32210.374661
27-0.024369-0.14420.556903
28-0.058154-0.3440.633565
290.0362010.21420.415828
300.0081690.04830.480865
31-0.041155-0.24350.595471
320.0139040.08230.467456
330.0065060.03850.484758
341e-0600.499997
35NANANA
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2119391.25380.109104
1-0.018168-0.10750.542491
20.0916080.5420.29564
30.0988230.58460.281269
40.1450890.85840.198268
50.0046670.02760.489065
6-0.113667-0.67250.747147
7-0.180079-1.06540.852996
8-0.076814-0.45440.67384
9-0.200847-1.18820.878627
100.0030730.01820.4928
11-0.242793-1.43640.920114
120.0007550.00450.49823
130.0017370.01030.495929
140.1556770.9210.181679
150.122560.72510.236612
16-0.114888-0.67970.749413
17-0.046326-0.27410.607179
18-0.088419-0.52310.697897
19-0.086269-0.51040.693503
200.0047180.02790.488945
21-0.043963-0.26010.60184
22-0.031827-0.18830.574131
23-0.161992-0.95840.827772
240.0391140.23140.409175
250.0207570.12280.451485
26-0.03502-0.20720.581465
270.0378770.22410.411999
280.0409290.24210.405043
29-0.042905-0.25380.599445
30-0.110608-0.65440.741423
310.0024670.01460.494219
320.036310.21480.41558
33-0.073816-0.43670.667495
34NANANA
35NANANA
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197552793g24obcub96vkjuj/1on4i1197553725.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197552793g24obcub96vkjuj/1on4i1197553725.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197552793g24obcub96vkjuj/2oo8c1197553725.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197552793g24obcub96vkjuj/2oo8c1197553725.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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 1:par1) {
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(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-1,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(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:

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