Home » date » 2007 » Nov » 29 » attachments

Q2_T3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 08:52:36 -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/Nov/29/t1196350918m4xr3vudz5ooufo.htm/, Retrieved Thu, 29 Nov 2007 16:41:59 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,74 5,72 5,24 5,16 5,1 4,89 5,14 5,39 5,29 5,24 4,97 4,73 4,57 4,65 5,09 5,04 4,91 5,28 5,21 5,16 4,93 4,65 4,26 3,87 3,94 4,05 4,03 4,05 3,9 3,81 3,96 3,57 3,33 3,97 4,44 4,27 4,29 4,3 4,27 4,15 4,08 3,83 4,35 4,72 4,73 4,5 4,28 4,13 4,1 4,19 4,23 4,22 4,17 4,5 4,34 4,14 4 4,18 4,26 4,2 4,46 4,53 4,47 4,42 4,57 4,72 4,99 5,11 5,11 5,09 4,88 4,72 4,73 4,6 4,56 4,76 4,72 4,56 4,7 4,75 5,1 5 4,67 4,52 4,53
 
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 time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
019.16520
10.2167271.98630.025128
2-0.213327-1.95520.973056
3-0.079409-0.72780.76562
4-0.140606-1.28870.899475
5-0.155308-1.42340.920842
6-0.055585-0.50940.694112
7-0.010324-0.09460.537578
80.1264071.15850.124964
90.2067761.89510.030758
100.1208771.10790.135544
11-0.068205-0.62510.733202
12-0.215517-1.97520.974238
13-0.071252-0.6530.742242
14-0.094237-0.86370.804894
15-0.032901-0.30150.618127
160.0903950.82850.204873
170.0329880.30230.38157
180.0684770.62760.265983
190.1326391.21570.11376
200.0781620.71640.237877
21-0.129116-1.18340.879999
22-0.168089-1.54060.936408
230.0500710.45890.323742
240.0577670.52940.298949
250.0031630.0290.488472
260.0855370.7840.217634
270.1569891.43880.076957
28-0.015946-0.14610.557922
29-0.023201-0.21260.583938
30-0.003943-0.03610.514371
31-0.113075-1.03630.848492
32-0.070506-0.64620.740043
330.0298520.27360.392532
34-0.060824-0.55750.710651
350.0167360.15340.439231
360.1790791.64130.052239
37-0.025915-0.23750.593584
38-0.061075-0.55980.711435
39-0.063514-0.58210.718976
40-0.164761-1.51010.932609
41-0.064231-0.58870.721175
420.0340260.31190.377964
430.004390.04020.484001
44-0.015271-0.140.555487
45-0.004762-0.04360.517355
460.0650490.59620.276327
470.0599630.54960.292035


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2167271.98630.025128
1-0.273126-2.50320.992879
20.0438190.40160.344495
3-0.213675-1.95840.973247
4-0.085973-0.7880.783529
5-0.090147-0.82620.794487
6-0.059789-0.5480.707418
70.0978950.89720.186081
80.1079450.98930.162671
90.087910.80570.211343
10-0.060757-0.55690.710445
11-0.138663-1.27090.896358
120.0501680.45980.323425
13-0.151428-1.38790.915575
140.0593550.5440.293944
15-0.024882-0.22810.58992
16-0.062371-0.57160.715455
170.0376640.34520.365405
180.047380.43420.332613
190.1371311.25680.10615
20-0.104019-0.95340.828426
21-0.020502-0.18790.574296
220.1181781.08310.140928
23-0.038239-0.35050.636568
240.0678010.62140.268008
250.00480.0440.482506
260.1699091.55720.061586
27-0.119549-1.09570.861826
280.0700360.64190.261345
290.0713450.65390.257484
30-0.068594-0.62870.734367
310.0563960.51690.3033
32-0.067504-0.61870.731101
33-0.08994-0.82430.793953
340.0471520.43220.333367
350.0507450.46510.321537
36-0.040963-0.37540.645858
37-0.003514-0.03220.512807
38-0.095434-0.87470.807875
39-0.140058-1.28370.898604
400.0535420.49070.312453
41-0.047066-0.43140.666345
42-0.099515-0.91210.81783
43-0.064433-0.59050.721792
44-0.134896-1.23630.890111
456.5e-056e-040.499763
460.031180.28580.387881
47-0.055554-0.50920.694014
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196350918m4xr3vudz5ooufo/1f8pa1196351551.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196350918m4xr3vudz5ooufo/1f8pa1196351551.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196350918m4xr3vudz5ooufo/2at5b1196351551.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196350918m4xr3vudz5ooufo/2at5b1196351551.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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