Home » date » 2007 » Dec » 04 » attachments

gewone + partiële autocorrelatie

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 04 Dec 2007 09:57: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/04/t11967867411yp677p9bimr3pm.htm/, Retrieved Tue, 04 Dec 2007 17:45:43 +0100
 
User-defined keywords:
prijsindexcijfers grondstoffen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,8 6,1 1,7 5,1 -3,1 8,1 6,4 3,4 4,2 0,8 1,7 4,6 0,6 0,2 14,2 2,6 6,5 10,3 -0,4 5,8 9,2 -4,4 10,2 12,6 5,2 1,1 -0,3 4,3 6,1 3,4 -6,3 5,5 1,9 0,7 6,3 0,4 6,2 4,5 9,6 -0,2 10,8 0,1 6,0 5,7 0,0 14,1 5,8 -2,3 4,6 7,6 5,7 9,4 1,9 4,9 11,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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.41620
1-0.2444-1.81250.962317
2-0.116178-0.86160.803676
30.2076621.54010.06464
4-0.157735-1.16980.876436
50.1324440.98220.165144
60.1494721.10850.136232
7-0.317803-2.35690.988992
80.0481430.3570.361216
90.3294772.44350.008892
10-0.405073-3.00410.997998
110.1131440.83910.202523
12-0.048378-0.35880.639433
13-0.209375-1.55280.936892
140.1863221.38180.08631
15-0.107305-0.79580.785213
16-0.18085-1.34120.907319
170.2502741.85610.034401
180.0368030.27290.392961
19-0.233329-1.73040.955418
200.0562070.41680.339208
21-0.052574-0.38990.65094
220.1022840.75860.225677
230.1886611.39910.083691
24-0.224298-1.66340.949044
25-0.145502-1.07910.857367
260.2838872.10540.01992
27-0.142442-1.05640.852293
280.0465180.3450.365711
290.0727850.53980.29576
30-0.164285-1.21840.885858
310.201011.49070.070873
320.0396930.29440.384791
33-0.163663-1.21380.884986
340.0521520.38680.350209
350.0926290.6870.247499


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.2444-1.81250.962317
1-0.187085-1.38750.91455
20.1413251.04810.14959
3-0.096048-0.71230.760359
40.1319410.97850.166056
50.1729191.28240.10254
6-0.20251-1.50190.930573
7-0.10467-0.77630.779538
80.2978712.20910.015677
9-0.269129-1.99590.974548
10-0.040942-0.30360.618725
11-0.124309-0.92190.819696
12-0.095548-0.70860.759217
13-0.100095-0.74230.769476
14-0.07165-0.53140.701348
15-0.022745-0.16870.566668
160.1039070.77060.222122
170.1091570.80950.210849
18-0.053099-0.39380.652373
19-0.240857-1.78620.960214
200.0315580.2340.407912
210.1202560.89180.188182
220.0719040.53330.298002
23-0.075289-0.55840.710568
24-0.248501-1.84290.964635
250.0549630.40760.342569
26-0.152124-1.12820.86793
270.1302360.96590.169173
280.1407381.04370.150586
29-0.008555-0.06340.525178
300.037580.27870.390759
31-0.065067-0.48260.684335
320.0246030.18250.427947
33-0.019532-0.14490.557322
34-0.027444-0.20350.580264
350.0548480.40680.342881
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t11967867411yp677p9bimr3pm/10wm61196787419.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t11967867411yp677p9bimr3pm/10wm61196787419.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t11967867411yp677p9bimr3pm/2w35k1196787419.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t11967867411yp677p9bimr3pm/2w35k1196787419.ps (open in new window)


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