Home » date » 2007 » Dec » 01 » attachments

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Nov 2007 17:15:20 -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/01/t1196467448tmlxwp041ishysp.htm/, Retrieved Sat, 01 Dec 2007 01:04:10 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
87 75 74 91 101 103 106 102 105 105 100 95 96 98 99 92 84 81 72 89 96 91 88 90 98 87 100 100 104 107 105 102 98 106 97 101 100 93 94 96 96 98 102 95 85 84 82 87 77 90 90 94 97 96 93 93 93 97 100 95 97 103 102 93 99 100 97 104 102 103 100 90 90
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.48530
1-0.102261-0.86770.805784
2-0.091381-0.77540.779676
3-0.060962-0.51730.696728
4-0.077001-0.65340.742203
5-0.020646-0.17520.569287
6-0.050697-0.43020.665824
70.1248941.05980.146398
8-0.177453-1.50570.931746
90.1390431.17980.120978
10-0.043133-0.3660.642279
11-0.050961-0.43240.666635
12-0.097633-0.82840.794922
13-0.157612-1.33740.907347
140.043440.36860.356754
15-0.01482-0.12580.54986
160.2418522.05220.021894
17-0.10112-0.8580.80314
18-0.108626-0.92170.820124
19-0.027008-0.22920.590309
200.0485930.41230.340663
210.0194630.16510.434646
22-0.053086-0.45040.67313
230.2051511.74080.042998
24-0.15587-1.32260.904923
250.0150860.1280.449249
260.035620.30220.381667
270.0341160.28950.386523
280.0127970.10860.456915
290.0248440.21080.416815
300.0541730.45970.323568
31-0.059261-0.50280.691697
320.0453160.38450.350863
33-0.01055-0.08950.53554
34-0.012131-0.10290.540849
35-0.037102-0.31480.623096
360.0084490.07170.471523
370.0333730.28320.388927
380.0964350.81830.207949
39-0.053588-0.45470.674656
40-0.166915-1.41630.919503
410.036010.30560.380413
42-0.047221-0.40070.655079
430.0303610.25760.398718
44-0.038996-0.33090.629155
450.0045140.03830.484776
460.0556820.47250.319007
470.0379090.32170.374318


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.102261-0.86770.805784
1-0.102914-0.87330.807287
2-0.083542-0.70890.759655
3-0.106158-0.90080.814645
4-0.060251-0.51120.69463
5-0.090258-0.76590.77687
60.0868860.73730.231681
7-0.191383-1.62390.94562
80.1119690.95010.172623
9-0.066439-0.56370.712662
10-0.045408-0.38530.649424
11-0.148938-1.26380.894807
12-0.20195-1.71360.954548
13-0.090459-0.76760.777374
14-0.071975-0.61070.728349
150.1204311.02190.155127
16-0.09194-0.78010.781065
17-0.170313-1.44520.923624
18-0.106039-0.89980.814379
19-0.002275-0.01930.507673
20-0.07588-0.64390.739145
21-0.080971-0.68710.752873
220.083180.70580.241294
23-0.15762-1.33750.907358
24-0.127564-1.08240.858661
25-0.073764-0.62590.733322
260.0147840.12540.450259
270.0165680.14060.444297
280.0524040.44470.32895
29-0.054779-0.46480.678266
30-0.035015-0.29710.616381
31-0.091808-0.7790.780738
320.0694710.58950.278692
330.0455550.38650.350115
34-0.017298-0.14680.558141
35-0.02231-0.18930.574809
36-0.01146-0.09720.538597
370.1717651.45750.074667
38-0.057386-0.48690.686109
39-0.053186-0.45130.673436
400.1023320.86830.194053
41-0.056856-0.48240.684521
42-0.036838-0.31260.622248
43-0.061703-0.52360.698906
44-0.000359-0.0030.501212
450.0804560.68270.248496
460.1077510.91430.181806
470.0337970.28680.387554
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196467448tmlxwp041ishysp/12njr1196468118.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196467448tmlxwp041ishysp/12njr1196468118.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196467448tmlxwp041ishysp/2g2y11196468118.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196467448tmlxwp041ishysp/2g2y11196468118.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