Home » date » 2007 » Nov » 28 » attachments

workshop3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 10:07:26 -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/28/t1196269061bc5sgjit3kudeqi.htm/, Retrieved Wed, 28 Nov 2007 17:57:41 +0100
 
User-defined keywords:
bridome
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2863 2688 3041 3119 3102 4608 3466 3748 4541 3650 4274 3827 3778 3453 4160 3595 3914 4159 3676 3794 3446 3504 3958 3353 3480 3098 2944 3389 3497 4404 3849 3734 3060 3507 3287 3215 3764 2734 2837 2766 3851 3289 3848 3348 3682 4058 3655 3811 3341 3032 3475 3353 3186 3902 4164 3499 4145 3796 3711 3949 3740 3243 4407 4814 3908 5250 3937 4004 5560 3922 3759 4138 4634 3996 4307 4142 4429 5219 4929 5754 5591 4162 4947 5208 4754 4487 5719 5719 4994 6032 4897 5339 5571 4635 4733 5004 5322 4168 4633 4763 4252 4996 4261 4084 5084 4236
 
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
0110.29560
10.6446976.63760
20.621056.39410
30.6768076.96820
40.5135195.2870
50.5296695.45330
60.5515095.67810
70.4862375.00611e-06
80.4440414.57177e-06
90.5724595.89380
100.4539264.67354e-06
110.473084.87072e-06
120.5538435.70220
130.3871283.98576.2e-05
140.415054.27322.1e-05
150.4016834.13563.6e-05
160.2773312.85530.002587
170.3045853.13590.001109
180.3060273.15070.001059
190.2351912.42140.008579
200.2149032.21260.014536
210.2615072.69240.004124
220.1978292.03680.022082
230.2274662.34190.010527
240.2470192.54320.006214
250.1279821.31770.095231
260.11711.20560.115325
270.0605740.62370.267099
280.005210.05360.47866
29-0.026493-0.27280.607217
30-0.019802-0.20390.580578
31-0.039926-0.41110.659073
320.0092260.0950.462253
330.0087810.09040.464067
34-0.039133-0.40290.656084
35-0.044846-0.46170.677386
36-0.016868-0.17370.568771
37-0.072854-0.75010.772564
38-0.123032-1.26670.89598
39-0.123869-1.27530.897506
40-0.210477-2.1670.983763
41-0.208266-2.14420.98285
42-0.197104-2.02930.977534
43-0.218462-2.24920.986716
44-0.227204-2.33920.989401
45-0.216693-2.2310.986106
46-0.181758-1.87130.967971
47-0.208655-2.14820.983014


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.6446976.63760
10.351523.61910.000227
20.3720313.83030.000109
3-0.096285-0.99130.838105
40.0735890.75760.225171
50.1119831.15290.125765
60.0667360.68710.246764
7-0.07902-0.81360.791138
80.2986693.0750.001339
9-0.081022-0.83420.796969
100.0987231.01640.155874
110.0722720.74410.229235
12-0.138756-1.42860.921968
13-0.044363-0.45670.675605
14-0.072289-0.74430.770816
15-0.145386-1.49680.931297
160.0301320.31020.3785
17-0.045801-0.47160.680893
180.0094660.09750.461272
19-0.10561-1.08730.86032
200.0115850.11930.45264
210.0395210.40690.342452
220.0575720.59270.277308
23-0.00605-0.06230.524773
24-0.064902-0.66820.747272
25-0.155789-1.60390.944149
26-0.125952-1.29680.901234
27-0.029279-0.30140.618167
28-0.095167-0.97980.835292
290.0352860.36330.358557
300.0491520.5060.306938
310.2004622.06390.020736
32-0.022906-0.23580.592989
33-0.01851-0.19060.575389
34-0.160214-1.64950.948998
350.1404881.44640.075506
36-0.042381-0.43630.668261
37-0.023069-0.23750.593642
38-0.051822-0.53350.70261
39-0.078011-0.80320.788162
40-0.069695-0.71760.762693
410.006130.06310.474897
42-0.01526-0.15710.562271
43-0.009775-0.10060.539986
44-0.067904-0.69910.756995
450.1497921.54220.063002
46-0.013614-0.14020.555601
470.0370160.38110.351946
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196269061bc5sgjit3kudeqi/1f2wk1196269641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196269061bc5sgjit3kudeqi/1f2wk1196269641.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196269061bc5sgjit3kudeqi/2lun21196269641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196269061bc5sgjit3kudeqi/2lun21196269641.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