Home » date » 2007 » Dec » 18 » attachments

ACF - Serie 3 - Paper

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 18 Dec 2007 00:31:29 -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/18/t1197962115qop6tffcpixq5ji.htm/, Retrieved Tue, 18 Dec 2007 08:15:17 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,9 2,6 2,5 3,2 3,1 3,1 2,9 2,5 2,8 3,1 2,6 2,3 2,3 2,6 2,9 2 2,2 2,4 2,3 2,6 1,9 1,1 1,3 1,6 1,7 1,9 1,6 1,8 1,8 1,5 1,6 1 1,5 1,8 1,7 1,2 1,4 1,1 1,3 1,3 1,3 1,3 0,9 1,3 1,8 2,7 2,6 2,9 2,2 2,1 2,3 2,3 2,7 2,6 2,9 3,1 2,8 2,1 2,3 2,2
 
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
017.7460
10.8205016.35560
20.6708675.19651e-06
30.5785884.48171.7e-05
40.5201824.02938e-05
50.5126113.97079.7e-05
60.4455573.45130.000514
70.3520842.72720.004181
80.3291422.54950.00668
90.2941632.27860.013133
100.1985351.53780.064672
110.119940.9290.178294
12-0.036255-0.28080.610096
13-0.043551-0.33730.631484
14-0.064435-0.49910.690237
15-0.141754-1.0980.86171
16-0.182511-1.41370.918695
17-0.239614-1.8560.96582
18-0.265617-2.05750.978002
19-0.236571-1.83250.964078
20-0.250057-1.93690.971267
21-0.304978-2.36230.98929
22-0.320729-2.48440.992106
23-0.393711-3.04970.998296
24-0.408885-3.16720.99879
25-0.400275-3.10050.998529
26-0.383169-2.9680.997849
27-0.334963-2.59460.994058
28-0.332145-2.57280.99371
29-0.3471-2.68860.995363
30-0.342003-2.64910.99485
31-0.339376-2.62880.994567
32-0.333332-2.5820.993859
33-0.304163-2.3560.989122
34-0.300013-2.32390.988232
35-0.239263-1.85330.965623
36-0.157363-1.21890.886179
37-0.133834-1.03670.847977
38-0.095647-0.74090.769173
39-0.066931-0.51840.696972
40-0.016447-0.12740.550473
410.0540620.41880.338444
420.0925780.71710.238046
430.0958080.74210.230453
440.1206410.93450.176901
450.1383511.07170.144082
460.1474961.14250.128892
470.1471991.14020.129367


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.8205016.35560
1-0.007207-0.05580.522167
20.0920770.71320.239236
30.0678360.52550.300601
40.157411.21930.113752
5-0.134389-1.0410.848968
6-0.084853-0.65730.743238
70.1452771.12530.132469
8-0.052953-0.41020.658429
9-0.239309-1.85370.965649
10-0.012072-0.09350.537094
11-0.305169-2.36380.989329
120.2849342.20710.015572
13-0.224622-1.73990.956499
14-0.062888-0.48710.686028
150.0320210.2480.402479
16-0.052337-0.40540.656688
17-0.000466-0.00360.501436
180.0791210.61290.27114
190.0039820.03080.487749
20-0.093202-0.72190.763431
21-0.110449-0.85550.80217
22-0.121941-0.94460.825662
23-0.13044-1.01040.841816
240.14861.1510.12714
250.0129310.10020.460274
26-0.053171-0.41190.659044
27-0.056263-0.43580.667731
28-0.088063-0.68210.75111
29-0.026886-0.20830.582133
300.0299990.23240.408521
31-0.017885-0.13850.55486
32-0.066612-0.5160.696117
33-0.006729-0.05210.520697
340.0242060.18750.42595
350.0692180.53620.296915
36-0.034523-0.26740.604966
370.087150.67510.251116
38-0.036221-0.28060.609997
390.0449350.34810.364506
40-0.014689-0.11380.545103
410.0358670.27780.391051
42-0.021916-0.16980.567115
43-0.001694-0.01310.505214
44-0.108931-0.84380.798928
45-0.14236-1.10270.862723
46-0.084925-0.65780.743417
470.0089680.06950.472426
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197962115qop6tffcpixq5ji/10nab1197963087.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197962115qop6tffcpixq5ji/10nab1197963087.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197962115qop6tffcpixq5ji/2tyan1197963087.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197962115qop6tffcpixq5ji/2tyan1197963087.ps (open in new window)


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