Home » date » 2007 » Nov » 29 » attachments

Q2_T2

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 08:50:27 -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/t1196350794rytaq2px4trrcfy.htm/, Retrieved Thu, 29 Nov 2007 16:39:54 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,35 5,3 5,05 4,94 4,94 4,84 5 5,2 5,14 5,16 4,96 4,97 4,76 4,61 4,85 4,94 5 5,24 5,24 5,25 5,11 4,96 4,68 4,49 4,58 4,58 4,41 4,23 4,01 4,09 4,23 3,91 3,7 4 4,16 4,23 4,29 4,41 4,34 4,2 4,15 3,99 4,19 4,33 4,39 4,28 4,12 4,09 3,97 3,85 3,64 3,58 3,59 3,76 3,55 3,37 3,2 3,26 3,3 3,13 3,29 3,49 3,38 3,34 3,5 3,68 3,94 4,01 4,01 4,03 3,9 3,77 3,81 3,74 3,8 4,06 4,1 3,99 4,2 4,33 4,61 4,59 4,39 4,35 4,4
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
019.16520
10.2692112.46740.007821
2-0.113826-1.04320.850083
3-0.010162-0.09310.53699
4-0.03713-0.34030.632761
5-0.022831-0.20920.582619
6-0.105648-0.96830.832158
7-0.10977-1.00610.841362
80.0837770.76780.222372
90.143071.31130.096672
100.0898750.82370.206217
11-0.067853-0.62190.732147
12-0.170393-1.56170.938938
13-0.045209-0.41430.660162
14-0.023854-0.21860.586263
15-0.067477-0.61840.73102
16-0.106671-0.97770.834475
17-0.059819-0.54830.707514
180.1745421.59970.056709
190.158521.45290.074994
20-0.014793-0.13560.553761
21-0.158305-1.45090.924732
22-0.041415-0.37960.647391
230.1615121.48030.07127
240.0034190.03130.487537
25-0.108505-0.99450.838573
260.0154060.14120.444026
270.1707631.56510.060663
280.1612511.47790.071588
29-0.008893-0.08150.532383
30-0.067646-0.620.731526
310.0193440.17730.429855
32-0.018122-0.16610.565757
33-0.030509-0.27960.60977
34-0.120201-1.10170.863122
35-0.064698-0.5930.7226
360.1425221.30620.097519
370.0160040.14670.441867
38-0.051041-0.46780.679429
39-0.097456-0.89320.812849
40-0.1359-1.24550.891802
41-0.048519-0.44470.671156
420.0346270.31740.37588
43-0.005386-0.04940.519625
44-0.009737-0.08920.535449
450.0378710.34710.364695
460.1037310.95070.172239
470.0160890.14750.441562


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2692112.46740.007821
1-0.200858-1.84090.965416
20.0906740.8310.204153
3-0.095459-0.87490.807937
40.0312530.28640.387623
5-0.144507-1.32440.905524
6-0.030147-0.27630.608503
70.1005660.92170.179662
80.0750570.68790.246703
90.0574090.52620.300081
10-0.112432-1.03050.847123
11-0.117653-1.07830.858008
120.0041990.03850.484695
13-0.040981-0.37560.645918
14-0.01075-0.09850.539124
15-0.101497-0.93020.822543
16-0.033875-0.31050.621514
170.1402891.28580.101029
180.0318510.29190.385535
190.002340.02140.491469
20-0.160185-1.46810.927097
210.0636450.58330.280622
220.1264591.1590.124867
23-0.057267-0.52490.699469
24-0.010589-0.0970.538541
250.0058990.05410.478506
260.1262981.15750.125166
270.0225270.20650.418463
28-0.016035-0.1470.558243
290.0349470.32030.374769
300.0272530.24980.401685
31-0.064981-0.59560.723465
32-0.010273-0.09420.537396
33-0.085014-0.77920.780965
340.0772710.70820.24039
350.066510.60960.271896
36-0.143058-1.31110.903309
37-0.008501-0.07790.530957
38-0.052766-0.48360.68504
39-0.014821-0.13580.553861
40-0.102887-0.9430.8258
410.0648890.59470.276815
420.0321910.2950.384348
430.0377090.34560.365249
44-0.050705-0.46470.678333
45-0.029528-0.27060.606329
460.0039350.03610.48566
470.0176520.16180.435933
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196350794rytaq2px4trrcfy/1z0cb1196351420.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196350794rytaq2px4trrcfy/1z0cb1196351420.ps (open in new window)


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


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