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: Sat, 01 Dec 2007 08:40:01 -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/t1196522966gi8n44q2jx7y9v2.htm/, Retrieved Sat, 01 Dec 2007 16:29:28 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105.3 103 103.8 103.4 105.8 101.4 97 94.3 96.6 97.1 95.7 96.9 97.4 95.3 93.6 91.5 93.1 91.7 94.3 93.9 90.9 88.3 91.3 91.7 92.4 92 95.6 95.8 96.4 99 107 109.7 116.2 115.9 113.8 112.6 113.7 115.9 110.3 111.3 113.4 108.2 104.8 106 110.9 115 118.4 121.4 128.8 131.7 141.7 142.9 139.4 134.7 125 113.6 111.5 108.5 112.3 116.6 115.5 120.1 132.9 128.1 129.3 132.5 131 124.9 120.8 122 122.1 127.4 135.2 137.3 135 136 138.4 134.7 138.4 133.9 133.6 141.2 151.8 155.4 156.6 161.6 160.7 156 159.5 168.7 169.9 169.9 185.9
 
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
019.59170
10.2846762.73050.003789
20.0521980.50070.308901
30.1426311.36810.087311
4-0.020495-0.19660.577705
5-0.304248-2.91820.997788
6-0.184722-1.77180.96013
7-0.086861-0.83310.796539
8-0.12315-1.18120.879719
9-0.108707-1.04270.850085
100.095020.91140.182234
110.1302131.2490.107425
120.0672570.64510.260233
130.1320451.26650.104261
140.2261482.16910.016325
15-0.116631-1.11870.866906
160.0252210.24190.404693
17-0.034873-0.33450.630614
18-0.047375-0.45440.674694
190.0328670.31530.376642
200.1219471.16970.122577
210.0421480.40430.343476
220.0165180.15840.43723
23-0.045919-0.44040.669676
24-0.097571-0.93590.824104
25-0.145555-1.39610.91698
26-0.07311-0.70120.75754
27-0.048163-0.4620.677402
28-0.045047-0.43210.666652
29-0.163279-1.56610.939622
300.0422010.40480.343289
31-0.000619-0.00590.502362
320.1459081.39950.082513
330.0837490.80330.211939
340.0121240.11630.453837
35-0.011554-0.11080.544
360.0050670.04860.48067
37-0.155656-1.4930.930571
38-0.092536-0.88760.811459
390.0048410.04640.481532
40-0.00284-0.02720.510836
410.0185550.1780.429569
420.0892790.85630.197019
43-0.021757-0.20870.582423
440.0036140.03470.48621
450.0080770.07750.469209
460.0863990.82870.204707
47-0.043007-0.41250.659536
480.0363930.34910.363917
490.0595960.57160.284486
500.0360740.3460.365062
51-0.044425-0.42610.664489
520.0576040.55250.290968
530.0715310.68610.247187
54-0.010875-0.10430.541424
55-0.032556-0.31230.622227
56-0.022153-0.21250.583901
57-0.039222-0.37620.646186
58-0.009704-0.09310.536978
590.0143760.13790.445314


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2846762.73050.003789
1-0.031386-0.3010.617969
20.1484011.42340.079
3-0.112905-1.0830.85917
4-0.296997-2.84870.997292
5-0.045235-0.43390.667303
6-0.015506-0.14870.558952
7-0.011905-0.11420.545331
8-0.062752-0.60190.725639
90.0738210.70810.240348
100.0520150.49890.309516
110.0117820.1130.455135
120.0577340.55380.290541
130.1254961.20370.115893
14-0.234921-2.25330.986691
150.1873441.79690.037813
16-0.147707-1.41680.920034
170.1460411.40080.082323
180.1420761.36270.088144
190.0567040.54390.293917
200.0170540.16360.435212
21-0.053887-0.51690.696756
22-0.104564-1.00290.84074
23-0.095551-0.91650.819097
24-0.052107-0.49980.690792
250.052780.50620.306946
26-0.0208-0.19950.578847
27-0.021675-0.20790.582115
28-0.186977-1.79340.961905
29-0.031966-0.30660.620084
30-0.011267-0.10810.542912
310.1583661.5190.066097
32-0.094875-0.910.817401
33-0.09617-0.92240.820642
34-0.038125-0.36570.64228
350.0376640.36130.359365
36-0.058301-0.55920.71131
370.0470480.45130.326429
380.0211190.20260.41996
390.0013560.0130.494826
400.0885270.84910.19901
410.0147510.14150.443897
42-0.033985-0.3260.627406
43-0.004687-0.0450.51788
440.0924540.88680.188752
45-0.004038-0.03870.515407
460.0420770.40360.343725
470.0966010.92660.178289
480.0473440.45410.325409
490.0729950.70010.242803
50-0.046023-0.44140.670035
51-0.078026-0.74840.771937
520.0459680.44090.330156
53-0.013953-0.13380.553085
540.00480.0460.481688
55-0.019-0.18220.572101
560.0731550.70170.242325
57-0.07907-0.75840.77493
580.0093220.08940.464473
59-0.035817-0.34350.634015
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196522966gi8n44q2jx7y9v2/1f7cd1196523599.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196522966gi8n44q2jx7y9v2/1f7cd1196523599.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196522966gi8n44q2jx7y9v2/2f90j1196523599.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t1196522966gi8n44q2jx7y9v2/2f90j1196523599.ps (open in new window)


 
Parameters:
par1 = 60 ; 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