Home » date » 2007 » Dec » 13 » attachments

Paper: tijdreeks 1: autocorrelatie

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 13 Dec 2007 01:44:14 -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/13/t1197534841y97pwji0lrs3l1h.htm/, Retrieved Thu, 13 Dec 2007 09:34:04 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15044.5 14944.2 16754.8 14254.0 15454.9 15644.8 14568.3 12520.2 14803.0 15873.2 14755.3 12875.1 14291.1 14205.3 15859.4 15258.9 15498.6 15106.5 15023.6 12083.0 15761.3 16943.0 15070.3 13659.6 14768.9 14725.1 15998.1 15370.6 14956.9 15469.7 15101.8 11703.7 16283.6 16726.5 14968.9 14861.0 14583.3 15305.8 17903.9 16379.4 15420.3 17870.5 15912.8 13866.5 17823.2 17872.0 17420.4 16704.4 15991.2 16583.6 19123.5 17838.7 17209.4 18586.5 16258.1 15141.6 19202.1 17746.5 19090.1 18040.3
 
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
017.7460
10.4177553.23590.000988
20.1917251.48510.071377
30.3664652.83860.003087
40.3383282.62070.005551
50.3483422.69820.004519
60.5100673.9510.000104
70.2839652.19960.01585
80.3305712.56060.006492
90.2173681.68370.048715
10-0.029094-0.22540.588767
110.201141.5580.062243
120.5535084.28753.3e-05
130.1064140.82430.206522
14-0.020359-0.15770.56239
150.0250030.19370.423545
160.0188180.14580.442297
170.0792010.61350.270936
180.1436481.11270.13514
19-0.03451-0.26730.604926
200.0566060.43850.33131
21-0.062241-0.48210.684262
22-0.25388-1.96650.973067
23-0.038933-0.30160.617991
240.1545621.19720.117962
25-0.114356-0.88580.810368
26-0.168076-1.30190.901038
27-0.211883-1.64120.94701
28-0.16129-1.24930.891805
29-0.096047-0.7440.770104
30-0.072381-0.56070.711443
31-0.160399-1.24240.890547
32-0.108105-0.83740.797149
33-0.192185-1.48870.929092
34-0.283916-2.19920.984136
35-0.157303-1.21850.886092
36-0.032322-0.25040.59842
37-0.164949-1.27770.89686
38-0.216958-1.68060.950975
39-0.237278-1.83790.964489
40-0.204807-1.58640.941051
41-0.167431-1.29690.900187
42-0.114964-0.89050.811625
43-0.157762-1.2220.886761
44-0.139554-1.0810.857984
45-0.184892-1.43220.921357
46-0.20598-1.59550.942074
47-0.15371-1.19060.880757


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.4177553.23590.000988
10.0208430.16150.43614
20.3385362.62230.005527
30.0987470.76490.223667
40.226631.75550.042141
50.338562.62250.005524
6-0.087159-0.67510.748906
70.2598422.01270.024319
8-0.312953-2.42410.990812
9-0.337347-2.61310.994338
100.0488210.37820.353322
110.375022.90490.002569
12-0.29852-2.31230.987896
13-0.132224-1.02420.845075
14-0.169688-1.31440.903142
150.1172560.90830.183688
160.004490.03480.486186
17-0.006592-0.05110.520277
18-0.051501-0.39890.654318
19-0.042632-0.33020.628811
200.1052620.81540.209047
21-0.005499-0.04260.516918
22-0.015252-0.11810.546826
23-0.189403-1.46710.926216
240.0437340.33880.367986
25-0.003913-0.03030.512038
26-0.052643-0.40780.657553
270.0032010.02480.490149
28-0.136186-1.05490.852148
290.1222240.94670.173784
300.0378370.29310.385234
31-0.066875-0.5180.696822
320.016960.13140.447961
33-0.035411-0.27430.607598
340.0006690.00520.497942
35-0.042668-0.33050.628916
36-0.069027-0.53470.702577
37-0.069603-0.53910.704108
380.0511370.39610.346716
39-0.074112-0.57410.715968
40-0.029217-0.22630.589138
41-0.017177-0.13310.552702
420.0633410.49060.312736
430.0511920.39650.346561
44-0.035838-0.27760.608864
450.0539980.41830.338622
46-0.085535-0.66260.744922
47-0.021468-0.16630.565755
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197534841y97pwji0lrs3l1h/12l5d1197535451.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197534841y97pwji0lrs3l1h/12l5d1197535451.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197534841y97pwji0lrs3l1h/2xh6p1197535451.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197534841y97pwji0lrs3l1h/2xh6p1197535451.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