Home » date » 2007 » Dec » 13 » attachments

ACF

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 03:25:45 -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/t11975407069aa40exgi9kijh1.htm/, Retrieved Thu, 13 Dec 2007 11:11:49 +0100
 
User-defined keywords:
fredje
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12398.4 13882.3 15861.5 13286.1 15634.9 14211 13646.8 12224.6 15916.4 16535.9 15796 14418.6 15044.5 14944.2 16754.8 14254 15454.9 15644.8 14568.3 12520.2 14803 15873.2 14755.3 12875.1 14291.1 14205.3 15859.4 15258.9 15498.6 14106.5 15023.6 15761.3 16943 15070.3 13659.6 14768.9 14725.1 15998.1 15370.6 14956.9 15469.7 15101.8 16283.6 16726.5 14968.9 14861 14583.3 15305.8 17903.9 16379.4 15420.3 17870.5 15912.8 13866.5 17823.2 17872 17420.4 16704.4 15991.2 16583.6 17838.7 17209.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
017.8740
10.3513032.76620.003732
20.0698320.54990.292195
30.1681721.32420.095151
40.296052.33110.011507
50.2932192.30880.012151
60.3693642.90840.002518
70.1460691.15020.12725
80.0672190.52930.299249
9-0.014036-0.11050.543822
100.0669620.52730.299948
110.1598311.25850.106462
120.2681612.11150.019384
130.0265460.2090.417558
14-0.06691-0.52680.69991
150.0011020.00870.496552
160.1480271.16560.124127
170.1161880.91490.181904
180.1406311.10730.136215
190.0909820.71640.23822
20-0.050267-0.39580.653197
21-0.097914-0.7710.778176
220.0918110.72290.236223
230.1256980.98970.163072
240.0120090.09460.462485
25-0.161297-1.270.895594
26-0.129057-1.01620.843258
27-0.0297-0.23390.592068
280.0388260.30570.380422
29-0.000449-0.00350.501405
30-0.057359-0.45160.673449
31-0.145877-1.14860.872441
32-0.233007-1.83470.964325
33-0.045615-0.35920.639658
340.0817910.6440.260967
35-0.08785-0.69170.754157
36-0.23742-1.86940.966858
37-0.195853-1.54220.935937
38-0.063276-0.49820.689958
39-0.016017-0.12610.549976
40-0.023383-0.18410.572738
41-0.114363-0.90050.814329
42-0.124375-0.97930.834388
43-0.077963-0.61390.729231
44-0.091056-0.7170.761959
45-0.076355-0.60120.725057
460.0641540.50510.307623
47-0.027499-0.21650.585357


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3513032.76620.003732
1-0.061125-0.48130.684002
20.1873491.47520.072611
30.2073941.6330.053766
40.1587911.25030.10794
50.2877922.26610.013474
6-0.093938-0.73970.768853
7-0.005659-0.04460.517699
8-0.234899-1.84960.96543
9-0.073872-0.58170.718552
100.0252880.19910.421411
110.1968941.55030.063074
12-0.026404-0.20790.582007
130.0041710.03280.486953
140.0198240.15610.438233
150.0508330.40030.34517
16-0.016927-0.13330.552798
170.0451250.35530.361779
180.0845180.66550.254101
19-0.133377-1.05020.851152
20-0.096859-0.76270.775722
21-0.001048-0.00830.503279
22-0.011002-0.08660.534379
23-0.08381-0.65990.744126
24-0.124571-0.98090.834766
250.0157960.12440.45071
260.0378310.29790.383395
270.0483710.38090.352301
280.0600680.4730.318944
29-0.007292-0.05740.522803
30-0.083313-0.6560.742877
31-0.214661-1.69020.951998
320.087890.6920.245745
33-0.011087-0.08730.534642
34-0.12988-1.02270.844783
35-0.089744-0.70660.758782
360.0199080.15680.437974
370.1171830.92270.179869
380.0188080.14810.441376
390.1080850.85110.199005
40-0.048747-0.38380.648792
410.0213480.16810.433527
420.0574960.45270.326163
43-0.029963-0.23590.592868
44-0.184384-1.45180.924207
450.0027810.02190.491299
460.0307520.24210.404736
47-0.096236-0.75780.774269
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t11975407069aa40exgi9kijh1/14fyd1197541544.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t11975407069aa40exgi9kijh1/14fyd1197541544.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t11975407069aa40exgi9kijh1/240ck1197541544.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t11975407069aa40exgi9kijh1/240ck1197541544.ps (open in new window)


 
Parameters:
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