Home » date » 2007 » Dec » 04 » attachments

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 04 Dec 2007 07:45:38 -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/04/t1196778810wls8amb4um0cycf.htm/, Retrieved Tue, 04 Dec 2007 15:33:33 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
112.6 113.8 107.8 103.2 103.3 101.2 107.7 110.4 101.9 115.9 89.9 88.6 117.2 123.9 100 103.6 94.1 98.7 119.5 112.7 104.4 124.7 89.1 97 121.6 118.8 114 111.5 97.2 102.5 113.4 109.8 104.9 126.1 80 96.8 117.2 112.3 117.3 111.1 102.2 104.3 122.9 107.6 121.3 131.5 89 104.4 128.9 135.9 133.3 121.3 120.5 120.4 137.9 126.1 133.2 146.6 103.4 117.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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.34850
1-0.126654-0.93070.821928
2-0.239492-1.75990.957955
30.0852030.62610.266941
40.3791062.78590.003675
50.2430611.78610.039847
6-0.673287-4.94760.999996
70.1719041.26320.105967
80.2584661.89930.031434
90.0348920.25640.399308
10-0.303911-2.23330.985152
11-0.151322-1.1120.864464
120.5305813.8990.000135
13-0.184332-1.35460.909401
14-0.174882-1.28510.897881
15-0.072098-0.52980.700793
160.2160461.58760.059107
170.0677360.49780.310337
18-0.491404-3.61110.999666
190.1313490.96520.169369
200.1069370.78580.217703
210.0135240.09940.460602
22-0.253253-1.8610.965906
23-0.051468-0.37820.646622
240.3923832.88340.002819
25-0.136046-0.99970.83905
26-0.109786-0.80680.788327
270.0122970.09040.464166
280.2366421.7390.04387
290.0498840.36660.357685
30-0.314244-2.30920.987607
310.1295120.95170.172741
320.1310830.96330.169855
33-0.017304-0.12720.550357
34-0.216673-1.59220.941413
35-0.039664-0.29150.614094
360.2392921.75840.04217
37-0.06912-0.50790.693213
38-0.179788-1.32120.903991
39-0.032113-0.2360.592829
400.1505421.10630.13676
41-0.026444-0.19430.576674
42-0.199813-1.46830.926091
43-0.011492-0.08450.533495
440.0495120.36380.3587
450.010110.07430.470527
46-0.126613-0.93040.82185
47-0.022743-0.16710.566053
480.086290.63410.264347
49-0.026561-0.19520.577009
50-0.001611-0.01180.504701
51-0.001382-0.01020.504032
520.0220540.16210.435931
530.005090.03740.48515
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.126654-0.93070.821928
1-0.259699-1.90840.969169
20.0153670.11290.455254
30.3626612.6650.005066
40.4785083.51630.000448
5-0.591963-4.350.99997
6-0.009371-0.06890.527324
7-0.093131-0.68440.751665
80.1573091.1560.126389
90.048250.35460.362149
100.1575621.15780.126013
11-0.01099-0.08080.532034
12-0.196536-1.44420.922775
13-0.036634-0.26920.6056
14-0.064343-0.47280.680876
15-0.048619-0.35730.638861
16-0.024539-0.18030.571213
17-0.12816-0.94180.82475
18-0.046667-0.34290.63351
190.0855560.62870.266096
200.0768340.56460.287338
210.0001520.00110.499556
220.0335470.24650.403108
230.0080530.05920.476516
240.002460.01810.492822
25-0.004507-0.03310.51315
260.112990.83030.205012
27-0.048067-0.35320.63735
280.0354590.26060.397708
29-0.040053-0.29430.615181
30-0.050617-0.3720.64431
31-0.013834-0.10170.540299
32-0.043516-0.31980.624815
33-0.080279-0.58990.721151
34-0.081978-0.60240.72529
35-0.06399-0.47020.679958
360.1619161.18980.119658
37-0.05382-0.39550.652982
38-0.027359-0.2010.57929
39-0.161961-1.19020.880406
40-0.15806-1.16150.874726
410.0857810.63040.26556
420.1508331.10840.136302
43-0.104567-0.76840.777204
440.0139510.10250.459364
45-0.003453-0.02540.510075
460.0412910.30340.381365
47-0.003564-0.02620.510398
48-0.012521-0.0920.536486
49-0.013205-0.0970.538473
50-0.054539-0.40080.654919
51-0.075674-0.55610.709775
520.0048820.03590.485757
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t1196778810wls8amb4um0cycf/1fp8t1196779536.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t1196778810wls8amb4um0cycf/1fp8t1196779536.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t1196778810wls8amb4um0cycf/2cy2o1196779536.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t1196778810wls8amb4um0cycf/2cy2o1196779536.ps (open in new window)


 
Parameters:
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 6 ;
 
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