Home » date » 2010 » Aug » 13 »

Tijdreeks 1 - stap 20

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 13 Aug 2010 14:11:01 +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/13/t1281708674celts8qx2mwuqlm.htm/, Retrieved Fri, 13 Aug 2010 16:11:15 +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/13/t1281708674celts8qx2mwuqlm.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:
Reuben Vermoet
 
Dataseries X:
» Textbox « » Textfile « » CSV «
210 209 208 206 226 225 210 200 201 201 202 204 197 196 187 196 221 218 200 191 194 192 199 196 182 178 169 177 207 213 191 182 188 189 194 195 171 165 156 170 201 208 189 175 184 187 193 199 179 188 171 182 212 216 192 182 183 183 187 190 167 167 158 171 201 208 181 169 173 180 181 192 169 168 156 161 195 208 176 164 170 175 170 175 148 151 143 139 166 186 149 142 138 137 130 138 118 113 99 93 125 146 109 97 97 94 92 103 78 72 57 40 70 89 53 46 43 38 29 34
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9165410.04020
20.8228889.01430
30.7721948.4590
40.7467948.18070
50.7320748.01950
60.7153787.83660
70.6740467.38380
80.6166136.75470
90.556216.0930
100.5269765.77270
110.5403545.91930
120.5521626.04860
130.4933465.40430
140.4177254.57596e-06
150.378334.14443.2e-05
160.3605213.94936.6e-05
170.3503723.83811e-04
180.3437253.76530.00013
190.3193693.49850.000329
200.2772153.03670.001467
210.2279352.49690.006942
220.2036752.23110.013765
230.2164772.37140.009657
240.232012.54150.006155
250.1871052.04960.02129
260.12481.36710.087072
270.0974921.0680.143839
280.0884850.96930.167172
290.0884840.96930.167174
300.090260.98880.162387
310.0807030.88410.189218
320.0526190.57640.282708
330.0183980.20150.42031
340.0051940.05690.477359
350.0226630.24830.402177
360.041040.44960.326914
370.0166370.18220.427849
38-0.026407-0.28930.386435
39-0.038787-0.42490.335839
40-0.037273-0.40830.34189
41-0.033811-0.37040.355878
42-0.025078-0.27470.392005
43-0.024522-0.26860.394338
44-0.036924-0.40450.343288
45-0.060575-0.66360.254121
46-0.071746-0.78590.216725
47-0.054834-0.60070.274594
48-0.035402-0.38780.34942
49-0.048365-0.52980.298609
50-0.085761-0.93950.174689
51-0.098075-1.07440.14241
52-0.101391-1.11070.134463
53-0.104044-1.13970.128332
54-0.099373-1.08860.139261
55-0.098608-1.08020.141111
56-0.107964-1.18270.119637
57-0.126013-1.38040.085014
58-0.139432-1.52740.064647
59-0.131166-1.43690.076681
60-0.119051-1.30410.097341


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9165410.04020
2-0.107271-1.17510.121142
30.2238782.45250.007813
40.0973671.06660.144146
50.1037181.13620.129075
60.039680.43470.332292
7-0.108577-1.18940.118314
8-0.081816-0.89620.185957
9-0.099768-1.09290.138314
100.1073641.17610.120939
110.1961862.14910.016817
120.0351350.38490.3505
13-0.335311-3.67320.00018
14-0.043097-0.47210.318856
150.1101511.20660.114971
160.0180820.19810.421661
17-0.018097-0.19820.421597
18-0.007363-0.08070.467926
19-0.021262-0.23290.408113
200.0095140.10420.458584
21-0.029326-0.32120.374291
220.0123860.13570.44615
230.0322410.35320.362287
240.0257190.28170.389317
25-0.185032-2.02690.022443
26-0.019021-0.20840.417649
270.0877490.96120.169181
280.0038710.04240.483124
290.0180440.19770.42182
30-0.049593-0.54330.293977
310.0248350.27210.393022
320.0075950.08320.466916
330.0185620.20330.419607
34-0.008285-0.09080.463917
35-0.023887-0.26170.397013
36-0.003902-0.04270.482988
37-0.030272-0.33160.370381
38-0.011654-0.12770.449316
390.0567050.62120.267833
40-0.021078-0.23090.408893
41-0.018157-0.19890.421339
420.0004550.0050.498015
430.011530.12630.449853
440.04850.53130.298098
45-0.039502-0.43270.332995
46-0.0371-0.40640.342584
47-0.004457-0.04880.480573
480.0114350.12530.450262
490.0011070.01210.495172
50-0.087429-0.95770.170061
510.0230530.25250.400532
52-0.049399-0.54110.294707
530.0069380.0760.469773
540.003540.03880.484567
55-0.012513-0.13710.445599
560.0368220.40340.343698
57-0.004806-0.05260.479052
58-0.039914-0.43720.331365
59-0.029189-0.31970.374858
60-0.007757-0.0850.466213
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/13/t1281708674celts8qx2mwuqlm/1lyw11281708657.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/13/t1281708674celts8qx2mwuqlm/1lyw11281708657.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/13/t1281708674celts8qx2mwuqlm/2lyw11281708657.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/13/t1281708674celts8qx2mwuqlm/2lyw11281708657.ps (open in new window)


 
Parameters (Session):
par1 = 0.01 ; par2 = 0.99 ; par3 = 0.01 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; 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