Home » date » 2010 » Aug » 18 »

Tijdreeks 1 - Stap 21

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 18 Aug 2010 17:57:58 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/18/t1282154261qowhdbl7mv1bj8x.htm/, Retrieved Wed, 18 Aug 2010 19:57:44 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Aug/18/t1282154261qowhdbl7mv1bj8x.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Patrick Fieremans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
136 135 134 132 152 151 136 126 127 127 128 130 125 118 111 104 126 131 122 116 115 115 113 122 114 106 93 89 114 122 115 116 120 120 120 121 118 112 99 96 120 135 128 134 134 132 130 125 124 114 101 101 123 143 133 136 137 135 141 136 133 124 110 104 130 160 142 142 137 135 139 135 134 120 103 101 127 159 141 140 135 127 130 128 126 110 101 102 129 169 146 145 138 123 124 137 132 112 105 106 137 175 151 142 140 122 127 135 128 117 107 108 134 171 154 146 148 122 124 135
 
Output produced by software:


Summary of computational 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
10.8716069.0580
20.7553497.84980
30.6469626.72340
40.5577795.79660
50.5064735.26340
60.4432354.60626e-06
70.397284.12873.6e-05
80.3488513.62540.000221
90.3411453.54530.000291
100.3096753.21820.000852
110.2709932.81620.002889
120.2150942.23530.013727
130.1440841.49740.068608
140.0791340.82240.206336
15-0.019884-0.20660.418342
16-0.107564-1.11780.133058
17-0.153466-1.59490.056832
18-0.170171-1.76850.039903
19-0.164833-1.7130.044791
20-0.158392-1.64610.05133
21-0.166041-1.72550.043644
22-0.173217-1.80010.037316
23-0.184887-1.92140.028659
24-0.187483-1.94840.026982
25-0.216974-2.25490.01308
26-0.245589-2.55220.006051
27-0.262307-2.7260.003741
28-0.275535-2.86340.002518
29-0.276607-2.87460.002437
30-0.252887-2.62810.004919
31-0.245237-2.54860.006111
32-0.238585-2.47940.007352
33-0.200848-2.08730.019608
34-0.185465-1.92740.028277
35-0.18878-1.96190.026176
36-0.202529-2.10470.018817
37-0.213624-2.220.014252
38-0.237712-2.47040.007531
39-0.242668-2.52190.006566
40-0.243684-2.53240.006382
41-0.228222-2.37180.009737
42-0.209936-2.18170.015649
43-0.201397-2.0930.019347
44-0.167448-1.74020.042339
45-0.156457-1.62590.053438
46-0.130009-1.35110.089745
47-0.1012-1.05170.147641
48-0.084679-0.880.190404


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8716069.0580
2-0.01809-0.1880.425616
3-0.031419-0.32650.372334
40.0168360.1750.430716
50.1068911.11080.134552
6-0.071613-0.74420.229178
70.0369730.38420.35078
8-0.022239-0.23110.408831
90.1549441.61020.055134
10-0.108143-1.12390.131784
11-0.028781-0.29910.382719
12-0.097252-1.01070.157216
13-0.064162-0.66680.253165
14-0.082123-0.85340.19765
15-0.194074-2.01690.023095
16-0.087455-0.90890.182724
170.1089551.13230.13001
180.0302770.31470.376816
190.030850.32060.374565
200.0075560.07850.468778
21-0.030309-0.3150.376692
220.0114290.11880.452839
23-0.055134-0.5730.283928
240.0480670.49950.309211
25-0.08827-0.91730.180507
26-0.006931-0.0720.471354
270.0095580.09930.46053
28-0.039003-0.40530.343016
29-0.045234-0.47010.319622
300.0961350.99910.159997
31-0.154506-1.60570.055633
32-0.026422-0.27460.392079
330.1026661.06690.144191
34-0.035319-0.3670.357152
35-0.087536-0.90970.182502
36-0.031306-0.32530.372776
370.0152080.1580.437359
38-0.124429-1.29310.099367
390.0040710.04230.483168
40-0.004685-0.04870.48063
410.0490690.50990.305569
42-0.070832-0.73610.231632
43-0.02403-0.24970.401637
440.0410490.42660.335264
45-0.019215-0.19970.421048
460.06350.65990.255356
470.0218960.22760.410213
48-0.03166-0.3290.371388
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282154261qowhdbl7mv1bj8x/1ugrb1282154276.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282154261qowhdbl7mv1bj8x/1ugrb1282154276.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/18/t1282154261qowhdbl7mv1bj8x/2ugrb1282154276.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282154261qowhdbl7mv1bj8x/2ugrb1282154276.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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