Home » date » 2007 » Nov » 29 » attachments

ws 7 Q2 T

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 03:01:04 -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/t1196329841f9w2bhrd3acalai.htm/, Retrieved Thu, 29 Nov 2007 10:50:41 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
124,9 132 151,4 108,9 121,3 123,4 90,3 79,3 117,2 116,9 120,8 96,1 100,8 105,3 116,1 112,8 114,5 117,2 77,1 80,1 120,3 133,4 109,4 93,2 91,2 99,2 108,2 101,5 106,9 104,4 77,9 60 99,5 95 105,6 102,5 93,3 97,3 127 111,7 96,4 133 72,2 95,8 124,1 127,6 110,7 104,6 112,7 115,3 139,4 119 97,4 154 81,5 88,8 127,7 105,1 114,9 106,4 104,5 121,6 141,4 99 126,7 134,1 81,3 88,6 132,7 132,9 134,4 103,7 119,7 115 132,9 108,5 113,9 142,9 95,2 93
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.24620
10.2141371.76580.040958
20.3902373.2180.000989
30.1223731.00910.158249
40.1509111.24440.108804
50.2700462.22690.014636
60.1945831.60460.056611
70.0069430.05720.477257
80.1332891.09910.137795
90.0827670.68250.248615
10-0.046199-0.3810.647794
110.0359410.29640.383922
12-0.388276-3.20180.998961
130.0031760.02620.48959
14-0.143006-1.17930.878798
150.0228630.18850.425512
16-0.067112-0.55340.709105
17-0.099437-0.820.792453
18-0.035315-0.29120.614114
190.0265950.21930.413533
20-0.063697-0.52530.699445
21-0.002837-0.02340.509297
22-0.135607-1.11820.866302
23-0.027448-0.22630.589193
240.0613720.50610.307216
25-0.069814-0.57570.716642
260.0804070.66310.254769
27-0.05523-0.45540.674877
280.0074240.06120.475681
29-0.014601-0.12040.547742
30-0.097873-0.80710.788784
31-0.164034-1.35270.909677
32-0.013898-0.11460.545452
33-0.079183-0.6530.742009
340.1009720.83260.203981
35-0.016924-0.13960.55529


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2141371.76580.040958
10.3609322.97630.002019
2-0.010025-0.08270.53282
3-0.006648-0.05480.521778
40.252132.07910.020691
50.0973180.80250.212528
6-0.268567-2.21470.984931
70.0828840.68350.248315
80.1949111.60730.056314
9-0.328014-2.70490.995686
10-0.094868-0.78230.781625
11-0.266562-2.19810.984326
120.1438831.18650.119779
130.0208960.17230.431851
140.0414470.34180.366786
150.0338980.27950.390345
160.04490.37030.35617
170.1569861.29450.099929
18-0.047486-0.39160.651703
19-0.079795-0.6580.743623
200.1008150.83130.204346
21-0.247017-2.0370.977225
22-0.050152-0.41360.659752
23-0.027444-0.22630.589182
24-0.005897-0.04860.519322
250.0763550.62960.265519
260.0553340.45630.324817
270.0349420.28810.387058
28-0.096561-0.79630.785674
290.0032240.02660.489433
30-0.144454-1.19120.881141
31-0.022449-0.18510.573157
320.1340011.1050.136526
33-0.046392-0.38260.64838
340.0193520.15960.436842
35-0.088467-0.72950.765905
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196329841f9w2bhrd3acalai/13vtl1196330459.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196329841f9w2bhrd3acalai/13vtl1196330459.ps (open in new window)


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


 
Parameters:
par1 = 36 ; par2 = -0.9 ; par3 = 0 ; par4 = 1 ; 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