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:12:18 -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/t11962693554lj8bpp808tn85v.htm/, Retrieved Wed, 28 Nov 2007 18:02:37 +0100
 
User-defined keywords:
bridome
 
Dataseries X:
» Textbox « » Textfile « » CSV «
39892 32194 21629 59968 45694 55756 48554 41052 49822 39191 31994 35735 38930 33658 23849 58972 59249 63955 53785 52760 44795 37348 32370 32717 40974 33591 21124 58608 46865 51378 46235 47206 45382 41227 33795 31295 42625 33625 21538 56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387 50556 43901 48572 43899 37532 40357 35489 29027 34485 42598 30306 26451 47460 50104 61465 53726 39477 43895 31481 29896 33842 39120 33702 25094 51442 45594 52518 48564 41745 49585 32747 33379 35645 37034 35681 20972 58552 54955 64540 51570 51145 46641 35704 33253 35193 41668 34865 21210 56126 49321 59723 48103 47472 50497 40059
 
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
0110.29560
10.3550253.65520.000201
20.1657591.70660.045412
3-0.009376-0.09650.538359
4-0.191351-1.97010.974281
5-0.306745-3.15810.998966
6-0.481276-4.9550.999999
7-0.317863-3.27260.99928
8-0.169151-1.74150.957753
9-0.013264-0.13660.55418
100.0964650.99320.161445
110.2798122.88080.0024
120.7825138.05650
130.2839462.92340.002117
140.123451.2710.103257
15-0.033347-0.34330.633984
16-0.170302-1.75340.958785
17-0.280462-2.88750.997646
18-0.41858-4.30950.999982
19-0.267128-2.75030.996498
20-0.16157-1.66350.950414
21-0.013457-0.13850.554963
220.0661010.68050.248821
230.2433022.50490.006885
240.6583676.77830
250.2373652.44380.008092
260.0903230.92990.17726
27-0.042381-0.43630.66826
28-0.164272-1.69130.95314
29-0.246476-2.53760.993692
30-0.375689-3.8680.999905
31-0.25094-2.58360.99443
32-0.151568-1.56050.939187
33-0.043664-0.44950.673022
340.0309850.3190.375175
350.1733161.78440.03861
360.5194715.34830
370.1840681.89510.030402
380.0419940.43230.333183
39-0.059616-0.61380.729663
40-0.171179-1.76240.959558
41-0.220963-2.2750.98754
42-0.316816-3.26180.999255
43-0.21328-2.19590.984859
44-0.105799-1.08930.860746
45-0.035029-0.36060.640458
460.0258370.2660.395373
470.1450031.49290.069217


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3550253.65520.000201
10.0454450.46790.320415
2-0.093658-0.96430.831447
3-0.193958-1.99690.975801
4-0.204745-2.1080.981305
5-0.35562-3.66130.999803
6-0.089919-0.92580.821667
7-0.049775-0.51250.695305
8-0.019328-0.1990.578675
9-0.05945-0.61210.729102
100.0974011.00280.159121
110.7003667.21070
12-0.274416-2.82530.997177
13-0.149042-1.53450.936054
140.0180680.1860.42639
150.0868710.89440.18657
16-0.067936-0.69940.757096
170.0685460.70570.240955
180.0592570.61010.271554
19-0.16493-1.69810.953785
20-0.020579-0.21190.583693
210.1046351.07730.1419
220.0297840.30660.379856
230.0316180.32550.372713
24-0.041403-0.42630.664612
25-0.064027-0.65920.744402
26-0.010697-0.11010.543743
27-0.000353-0.00360.501448
280.0566770.58350.280391
29-0.058251-0.59970.725017
30-0.094579-0.97380.833802
31-0.00328-0.03380.513438
32-0.07539-0.77620.780317
33-0.00483-0.04970.519782
34-0.091865-0.94580.826802
35-0.057136-0.58830.721194
36-0.057123-0.58810.721149
37-0.086434-0.88990.81223
38-0.036629-0.37710.646579
39-0.082663-0.85110.801673
40-0.040963-0.42170.662965
41-0.015619-0.16080.563723
42-0.04671-0.48090.684215
430.0162240.1670.433831
44-0.057625-0.59330.722874
45-0.057977-0.59690.724081
46-0.020905-0.21520.585001
470.1020811.0510.147827
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t11962693554lj8bpp808tn85v/1vw4k1196269936.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t11962693554lj8bpp808tn85v/1vw4k1196269936.ps (open in new window)


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